This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: bug in distributions using NPTL (?)
- From: Steve Munroe <sjmunroe at us dot ibm dot com>
- To: Enrique Perez-Terron <enrio at online dot no>
- Cc: libc-alpha at sources dot redhat dot com, Sebastien Decugis <sebastien dot decugis at ext dot bull dot net>
- Date: Wed, 3 Nov 2004 12:32:57 -0600
- Subject: Re: bug in distributions using NPTL (?)
Steven J. Munroe
Linux on Power Toolchain Architect
IBM Corporation, Linux Technology Center
Enrique Perez-Terron <enrio@online.no> wrote on 11/03/2004 10:56:47 AM:
> On Tue, 2004-11-02 at 19:04, Sebastien Decugis wrote:
> > > Your distribution probably provides the NPTL libraries somewhere,
and
> > > documents what include and library paths you need to specify to use
> > > NPTL-only functionality.
> >
> > Oh, ok. I did not know that special flags had to be used, as the
> > standard pthread.h provided this functionnality.
> >
> > I'll try to find out this documentation.
>
> If you find out, would you bother to hint me?
>
The following is from Jakub
"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/"
So on your installation try:
find /usr -name nptl
...
/usr/include/nptl
...
/usr/lib/nptl
/usr/lib64/nptl
Then plug-in the specific include and library paths for your system and
compile target.