Date: Fri, 28 Sep 2001 11:34:08 +0300 From: Ruslan Ermilov <ru@freebsd.org> To: Luigi Rizzo <rizzo@aciri.org> Cc: current@freebsd.org Subject: Re: problem building libncurses... Message-ID: <20010928113408.G30062@sunbay.com> In-Reply-To: <200109272249.f8RMnUU69713@iguana.aciri.org>; from rizzo@aciri.org on Thu, Sep 27, 2001 at 03:49:30PM -0700 References: <200109272249.f8RMnUU69713@iguana.aciri.org>
index | next in thread | previous in thread | raw e-mail
On Thu, Sep 27, 2001 at 03:49:30PM -0700, Luigi Rizzo wrote:
> Hi,
> not sure if this is a local problem or a more general one.
> I am trying to build picobsd image using -CURRENT sources on
> a 4.3 box, a process which i successfully managed to complete
> multiple times over the past few weeks with the picobsd script.
>
> With a freshly downloaded source tree, today I am encountering
> the following problem while building libraries:
>
Your script is broken. You use <stdio.h> from /usr/src, but link
with the installed /usr/lib/libc.a which doesn't match this header.
Either upgrade your system to match /usr/src, or fix your script
to use installed (/usr/include) headers.
> 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).
>
> Any idea on how do i fix this ?
>
Well, your script is broken, definitely. "make world" builds libraries
first for that reason, and only then builds the rest of the tree.
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
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010928113408.G30062>
