bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ld fails to resolv pthread functions


From: Jakub Jelinek
Subject: Re: ld fails to resolv pthread functions
Date: Wed, 7 Apr 2004 07:36:18 -0400
User-agent: Mutt/1.4.1i

On Wed, Apr 07, 2004 at 05:01:09PM +0530, Sachin Sant wrote:
>  We have encountered a "unresolved symbol" error with certain pthread
>  functions.
> 
>  They are : 
>  pthread_barrierattr_getpshared F
>  pthread_condattr_getclock F
>  pthread_condattr_setclock F
>  pthread_timedjoin_np F
>  pthread_tryjoin_np F
> 
>  All these functions are the functions mentioned last in
>  the following file of glibc-2.3.2:
>  "abilist/libpthread.abilist".
>  
>  This happens with RH Enterprise Linux AS release 3.
>  The linker tries to resolve the symbols in /lib/tls/libpthread-0.06.so.
> 
>  nm shows these symbols as exported but ld failes to resolve them.
>  Can anyone help us understand if the definitions in the  
> libpthread.abilist effect ld?

This is not the proper mailing list as this is Red Hat specific stuff.

Anyway, the symbols you mentioned are available in NPTL only, not in
LinuxThreads. By default threaded programs are compiled/linked against
LinuxThreads, so that they can be run against both LinuxThreads and NPTL
(the latter is the default runtime version though). If you want to
specifically create a NPTL only program, you need to compile/link
(on RHEL3) with:
-I /usr/include/nptl -L /usr/lib*/nptl/

        Jakub




reply via email to

[Prev in Thread] Current Thread [Next in Thread]