HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Static library dependency detection
Operating System - HP-UX
1837999
Members
4787
Online
110124
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
Go to solution
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
10-05-2004 11:55 PM
10-05-2004 11:55 PM
I have built a shared library called libtest.so which used the symbols from other static libraries like libssl.a, libdb.a, ..etc.
How to find what are static dependency libraries and dependency inforamtions are taken by shared library libtest.so ?
Note:
I can find using ldd/chatr only when I built the library libtest.so with shared dependency library. How do it for static libraries on there.
Thanks
Muthu
How to find what are static dependency libraries and dependency inforamtions are taken by shared library libtest.so ?
Note:
I can find using ldd/chatr only when I built the library libtest.so with shared dependency library. How do it for static libraries on there.
Thanks
Muthu
Easy to suggest when don't know about the problem!
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2004 06:24 PM
10-11-2004 06:24 PM
Solution
it seems that you can only hope to find C filenames, by looking for (absolute) symbols of type FILE:
elfdump -t | grep FILE
you can also see similar info with
elfdump -dc
these are put in by the HP compilers (no idea about gcc) into each of the object files and not by the linker. you wont find this information if the library is stripped.
i dont think you can get the names of archive files. only the linker knows what all libraries were used at link time and it does not record that information for archive libraries or object files into the target.
--
ranga
[i work for hpe]
elfdump -t
you can also see similar info with
elfdump -dc
these are put in by the HP compilers (no idea about gcc) into each of the object files and not by the linker. you wont find this information if the library is stripped.
i dont think you can get the names of archive files. only the linker knows what all libraries were used at link time and it does not record that information for archive libraries or object files into the target.
--
ranga
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2004 06:31 PM
10-11-2004 06:31 PM
Re: Static library dependency detection
Thanks ramachandra.
We can get asbolute file names with elfdump (IPF) / odump ( PA-RISC ) system routies.
Thanks for your information.
We can get asbolute file names with elfdump (IPF) / odump ( PA-RISC ) system routies.
Thanks for your information.
Easy to suggest when don't know about the problem!
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