- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How do I create an Archive/Static library from Sha...
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
09-26-2005 01:44 AM
09-26-2005 01:44 AM
How do I create an Archive/Static library from Shared/Dynamic library
I was not sure which forum to place this in so I opted for General (feel free to move it if appropiate).
I have the following problem:
We create software that utilizes C++, Oracle and some libraries from a 3rd party. The software functions from the 3rd party is supplied in "shared" lib*.sl format. Due to the need to "future proof" our customers against them needing the same release of these 3rd party libraries (they have their release in their name), I need to be able to statically/archive link those functions into our resulting load modules. So, here's the question...
How can I create a static/archive library for use in my links when all I have is the shared/dynamic library to work with?
Any reasonable solution would be greatly appreciated...
Thanks in advance.
Kevin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 10:18 PM
09-26-2005 10:18 PM
Re: How do I create an Archive/Static library from Shared/Dynamic library
--
ranga

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 10:49 PM
09-26-2005 10:49 PM
Re: How do I create an Archive/Static library from Shared/Dynamic library
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 11:17 PM
09-26-2005 11:17 PM
Re: How do I create an Archive/Static library from Shared/Dynamic library
what do you want to achieve exactly ?
If you want to use a specific module instead of the one in the shared library, you can specify the order to find a module.
Regards
Jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2005 12:20 AM
09-27-2005 12:20 AM
Re: How do I create an Archive/Static library from Shared/Dynamic library
As I tried to explain, I need to make our software independent from the software that a customer might be running. Typically, our customers will have the same (or similar) software for development as us, and I would like to statically link in the 3rd party (Dev Tool) libraries so that I can guarantee that our software works with the patch level (from the 3rd party) that we test with, and therefore not be affected by the customer having a different patch level. The 3rd party ships it's software with lib*.sl libraries, and these may or may not be affected/updated by a patch.
I hope that makes my requirement a bit clearer.
Kevin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2005 12:49 AM
09-27-2005 12:49 AM
Re: How do I create an Archive/Static library from Shared/Dynamic library
What about forcing the use of these specific shared libraries with chatr command (man chatr) or use the SHLIB_PATH enabled and 1st pointing the 3rd party lib location (your version)
man chatr
I believe you can check with lsof which libraries are opened by a specific process.
Regards
Jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2005 01:32 AM
09-27-2005 01:32 AM
Re: How do I create an Archive/Static library from Shared/Dynamic library
That is a partial work around to the problem. Sometimes a customer will be using a completely different release of the 3rd party software and therefore the library names will not match at all, so in those cases we have to ship copies of the ones we have, but it would be better if we could solve all the problems in a single solution by statically linking these libraries.
Kevin