From owner-freebsd-toolchain@FreeBSD.ORG Thu Aug 4 09:04:12 2011 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8B2D4106564A for ; Thu, 4 Aug 2011 09:04:12 +0000 (UTC) (envelope-from gmmajia@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 272028FC12 for ; Thu, 4 Aug 2011 09:04:11 +0000 (UTC) Received: by fxe4 with SMTP id 4so2495339fxe.13 for ; Thu, 04 Aug 2011 02:04:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=87mdi2q/n/6gLWO0xbLqlXr2jLcBNbeynSPTMdIFOqc=; b=ir+I1/CkmWn+WYqd7to1sR6n9ia3bcud8H+rKJR8WHAZNzVch8yrpJkzkiNvMZbZm4 OtiWZ97InlsVFs5Fd8JrupwLEsPB86VEeOQTLR5nxasZW/hvBB96NET2az+ga1tPWDGA lSiQ0eIuxUDrZtNcjQelOX2CXxj0aKjT26Jdc= MIME-Version: 1.0 Received: by 10.204.14.139 with SMTP id g11mr165714bka.274.1312447135976; Thu, 04 Aug 2011 01:38:55 -0700 (PDT) Received: by 10.204.38.142 with HTTP; Thu, 4 Aug 2011 01:38:55 -0700 (PDT) Date: Thu, 4 Aug 2011 16:38:55 +0800 Message-ID: From: majia gm To: freebsd-toolchain@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: [help] rebuild libc failed X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Aug 2011 09:04:12 -0000 Hi, everyone. I'm building the libc code which derived from a current trunk mirror/freebsd/head under PCBSD 8.2 which contains FreeBSD 8.2 release. I'm trying to test the modified libc by using LD_LIBRARY_PATH. But failed to build it. I change the current direcotry into head/lib/libc and run make. I get the following error. Warning: Object directory not changed from original /usr/home/forandom/work/soc2011/xxp-head/lib/libc cc -O2 -pipe -I/usr/home/forandom/work/soc2011/xxp-head/lib/libc/include -I/usr/home/forandom/work/soc2011/xxp-head/lib/libc/../../include -I/usr/home/forandom/work/soc2011/xxp-head/lib/libc/i386 -DNLS -D__DBINTERFACE_PRIVATE -I/usr/home/forandom/work/soc2011/xxp-head/lib/libc/../../contrib/gdtoa -DINET6 -I/usr/home/forandom/work/soc2011/xxp-head/lib/libc -I/usr/home/forandom/work/soc2011/xxp-head/lib/libc/resolv -D_ACL_PRIVATE -DPOSIX_MISTAKE -I/usr/home/forandom/work/soc2011/xxp-head/lib/libc/../../contrib/tzcode/stdtime -I/usr/home/forandom/work/soc2011/xxp-head/lib/libc/stdtime -I/usr/home/forandom/work/soc2011/xxp-head/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/usr/home/forandom/work/soc2011/xxp-head/lib/libc/rpc -DYP -DNS_CACHING -DSYMBOL_VERSIONING -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -c /usr/home/forandom/work/soc2011/xxp-head/lib/libc/gen/__getosreldate.c /usr/home/forandom/work/soc2011/xxp-head/lib/libc/gen/__getosreldate.c: In function '__getosreldate': /usr/home/forandom/work/soc2011/xxp-head/lib/libc/gen/__getosreldate.c:58: error: 'AT_OSRELDATE' undeclared (first use in this function) /usr/home/forandom/work/soc2011/xxp-head/lib/libc/gen/__getosreldate.c:58: error: (Each undeclared identifier is reported only once /usr/home/forandom/work/soc2011/xxp-head/lib/libc/gen/__getosreldate.c:58: error: for each function it appears in.) *** Error code 1 Stop in /usr/home/forandom/work/soc2011/xxp-head/lib/libc. It seems there's little difference between head and this release. AT_OSRELDATE is defined in head/sys/i386/include/elf.h. But in the release 8.2, elf.h doesn't have this definition. How can let it to use the include files in head rather than the system include files? Thanks.