<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: +nodefaultrpath not working on HPUX in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/nodefaultrpath-not-working-on-hpux/m-p/4581548#M650711</link>
    <description>Yes it is not able to find the following libraries:&lt;BR /&gt;dynamic /home/prash/jdk14/jre/lib/PA_RISC2.0/libjava.sl&lt;BR /&gt;dynamic /home/prash/oracle/jdk14/jre/lib/PA_RISC2.0/hotspot/libjvm.sl&lt;BR /&gt;&lt;BR /&gt;Ok. I will try setting SHLIB_PATH properly.&lt;BR /&gt;&lt;BR /&gt;Do you know why LD_LIBRARY_PATH is not considered? Is it not used on all HPUX platforms?</description>
    <pubDate>Fri, 12 Feb 2010 12:10:15 GMT</pubDate>
    <dc:creator>bivian</dc:creator>
    <dc:date>2010-02-12T12:10:15Z</dc:date>
    <item>
      <title>+nodefaultrpath not working on HPUX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nodefaultrpath-not-working-on-hpux/m-p/4581537#M650700</link>
      <description>&lt;!--!*#--&gt;I am trying to create a shared object file on HPUX PARISC with +nodefaultrpath option. This is not working. The library search path given using -L options are getting embedded into the object.&lt;BR /&gt;&lt;BR /&gt;The format of the shared object created is PA-RISC1.1 shared library -not stripped&lt;BR /&gt;&lt;BR /&gt;The "ld" options used are /usr/ccs/bin/ld +nodefaultrpath +s -G -b -o</description>
      <pubDate>Wed, 10 Feb 2010 17:53:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nodefaultrpath-not-working-on-hpux/m-p/4581537#M650700</guid>
      <dc:creator>bivian</dc:creator>
      <dc:date>2010-02-10T17:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: +nodefaultrpath not working on HPUX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nodefaultrpath-not-working-on-hpux/m-p/4581538#M650701</link>
      <description>I guess this is due to the fact that +nodefaultrpath option is not supported for 32 bit SOM objects. Is that right?&lt;BR /&gt;&lt;BR /&gt;If so, what is the equivalen?</description>
      <pubDate>Wed, 10 Feb 2010 18:59:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nodefaultrpath-not-working-on-hpux/m-p/4581538#M650701</guid>
      <dc:creator>bivian</dc:creator>
      <dc:date>2010-02-10T18:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: +nodefaultrpath not working on HPUX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nodefaultrpath-not-working-on-hpux/m-p/4581539#M650702</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I guess this is due to the fact that +nodefaultrpath option is not supported for 32 bit SOM objects.&lt;BR /&gt;&lt;BR /&gt;Given the manpages for 'ld', I would agree.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; If so, what is the equivalen?&lt;BR /&gt;&lt;BR /&gt;Maybe you can fiddle with '+cdp'&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Feb 2010 19:20:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nodefaultrpath-not-working-on-hpux/m-p/4581539#M650702</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-02-10T19:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: +nodefaultrpath not working on HPUX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nodefaultrpath-not-working-on-hpux/m-p/4581540#M650703</link>
      <description>&amp;gt;I guess this is due to the fact that +nodefaultrpath option is not supported for SOM objects. Is that right?&lt;BR /&gt;&lt;BR /&gt;Exactly, there is no such option.  What are you trying to do and why do you care?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;JRF: Maybe you can fiddle with '+cdp'&lt;BR /&gt;&lt;BR /&gt;Perhaps.  All you can do with +cdp is to add a bogus path.&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Feb 2010 10:46:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nodefaultrpath-not-working-on-hpux/m-p/4581540#M650703</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-02-11T10:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: +nodefaultrpath not working on HPUX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nodefaultrpath-not-working-on-hpux/m-p/4581541#M650704</link>
      <description>first thing, please use the latest linker patches:&lt;BR /&gt;11.11 - PHSS_40549&lt;BR /&gt;11.23 - PHSS_40537&lt;BR /&gt;11.31 - PHSS_40538&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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 &lt;BR /&gt;"+cdp /my/path/mylib.sl:mylib.sl". this will remove the path information.&lt;BR /&gt;&lt;BR /&gt;and +cdp is available only on PA32.</description>
      <pubDate>Thu, 11 Feb 2010 11:07:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nodefaultrpath-not-working-on-hpux/m-p/4581541#M650704</guid>
      <dc:creator>Suprateeka R Hegde</dc:creator>
      <dc:date>2010-02-11T11:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: +nodefaultrpath not working on HPUX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nodefaultrpath-not-working-on-hpux/m-p/4581542#M650705</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Thanks for the suggestions.&lt;BR /&gt;&lt;BR /&gt;Yes, i am talking about the shared library list shown by chatr command. I thought this was the embedded path. &lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;So "+nodefaultrpath" option is used for objects where the search paths get added by&lt;BR /&gt;default without specifying the +b option.&lt;BR /&gt;&lt;BR /&gt;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&lt;BR /&gt;way to avoid it being added along with the path to the shared object.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Finally, if we don't have the patches you mentioned, will it affect the above solution.&lt;BR /&gt;&lt;BR /&gt;- Prashant&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Feb 2010 13:15:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nodefaultrpath-not-working-on-hpux/m-p/4581542#M650705</guid>
      <dc:creator>bivian</dc:creator>
      <dc:date>2010-02-11T13:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: +nodefaultrpath not working on HPUX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nodefaultrpath-not-working-on-hpux/m-p/4581543#M650706</link>
      <description>&amp;gt;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.&lt;BR /&gt;&lt;BR /&gt;The one in the list is used as plan B if the other paths aren't found.&lt;BR /&gt;Can you provide your chatr output for your shlib and the module that is referring to it.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;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.&lt;BR /&gt;&lt;BR /&gt;How are you telling dld where the shlib is?  Are you using SHLIB_PATH?  Or are you using +b?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;if we don't have the patches you mentioned, will it affect the above solution.&lt;BR /&gt;&lt;BR /&gt;Better if you have the latest, how old is yours?</description>
      <pubDate>Thu, 11 Feb 2010 17:02:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nodefaultrpath-not-working-on-hpux/m-p/4581543#M650706</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-02-11T17:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: +nodefaultrpath not working on HPUX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nodefaultrpath-not-working-on-hpux/m-p/4581544#M650707</link>
      <description>The chatr output is something like this:&lt;BR /&gt;shared library &lt;BR /&gt;         shared library dynamic path search:&lt;BR /&gt;             SHLIB_PATH     enabled   first  &lt;BR /&gt;             embedded path  disabled  second Not Defined&lt;BR /&gt;         shared library list:&lt;BR /&gt;             dynamic   /home/prash/jdk14/jre/lib/PA_RISC2.0/libjava.sl&lt;BR /&gt;             dynamic   /home/prash/oracle/jdk14/jre/lib/PA_RISC2.0/hotspot/libjvm.sl&lt;BR /&gt;             dynamic   /usr/lib/libcl.2&lt;BR /&gt;             dynamic   /usr/lib/librt.2&lt;BR /&gt;             dynamic   /usr/lib/libpthread.1&lt;BR /&gt;             dynamic   /usr/lib/libnss_dns.1&lt;BR /&gt;             dynamic   /usr/lib/libdld.2&lt;BR /&gt;             dynamic   /usr/lib/libnsl.1&lt;BR /&gt;             dynamic   /usr/lib/libm.2&lt;BR /&gt;&lt;BR /&gt;No, i am not using +b option. It uses the SHLIB_PATH or LD_LIBRARY_PATH.</description>
      <pubDate>Thu, 11 Feb 2010 17:59:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nodefaultrpath-not-working-on-hpux/m-p/4581544#M650707</guid>
      <dc:creator>bivian</dc:creator>
      <dc:date>2010-02-11T17:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: +nodefaultrpath not working on HPUX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nodefaultrpath-not-working-on-hpux/m-p/4581545#M650708</link>
      <description>&amp;gt;The chatr output is something like this:&lt;BR /&gt;&amp;gt;SHLIB_PATH enabled first &lt;BR /&gt;dynamic /home/prash/jdk14/jre/lib/PA_RISC2.0/libjava.sl&lt;BR /&gt;dynamic /home/prash/oracle/jdk14/jre/lib/PA_RISC2.0/hotspot/libjvm.sl&lt;BR /&gt;&lt;BR /&gt;You're saying it can't find the libjava.sl and libjvm.sl in your SHLIB_PATH?&lt;BR /&gt;&lt;BR /&gt;(It won't use LD_LIBRARY_PATH.)</description>
      <pubDate>Fri, 12 Feb 2010 06:59:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nodefaultrpath-not-working-on-hpux/m-p/4581545#M650708</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-02-12T06:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: +nodefaultrpath not working on HPUX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nodefaultrpath-not-working-on-hpux/m-p/4581546#M650709</link>
      <description>I forgot to ask, is this a SETUID executable?</description>
      <pubDate>Fri, 12 Feb 2010 07:00:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nodefaultrpath-not-working-on-hpux/m-p/4581546#M650709</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-02-12T07:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: +nodefaultrpath not working on HPUX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nodefaultrpath-not-working-on-hpux/m-p/4581547#M650710</link>
      <description>in your case setting SHLIB_PATH to the correct directory where libjava.sl/libjvm.sl is available should solve the problem. i see that you have used +s already on the link line. so SHLIB_PATH would be honoured by the dynamic loader.&lt;BR /&gt;&lt;BR /&gt;and as dennis is guessing, if it is a setuid app, then read dld.sl(5). it tells about using /etc/dld/sl.conf file to set library search paths.</description>
      <pubDate>Fri, 12 Feb 2010 11:35:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nodefaultrpath-not-working-on-hpux/m-p/4581547#M650710</guid>
      <dc:creator>Suprateeka R Hegde</dc:creator>
      <dc:date>2010-02-12T11:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: +nodefaultrpath not working on HPUX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nodefaultrpath-not-working-on-hpux/m-p/4581548#M650711</link>
      <description>Yes it is not able to find the following libraries:&lt;BR /&gt;dynamic /home/prash/jdk14/jre/lib/PA_RISC2.0/libjava.sl&lt;BR /&gt;dynamic /home/prash/oracle/jdk14/jre/lib/PA_RISC2.0/hotspot/libjvm.sl&lt;BR /&gt;&lt;BR /&gt;Ok. I will try setting SHLIB_PATH properly.&lt;BR /&gt;&lt;BR /&gt;Do you know why LD_LIBRARY_PATH is not considered? Is it not used on all HPUX platforms?</description>
      <pubDate>Fri, 12 Feb 2010 12:10:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nodefaultrpath-not-working-on-hpux/m-p/4581548#M650711</guid>
      <dc:creator>bivian</dc:creator>
      <dc:date>2010-02-12T12:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: +nodefaultrpath not working on HPUX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nodefaultrpath-not-working-on-hpux/m-p/4581549#M650712</link>
      <description>Continuing from the above reply..&lt;BR /&gt;So the final solution you propose is to set SHLIB_PATH and also remove the library paths using +cdp option. Is that right?</description>
      <pubDate>Fri, 12 Feb 2010 12:46:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nodefaultrpath-not-working-on-hpux/m-p/4581549#M650712</guid>
      <dc:creator>bivian</dc:creator>
      <dc:date>2010-02-12T12:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: +nodefaultrpath not working on HPUX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nodefaultrpath-not-working-on-hpux/m-p/4581550#M650713</link>
      <description>LD_LIBRARY_PATH is honoured in 64 bit PA and on  32 and 64 bit IPF. the ELF linker and loader honours LD_LIBRARY_PATH since it conforms to SVR4 standards. PA32, does not use LD_LIBRARY_PATH&lt;BR /&gt;&lt;BR /&gt;using +cdp to remove the path is not recommended. because you have to add SHLIB_PATH that time. the right way is to use +cdp to provide the actual path where libjava.sl and libjvm.sl can be found. in that way, you dont have to specify SHLIB_PATH. the other usage is to use +b to specify all possible directories that might contain these libraries.&lt;BR /&gt;&lt;BR /&gt;but if the situation is such that the directory path is not known at all, then SHLIB_PATH is the way to go. and you dont have to use +cdp to change the path. even if a different path is recorded, the dynamic loader seraches the SHLIB_PATH using the basename of the library seen the shared library list of chatr(1) output</description>
      <pubDate>Fri, 12 Feb 2010 13:48:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nodefaultrpath-not-working-on-hpux/m-p/4581550#M650713</guid>
      <dc:creator>Suprateeka R Hegde</dc:creator>
      <dc:date>2010-02-12T13:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: +nodefaultrpath not working on HPUX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nodefaultrpath-not-working-on-hpux/m-p/4581551#M650714</link>
      <description>Okay. I understand the use of +cdp, +b( embedded path) and SHLIB_PATH now. It seems that loader will get the library paths in that order.&lt;BR /&gt;&lt;BR /&gt;Consider a situation where i create the shared object on one machine. While creating i use +cdp/+b option(s). And then i use this shared object without relinking on some other machine.&lt;BR /&gt;&lt;BR /&gt;In this case, the shared library list of the object will have libraries with paths pointing to non-existent locations. Also the embedded paths will point to invalid directories.&lt;BR /&gt;This is a security problem because a malicious user can create the non-existent directories and load an evil library.&lt;BR /&gt;&lt;BR /&gt;To avoid this i would like to depend on SHLIB_PATH and then use the +cdp option to remove the non-existent paths. Also, i would avoid +b option.&lt;BR /&gt;&lt;BR /&gt;What is your opinion about this?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 12 Feb 2010 18:08:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nodefaultrpath-not-working-on-hpux/m-p/4581551#M650714</guid>
      <dc:creator>bivian</dc:creator>
      <dc:date>2010-02-12T18:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: +nodefaultrpath not working on HPUX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nodefaultrpath-not-working-on-hpux/m-p/4581552#M650715</link>
      <description>&amp;gt;Also the embedded paths will point to invalid directories.  This is a security problem because a malicious user can create the non-existent directories and load an evil library.&lt;BR /&gt;&lt;BR /&gt;If the malicious user can create the directories then he can remove what's there, if it existed.  If you are installing your product, you should have your shlibs as part of the installation and protected from removal/changing.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;To avoid this I would like to depend on SHLIB_PATH and then use the +cdp option to remove the non-existent paths.  What is your opinion about this?&lt;BR /&gt;&lt;BR /&gt;Yes, I suggested that in my first reply.&lt;BR /&gt;The new problem is how to prevent the user from using his own SHLIB_PATH.</description>
      <pubDate>Fri, 12 Feb 2010 20:55:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nodefaultrpath-not-working-on-hpux/m-p/4581552#M650715</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-02-12T20:55:35Z</dc:date>
    </item>
  </channel>
</rss>

