LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-24-2005, 08:05 AM   #1
Kocil
Member
 
Registered: Feb 2003
Distribution: Redhat since 5.2, Slackware since 9.0, Vector since 4.0
Posts: 209

Rep: Reputation: 31
Slackware 10.2 make use of NPTL


Hi Slackers.

Pat especially mentioned NPTL among the new feature of Slack 10.2.
So ... how do we make use of it ?

- Must we install the kernel-generic 2.6.13 ?
- What built-in program is actually use it ?
- How to compile new programs to benefit from it ?

TIA.
 
Old 09-24-2005, 08:37 AM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Re: Slackware 10.2 make use of NPTL

Quote:
Originally posted by Kocil
Hi Slackers.

Pat especially mentioned NPTL among the new feature of Slack 10.2.
So ... how do we make use of it ?

- Must we install the kernel-generic 2.6.13 ?
- What built-in program is actually use it ?
- How to compile new programs to benefit from it ?

TIA.
You should read the Fri May 13 12:51:03 PDT 2005 entry in the Slackware ChangeLog.txt for more insight on NPTL.

It boils down to:
  • You need a 2.6 kernel in Slackware

    Any program (even when initially linked against linuxthreads libraries) will be using the NPTL enabled libraries at run-time, provided you are running an NPTL-enabled kernel

    You will explicitly need to disable NPTL for binaries that refuse to run when linking to the NPTL libs by setting the LD_ASSUME_KERNEL environment variable to a value of 2.4.31 for instance (for that particular program only of course!).

Eric
 
Old 09-25-2005, 12:21 PM   #3
Kocil
Member
 
Registered: Feb 2003
Distribution: Redhat since 5.2, Slackware since 9.0, Vector since 4.0
Posts: 209

Original Poster
Rep: Reputation: 31
Thanks Eric. Thats easy

However, what is it mean ?

http://slackware.cs.utah.edu/slackwa...eaders.WARNING

Quote:
Note -- if you compile with NPTL then you might want to use these headers,
and glibc's NPTL was compiled using 2.6 headers, so all should be well.
In that case, specify using NPTL libs and headers with these compile
options:

-I/usr/include/nptl -L/usr/lib/nptl
TIA
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NPTL manpages vghiware Programming 1 09-19-2005 10:58 PM
NPTL in slackware 10.1 with kernel 2.6.12 cb951303 Slackware 2 06-23-2005 06:41 AM
Slackware and Native POSIX Thread Library (NPTL) win32sux Slackware 19 05-17-2005 10:41 AM
NPTL on Slackware thick_guy_9 Slackware 0 01-23-2005 10:13 PM
nptlsmp and nptl ospf10 Linux - Newbie 0 07-29-2004 12:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration