[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: undefined reference to `gldelf_i386_fbsd_add_sysroot'
From: |
Daniel Jacobowitz |
Subject: |
Re: undefined reference to `gldelf_i386_fbsd_add_sysroot' |
Date: |
Mon, 27 Jan 2003 16:09:23 -0500 |
User-agent: |
Mutt/1.5.1i |
On Mon, Jan 27, 2003 at 11:40:55PM +0300, Vladimir Merzliakov wrote:
> Two or more weeks i can't build cvs version of binutils.
>
> Building break with error message:
> gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -o ld-new
> ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o ldwrite.o ldexp.o
> ldemul.o ldver.o ldmisc.o ldfile.o ldcref.o eelf_i386_fbsd.o eelf_i386.o
> ei386bsd.o ../bfd/.libs/libbfd.a ../libiberty/libiberty.a
> ./../intl/libintl.a
> eelf_i386_fbsd.o(.text+0x703): In function `gldelf_i386_fbsd_after_open':
> /usr/home/wanderer/pkg/build/binutils/obj/ld/eelf_i386_fbsd.c:519: undefined
> reference to `gldelf_i386_fbsd_add_sysroot'
> collect2: ld returned 1 exit status
> gmake[3]: *** [ld-new] Error 1
> gmake[3]: Leaving directory `/usr/home/wanderer/pkg/build/binutils/obj/ld'
> gmake[2]: *** [all-recursive] Error 1
> gmake[2]: Leaving directory `/usr/home/wanderer/pkg/build/binutils/obj/ld'
> gmake[1]: *** [all-recursive-am] Error 2
> gmake[1]: Leaving directory `/usr/home/wanderer/pkg/build/binutils/obj/ld'
> gmake: *** [all-ld] Error 2
My fault. Does this (untested) patch work for you?
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
2003-01-27 Daniel Jacobowitz <address@hidden>
* emultempl/elf32.em: Move gld${EMULATION_NAME}_add_sysroot
outside of GNU/Linux conditional.
Index: elf32.em
===================================================================
RCS file: /cvs/src/src/ld/emultempl/elf32.em,v
retrieving revision 1.89
diff -u -p -r1.89 elf32.em
--- elf32.em 17 Jan 2003 10:36:49 -0000 1.89
+++ elf32.em 27 Jan 2003 21:07:21 -0000
@@ -440,9 +440,7 @@ gld${EMULATION_NAME}_search_needed (path
EOF
if [ "x${USE_LIBPATH}" = xyes ] ; then
- case ${target} in
- *-*-linux-gnu*)
- cat >>e${EMULATION_NAME}.c <<EOF
+ cat >>e${EMULATION_NAME}.c <<EOF
/* Add the sysroot to every entry in a colon-separated path. */
@@ -482,6 +480,10 @@ gld${EMULATION_NAME}_add_sysroot (path)
return ret;
}
+EOF
+ case ${target} in
+ *-*-linux-gnu*)
+ cat >>e${EMULATION_NAME}.c <<EOF
/* For a native linker, check the file /etc/ld.so.conf for directories
in which we may find shared libraries. /etc/ld.so.conf is really
only meaningful on Linux. */