bug in distributions using NPTL (?)
Steve Munroe
sjmunroe@us.ibm.com
Wed Nov 3 18:33:00 GMT 2004
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.
More information about the Libc-alpha
mailing list