HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- shl_load problem
Operating System - HP-UX
1834659
Members
2091
Online
110069
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
01-12-2001 06:23 AM
01-12-2001 06:23 AM
shl_load problem
i have to build a dynamic library but when i start the main program i receive :
/usr/lib/dld.sl: Can't shl_load() a library containing Thread Local Storage: /usr/lib/libpthread.1
/usr/lib/dld.sl: Exec format error
I have no choice, my library must be shared, is there a solution ?
Thanx
/usr/lib/dld.sl: Can't shl_load() a library containing Thread Local Storage: /usr/lib/libpthread.1
/usr/lib/dld.sl: Exec format error
I have no choice, my library must be shared, is there a solution ?
Thanx
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2001 04:58 AM
01-15-2001 04:58 AM
Re: shl_load problem
I am afraid you have have hit the dynamic loader's limitation stated in man shl_load(3x): shl_load cannot load a shared-library (or any of its dependent libraries) if it uses thread local storage.
You will either have to arrange for the shared-library and its dependents to get loaded during program start-up (by linking them with the executable on the command-line) or you will have to change your library code to stop using TLS.
You will either have to arrange for the shared-library and its dependents to get loaded during program start-up (by linking them with the executable on the command-line) or you will have to change your library code to stop using TLS.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2002 03:31 AM
01-17-2002 03:31 AM
Re: shl_load problem
I know of two ways to solve this problem.
a) eliminate all libraries from the link list that use TLS. In our case, this was the pthread library that was linked to our lib but never used.
b) Install patch PHSS_24303 . It adds a LD_PRELOAD functionality to overcome this problem. Look into the description of this patch for more information. In general, I found this patch to be very recommendable.
Regards, M.S.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2002 11:44 PM
03-12-2002 11:44 PM
Re: shl_load problem
Hi Martin Schneider
I also get the same symptom
/usr/lib/dld.sl: Can't shl_load() a library containing Thread Local Storage: /usr/lib/libpthread.1
/usr/lib/dld.sl: Exec format error
I follow your 2 suggestions but the problem does not solve. Can you give more detailed info for me to solve the problem? Any example?
Thanks.
I also get the same symptom
/usr/lib/dld.sl: Can't shl_load() a library containing Thread Local Storage: /usr/lib/libpthread.1
/usr/lib/dld.sl: Exec format error
I follow your 2 suggestions but the problem does not solve. Can you give more detailed info for me to solve the problem? Any example?
Thanks.
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