- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- link libclntsh dynamic
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
02-06-2005 11:38 PM
02-06-2005 11:38 PM
link libclntsh dynamic
How to compile a program that the libclntsh.sl on 11.11 is linked as dynamic?
I try:
cc -o vpmadp -Wl,+s vpmadp-main.o vpmadp-vpm_db.o -lpthread /usr/app/oracle/product/8.1.7//lib/libclntsh.sl ../src/liborainf.a
output from chatr is:
shared library list:
dynamic /usr/lib/libpthread.1
static /usr/app/oracle/product/8.1.7//lib/libclntsh.sl
.8.0
?? Which ld flag must be set that the libclntsh is dynamic loadable??
Thanks for help!
- Tags:
- shlib
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2005 12:02 AM
02-07-2005 12:02 AM
Re: link libclntsh dynamic
google on genclntsh
get to
http://publib.boulder.ibm.com/infocenter/txen/index.jsp?topic=/com.ibm.txseries510.doc/erzhab0069.htm
Shows how script used to rebuild lib
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2005 12:31 AM
02-07-2005 12:31 AM
Re: link libclntsh dynamic
Thanks for the very fast answer. I'm afraid that I don't describe my problem exactly:
I don't want to relink the libclntsh istself! I link this library to my own programm as a normal library. All works fine but the linker bind the libclntsh as a static library to the resulted binary. This means independent from SHLIB_PATH the dld search the given absolut path in the binary about the libclntsh. This is worse!
I can change the binary with chatr -l [pathname] [binary_name] so the library is searched by the dld and the SHLIB_PATH. But i want to create a binary with this atribute directly on linktime.
Help??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2005 12:48 AM
02-07-2005 12:48 AM
Re: link libclntsh dynamic
Shouldn't you have -l/usr/app/oracle/product/8.1.7//lib/libclntsh.sl instead of just /usr/app/oracle/product/8.1.7//lib/libclntsh.sl ? (or -L)
And you should add /usr/app/oracle/product/8.1.7/lib to your LD_LIBRARY_PATH, in order to have ld find libs in it.
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2005 12:53 AM
02-07-2005 12:53 AM
Re: link libclntsh dynamic
then
chatr +s enable vpmadp
If I understand your question correctly that is!
- Tags:
- chatr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2005 12:58 AM
02-07-2005 12:58 AM
Re: link libclntsh dynamic
THATS it! Thank you verry much!!!!!
Karsten
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2005 11:28 PM
02-20-2005 11:28 PM