bug in distributions using NPTL (?)

Daniel Jacobowitz drow@false.org
Tue Nov 2 17:57:00 GMT 2004


On Tue, Nov 02, 2004 at 06:58:48PM +0100, Sebastien Decugis wrote:
> Hi all,
> 
> I've just noticed that on several distributions which install both the
> NPTL in /lib/tls and the Linuxthreads in /lib, (I tried with FedoraCore
> 3, SLES9, RHEL3), an user application which uses the
> pthread_barrierattr_getpshared routine won't be able to link.
> 
> AFAIU, this is due to this routine being absent from the linuxthreads
> library (instead there is __pthread_barrierattr_getpshared); and the
> compiler will use automatically /lib/libpthread.so.0 at link time,
> /lib/tls/libpthread.so.0 will be used only at runtime.
> 
> Is this a bug in the given distributions (or in the linker); or should
> the symbol pthread_barrierattr_getpshared be present in the Linuxthreads
> library as well? (I don't understand the alias mechanism)
> 
> Please let me know if I have to open a bugzilla for this.

Your distribution probably provides the NPTL libraries somewhere, and
documents what include and library paths you need to specify to use
NPTL-only functionality.

-- 
Daniel Jacobowitz



More information about the Libc-alpha mailing list