- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- GCC doesn't link libraries properly
Operating System - HP-UX
1753864
Members
7568
Online
108809
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
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
тАО07-03-2005 09:07 PM
тАО07-03-2005 09:07 PM
Hi!
I am compiling a program with gcc, but although I have a linker opition -lrrd, which should link to a librrd.so library, it doesn't. If I use chatr on the compiled file, I see:
64-bit ELF shared library
shared library dynamic path search:
LD_LIBRARY_PATH enabled first
SHLIB_PATH enabled second
embedded path enabled third -lrrd
shared library list:
libm.so.1
shared vtable support disabled
This library is not in the shared list!
Does anybody know why?
P.S. What does the +b option of gcc mean?
Thank you!
I am compiling a program with gcc, but although I have a linker opition -lrrd, which should link to a librrd.so library, it doesn't. If I use chatr on the compiled file, I see:
64-bit ELF shared library
shared library dynamic path search:
LD_LIBRARY_PATH enabled first
SHLIB_PATH enabled second
embedded path enabled third -lrrd
shared library list:
libm.so.1
shared vtable support disabled
This library is not in the shared list!
Does anybody know why?
P.S. What does the +b option of gcc mean?
Thank you!
Solved! Go to Solution.
- Tags:
- shlib
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-03-2005 09:30 PM
тАО07-03-2005 09:30 PM
Solution
It is not necessary that your application is actually dependent on libraries that you link with. You can specify any number of libraries at the link time, but linker will keep only those names which resolves any external refernces in application.
In your case, it seems that your application is not calling any procedure/function defined in librrd.so. Hence it is not shown in the chatr output.
-Amit
In your case, it seems that your application is not calling any procedure/function defined in librrd.so. Hence it is not shown in the chatr output.
-Amit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-03-2005 09:35 PM
тАО07-03-2005 09:35 PM
Re: GCC doesn't link libraries properly
But this librray is actually called when the application is run, and I get error:
Unsatisfied code symbol 'rrd_clear_error'
and this symbol is exactly contained in librrd.so
Unsatisfied code symbol 'rrd_clear_error'
and this symbol is exactly contained in librrd.so
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-03-2005 10:34 PM
тАО07-03-2005 10:34 PM
Re: GCC doesn't link libraries properly
I got it! It was actually the option +b, which should look like +b(library/path/), but within my makefile it had not parameters, so I added them and it worked so far..
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