On 19 September 2012 00:27, Anton Shterenlikht <me...@bristol.ac.uk> wrote: > > I'm trying to rebuild libc with debugging symbols. > I did: > > # cd /usr/src/lib/libc > # make all install DEBUG_FLAGS='-g' > > and got: > > cc -O2 -pipe -I/usr/src/lib/libc/include -I/usr/src/lib/libc/../../include > -I/ > usr/src/lib/libc/ia64 -DNLS -D__DBINTERFACE_PRIVATE > -I/usr/src/lib/libc/../../c > ontrib/gdtoa -DINET6 -I/usr/src/lib/libc -I/usr/src/lib/libc/resolv > -D_ACL_PRIVA > TE -DPOSIX_MISTAKE -I/usr/src/lib/libc/../../contrib/jemalloc/include > -I/usr/src > /lib/libc/../../contrib/tzcode/stdtime -I/usr/src/lib/libc/stdtime > -I/usr/src/li > b/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/usr/src/lib/libc/rpc > -DYP > -DNS_CACHING -DSYMBOL_VERSIONING -std=gnu99 -Wsystem-headers -Werror -Wall > -Wno- > format-y2k -Wno-uninitialized -Wno-pointer-sign -c > /usr/src/lib/libc/gen/aux.c - > o aux.o > /usr/src/lib/libc/gen/aux.c: In function 'init_aux': > /usr/src/lib/libc/gen/aux.c:106: error: 'AT_TIMEKEEP' undeclared (first use > in t > his function) > /usr/src/lib/libc/gen/aux.c:106: error: (Each undeclared identifier is > reported > only once > /usr/src/lib/libc/gen/aux.c:106: error: for each function it appears in.) > /usr/src/lib/libc/gen/aux.c: In function '_elf_aux_info': > /usr/src/lib/libc/gen/aux.c:171: error: 'AT_TIMEKEEP' undeclared (first use > in t > his function) > *** [aux.o] Error code 1 >
This means you have no actual elf.h with AT_TIMEKEEP installed in your system required to build the recent libc. When you build libc, make searches for AT_TIMEKEEP in the installed headers, and not in /usr/src. Canonically you would need to rebuild all the world to properly build the libc part. To not do this you could try instead (AFAIK) 'make toolchain'. -- wbr, pluknet _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"