- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: +nodefaultrpath not working on HPUX
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
Discussions
Discussions
Forums
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
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-10-2010 09:53 AM
тАО02-10-2010 09:53 AM
The format of the shared object created is PA-RISC1.1 shared library -not stripped
The "ld" options used are /usr/ccs/bin/ld +nodefaultrpath +s -G -b -o
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-10-2010 10:59 AM
тАО02-10-2010 10:59 AM
Re: +nodefaultrpath not working on HPUX
If so, what is the equivalen?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-10-2010 11:20 AM
тАО02-10-2010 11:20 AM
Solution> I guess this is due to the fact that +nodefaultrpath option is not supported for 32 bit SOM objects.
Given the manpages for 'ld', I would agree.
> If so, what is the equivalen?
Maybe you can fiddle with '+cdp'
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2010 02:46 AM
тАО02-11-2010 02:46 AM
Re: +nodefaultrpath not working on HPUX
Exactly, there is no such option. What are you trying to do and why do you care?
>JRF: Maybe you can fiddle with '+cdp'
Perhaps. All you can do with +cdp is to add a bogus path.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2010 03:07 AM
тАО02-11-2010 03:07 AM
Re: +nodefaultrpath not working on HPUX
11.11 - PHSS_40549
11.23 - PHSS_40537
11.31 - PHSS_40538
secondly, +nodefaultrpath is not required on PA32, because by default the embedded path is not recorded. you have to explicitly use +b option to record embedded path.
and if you are using the word "embedded" to mean the path that gets recorded as seen in shared library list in the chatr(1) output, then it is not embedded path that can be removed using +nodefaultrpath. you have to use say something like
"+cdp /my/path/mylib.sl:mylib.sl". this will remove the path information.
and +cdp is available only on PA32.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2010 05:15 AM
тАО02-11-2010 05:15 AM
Re: +nodefaultrpath not working on HPUX
Thanks for the suggestions.
Yes, i am talking about the shared library list shown by chatr command. I thought this was the embedded path.
Is there a subtle difference between embedded path and the one shown in shared library list. I guess the later is a path and the other points to a library.
So "+nodefaultrpath" option is used for objects where the search paths get added by
default without specifying the +b option.
In my case where the format of the file is "PA-RISC1.1 shared library -not stripped", which is PA32 i need to use the "+cdp" option for each library path specified through "-L" option. This is the only
way to avoid it being added along with the path to the shared object.
Actually, the problem i am trying to solve is that the shared object is linked at one place and it is being used in another place. So the loader throws an error when it sees the non-existent path while loading a library.
Finally, if we don't have the patches you mentioned, will it affect the above solution.
- Prashant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2010 09:02 AM
тАО02-11-2010 09:02 AM
Re: +nodefaultrpath not working on HPUX
The one in the list is used as plan B if the other paths aren't found.
Can you provide your chatr output for your shlib and the module that is referring to it.
>the shared object is linked at one place and it is being used in another place. So the loader throws an error when it sees the non-existent path while loading a library.
How are you telling dld where the shlib is? Are you using SHLIB_PATH? Or are you using +b?
>if we don't have the patches you mentioned, will it affect the above solution.
Better if you have the latest, how old is yours?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2010 09:59 AM
тАО02-11-2010 09:59 AM
Re: +nodefaultrpath not working on HPUX
shared library
shared library dynamic path search:
SHLIB_PATH enabled first
embedded path disabled second Not Defined
shared library list:
dynamic /home/prash/jdk14/jre/lib/PA_RISC2.0/libjava.sl
dynamic /home/prash/oracle/jdk14/jre/lib/PA_RISC2.0/hotspot/libjvm.sl
dynamic /usr/lib/libcl.2
dynamic /usr/lib/librt.2
dynamic /usr/lib/libpthread.1
dynamic /usr/lib/libnss_dns.1
dynamic /usr/lib/libdld.2
dynamic /usr/lib/libnsl.1
dynamic /usr/lib/libm.2
No, i am not using +b option. It uses the SHLIB_PATH or LD_LIBRARY_PATH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2010 10:59 PM
тАО02-11-2010 10:59 PM
Re: +nodefaultrpath not working on HPUX
>SHLIB_PATH enabled first
dynamic /home/prash/jdk14/jre/lib/PA_RISC2.0/libjava.sl
dynamic /home/prash/oracle/jdk14/jre/lib/PA_RISC2.0/hotspot/libjvm.sl
You're saying it can't find the libjava.sl and libjvm.sl in your SHLIB_PATH?
(It won't use LD_LIBRARY_PATH.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2010 11:00 PM
тАО02-11-2010 11:00 PM