Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Sep 2001 11:45:52 +0300
From:      Ruslan Ermilov <ru@FreeBSD.ORG>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        Luigi Rizzo <rizzo@aciri.org>, current@FreeBSD.ORG
Subject:   Re: problem building libncurses...
Message-ID:  <20010928114552.I30062@sunbay.com>
In-Reply-To: <20010928182852.D52421-100000@delplex.bde.org>; from bde@zeta.org.au on Fri, Sep 28, 2001 at 06:34:42PM %2B1000
References:  <200109272249.f8RMnUU69713@iguana.aciri.org> <20010928182852.D52421-100000@delplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Sep 28, 2001 at 06:34:42PM +1000, Bruce Evans wrote:
> On Thu, 27 Sep 2001, Luigi Rizzo wrote:
> 
> > With a freshly downloaded source tree, today I am encountering
> > the following problem while building libraries:
> >
> > cc -o make_keys -nostdinc  -I. -I/home/iguana/u0/rizzo/H/src/lib/libncurses -I/home/iguana/u0/rizzo/H/src/lib/libncurses/../../contrib/ncurses/ncurses -I/home/iguana/u0/rizzo/H/src/lib/libncurses/../../contrib/ncurses/include -Wall -DFREEBSD_NATIVE -DNDEBUG -DHAVE_CONFIG_H -DTERMIOS -I/home/iguana/u0/rizzo/H/src/usr/include  /home/iguana/u0/rizzo/H/src/lib/libncurses/../../contrib/ncurses/ncurses/tinfo/make_keys.c
> > /tmp/ccqoEyz3.o: In function `main':
> > /tmp/ccqoEyz3.o(.text+0x243): undefined reference to `__stdoutp'
> > /tmp/ccqoEyz3.o(.text+0x29c): undefined reference to `__stdoutp'
> > /tmp/ccqoEyz3.o(.text+0x2cc): undefined reference to `__stdoutp'
> > /tmp/ccqoEyz3.o(.text+0x2d2): undefined reference to `__stdinp'
> > /tmp/ccqoEyz3.o(.text+0x2e8): undefined reference to `__stdoutp'
> > *** Error code 1
> >
> > Apparently, this has to do with the fact that make_keys is being
> > built using new headers, but old libraries (and we cannot use
> > the new ones, we are building them).
> 
> make_keys is apparently being _re_built with new headers and old libraries
> due to dependency bugs.  It should have been built earlier with old headers
> and old libraries, and not rebuilt.  Rebuilding build-tools like make_keys
> would cause many other problems (e.g., mixing new alpha headers with old
> i386 libraries).
> 
Nope, make_keys falls into the 2nd category of build-tools, which do not
show themselves up in .depend.  I call them "safe".  Only cc_tools and
miniperl are "unsafe" because they show up in .depend.

What Luigi's script missed is the call to build-tools early, before going
with -nostdinc and /usr/src/include headers.


Cheers,
-- 
Ruslan Ermilov		Oracle Developer/DBA,
ru@sunbay.com		Sunbay Software AG,
ru@FreeBSD.org		FreeBSD committer,
+380.652.512.251	Simferopol, Ukraine

http://www.FreeBSD.org	The Power To Serve
http://www.oracle.com	Enabling The Information Age

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010928114552.I30062>