From owner-freebsd-current@FreeBSD.ORG Mon Aug 22 04:56:06 2005 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F20EF16A41F; Mon, 22 Aug 2005 04:56:05 +0000 (GMT) (envelope-from oberman@es.net) Received: from postal2.es.net (postal2.es.net [198.128.3.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id A5EA343D53; Mon, 22 Aug 2005 04:56:00 +0000 (GMT) (envelope-from oberman@es.net) Received: from ptavv.es.net ([198.128.4.29]) by postal2.es.net (Postal Node 2) with ESMTP (SSL) id IBA74465; Sun, 21 Aug 2005 21:55:59 -0700 Received: from ptavv (localhost [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id DF4855D07; Sun, 21 Aug 2005 21:55:58 -0700 (PDT) To: Stefan Farfeleder In-reply-to: Your message of "Sun, 21 Aug 2005 09:16:42 +0200." <20050821071640.GB85488@wombat.fafoe.narf.at> Date: Sun, 21 Aug 2005 21:55:58 -0700 From: "Kevin Oberman" Message-Id: <20050822045558.DF4855D07@ptavv.es.net> Cc: current@freebsd.org Subject: Re: buildworld not using proper build environment 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: Mon, 22 Aug 2005 04:56:06 -0000 > Date: Sun, 21 Aug 2005 09:16:42 +0200 > From: Stefan Farfeleder > > On Sat, Aug 20, 2005 at 09:20:32PM -0700, Kevin Oberman wrote: > > I'm not a make(1) expert, but something appears wrong with Makefile.inc1 > > and the build environment it provides for buildworld. > > > > There has been a short thread on this with the subject: > > Unable to build libedit > > > > It turns out that buildworld is using the header files in /usr/include > > and not those in /usr/obj/usr/src/tmp/usr/include when compiling. I've > > looked at Makefile.inc1 and it looks like the proper environment is > > made for AMD64, but perhaps not for other platforms (like i386). I'm not > > sure what is wrong, but I have confirmed that buildworld is using > > /usr/include/histedit.h in lieu of the new version in $WORLDTMP. > > > > Am I wrong about all of this this or is something wrong with the > > buildworld. > > I think the problem is that the files in lib/libedit include histedit.h > with "" instead of <>. This works for NetBSD because they have > histedit.h in the same directory. -I. should be dropped from CFLAGS > probably too. I once noticed a problem that #include picks up > the local term.h instead of the one in [..]/tmp/usr/include. Dropping -I. breaks 'make depend', so that's not a good way to go. I fails to find a LOT of stuff. I really thought that the would fix it, but it does not help. I edited all occurrences of "histedit.h" to , but .depend still shows that the files in /usr/obj/usr/src/tmp are used. And those files are used for everything. All header files listed in .depend are in /usr/includeand none are in /usr/obj/usr/src/tmp/include. I then looked at several other .depend files and I don't find any indication that the new header files are ever used. Is my system somehow broken? I have completely removed /usr/obj and done a fresh cvsup. I don't seem to find any stale files and would not expect to on a system that was a fresh install three weeks ago. I'd just love to find where in the makefiles the include environment is set to pull header files from the build tree instead of the existing system. -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634