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, 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.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------

Attachment: signature.asc
Description: This is a digitally signed message part


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