ExternalLibraries/pciutils does not compile on Mac OS

Issue #1658 resolved
Ian Hinder created an issue

When I try to compile ExternalLibraries/pciutils on Mac OS, I get

lspci.c:919:29: error: expected ')'
     puts("lspci version " PCIUTILS_VERSION);
./pciutils.h:18:26: note: expanded from macro 'PCIUTILS_VERSION'
lspci.c:919:11: note: to match this '('
     puts("lspci version " PCIUTILS_VERSION);

This is with the osx-mountain-lion-macports-gcc.cfg optionlist, and "gcc-mp-4.6 (MacPorts gcc46 4.6.4_3) 4.6.4".

I have to disable this thorn in my thornlist (or machine definition file) to compile the ET. This means that the ET will not compile out of the box on Mac OS.


Comments (5)

  1. Ian Hinder reporter
    • removed comment

    As pointed out by Roland in #1657, there is no configure script, so gcc is used. This means the Apple gcc, which in my case is "Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)". When I modify the Makefile to use the MacPorts gcc, it then claims

    -n Configuring libpci for your system...
     x86_64--darwin 13.3.0 x86_64 darwin
    -n Looking for access methods...
     Unfortunately, your OS is not supported by the PCI Library

    Indeed, the pciutils homepage (http://mj.ucw.cz/sw/pciutils/) does not list Mac OS as a supported platform. So it looks like the pciutils build system works as designed when using the MacPorts gcc.

    Since pciutils does not support Mac OS, and since I would like the ET to build out of the box on Mac OS, what is the best way to make that happen?

  2. Ian Hinder reporter
    • changed status to resolved
    • removed comment

    pciutils has been removed from the ET thornlist. Since pciutils does not support Mac OS, we can't do anything about this.

  3. Roland Haas
    • changed status to open
    • removed comment

    This happened again. We should make sure that configure.sh produces a useful error message.

  4. Log in to comment