From owner-freebsd-current@FreeBSD.ORG Tue Sep 18 20:53:39 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 497FF10656FD for ; Tue, 18 Sep 2012 20:53:39 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-ie0-f182.google.com (mail-ie0-f182.google.com [209.85.223.182]) by mx1.freebsd.org (Postfix) with ESMTP id 126448FC08 for ; Tue, 18 Sep 2012 20:53:38 +0000 (UTC) Received: by iea17 with SMTP id 17so560946iea.13 for ; Tue, 18 Sep 2012 13:53:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=181D0z3zhTngaP8JSkzB2gvfS3rUFT+mDYle4MV11Lk=; b=p7x14gGYwmvzd1yuJ+zrS0cq3dR//yp13m/u1dh6fw1o50/3/qjYPQnmRKXC3lzdi4 zK30JuekNWwRBPz3iO2CsccDXD8fyW4CCVF9c2dsK9iYu1q27nN0v+orbbdEHzqK3lRK uVCCDJCSRjbpX558kEKLr/sz0662scJY2DTsyMKYg/3I5tZ3AZEH+RbPMGqImY2Rjjzj p0FDKGSRjcPR9c8mTiJfUFDYtYdypQEERyUpVfwVO6IqtBiNUSKWVL47ONIwV4EAcERX svfcQfj9mQfeaKn1+HDOBaLoziOxfT/gOZplHw5GmQb3a7HRXT75J1JhgodHvBpPGWnt bnyA== MIME-Version: 1.0 Received: by 10.43.48.129 with SMTP id uw1mr951618icb.10.1348001618409; Tue, 18 Sep 2012 13:53:38 -0700 (PDT) Received: by 10.64.165.34 with HTTP; Tue, 18 Sep 2012 13:53:38 -0700 (PDT) In-Reply-To: <201209182027.q8IKRwFw086059@mech-cluster241.men.bris.ac.uk> References: <201209182027.q8IKRwFw086059@mech-cluster241.men.bris.ac.uk> Date: Wed, 19 Sep 2012 00:53:38 +0400 Message-ID: From: Sergey Kandaurov To: mexas@bristol.ac.uk Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-current@freebsd.org Subject: Re: /usr/src/lib/libc/gen/aux.c:106: error: 'AT_TIMEKEEP' undeclared X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Sep 2012 20:53:39 -0000 On 19 September 2012 00:27, Anton Shterenlikht 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