Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Sep 2001 15:52:05 -0700
From:      Kent Stewart <kstewart@owt.com>
To:        Bob Willcox <bob@immure.com>
Cc:        freebsd-stable@FreeBSD.ORG
Subject:   Re: Build error upgrading from 4.1.1 to 4-stable: undefined ref to  basename
Message-ID:  <3BB10A95.E880F69E@owt.com>
References:  <20010925173724.A46638@luke.immure.com> <20010925174030.B46638@luke.immure.com>

next in thread | previous in thread | raw e-mail | index | archive | help


Bob Willcox wrote:
> 
> Sorry about that, I forgot the subject on this mail and mutt did what I
> said, not what I meant. :-)

Ruslan listed this patch early this morning. I don't know if it has been
committed yet.

Index: Makefile
===================================================================
RCS file: /home/ncvs/src/gnu/usr.bin/binutils/libiberty/Makefile,v
retrieving revision 1.11
diff -u -p -r1.11 Makefile
--- Makefile    2001/09/14 23:07:02     1.11
+++ Makefile    2001/09/25 12:25:43
@@ -10,8 +10,7 @@ SRCS= argv.c choose-temp.c concat.c cp-d
        hex.c floatformat.c lbasename.c objalloc.c obstack.c
safe-ctype.c \
        xatexit.c xexit.c xmalloc.c \
        xstrdup.c xstrerror.c
-LIBC_BASENAME!=        ar tv /usr/lib/libc.a | grep basename
-.if ${LIBC_BASENAME} == ""
+.if defined(BOOTSTRAPPING)
 SRCS+= basename.c
 .endif
 CFLAGS+=       -DHAVE_CONFIG_H

You might check you makefile and see if this has been included.

Kent

> 
> Bob
> 
> On Tue, Sep 25, 2001 at 05:37:24PM -0500, Bob Willcox wrote:
> > Hi All,
> >
> > I'm attempting to upgrade a 4.1.1-RELEASE system to 4-stable (cvsuped as
> > of a couple of hours ago) and got the following build error:
> >
> > cc -O -pipe  -D_GNU_SOURCE -I- -I. -I/usr/src/gnu/usr.bin/binutils/ld/i386 -I/usr/src/gnu/usr.bin/binutils/ld -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/i386/usr/libdata\" -I/usr/src/gnu/usr.bin/binutils/ld/../../../../contrib/binutils/ld -I/usr/src/gnu/usr.bin/binutils/ld/../../../../contrib/binutils/bfd -DVERSION=\""2.11.2 20010719 [FreeBSD]"\" -DBFD_VERSION=\""2.11.2 20010719 [FreeBSD]"\"     -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 ldver.o ldwrite.o lexsup.o mri.o  ../libbfd/libbfd.a ../libiberty/libiberty.a
> > eelf_i386.o: In function `gldelf_i386_open_dynamic_archive':
> > eelf_i386.o(.text+0xc7b): undefined reference to `basename'
> > *** Error code 1
> >
> > Stop in /usr/src/gnu/usr.bin/binutils/ld.
> > *** Error code 1
> >
> > Stop in /usr/src/gnu/usr.bin/binutils.
> > *** Error code 1
> >
> > Stop in /usr/src.
> > *** Error code 1
> >
> > Stop in /usr/src.
> > *** Error code 1
> >
> >
> > I was running a "make buildworld" when this occurred. Does anyone have
> > any idea what may have caused this? I have recently upgraded several
> > other of my systems to 4-stable w/o this problem (they were probably at
> > a somewhat higher version of the system already than this one).
> >
> > Thanks for any help you can provide,
> >
> > Bob
> >
> > --
> > Bob Willcox               Putt's Law:
> > bob@vieo.com                Technology is dominated by two types of people:
> > Austin, TX                    Those who understand what they do not manage.
> >                               Those who manage what they do not understand.
> >
> > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > with "unsubscribe freebsd-stable" in the body of the message
> 
> --
> Bob Willcox               Putt's Law:
> bob@vieo.com                Technology is dominated by two types of people:
> Austin, TX                    Those who understand what they do not manage.
>                               Those who manage what they do not understand.
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-stable" in the body of the message

-- 
Kent Stewart
Richland, WA
mailto:kbstew99@hotmail.com

Carl Sagan quote on Seti@home
http://setiathome.ssl.berkeley.edu/pale_blue_dot.html

It is hard to believe you are soaring with Eagles (las águilas) 
when you accept SPAM like a mouse (el ratón).

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




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