glibc linking error
Ulrich Drepper
drepper@redhat.com
Sun Aug 25 18:51:00 GMT 2002
On Wed, 2002-07-24 at 10:32, Ides Buescher wrote:
> 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 ?
>
Get better binutils. The two '@'s are correct and the linker should use
this symbol.
--
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQA9aYmD2ijCOnn/RHQRAn11AJ48mg1G3Mo+hdkZfQ/+YPpEThkVWwCdF6BS
6CfGJHsyl13R+9ysAUBJZrI=
=teF6
-----END PGP SIGNATURE-----
More information about the Libc-alpha
mailing list