logo       

Re: ld fails to resolv pthread functions: msg#00026

lib.glibc.bugs

Subject: Re: ld fails to resolv pthread functions

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


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise