HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: problem with pthread on hp-ux 10.20
Operating System - HP-UX
1832446
Members
3477
Online
110042
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2003 05:32 AM
07-23-2003 05:32 AM
problem with pthread on hp-ux 10.20
I was compiling a program with g++ with the
-lpthread option on hp-ux 10.20
The compiler says it can't find the library.
Is the pthread library supposed to be present on hp-ux 10.20?
If its not, do I have any options?
Any help would be appreciated
Thanks and Regards
Rohinton Daruwala
-lpthread option on hp-ux 10.20
The compiler says it can't find the library.
Is the pthread library supposed to be present on hp-ux 10.20?
If its not, do I have any options?
Any help would be appreciated
Thanks and Regards
Rohinton Daruwala
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2003 06:15 AM
07-23-2003 06:15 AM
Re: problem with pthread on hp-ux 10.20
Hi
The library libpthread does not exist on 10.20 ,this library is for kernel threads, which is only properly supported at 11.0.
Therefore this will never work at 10.20. unless you can use CMA threads (user space threads) which uses the library libcma.1.
This was part of the DCE client S/w and bundled in with the O/S from 10.01 till 10.20.
Steve Steel
The library libpthread does not exist on 10.20 ,this library is for kernel threads, which is only properly supported at 11.0.
Therefore this will never work at 10.20. unless you can use CMA threads (user space threads) which uses the library libcma.1.
This was part of the DCE client S/w and bundled in with the O/S from 10.01 till 10.20.
Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2003 07:43 AM
07-23-2003 07:43 AM
Re: problem with pthread on hp-ux 10.20
Rohinton,
(I am out of office/work till next week, but wanted to give more info on this).
Adding to M.Steele, hpux 10.20 has only user space threads implemented in the form of dce threads or CMA threads. DCE client comes with the OS itself. Install it to get those libraries. I personally use /opt/dce/lib/libdce.a since it works most of the time than the libcma.a (This is my personal experience). Add -ldce option to your link command.
Moreover I have found it doesnt work/scale very well with C++. If you are not writing C++ code then link with gcc. Also hp compiler is better than gcc in this respect.
HTH,
Umapathy
(I am out of office/work till next week, but wanted to give more info on this).
Adding to M.Steele, hpux 10.20 has only user space threads implemented in the form of dce threads or CMA threads. DCE client comes with the OS itself. Install it to get those libraries. I personally use /opt/dce/lib/libdce.a since it works most of the time than the libcma.a (This is my personal experience). Add -ldce option to your link command.
Moreover I have found it doesnt work/scale very well with C++. If you are not writing C++ code then link with gcc. Also hp compiler is better than gcc in this respect.
HTH,
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP