HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- problem with dynamic shared libraries
Operating System - HP-UX
1833877
Members
1623
Online
110063
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
11-03-2006 09:28 AM
11-03-2006 09:28 AM
This is my first post so a big "Hello to all"
Problem:
I am creating a dynamic library on HPUX IPF 11.23 with lhe following link options (linker ld HP Itanium(R) B.12.34 IPF/IPF):
>> ld -G -B symbolic -b +s
I am not able to see any exported symbols from this library using the nm command -
nm: no symbols
The same command is used to link a library on a HP Pa system and it seems to work fine with nm giving a huge listing for library.
My executables on IPF seem to be having some problems which I suspect has something to do with the symbols not getting exported from by library. I am linking my executable with the following options " cc -Wl,+s -Wl,+n +DD64 -o"
Please give me some advice?
Problem:
I am creating a dynamic library on HPUX IPF 11.23 with lhe following link options (linker ld HP Itanium(R) B.12.34 IPF/IPF):
>> ld -G -B symbolic -b +s
I am not able to see any exported symbols from this library using the nm command -
nm:
The same command is used to link a library on a HP Pa system and it seems to work fine with nm giving a huge listing for library.
My executables on IPF seem to be having some problems which I suspect has something to do with the symbols not getting exported from by library. I am linking my executable with the following options " cc -Wl,+s -Wl,+n +DD64 -o"
Please give me some advice?
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2006 09:00 PM
11-03-2006 09:00 PM
Solution
>I am not able to see any exported symbols from this library using the nm command: ld -G -B symbolic -b +s
nm is the wrong command to look at shared libs. You should be using elfdump -t, in my case this shows the symbols.
You have found a bug in -G, so just remove it. (The bug is still there on B.12.41.) If you want to strip debug info, use strip -l.
nm is the wrong command to look at shared libs. You should be using elfdump -t, in my case this shows the symbols.
You have found a bug in -G, so just remove it. (The bug is still there on B.12.41.) If you want to strip debug info, use strip -l.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2006 08:41 AM
11-04-2006 08:41 AM
Re: problem with dynamic shared libraries
Thanks Dennis.
"elfdump -t" does work great.
>>You have found a bug in -G
Can you please help me understand what bug you meant here?
"elfdump -t" does work great.
>>You have found a bug in -G
Can you please help me understand what bug you meant here?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2006 09:55 AM
11-06-2006 09:55 AM
Re: problem with dynamic shared libraries
>Can you please help me understand what bug you meant here?
That -G strips the symbol table instead of just the unloadable debug info. That should only be done with -s.
That -G strips the symbol table instead of just the unloadable debug info. That should only be done with -s.
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