- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- libpthread.1 + HPUX 11.11
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
05-21-2007 04:37 PM
05-21-2007 04:37 PM
My application and third parties like boost uses libpthread to create threads.
I had applied latest available patches for pthread .
I am not able to find the symbol pthread_create in libpthread.1 . So I am getting the unresolved symbol pthread_create in the application.
Can anyone please point me out from where I can get the libpthread.1 for 11.11 which contains these symbols ?
bash-2.04# what libpthread.1
libpthread.1:
specific.c $Date: 2004/03/03 03:30:19 $Revision: r11.11/1 PATCH_11.11 (PHCO_30544)
pthread.c $Date: 2007/03/30 02:03:32 $Revision: r11.11/4 PATCH_11.11 (PHCO_36229)
stack.c $Date: 2007/03/30 02:03:40 $Revision: r11.11/1 PATCH_11.11 (PHCO_36229)
cancel.c $Date: 2007/04/16 03:37:13 $Revision: r11.11/4 PATCH_11.11 (PHCO_36229)
pthread_attr.c $Date: 2007/03/30 02:03:36 $Revision: r11.11/1 PATCH_11.11 (PHCO_36229)
Pthread Interfaces
$Revision: libpthread.1: R11.11_BL2007_0420_1
bash-2.04# nm libpthread.1 | grep pthread_create
__pthread_create_system| 35316|uext |stub |
__pthread_create_system| 48508|extern|entry |
__pthread_create_system| 48532|extern|code |$CODE$
Thanks in advance,
Pramod
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2007 04:49 PM
05-21-2007 04:49 PM
SolutionWhen you use
>So I am getting the unresolved symbol pthread_create in the application.
If you get an unsat, it means you have illegally called pthread_create without the proper header file,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2007 04:58 PM
05-21-2007 04:58 PM
Re: libpthread.1 + HPUX 11.11
I understand the problem at least . I didn't use illegaly , in fact I was developing in 11.23 and then running the same binary on 11.11 . So it comes from there .
Can I use some compiler flag or something while developing it on 11.23 that it becomes compatible with 11.11 ?
Regards,
Pramod
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2007 05:23 PM
05-21-2007 05:23 PM
Re: libpthread.1 + HPUX 11.11
No, HP-UX is only forward compatible and your header files are completely different.
The only other solution is to set up a SDK:
http://h21007.www2.hp.com/dspp/tech/tech_TechDocumentDetailPage_IDX/1,1701,2548,00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2007 05:23 PM
05-21-2007 05:23 PM
Re: libpthread.1 + HPUX 11.11
Thanks Dennis it was much of help .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2007 05:29 PM
05-21-2007 05:29 PM
Re: libpthread.1 + HPUX 11.11
This will not let you compile on 11.23 and move back to 11.11. It may remove that pthread_create unsat though.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2007 05:44 PM
05-21-2007 05:44 PM
Re: libpthread.1 + HPUX 11.11
Compile a code with PTHREAD_COMPAT_MODE on 11.23 and then was able to run on both 11.23 and 11.11
sh-2.04# nm testthread | grep pthread
__pthread_create_system| |undef |code |
__pthread_create_system| 12240|uext |stub |
pthread_create | 12216|extern|entry |
pthread_create | 12264|extern|code |$CODE$
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2007 06:20 PM
05-21-2007 06:20 PM
Re: libpthread.1 + HPUX 11.11
Compile a code with PTHREAD_COMPAT_MODE on 11.23 and then was able to run on both 11.23 and 11.11
Let me make this very clear. This is NOT supported!
If your 11.23 system headers just happen to make use of 11.23 kernel functionality, this will NOT work on 11.11.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2007 06:48 PM
05-21-2007 06:48 PM
Re: libpthread.1 + HPUX 11.11
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2007 06:49 PM
05-21-2007 06:49 PM