[MacPorts] #36241: cmake fails to build in presence of elf.h (was: cmake fails to build)

MacPorts noreply at macports.org
Thu Sep 20 05:39:12 PDT 2012


#36241: cmake fails to build in presence of elf.h
-------------------------+-------------------
  Reporter:  macports@…  |      Owner:  css@…
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.1.2
Resolution:              |   Keywords:
      Port:  cmake       |
-------------------------+-------------------
Changes (by cal@…):

 * owner:  macports-tickets@… => css@…


Comment:

 Please remember to Cc (or assign to) the maintainer, if any.

 It seems the build fails, because you have `/usr/include/elf.h` on your
 system, but that file doesn't contain what CMake expects it to contain.
 Since Apple systems do not use ELF as binary format, building ELF support
 into CMake is probably wrong. On my system, the relevant test fails
 (because `/usr/include/elf.h` doesn't exist):

 {{{
 :) clemens at cSchlepptop:/opt/dports/devel/cmake$ port log | grep elf.h
 -- Looking for elf.h
 -- Looking for elf.h - not found
 }}}

 So, who- or whatever put this file in `/usr/include` should not have done
 so. `/usr/include` is Apple land and should not be modified by anybody but
 Apple. Move the file aside or delete it, clean and retry.

-- 
Ticket URL: <https://trac.macports.org/ticket/36241#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list