This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

glibc linking error


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 :-)

--
Ides Buescher
Ph D student
FCM TU DELFT
+31 (0)15 278.22.60

--
Ides Buescher
Ph D student
FCM TU DELFT
+31 (0)15 278.22.60
--
Ides Buescher
Ph D student
FCM TU DELFT
+31 (0)15 278.22.60


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