<?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: SHLIB_PATH ignored and chatr in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shlib-path-ignored-and-chatr/m-p/4904662#M840709</link>
    <description>I've had already read them, but apparently they got to work with the chatr +s. My problem is that even with the rigth enable/disable schema (see chatr output), ld still does not find the offending library...</description>
    <pubDate>Tue, 31 May 2005 08:16:22 GMT</pubDate>
    <dc:creator>Roberto Martinez_6</dc:creator>
    <dc:date>2005-05-31T08:16:22Z</dc:date>
    <item>
      <title>SHLIB_PATH ignored and chatr</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shlib-path-ignored-and-chatr/m-p/4904660#M840707</link>
      <description>Hi, I've an old executable which has been migrated to a new server. the executable (32 bit) has references to an external library, which in the new system is in other directory. the output of ldd is (I have replaced the real names by examples):&lt;BR /&gt;ldd &lt;EXECUTABLE&gt;&lt;BR /&gt;/usr/lib/libc.2 =&amp;gt; /usr/lib/libc.2&lt;BR /&gt;/usr/lib/libdld.2 =&amp;gt; /usr/lib/libdld.2&lt;BR /&gt;/usr/lib/libc.2 =&amp;gt; /usr/lib/libc.2&lt;BR /&gt;/usr/lib/libdld.2 =&amp;gt; /usr/lib/libdld.2&lt;BR /&gt;/usr/lib/libnss_dns.1 =&amp;gt; /usr/lib/libnss_dns.1&lt;BR /&gt;/usr/lib/libdld.2 =&amp;gt; /usr/lib/libdld.2&lt;BR /&gt;/usr/lib/libpthread.1 =&amp;gt; /usr/lib/libpthread.1&lt;BR /&gt;/usr/lib/librt.2 =&amp;gt; /usr/lib/librt.2&lt;BR /&gt;/usr/lib/dld.sl: Can't open shared library: /path/to/old/oracle/installation/lib//libclntsh.sl.8.0&lt;BR /&gt;/usr/lib/dld.sl: No such file or directory&lt;BR /&gt;&lt;BR /&gt;I've tried with&lt;BR /&gt;&lt;BR /&gt;chat +s enable &lt;EXECUTABLE&gt; and defined and exported SHLIB_PATH.&lt;BR /&gt;The output of the chatr command is:&lt;BR /&gt;&lt;BR /&gt;chatr(error): dl_header_ext.size != sizeof(dl_header_ext). Please update your version of the chatr tool.&lt;BR /&gt;serverSQL:&lt;BR /&gt;current values:&lt;BR /&gt;shared executable&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;static /path/to/old/oracle/installation/lib//libclntsh.sl.8.0&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/libc.2&lt;BR /&gt;shared library binding:&lt;BR /&gt;immediate&lt;BR /&gt;global hash table disabled&lt;BR /&gt;plabel caching disabled&lt;BR /&gt;global hash array size:1103&lt;BR /&gt;global hash array nbuckets:3&lt;BR /&gt;shared vtable support disabled&lt;BR /&gt;static branch prediction disabled&lt;BR /&gt;executable from stack: D (default)&lt;BR /&gt;kernel assisted branch prediction enabled&lt;BR /&gt;lazy swap allocation disabled&lt;BR /&gt;text segment locking disabled&lt;BR /&gt;data segment locking disabled&lt;BR /&gt;third quadrant private data space disabled&lt;BR /&gt;fourth quadrant private data space disabled&lt;BR /&gt;data page size: D (default)&lt;BR /&gt;instruction page size: D (default)&lt;BR /&gt;new values:&lt;BR /&gt;shared executable&lt;BR /&gt;shared library dynamic path search:&lt;BR /&gt;SHLIB_PATH enabled second&lt;BR /&gt;embedded path disabled first Not Defined&lt;BR /&gt;shared library list:&lt;BR /&gt;static /logiciel/oracle/oracle_817/lib//libclntsh.sl.8.0&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/libc.2&lt;BR /&gt;shared library binding:&lt;BR /&gt;immediate&lt;BR /&gt;global hash table disabled&lt;BR /&gt;plabel caching disabled&lt;BR /&gt;global hash array size:1103&lt;BR /&gt;global hash array nbuckets:3&lt;BR /&gt;shared vtable support disabled&lt;BR /&gt;static branch prediction disabled&lt;BR /&gt;executable from stack: D (default)&lt;BR /&gt;kernel assisted branch prediction enabled&lt;BR /&gt;lazy swap allocation disabled&lt;BR /&gt;text segment locking disabled&lt;BR /&gt;data segment locking disabled&lt;BR /&gt;third quadrant private data space disabled&lt;BR /&gt;fourth quadrant private data space disabled&lt;BR /&gt;data page size: D (default)&lt;BR /&gt;instruction page size: D (default)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;There are some things I've seen:&lt;BR /&gt;&lt;BR /&gt;First, chatr returns an error asking to update chatr version. The system is factory preinstalled with B.11.11 version. Second, it seems that the old executable has an absolute path recorded. there's a double slash on the path to the oracle lib. Third, in the "current values", there's SHLIB_PATH enabled first, and in "new values", SHLIB_PATH enabled second.(??)&lt;BR /&gt;&lt;BR /&gt;Has anyone had this problem before? have you got any hints? Thanks in advance.&lt;/EXECUTABLE&gt;&lt;/EXECUTABLE&gt;</description>
      <pubDate>Tue, 31 May 2005 07:15:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shlib-path-ignored-and-chatr/m-p/4904660#M840707</guid>
      <dc:creator>Roberto Martinez_6</dc:creator>
      <dc:date>2005-05-31T07:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: SHLIB_PATH ignored and chatr</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shlib-path-ignored-and-chatr/m-p/4904661#M840708</link>
      <description>Hi Roberto,&lt;BR /&gt;&lt;BR /&gt;Check those 2 threads: &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=628594" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=628594&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=594930" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=594930&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Eric Antunes</description>
      <pubDate>Tue, 31 May 2005 08:02:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shlib-path-ignored-and-chatr/m-p/4904661#M840708</guid>
      <dc:creator>Eric Antunes</dc:creator>
      <dc:date>2005-05-31T08:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: SHLIB_PATH ignored and chatr</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shlib-path-ignored-and-chatr/m-p/4904662#M840709</link>
      <description>I've had already read them, but apparently they got to work with the chatr +s. My problem is that even with the rigth enable/disable schema (see chatr output), ld still does not find the offending library...</description>
      <pubDate>Tue, 31 May 2005 08:16:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shlib-path-ignored-and-chatr/m-p/4904662#M840709</guid>
      <dc:creator>Roberto Martinez_6</dc:creator>
      <dc:date>2005-05-31T08:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: SHLIB_PATH ignored and chatr</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shlib-path-ignored-and-chatr/m-p/4904663#M840710</link>
      <description>Hi again,&lt;BR /&gt;&lt;BR /&gt;Post the following (with Oracle user):&lt;BR /&gt;&lt;BR /&gt;$echo $SHLIB_PATH&lt;BR /&gt;$echo $LD_LIBRARY_PATH (or $LIBRARY_PATH)&lt;BR /&gt;$echo $PATH&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Eric Antunes</description>
      <pubDate>Tue, 31 May 2005 08:41:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shlib-path-ignored-and-chatr/m-p/4904663#M840710</guid>
      <dc:creator>Eric Antunes</dc:creator>
      <dc:date>2005-05-31T08:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: SHLIB_PATH ignored and chatr</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shlib-path-ignored-and-chatr/m-p/4904664#M840711</link>
      <description>Do you have this patch installed?&lt;BR /&gt;# PHSS_30970 ld(1) and linker tools cumulative patch&lt;BR /&gt;&lt;BR /&gt;I've had some really odd things happening with this patch installed on 11.11 servers (and 11.0 with it's equiv patch).  It tends to happen with old applications (probably 32 bit ones at that).  &lt;BR /&gt;Where I noticed it is if the suid bit is on the file it tends to break, making it seem like the the SHLIB_PATH is getting ignored.  You didn't state anything about that.  But the symptoms are kind of what your describing.&lt;BR /&gt;&lt;BR /&gt;I've seen it where we moved one application from an older server to a new one, where it's broken on the move.  Removing this patch cleared it up.  In the other instance it was an exsisting server with app where I applied this patch (11.0 server eqiv of the patch) and it broke it too.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 31 May 2005 09:49:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shlib-path-ignored-and-chatr/m-p/4904664#M840711</guid>
      <dc:creator>Dave Hutton</dc:creator>
      <dc:date>2005-05-31T09:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: SHLIB_PATH ignored and chatr</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shlib-path-ignored-and-chatr/m-p/4904665#M840712</link>
      <description>SHLIB_PATH is ignored because libclntsh.sl.8.0 is specified using absolute pathwhen program was linked.&lt;BR /&gt;&lt;BR /&gt;static /path/to/old/oracle/installation/lib//libclntsh.sl.8.0&lt;BR /&gt;&lt;BR /&gt;Keyword "static" indicates this library is not subject to run-time path lookup,so SHLIB_PATH is ignored.&lt;BR /&gt;&lt;BR /&gt;# chatr -l /path/to/old/oracle/installation/lib//libclntsh.sl.8.0 &lt;PROG&gt;&lt;BR /&gt;&lt;BR /&gt;This will enable run-time path lookup for libclntsh.sl.8.0, so SHLIB_PATH should work.&lt;/PROG&gt;</description>
      <pubDate>Wed, 01 Jun 2005 00:26:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shlib-path-ignored-and-chatr/m-p/4904665#M840712</guid>
      <dc:creator>Ermin Borovac</dc:creator>
      <dc:date>2005-06-01T00:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: SHLIB_PATH ignored and chatr</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shlib-path-ignored-and-chatr/m-p/4904666#M840713</link>
      <description>Ermin hit right on the spot. after the chatr -l, the library is stated as dynamic, and SHLIB_PATH lookups works ok.&lt;BR /&gt;Thank you all for your help.</description>
      <pubDate>Wed, 01 Jun 2005 00:51:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shlib-path-ignored-and-chatr/m-p/4904666#M840713</guid>
      <dc:creator>Roberto Martinez_6</dc:creator>
      <dc:date>2005-06-01T00:51:42Z</dc:date>
    </item>
  </channel>
</rss>

