Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Sep 2001 22:14:22 -0700
From:      Peter Wemm <peter@wemm.org>
To:        Steve Kargl <sgk@troutmask.apl.washington.edu>
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: stdin/out/err changes kill world 
Message-ID:  <20010921051423.3FB6438FF@overcee.netplex.com.au>
In-Reply-To: <20010920123124.A6236@troutmask.apl.washington.edu> 

next in thread | previous in thread | raw e-mail | index | archive | help
Steve Kargl wrote:
> Note, I'm updating a 3 week old current to today's sources.
> I've fallen way behind in the mailing lists (due to living
> out of a suitcase for week longer then intended), so if
> this is a known problem please ignore.
> 
> 
> cc -O -pipe -march=k6 -D_GNU_SOURCE -I- -I. -I/usr/src/gnu/usr.bin/binutils/l
    d -I/usr/src/gnu/usr.bin/binutils/ld/../libbfd/i386 -I/usr/src/gnu/usr.bin/
    binutils/ld/../../../../contrib/binutils/include -DDEFAULT_EMULATION=\"elf_
    i386\" -DTARGET=\"i386-unknown-freebsd\" -DSCRIPTDIR=\"/usr/obj/usr/src/i38
    6/usr/libdata\" -I/usr/src/gnu/usr.bin/binutils/ld/../../../../contrib/binu
    tils/ld -I/usr/src/gnu/usr.bin/binutils/ld/../../../../contrib/binutils/bfd
     -I/usr/src/gnu/usr.bin/binutils/ld/../../../../include -DVERSION=\""2.11.2
     20010719 [FreeBSD]"\" -DBFD_VERSION=\""2.11.2 20010719 [FreeBSD]"\"   -I/u
    sr/obj/usr/src/i386/usr/include   -static -o ld eelf_i386.o ldcref.o ldctor
    .o ldemul.o ldexp.o ldfile.o ldgram.o ldlang.o ldlex.o ldmain.o ldmisc.o ld
    ver.o ldwrite.o lexsup.o mri.o  ../libbfd/libbfd.a ../libiberty/libiberty.a
> ldemul.o: In function `ldemul_choose_mode':
> ldemul.o(.text+0x318): undefined reference to `__stderrp'
> ldlang.o: In function `dprint_statement':
> ldlang.o(.text+0x26a6): undefined reference to `__stderrp'
> ldlex.o: In function `yylex':
> ldlex.o(.text+0xc0): undefined reference to `__stdinp'
> ldlex.o(.text+0xd3): undefined reference to `__stdoutp'


This is actually a bug in the buildworld process.  For some reason, it
is using a -current stdio.h with an old unknown libc.a.  It should be using
the host stdio.h with the host libc.a, not mixing them up.  If there is any
binary incompatability, then there will be breakage.

However, for now, you can get over the hurdle with this hack..
Simply add -D_OLD_STDIO to CFLAGS in /etc/make.conf, eg:

CFLAGS= -O -pipe -D_OLD_STDIO

Only do this for one buildworld.  After that, you wont need it again.

You should never have needed it at all though. :-(

Cheers,
-Peter
--
Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au
"All of this is for nothing if we don't go to the stars" - JMS/B5


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?20010921051423.3FB6438FF>