<?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: problems with shared library in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-shared-library/m-p/4678255#M658628</link>
    <description>&amp;gt;so why for default it try to make this lookup?&lt;BR /&gt;&lt;BR /&gt;It depends on the link line.&lt;BR /&gt;&lt;BR /&gt;You probably have the whole path:&lt;BR /&gt;/usr/local/lib/libxml2.sl&lt;BR /&gt;&lt;BR /&gt;Instead of:&lt;BR /&gt;-L/usr/local/lib -lxml2</description>
    <pubDate>Tue, 24 Aug 2010 19:12:17 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2010-08-24T19:12:17Z</dc:date>
    <item>
      <title>problems with shared library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-shared-library/m-p/4678250#M658623</link>
      <description>Hi,&lt;BR /&gt;I'm trying to distruite a my application but i have problem with shared  libraries.&lt;BR /&gt;&lt;BR /&gt;I can move only  some libraries in my SHLIB_PATH.. but others give me error &lt;BR /&gt;&lt;BR /&gt;this is error with ldd ..&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ldd -s /usr/Systems/EML_1-9.1.0/ZICAccessManager/modules/php-cgi_zicam_enh&lt;BR /&gt;         =&amp;gt;&lt;BR /&gt;&lt;BR /&gt;  find library=/usr/lib/libc.2; required by /usr/Systems/EML_1-9.1.0/ZICAccessManager/modules/php-cgi_zicam_enh&lt;BR /&gt;    search path=/usr/local/lib  (RPATH)&lt;BR /&gt;    trying path=/usr/local/lib/libc.2&lt;BR /&gt;    search path=/usr/Systems/EML_1-9.1.0/ZICAccessManager/scripts/../lib  (SHLIB_PATH)&lt;BR /&gt;    trying path=/usr/Systems/EML_1-9.1.0/ZICAccessManager/scripts/../lib/libc.2&lt;BR /&gt;    trying path=/usr/lib/libc.2  (absolute)&lt;BR /&gt;        /usr/lib/libc.2 =&amp;gt;      /usr/lib/libc.2&lt;BR /&gt;&lt;BR /&gt;  find library=/usr/lib/libdld.2; required by /usr/lib/libc.2&lt;BR /&gt;    search path=/usr/local/lib  (RPATH)&lt;BR /&gt;    trying path=/usr/local/lib/libdld.2&lt;BR /&gt;    search path=/usr/Systems/EML_1-9.1.0/ZICAccessManager/scripts/../lib  (SHLIB_PATH)&lt;BR /&gt;    trying path=/usr/Systems/EML_1-9.1.0/ZICAccessManager/scripts/../lib/libdld.2&lt;BR /&gt;    trying path=/usr/lib/libdld.2  (absolute)&lt;BR /&gt;        /usr/lib/libdld.2 =&amp;gt;    /usr/lib/libdld.2&lt;BR /&gt;&lt;BR /&gt;  find library=/usr/lib/libc.2; required by implicit load&lt;BR /&gt;    search path=/usr/local/lib  (RPATH)&lt;BR /&gt;    trying path=/usr/local/lib/libc.2&lt;BR /&gt;    search path=/usr/Systems/EML_1-9.1.0/ZICAccessManager/scripts/../lib  (SHLIB_PATH)&lt;BR /&gt;    trying path=/usr/Systems/EML_1-9.1.0/ZICAccessManager/scripts/../lib/libc.2&lt;BR /&gt;    trying path=/usr/lib/libc.2  (absolute)&lt;BR /&gt;        /usr/lib/libc.2 =&amp;gt;      /usr/lib/libc.2&lt;BR /&gt;&lt;BR /&gt;  find library=/usr/local/lib/libiconv.sl; required by /usr/Systems/EML_1-9.1.0/ZICAccessManager/modules/php-cgi_zicam_enh&lt;BR /&gt;        /usr/local/lib/libiconv.sl =&amp;gt;   /usr/local/lib/libiconv.sl&lt;BR /&gt;&lt;BR /&gt;  find library=/usr/lib/libc.2; required by /usr/local/lib/libiconv.sl&lt;BR /&gt;    search path=/usr/local/lib  (RPATH)&lt;BR /&gt;    trying path=/usr/local/lib/libc.2&lt;BR /&gt;    search path=/usr/Systems/EML_1-9.1.0/ZICAccessManager/scripts/../lib  (SHLIB_PATH)&lt;BR /&gt;    trying path=/usr/Systems/EML_1-9.1.0/ZICAccessManager/scripts/../lib/libc.2&lt;BR /&gt;    search path=/usr/local/lib  (RPATH)&lt;BR /&gt;    trying path=/usr/local/lib/libc.2&lt;BR /&gt;    trying path=/usr/lib/libc.2  (absolute)&lt;BR /&gt;        /usr/lib/libc.2 =&amp;gt;      /usr/lib/libc.2&lt;BR /&gt;&lt;BR /&gt;  find library=/usr/lib/libpthread.1; required by /usr/Systems/EML_1-9.1.0/ZICAccessManager/modules/php-cgi_zicam_enh&lt;BR /&gt;    search path=/usr/local/lib  (RPATH)&lt;BR /&gt;    trying path=/usr/local/lib/libpthread.1&lt;BR /&gt;    search path=/usr/Systems/EML_1-9.1.0/ZICAccessManager/scripts/../lib  (SHLIB_PATH)&lt;BR /&gt;    trying path=/usr/Systems/EML_1-9.1.0/ZICAccessManager/scripts/../lib/libpthread.1&lt;BR /&gt;    trying path=/usr/lib/libpthread.1  (absolute)&lt;BR /&gt;        /usr/lib/libpthread.1 =&amp;gt;        /usr/lib/libpthread.1&lt;BR /&gt;&lt;BR /&gt;  find library=/usr/local/lib/libxml2.sl; required by /usr/Systems/EML_1-9.1.0/ZICAccessManager/modules/php-cgi_zicam_enh&lt;BR /&gt;/usr/lib/dld.sl: Can't open shared library: /usr/local/lib/libxml2.sl&lt;BR /&gt;/usr/lib/dld.sl: No such file or directory&lt;BR /&gt;&lt;BR /&gt;I have moved libxml2.sl under SHLIB_PATH=/usr/Systems/EML_1-9.1.0/ZICAccessManager/scripts/../lib&lt;BR /&gt;&lt;BR /&gt;but i don't understand why he don't try to find it.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;clould you help me pls?&lt;BR /&gt;&lt;BR /&gt;regars &lt;BR /&gt;Al&lt;BR /&gt;</description>
      <pubDate>Mon, 23 Aug 2010 13:22:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-shared-library/m-p/4678250#M658623</guid>
      <dc:creator>albino_1</dc:creator>
      <dc:date>2010-08-23T13:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: problems with shared library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-shared-library/m-p/4678251#M658624</link>
      <description>What does "chatr /usr/Systems/EML_1-9.1.0/ZICAccessManager/modules/php-cgi_zicam_enh" show?&lt;BR /&gt;&lt;BR /&gt;Is SHLIB_PATH enabled?&lt;BR /&gt;&lt;BR /&gt;Any reason you don't simplify the path to:&lt;BR /&gt;SHLIB_PATH=/usr/Systems/EML_1-9.1.0/ZICAccessManager/lib&lt;BR /&gt;&lt;BR /&gt;What does "file /usr/Systems/EML_1-9.1.0/ZICAccessManager/lib/libxml2.sl" show?</description>
      <pubDate>Mon, 23 Aug 2010 18:02:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-shared-library/m-p/4678251#M658624</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-08-23T18:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: problems with shared library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-shared-library/m-p/4678252#M658625</link>
      <description>thx for your fast answer ...&lt;BR /&gt;&lt;BR /&gt;file /usr/Systems/EML_1-9.1.0/ZICAccessManager/lib/libxml2.sl&lt;BR /&gt;/usr/Systems/EML_1-9.1.0/ZICAccessManager/lib/libxml2.sl:       PA-RISC2.0 shared library -not stripped&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;Any reason you don't simplify the path to:&lt;BR /&gt;SHLIB_PATH=/usr/Systems/EML_1-9.1.0/ZICAccessManager/lib&lt;BR /&gt;&lt;BR /&gt;I cannot !&lt;BR /&gt;&lt;BR /&gt;chatr /usr/Systems/EML_1-9.1.0/ZICAccessManager/modules/php-cgi_zicam_enh&lt;BR /&gt;/usr/Systems/EML_1-9.1.0/ZICAccessManager/modules/php-cgi_zicam_enh: &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  enabled   first  /usr/local/lib&lt;BR /&gt;         shared library list:&lt;BR /&gt;             dynamic   /usr/local/lib/libz.sl&lt;BR /&gt;             dynamic   /usr/lib/libm.2&lt;BR /&gt;             dynamic   /usr/lib/libnsl.1&lt;BR /&gt;             static    /usr/local/lib/libxml2.sl&lt;BR /&gt;             dynamic   /usr/lib/libpthread.1&lt;BR /&gt;             static    /usr/local/lib/libiconv.sl&lt;BR /&gt;             dynamic   /usr/lib/libc.2&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;         explicit unloading enabled&lt;BR /&gt;         runtime checks 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 enabled&lt;BR /&gt;         shared library private mapping disabled&lt;BR /&gt;         shared library text merging disabled&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I think that the problem is that libxml2.sl is linked  shared static  :((&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Aug 2010 05:21:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-shared-library/m-p/4678252#M658625</guid>
      <dc:creator>albino_1</dc:creator>
      <dc:date>2010-08-24T05:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: problems with shared library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-shared-library/m-p/4678253#M658626</link>
      <description>&amp;gt;static /usr/local/lib/libxml2.sl&lt;BR /&gt;&amp;gt;static /usr/local/lib/libiconv.sl&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I think that the problem is that libxml2.sl is linked shared static&lt;BR /&gt;&lt;BR /&gt;Well, linked with an absolute path, not subject to run-time path lookup:&lt;BR /&gt;   ... /usr/local/lib/libxml2.sl&lt;BR /&gt;Instead of: -lxml2&lt;BR /&gt;&lt;BR /&gt;You can fix this with:&lt;BR /&gt;chatr -l /usr/local/lib/libxml2.sl</description>
      <pubDate>Tue, 24 Aug 2010 06:19:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-shared-library/m-p/4678253#M658626</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-08-24T06:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: problems with shared library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-shared-library/m-p/4678254#M658627</link>
      <description>&amp;gt;&amp;gt;Well, linked with an absolute path, not subject to run-time path lookup:&lt;BR /&gt;&lt;BR /&gt;so why for default it try to make this lookup?&lt;BR /&gt;&lt;BR /&gt;by the way .. thx a lot you solved my problem !!!&lt;BR /&gt;&lt;BR /&gt;Al</description>
      <pubDate>Tue, 24 Aug 2010 07:35:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-shared-library/m-p/4678254#M658627</guid>
      <dc:creator>albino_1</dc:creator>
      <dc:date>2010-08-24T07:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: problems with shared library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-shared-library/m-p/4678255#M658628</link>
      <description>&amp;gt;so why for default it try to make this lookup?&lt;BR /&gt;&lt;BR /&gt;It depends on the link line.&lt;BR /&gt;&lt;BR /&gt;You probably have the whole path:&lt;BR /&gt;/usr/local/lib/libxml2.sl&lt;BR /&gt;&lt;BR /&gt;Instead of:&lt;BR /&gt;-L/usr/local/lib -lxml2</description>
      <pubDate>Tue, 24 Aug 2010 19:12:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-shared-library/m-p/4678255#M658628</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-08-24T19:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: problems with shared library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-shared-library/m-p/4678256#M658629</link>
      <description>Yes .. you are right .. sorry :)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;by the way ... all is right now!!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;thanks a lot&lt;BR /&gt;&lt;BR /&gt;Al</description>
      <pubDate>Wed, 25 Aug 2010 05:29:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-shared-library/m-p/4678256#M658629</guid>
      <dc:creator>albino_1</dc:creator>
      <dc:date>2010-08-25T05:29:02Z</dc:date>
    </item>
  </channel>
</rss>

