This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: glibc linking error
- From: "H. J. Lu" <hjl at lucon dot org>
- To: Ides Buescher <i dot s dot g dot buscher at tnw dot tudelft dot nl>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Wed, 24 Jul 2002 10:37:51 -0700
- Subject: Re: glibc linking error
- References: <3D3EE4C4.6080807@tnw.tudelft.nl>
On Wed, Jul 24, 2002 at 07:32:52PM +0200, Ides Buescher wrote:
> cheers folk,
>
> I found a glibc linker problem and know the cause.
> Can somebody please tell me how to fix it:
>
> while linking some program I get the error:
> /usr/X11R6/lib/libXp.so: undefined reference to `getpwuid_r@GLIBC_2.1.2'
>
> This is done on a Redhat 7.1 Linux alpha
>
> looking in the glibc library
>
> libc.so.6.1 --> glibc_2.2.3.so
>
> # nm libc.so.6.1 | grep getpwuid
>
> we see:
>
> 00000000000d5720 t __getpwuid_r
> 000000000013b5f0 t __nscd_getpwuid_r
> 00000000000d5950 t __old_getpwuid_r
> 00000000000d4f50 T getpwuid
> 00000000000d5720 T getpwuid_r@@GLIBC_2.1.2
> 00000000000d5950 T getpwuid_r@GLIBC_2.0
>
> YES, that's right: double '@@'
> How can I fix this ?
> I figured myself out to hack the binary file glibc_2.2.3.so, but since
> the library is used for even the simplest UNIX commands, I better keep
> off :-)
It shouldn't happen. Please provide a small testcase. In the meantime,
please try the current Linux binutils, which is 2.12.90.0.15.
H.J.