<?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: LD_LIBRARY_PATH -vs- SHLIB_PATH in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ld-library-path-vs-shlib-path/m-p/3913902#M763822</link>
    <description>I can't see why there is any difference.  The only file I see in pa1.1 is libcl.1 and that is a symlink to /usr/lib/.&lt;BR /&gt;&lt;BR /&gt;The only strange thing is these applications were made for 10.20.&lt;BR /&gt;&lt;BR /&gt;The application doesn't try to dynamically load any other lib with shl_load??</description>
    <pubDate>Sat, 16 Dec 2006 07:58:04 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2006-12-16T07:58:04Z</dc:date>
    <item>
      <title>LD_LIBRARY_PATH -vs- SHLIB_PATH</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ld-library-path-vs-shlib-path/m-p/3913899#M763819</link>
      <description>I recently had an issue on one of our HP-UX 11.0 servers, after upgrading EMC's Navisphere product. Navisphere runs a daemon ,naviagent, and provides a cli, navicli. After the upgrade some commands issued via the cli would cause the daemon to quit. The vendor provided work around was to remove /usr/lib and /opt/Navisphere/lib from SHLIB_PATH replacing them with /usr/lib/pa1.1 . Which appears to work. Setting SHLIB_PATH to null also works.&lt;BR /&gt;&lt;BR /&gt;What I'm wondering about is given the chatr and tusc output below , why is this working?&lt;BR /&gt; &lt;BR /&gt;It looks to me like /usr/lib is being used by the executables even though the SHLIB_PATH and LD_LIBRARY_PATH are being set to avoid this.&lt;BR /&gt;&lt;BR /&gt;Funnier still is if /usr/lib is in the SHLIB_PATH variable I can recreate the failure.&lt;BR /&gt;&lt;BR /&gt;Are the naviagent and navicli using /usr/lib as specified in the shared library list? &lt;BR /&gt;Are they actually using the library in the LD_LIBRARY_PATH variable?&lt;BR /&gt;If LD_LIBRARY_PATH and SHLIB_PATH are set which one in used?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for you input. I just don't feel comfortable with the "fix" even though it looks to be working.&lt;BR /&gt;&lt;BR /&gt;chatr `which naviagent`&lt;BR /&gt;/opt/Navisphere/bin/naviagent: &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;             dynamic   /usr/lib/libdld.1&lt;BR /&gt;             dynamic   /usr/lib/libstd.1&lt;BR /&gt;             dynamic   /usr/lib/libstream.1&lt;BR /&gt;             dynamic   /usr/lib/libCsup.1&lt;BR /&gt;             dynamic   /usr/lib/pa1.1/libcl.1&lt;BR /&gt;             dynamic   /usr/lib/libc.1&lt;BR /&gt;         shared library binding:&lt;BR /&gt;             deferred &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;         third quadrant global data space disabled&lt;BR /&gt;         data page size: D (default)&lt;BR /&gt;         instruction page size: D (default)&lt;BR /&gt;         nulptr references disabled&lt;BR /&gt;         shared library private mapping disabled&lt;BR /&gt;         shared library text merging disabled&lt;BR /&gt;&lt;BR /&gt;chatr `which navicli`  &lt;BR /&gt;/opt/Navisphere/bin/navicli: &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;             dynamic   /usr/lib/libdld.1&lt;BR /&gt;             dynamic   /usr/lib/libstd.1&lt;BR /&gt;             dynamic   /usr/lib/libstream.1&lt;BR /&gt;             dynamic   /usr/lib/libCsup.1&lt;BR /&gt;             dynamic   /usr/lib/pa1.1/libcl.1&lt;BR /&gt;             dynamic   /usr/lib/libc.1&lt;BR /&gt;         shared library binding:&lt;BR /&gt;             deferred &lt;BR /&gt;         global hash table disabled&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;echo $SHLIB_PATH&lt;BR /&gt;echo $LD_LIBRARAY_PATH&lt;BR /&gt;sh: LD_LIBRARAY_PATH: Parameter not set.&lt;BR /&gt;&lt;BR /&gt;sapap9# /usr/contrib/bin/tusc navicli lunmapinfo | egrep -i 'libdld.1|libstd.1|libstream.1|libCsup.1|libcl.1'&lt;BR /&gt;open("/usr/lib/libdld.1", O_RDONLY, 057) ......................................................... = 3&lt;BR /&gt;open("/usr/lib/pa1.1/libcl.1", O_RDONLY, 057) .................................................... = 3&lt;BR /&gt;open("/usr/lib/libdld.1", O_RDONLY, 057) ......................................................... = 3&lt;BR /&gt;open("/usr/lib/libCsup.1", O_RDONLY, 057) ........................................................ = 3&lt;BR /&gt;open("/usr/lib/libstream.1", O_RDONLY, 057) ...................................................... = 3&lt;BR /&gt;open("/usr/lib/libstd.1", O_RDONLY, 057) ......................................................... = 3&lt;BR /&gt;open("/usr/lib/libdld.1", O_RDONLY, 057) ......................................................... = 3&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 15 Dec 2006 12:26:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ld-library-path-vs-shlib-path/m-p/3913899#M763819</guid>
      <dc:creator>Dan Ryan_4</dc:creator>
      <dc:date>2006-12-15T12:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: LD_LIBRARY_PATH -vs- SHLIB_PATH</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ld-library-path-vs-shlib-path/m-p/3913900#M763820</link>
      <description>I can't tell you why it does and doesn't work, but I can answer a couple questions. If I had to guess I'd say your problem has something to do with different versions of the same library in different locations.&lt;BR /&gt;&lt;BR /&gt;/usr/lib is always checked, SHLIB_PATH just adds other directories ahead of it. The only time you'd want to put /usr/lib in SHLIB_PATH is when you need libraries from other directories but still want to make sure you use the system-wide standard libraries instead of any equivalents in the other locations.&lt;BR /&gt;&lt;BR /&gt;As I recall, on HP-UX SHLIB_PATH is used for 32-bit and LD_LIBRARY_PATH is used for 64-bit. They do the same thing, but for different types of binary.&lt;BR /&gt;&lt;BR /&gt;You might be able to find out exactly what's wrong by running ldd on the binary and comparing the output with different SHLIB_PATH settings.</description>
      <pubDate>Fri, 15 Dec 2006 15:51:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ld-library-path-vs-shlib-path/m-p/3913900#M763820</guid>
      <dc:creator>Heironimus</dc:creator>
      <dc:date>2006-12-15T15:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: LD_LIBRARY_PATH -vs- SHLIB_PATH</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ld-library-path-vs-shlib-path/m-p/3913901#M763821</link>
      <description>Thanks for the ldd command. &lt;BR /&gt;Looks like LD_LIBRARY_PATH is ignored. &lt;BR /&gt;An empty SHLIB_PATH results in all modules loading from  /usr/lib and naviagent doesn't crash. Having /usr/lib explicitly in the SHLIB_PATH all modules are loaded from /usr/lib but the naviagent will crash. &lt;BR /&gt;Go figure.</description>
      <pubDate>Fri, 15 Dec 2006 17:25:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ld-library-path-vs-shlib-path/m-p/3913901#M763821</guid>
      <dc:creator>Dan Ryan_4</dc:creator>
      <dc:date>2006-12-15T17:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: LD_LIBRARY_PATH -vs- SHLIB_PATH</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ld-library-path-vs-shlib-path/m-p/3913902#M763822</link>
      <description>I can't see why there is any difference.  The only file I see in pa1.1 is libcl.1 and that is a symlink to /usr/lib/.&lt;BR /&gt;&lt;BR /&gt;The only strange thing is these applications were made for 10.20.&lt;BR /&gt;&lt;BR /&gt;The application doesn't try to dynamically load any other lib with shl_load??</description>
      <pubDate>Sat, 16 Dec 2006 07:58:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ld-library-path-vs-shlib-path/m-p/3913902#M763822</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2006-12-16T07:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: LD_LIBRARY_PATH -vs- SHLIB_PATH</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ld-library-path-vs-shlib-path/m-p/3913903#M763823</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;LD_LIBRARY_PATH is used on Solaris.&lt;BR /&gt;&lt;BR /&gt;Check out&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B2355-90654/ch04s03.html#d0e8541" target="_blank"&gt;http://docs.hp.com/en/B2355-90654/ch04s03.html#d0e8541&lt;/A&gt;&lt;BR /&gt;at the very bottom.&lt;BR /&gt;&lt;BR /&gt;Looks like /usr/lib/pa1.1/libcl.1&lt;BR /&gt;is exactly the guy in charge.&lt;BR /&gt;&lt;BR /&gt;When you put /usr/lib in SHLIB_PATH, the wrong /usr/lib/libcl.1 is used instead.&lt;BR /&gt;&lt;BR /&gt;If&lt;BR /&gt;/usr/lib/pa1.1/libcl.1&lt;BR /&gt;is symlinked to the &lt;BR /&gt;/usr/lib/libcl.1&lt;BR /&gt;on your box, I do not understand the error :-(&lt;BR /&gt;&lt;BR /&gt;Volker</description>
      <pubDate>Sun, 17 Dec 2006 05:28:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ld-library-path-vs-shlib-path/m-p/3913903#M763823</guid>
      <dc:creator>Volker Borowski</dc:creator>
      <dc:date>2006-12-17T05:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: LD_LIBRARY_PATH -vs- SHLIB_PATH</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ld-library-path-vs-shlib-path/m-p/3913904#M763824</link>
      <description>it depends, read the manpake for 'dld.sl' to get more info on when, what is used and how.</description>
      <pubDate>Mon, 18 Dec 2006 02:53:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ld-library-path-vs-shlib-path/m-p/3913904#M763824</guid>
      <dc:creator>dirk dierickx</dc:creator>
      <dc:date>2006-12-18T02:53:47Z</dc:date>
    </item>
  </channel>
</rss>

