From owner-freebsd-current@FreeBSD.ORG Thu Jul 21 07:26:36 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id 50C5B1065672; Thu, 21 Jul 2011 07:26:36 +0000 (UTC) Date: Thu, 21 Jul 2011 07:26:36 +0000 From: Alexander Best To: d@delphij.net Message-ID: <20110721072636.GA85496@freebsd.org> References: <20110721070825.GA80840@freebsd.org> <4E27D281.6010507@delphij.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4E27D281.6010507@delphij.net> Cc: freebsd-current@freebsd.org Subject: Re: buildworld failing in lib/libc/db/btree 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: Thu, 21 Jul 2011 07:26:36 -0000 On Thu Jul 21 11, Xin LI wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > On 07/21/11 00:08, Alexander Best wrote: > > hi there, > > > > for some reason buildworld always fails in lib/libc/db/btree :( > > > > clang: > > > > /usr/bin/clang -O2 -pipe -fno-strict-aliasing -fno-omit-frame-pointer > > -march=core2 -I/usr/git-freebsd-head/lib/libc/include > > -I/usr/git-freebsd-head/lib/libc/../../include > > -I/usr/git-freebsd-head/lib/libc/amd64 -DNLS -D__DBINTERFACE_PRIVATE > > -I/usr/git-freebsd-head/lib/libc/. > > /usr/git-freebsd-head/lib/libc/db/btree/bt_split.c:486:2: warning: > > implicit declaration of function '__PAST_END' is invalid in C99 > > [-Wimplicit-function-declaration] __PAST_END(h->linp, 1) = h->upper > > -= NRINTERNAL; > > This is quite weird, __PAST_END is defined in sys/param.h... > > And it compiled just fine here, what's your hosting system? amd64. param.h might be the problem: otaku% grep PAST_END /usr/git-freebsd-head/sys/sys/param.h #define __PAST_END(array, offset) (((typeof(*(array)) *)(array))[offset]) otaku% grep PAST_END /usr/include/sys/param.h ...maybe copying /usr/git-freebsd-head/sys/sys/param.h to /usr/include/sys manually will solve the issue? cheers. alex > > Cheers, > - -- > Xin LI https://www.delphij.net/ > FreeBSD - The Power to Serve! Live free or die > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2.0.17 (FreeBSD) > > iQEcBAEBCAAGBQJOJ9KBAAoJEATO+BI/yjfBnRQIAKGRJezmtmjmICp68nEIYmTR > /VH/Y+ubIwCFBagwAKZ1qu+xQD+IG50cyAYujva/5loSejPMGQY4xFsV/iyptZhX > g2XnTmO37TQl+gfQPE0Vj3pats22acsneb0UbABP2Ah2rzWN/sEV4B5RFbVYUpNq > G5dFQR1Xdkx3qMkoZotFvVzvclMyxguJZDPy4HHIm8FqkjQE93m0x6KJQTj7a/80 > nM6u7lyyD/8obhfb7ms1tc7hO3TLFqOv92IdYqTjl7RHTetj+Aa5MECUaQDJqeUP > PoOBLpUWjDrFefrXtlCXhSK0mlLJcezLPGQP6ZqgYTUwNcug1zS69gsHpCaT+L0= > =GRG2 > -----END PGP SIGNATURE-----