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]

Re: glibc linking error


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.


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