ldmain.c:567: undefined reference to `lrealpath'

Christian Joensson c.christian.joensson@telia.com
Wed Mar 26 12:39:00 GMT 2003


On Wed, Mar 26, 2003 at 11:50:41AM +0100, c.christian.joensson@telia.com wrote:


> gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -o .libs/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 eelf64_sparc.o eelf32_sparc.o esparclinux.o esun4.o  ../bfd/.libs/libbfd.so -L/usr/local/src/gcc-binutils/branch/objdir/libiberty/pic -liberty ../libiberty/libiberty.a -Wl,--rpath -Wl,/usr/local/gcc-binutils/lib
> ldmain.o(.text+0xb10): In function `main':
> /usr/local/src/gcc-binutils/branch/gcc-binutils/ld/ldmain.c:567: undefined reference to `lrealpath'
> ldfile.o(.text+0xa8): In function `is_sysrooted_pathname':
> /usr/local/src/gcc-binutils/branch/gcc-binutils/ld/ldfile.c:98: undefined reference to `lrealpath'

hmm, there is no lrealpath in libiberty.a, and there is no lrealpath
in libiberty/Makefile (in the build dir), but there is a lrealpath in
the Makefile.in in the source dir of libiberty... weird...

anyone have any clues for me?

Cheers,

/ChJ



More information about the Binutils mailing list