- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Problems with shared libraries
Operating System - HP-UX
1753812
Members
8104
Online
108805
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
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
тАО09-08-2009 01:36 AM
тАО09-08-2009 01:36 AM
Problems with shared libraries
Hello!
I have a problem with shared dynamic libraries in HP-UX:
After compiling and linking, when I do an ldd over the executable file, it refers to libraries with absolute paths, so i find problems to execute the program in other machines, because the path does no exist.
A piece of the ldd result is:
/usr/lib/libdld.2 => /usr/lib/libdld.2
As you can see, the libraries refer to absolute paths, instead of relative paths:
./libdld.2 -> usr/lib/libdld.2
Any ideas about the problem??
Thank you in advance
I have a problem with shared dynamic libraries in HP-UX:
After compiling and linking, when I do an ldd over the executable file, it refers to libraries with absolute paths, so i find problems to execute the program in other machines, because the path does no exist.
A piece of the ldd result is:
/usr/lib/libdld.2 => /usr/lib/libdld.2
As you can see, the libraries refer to absolute paths, instead of relative paths:
./libdld.2 -> usr/lib/libdld.2
Any ideas about the problem??
Thank you in advance
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-08-2009 03:11 AM
тАО09-08-2009 03:11 AM
Re: Problems with shared libraries
>it refers to libraries with absolute paths
This is an illusion. If you have enabled embedded (ld's +b) or SHLIB_PATH (ld's +s), you can use those paths on other machines.
>A piece of the ldd result is:
/usr/lib/libdld.2 => /usr/lib/libdld.2
It is illegal to use this as an example since libdld is always there and can't be moved. Your example should include YOUR shlibs.
This is an illusion. If you have enabled embedded (ld's +b) or SHLIB_PATH (ld's +s), you can use those paths on other machines.
>A piece of the ldd result is:
/usr/lib/libdld.2 => /usr/lib/libdld.2
It is illegal to use this as an example since libdld is always there and can't be moved. Your example should include YOUR shlibs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-08-2009 03:23 AM
тАО09-08-2009 03:23 AM
Re: Problems with shared libraries
You can also have paths with $ORIGIN.
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