From owner-freebsd-current@FreeBSD.ORG Sun Aug 21 07:16:48 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 9A04D16A41F for ; Sun, 21 Aug 2005 07:16:48 +0000 (GMT) (envelope-from stefan@fafoe.narf.at) Received: from viefep17-int.chello.at (viefep17-int.chello.at [213.46.255.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id B20FA43D46 for ; Sun, 21 Aug 2005 07:16:46 +0000 (GMT) (envelope-from stefan@fafoe.narf.at) Received: from wombat.fafoe.narf.at ([213.47.85.26]) by viefep17-int.chello.at (InterMail vM.6.01.04.04 201-2131-118-104-20050224) with ESMTP id <20050821071645.IBWW1234.viefep17-int.chello.at@wombat.fafoe.narf.at>; Sun, 21 Aug 2005 09:16:45 +0200 Received: by wombat.fafoe.narf.at (Postfix, from userid 1001) id 8EE452FF; Sun, 21 Aug 2005 09:16:42 +0200 (CEST) Date: Sun, 21 Aug 2005 09:16:42 +0200 From: Stefan Farfeleder To: Kevin Oberman Message-ID: <20050821071640.GB85488@wombat.fafoe.narf.at> Mail-Followup-To: Kevin Oberman , current@freebsd.org References: <20050821042032.3AD765D08@ptavv.es.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050821042032.3AD765D08@ptavv.es.net> User-Agent: Mutt/1.5.9i 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: Sun, 21 Aug 2005 07:16:48 -0000 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. Stefan