This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Undefined versioned symbol name __xstat64@@GLIBC_2.2


"William A. Gatliff" wrote:
> 
> I'm trying to build a solaris2.8-hosted i386-linux toolchain.  When I
> build the i386-linux glibc-2.24 or glibc-2.2.2, I get this error
> (reformatted for clarity):
> 
> i386-linux-gcc -nostdlib -nostartfiles -shared -o \
> /export/home/bgat/sun1/build-glibc/elf/ld.so \
> /export/home/bgat/sun1/build-glibc/elf/librtld.os \
> -Wl,--version-script=/export/home/bgat/sun1/build-glibc/ld.map \
> -Wl,-soname=ld-linux.so.2
> 
> /export/home/bgat/H-sparc-sun-solaris2.8/i386-linux/bin/ld:
> /export/home/bgat/sun1/build-glibc/elf/ld.so: undefined versioned
> symbol name __xstat64@@GLIBC_2.2

 Do you have any previous glibc already installed?

 I have found out that the glibc-2.2.x builds try to use the 'ld-linux.so.2'
and 'libc.so.6' from the existing '$prefix/lib', ie. from the

  /export/home/bgat/H-sparc-sun-solaris2.8/i386-linux/lib

in your case, not the just built directories as expected. Copying the 'elf/ld.so'
and the 'libc.so.6' there have solved these situations...

 The clip you gave seems to be from producing the new 'ld.so' and doing the
linking against an older 'libc-2.1.x.so' may produce the error...

Cheers, Kai


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]