HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- HPUX 11.11 shared library loader query
Operating System - HP-UX
1826095
Members
4475
Online
109690
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
08-11-2006 05:12 PM
08-11-2006 05:12 PM
HPUX 11.11 shared library loader query
Apologies in advance if I've posted this in an inappropriate section of the forums...
I have an executable A that links with a shared version of OpenLDAP library (2.2.x)...some of the output from running 'chatr' on it is:
shared library dynamic path search:
SHLIB_PATH enabled first
embedded path enabled second /usr/lib
...
dynamic liblber-2.2.sl.7
dynamic libldap-2.2.sl.7
...
I also have a shared library B that links with a static version of OpenLDAP library (2.1.4)... some of the output from running 'chatr' on it is:
shared library dynamic path search:
SHLIB_PATH enabled first
embedded path disabled second Not Defined
Now, when executable A is running it loads (dynamically, via dlopen or equivalent) the shared library B and then executes an exported routine ... eventually I get a crash in OpenLDAP function. I've added code to output OpenLDAP API info to the exported routine, and have also written a small test app which tries to simulate the dynamic loading etc behaviour of the executable A (but which doesn't have any sort of dependency on OpenLDAP)
It would appear as though I get different OpenLDAP version information being shown, depending on whether my test app is run (and loads shared library B), or the executable A is run and does the loading/executing. I'm just curious as to why this is happening... I would have expected that since shared library B links with static OpenLDAP libraries, there shouldn't be any conflict...
Is this the standard behaviour on HPUX 11.11, or some known loader bug? Or maybe a sign that inappropriate method was used for loading the shared library B? Is there some way around it (apart from both executable A and library B being built using same version of OpenLDAP)?
p.s. by the way, this setup seems to work okay (no crashes) on Windows, AIX, Solaris and Linux...
any tips/suggestions would be most welcome,
regards,
Greg
I have an executable A that links with a shared version of OpenLDAP library (2.2.x)...some of the output from running 'chatr' on it is:
shared library dynamic path search:
SHLIB_PATH enabled first
embedded path enabled second /usr/lib
...
dynamic liblber-2.2.sl.7
dynamic libldap-2.2.sl.7
...
I also have a shared library B that links with a static version of OpenLDAP library (2.1.4)... some of the output from running 'chatr' on it is:
shared library dynamic path search:
SHLIB_PATH enabled first
embedded path disabled second Not Defined
Now, when executable A is running it loads (dynamically, via dlopen or equivalent) the shared library B and then executes an exported routine ... eventually I get a crash in OpenLDAP function. I've added code to output OpenLDAP API info to the exported routine, and have also written a small test app which tries to simulate the dynamic loading etc behaviour of the executable A (but which doesn't have any sort of dependency on OpenLDAP)
It would appear as though I get different OpenLDAP version information being shown, depending on whether my test app is run (and loads shared library B), or the executable A is run and does the loading/executing. I'm just curious as to why this is happening... I would have expected that since shared library B links with static OpenLDAP libraries, there shouldn't be any conflict...
Is this the standard behaviour on HPUX 11.11, or some known loader bug? Or maybe a sign that inappropriate method was used for loading the shared library B? Is there some way around it (apart from both executable A and library B being built using same version of OpenLDAP)?
p.s. by the way, this setup seems to work okay (no crashes) on Windows, AIX, Solaris and Linux...
any tips/suggestions would be most welcome,
regards,
Greg
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
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP