[MacPorts] #70524: elk fails to build: error: elf.h: No such file or directory
MacPorts
noreply at macports.org
Sat Aug 10 03:20:59 UTC 2024
#70524: elk fails to build: error: elf.h: No such file or directory
--------------------------+--------------------
Reporter: barracuda156 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.9.3
Keywords: | Port: elk
--------------------------+--------------------
Obviously, there is no `elf.h` on MacOS.
{{{
/bin/sh ../libtool --tag=CC --mode=compile ccache /usr/bin/gcc-4.2
-DHAVE_CONFIG_H -I. -I.. -I../include -I../include -I/opt/local/include
-DSCM_DIR="\"/opt/local/share/elk\"" -DLIB_DIR="\"/opt/local/lib/elk\""
-I/usr/include/libelf -Wpointer-arith -Wcast-align -Wcast-qual -Wshadow
-Wmissing-prototypes -Wnested-externs -Wsign-compare -Wall -pipe -Os -arch
ppc -MT libelk_la-dump.lo -MD -MP -MF .deps/libelk_la-dump.Tpo -c -o
libelk_la-dump.lo `test -f 'dump.c' || echo './'`dump.c
libtool: compile: ccache /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I..
-I../include -I../include -I/opt/local/include
-DSCM_DIR=\"/opt/local/share/elk\" -DLIB_DIR=\"/opt/local/lib/elk\"
-I/usr/include/libelf -Wpointer-arith -Wcast-align -Wcast-qual -Wshadow
-Wmissing-prototypes -Wnested-externs -Wsign-compare -Wall -pipe -Os -arch
ppc -MT libelk_la-dump.lo -MD -MP -MF .deps/libelk_la-dump.Tpo -c dump.c
-fno-common -DPIC -o .libs/libelk_la-dump.o
dump.c:57: warning: no previous prototype for 'Init_Dump'
In file included from dump.c:113:
dump-elf.c:31:17: error: elf.h: No such file or directory
In file included from dump.c:113:
dump-elf.c: In function 'P_Dump':
dump-elf.c:82: error: 'Elf32_Ehdr' undeclared (first use in this function)
dump-elf.c:82: error: (Each undeclared identifier is reported only once
dump-elf.c:82: error: for each function it appears in.)
dump-elf.c:82: error: 'ohdr' undeclared (first use in this function)
dump-elf.c:82: error: 'nhdr' undeclared (first use in this function)
dump-elf.c:82: warning: left-hand operand of comma expression has no
effect
dump-elf.c:83: error: 'Elf32_Shdr' undeclared (first use in this function)
dump-elf.c:83: error: 'osecthdr' undeclared (first use in this function)
dump-elf.c:83: error: 'nsecthdr' undeclared (first use in this function)
dump-elf.c:83: warning: left-hand operand of comma expression has no
effect
dump-elf.c:84: error: 'Elf32_Phdr' undeclared (first use in this function)
dump-elf.c:84: error: 'oproghdr' undeclared (first use in this function)
dump-elf.c:84: error: 'nproghdr' undeclared (first use in this function)
dump-elf.c:84: warning: left-hand operand of comma expression has no
effect
dump-elf.c:89: error: 'obssp' undeclared (first use in this function)
dump-elf.c:97: error: 'nbssp' undeclared (first use in this function)
dump-elf.c:97: error: 'ndatap' undeclared (first use in this function)
dump-elf.c:97: warning: left-hand operand of comma expression has no
effect
dump-elf.c:101: error: 'Elf32_Addr' undeclared (first use in this
function)
dump-elf.c:101: error: expected ';' before 'ndata'
dump-elf.c:102: error: 'Elf32_Word' undeclared (first use in this
function)
dump-elf.c:102: error: expected ';' before 'ndatasize'
dump-elf.c:103: error: 'Elf32_Off' undeclared (first use in this function)
dump-elf.c:103: error: expected ';' before 'ndataoff'
dump-elf.c:133: error: expected expression before ')' token
dump-elf.c:134: error: expected expression before ')' token
dump-elf.c:135: error: expected expression before ')' token
dump-elf.c:136: error: 'SHN_UNDEF' undeclared (first use in this function)
dump-elf.c:153: error: 'ndata' undeclared (first use in this function)
dump-elf.c:154: error: 'ndatasize' undeclared (first use in this function)
dump-elf.c:155: error: 'ndataoff' undeclared (first use in this function)
dump-elf.c:174: error: expected expression before ')' token
dump-elf.c:175: error: expected expression before ')' token
dump-elf.c:176: error: expected expression before ')' token
dump-elf.c:195: error: 'pp' undeclared (first use in this function)
dump-elf.c:197: error: expected ';' before 'ends_at'
dump-elf.c:198: error: expected ';' before 'bssend'
dump-elf.c:205: error: 'PT_LOAD' undeclared (first use in this function)
dump-elf.c:205: error: 'ends_at' undeclared (first use in this function)
dump-elf.c:205: error: 'bssend' undeclared (first use in this function)
dump-elf.c:196: warning: unused variable 'mask'
dump-elf.c:268: error: 'sp' undeclared (first use in this function)
dump-elf.c:271: error: 'SHF_ALLOC' undeclared (first use in this function)
dump-elf.c:271: error: 'SHF_WRITE' undeclared (first use in this function)
dump-elf.c:280: error: 'SHT_NULL' undeclared (first use in this function)
dump-elf.c:280: error: 'SHT_NOBITS' undeclared (first use in this
function)
dump-elf.c:300: error: 'SHT_DYNSYM' undeclared (first use in this
function)
dump-elf.c:300: error: 'SHT_SYMTAB' undeclared (first use in this
function)
dump-elf.c:304: error: 'Elf32_Sym' undeclared (first use in this function)
dump-elf.c:304: error: 'p' undeclared (first use in this function)
dump-elf.c:304: error: expected expression before ')' token
dump-elf.c:305: error: 'ep' undeclared (first use in this function)
dump-elf.c:305: warning: left-hand operand of comma expression has no
effect
dump-elf.c:307: error: 'SHN_ABS' undeclared (first use in this function)
dump-elf.c:307: error: 'SHN_COMMON' undeclared (first use in this
function)
make[2]: *** [libelk_la-dump.lo] Error 1
make[2]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_elk/elk/work/elk-3.99.8/src'
make[1]: *** [all-recursive] Error 1
}}}
--
Ticket URL: <https://trac.macports.org/ticket/70524>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list