Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Sep 2012 00:53:38 +0400
From:      Sergey Kandaurov <pluknet@gmail.com>
To:        mexas@bristol.ac.uk
Cc:        freebsd-current@freebsd.org
Subject:   Re: /usr/src/lib/libc/gen/aux.c:106: error: 'AT_TIMEKEEP' undeclared
Message-ID:  <CAE-mSOKO4q49_LRzk1fEUn33T62pXP3GKCvTqn=FOxMGKx4WoQ@mail.gmail.com>
In-Reply-To: <201209182027.q8IKRwFw086059@mech-cluster241.men.bris.ac.uk>
References:  <201209182027.q8IKRwFw086059@mech-cluster241.men.bris.ac.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
On 19 September 2012 00:27, Anton Shterenlikht <mexas@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAE-mSOKO4q49_LRzk1fEUn33T62pXP3GKCvTqn=FOxMGKx4WoQ>