- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Shared Libraries question
Operating System - HP-UX
1757227
Members
3637
Online
108859
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
Discussions
Discussions
Forums
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
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-06-2003 09:48 AM
тАО08-06-2003 09:48 AM
Shared Libraries question
I work in the CIFS Server Group. CIFS Server is based on open source product Samba. What we do is we take this code do some enhancements/changes/customize it to HP-UX & ship it.
The problem I'm having is I compile our product with LDAP libraries. When I do a chatr on my daemon I can see that the daemon is expecting this library at run time. So if the library is not there the daemon won't even start. I want to customize this such that irrespective of the libraries present the daemon should start.
One solution is to use shl_load,dl_open & dl_sym to get the address & call the library functions ourselves.
What I'm looking for is for hp-ux to be doing all this instead of us controlling how the library functions are called. May be like a compile time/run time option.
The problem I'm having is I compile our product with LDAP libraries. When I do a chatr on my daemon I can see that the daemon is expecting this library at run time. So if the library is not there the daemon won't even start. I want to customize this such that irrespective of the libraries present the daemon should start.
One solution is to use shl_load,dl_open & dl_sym to get the address & call the library functions ourselves.
What I'm looking for is for hp-ux to be doing all this instead of us controlling how the library functions are called. May be like a compile time/run time option.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-06-2003 12:19 PM
тАО08-06-2003 12:19 PM
Re: Shared Libraries question
If you want to use a shared library that is not always present, one option is to provide a stub
version of that library. Link your executable with ld's +b option so it has a shared library search path that looks first in the system directory and then in your own stub library's directory. If the system library is not there, then the stub library of the same name will be loaded instead.
version of that library. Link your executable with ld's +b option so it has a shared library search path that looks first in the system directory and then in your own stub library's directory. If the system library is not there, then the stub library of the same name will be loaded instead.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-22-2003 06:28 PM
тАО09-22-2003 06:28 PM
Re: Shared Libraries question
with the latest linker / loader patches PHSS_28869 (11.00) / PHSS_28871 (11.11) you can use the linker option "+lazyload" to build the binary so that it wont complain until the application encounters at run-time a reference to a symbol that has to be resolved by the non-existent library.
i'm sorry for the late response but the patch was not released till now :)
--
ranga
[i work for hpe]
i'm sorry for the late response but the patch was not released till now :)
--
ranga
[i work for hpe]
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP