- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Question for Multi-OS Unix gurus
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
09-02-2004 11:11 PM
09-02-2004 11:11 PM
Question for Multi-OS Unix gurus
I can't find any forums anywhere near as good as this for the other flavour of Unix:
The problem is as follows: an AIX loadmodule has been linked with the ld flag of -bnolibpath, which effectively means that the LIBPATH env variable gets ignored at runtime, instead the ld flags of -L and "link time" LIBPATH values are stored inside the load module. (This is 3rd party software, for which I don't have the source.)
I need to get the runtime LIBPATH to be used... what commands do I need to run against the load module to open it up to use the runtime LIBPATH. E.g. is there a way to call ld with flags to strip the -bnolibpath setting? I need to do this since the "dump -H loadmodule" shows an "index 0" path containing stuff that I don't have, and the things I need to be included are ignored...
Thanks in advance.
Kevin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2004 11:41 PM
09-02-2004 11:41 PM
Re: Question for Multi-OS Unix gurus
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2004 12:29 AM
09-03-2004 12:29 AM
Re: Question for Multi-OS Unix gurus
so your loadmodule don't use the LIBPATH var, but an other directory for the librairy, for example /other_lib.
A possibility is to make a link from this other_lib directory, to a librairy that is stored in the $LIBPATH, and verify that it is loaded.
Olivier.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2004 01:41 AM
09-03-2004 01:41 AM
Re: Question for Multi-OS Unix gurus
the point is that in this flavour of Unix, the LIBPATH that exists at "build time" is stored inside the loadmodule, and no other directories are even considered.
The ideal solution would be run some kind of command against the load module, which strips this "build time" LIBPATH from the loadmodule, and replaces it with an instruction to use the "current" LIBPATH instead...
Thanks in advance.
Kevin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2004 01:51 AM
09-03-2004 01:51 AM
Re: Question for Multi-OS Unix gurus
The ideal solution is better to have the code source of this module, and direct change the program !!!
But you don't have the code, and i think the command which strips the "build time" LIBPATH does not exist.
So can you simply try the link i explain, to see if it works ?
Olivier.
PS : you said you can award points here ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2004 01:53 AM
09-03-2004 01:53 AM
Re: Question for Multi-OS Unix gurus
If you want to modify the binary file to put the correct PATH, you will have at least problems of stirng length.
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
09-03-2004 02:06 AM
09-03-2004 02:06 AM
Re: Question for Multi-OS Unix gurus
It clearly shows the "build time" LIBPATH... I appreciate that editing a binary would have string length issues, that's why I am after the "magic" command that achieves my desired result...
With respect to the idea of using a symbolic link, I have two issues with this... firstly, I don't really want create spurious directory references on my system, and secondly, if the referenced directory does exist and there is a file with the same name, but different content to the one which is required, then I get other problems... E.g. Load Module loadmod1 has a built-in reference to directory /home/user1/lib, which at build time contained libMyLib.so... I get a copy of loadmod1 installed on my system, which happens to have a valid directory called /home/user1/lib, which also contains a file called libMyLib.so, but this file is completely different to the one which is needed by loadmod1, so I get a runtime "can't resolve symbol inside libMyLib.so" error... hence the need to change the LIBPATH that is built in to loadmod1 so that I can point the runtime LIBPATH to the directory where the valid libMyLib.so exists...
I hope this is clear.
Kevin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2004 02:40 AM
09-03-2004 02:40 AM
Re: Question for Multi-OS Unix gurus
If there are not too much libs, you can also link .so files instead of directories...
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
09-03-2004 02:43 AM
09-03-2004 02:43 AM
Re: Question for Multi-OS Unix gurus
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2004 08:25 PM
09-05-2004 08:25 PM
Re: Question for Multi-OS Unix gurus
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2004 08:56 PM
09-07-2004 08:56 PM