On Tue, 3 Feb 2004, Eric Pouech wrote:
elf.c: In function `DEBUG_ProcessElfFile': elf.c:344: error: `DT_NUM' undeclared (first use in this function) elf.c:344: error: (Each undeclared identifier is reported only once elf.c:344: error: for each function it appears in.) elf.c:344: error: `DT_PROCNUM' undeclared (first use in this function) elf.c:344: error: `DT_EXTRANUM' undeclared (first use in this function) elf.c:345: error: `DT_LOOS' undeclared (first use in this function) elf.c:345: error: `DT_HIOS' undeclared (first use in this function) elf.c:346: error: `DT_LOPROC' undeclared (first use in this function) elf.c:346: error: `DT_HIPROC' undeclared (first use in this function)
are those defined somewhere on BSD ?
According to recursive grep in /usr/include, at least FreeBSD 4.x does not have these.
browsing the web shows that openbsd & netbsd define (some of them) in sys/exec_elf.h (except DT_PROCNUM and DT_EXTRANUM) and freebsd has sys/elf32.h which includes some of them (and DT_COUNT instead of DT_NUM)
do you (partially) confirm this ?
DT_COUNT is present also on FreeBSD 4.x, but the other I couldn't find there.
(I'm attaching /usr/include/sys/elf32.h and /usr/include/sys/elf_common.h from a 4.8-RELEASE-p13 system. If you'd like me to check a 5.2 system, I should also be able to do that, but -STABLE is still 4.x.)
Gerald