<?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: Library Load Error when moved to different box in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/library-load-error-when-moved-to-different-box/m-p/2657018#M722908</link>
    <description>Yup.  I believe that anything you do with chatr you can do with ld.&lt;BR /&gt;&lt;BR /&gt;The switches for ld are similar (i.e. man ld -see +b, +s).&lt;BR /&gt;&lt;BR /&gt;You can pass the linker switches from the compiler by using -Wx, arglist    &lt;BR /&gt;&lt;BR /&gt; -Wx,arglist    Pass the comma-separated argument[s] in arglist to&lt;BR /&gt;                     subprocess x.  The -W option specification allows&lt;BR /&gt;                     additional, implementation-specific options to be&lt;BR /&gt;                     recognized by the compiler driver.  For example,&lt;BR /&gt;&lt;BR /&gt;                          -Wl,-a,archive&lt;BR /&gt;&lt;BR /&gt;                     causes the linker to link with archive libraries&lt;BR /&gt;                     instead of with shared libraries.  See ld(1) for&lt;BR /&gt;                     details.&lt;BR /&gt;</description>
    <pubDate>Fri, 01 Feb 2002 19:35:17 GMT</pubDate>
    <dc:creator>Christopher Caldwell</dc:creator>
    <dc:date>2002-02-01T19:35:17Z</dc:date>
    <item>
      <title>Library Load Error when moved to different box</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/library-load-error-when-moved-to-different-box/m-p/2657015#M722905</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I am working on an application that is called from JAVA via JNI calls.  When I test on my own machine, everything works fine, but as soon as I move the shared libs to another box, the application falls over and complains about missing libraries due to the fact that the libraries that I linked with show up in the messages as hard-coded paths.  In the AIX environment I could use a -nolibpath flag on the linker command line that would ignore any paths and look for libraries using the LIBPATH environment variable instead.&lt;BR /&gt;&lt;BR /&gt;Any ideas from anyone out there?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for your help...&lt;BR /&gt;&lt;BR /&gt;Steve Colbert</description>
      <pubDate>Fri, 01 Feb 2002 12:46:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/library-load-error-when-moved-to-different-box/m-p/2657015#M722905</guid>
      <dc:creator>steveo622</dc:creator>
      <dc:date>2002-02-01T12:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Library Load Error when moved to different box</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/library-load-error-when-moved-to-different-box/m-p/2657016#M722906</link>
      <description>Use chatr to examine the current library paths and options (can I use SHLIB_PATH; can I not use SHLIB_PATH -- embed the path to libraries; don't embed the path to libraries, etc.)&lt;BR /&gt;&lt;BR /&gt;When chatr shows you what the problem is, use chatr to setup the shared library to fix the problem.&lt;BR /&gt;&lt;BR /&gt;e.g.&lt;BR /&gt;&lt;BR /&gt;chatr +s enable myfile.sl&lt;BR /&gt;&lt;BR /&gt;enables the use of SHLIB_PATH (watch out for the +b setting; the order matters).&lt;BR /&gt;&lt;BR /&gt;man chatr (its a snoozer, but you really need to if you're going to be using it).</description>
      <pubDate>Fri, 01 Feb 2002 13:14:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/library-load-error-when-moved-to-different-box/m-p/2657016#M722906</guid>
      <dc:creator>Christopher Caldwell</dc:creator>
      <dc:date>2002-02-01T13:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Library Load Error when moved to different box</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/library-load-error-when-moved-to-different-box/m-p/2657017#M722907</link>
      <description>Thanks for the help.&lt;BR /&gt;&lt;BR /&gt;Is there any way that I can set this switch within the build of the libraries by using some linker or compiler switch?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Steve Colbert</description>
      <pubDate>Fri, 01 Feb 2002 14:32:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/library-load-error-when-moved-to-different-box/m-p/2657017#M722907</guid>
      <dc:creator>steveo622</dc:creator>
      <dc:date>2002-02-01T14:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Library Load Error when moved to different box</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/library-load-error-when-moved-to-different-box/m-p/2657018#M722908</link>
      <description>Yup.  I believe that anything you do with chatr you can do with ld.&lt;BR /&gt;&lt;BR /&gt;The switches for ld are similar (i.e. man ld -see +b, +s).&lt;BR /&gt;&lt;BR /&gt;You can pass the linker switches from the compiler by using -Wx, arglist    &lt;BR /&gt;&lt;BR /&gt; -Wx,arglist    Pass the comma-separated argument[s] in arglist to&lt;BR /&gt;                     subprocess x.  The -W option specification allows&lt;BR /&gt;                     additional, implementation-specific options to be&lt;BR /&gt;                     recognized by the compiler driver.  For example,&lt;BR /&gt;&lt;BR /&gt;                          -Wl,-a,archive&lt;BR /&gt;&lt;BR /&gt;                     causes the linker to link with archive libraries&lt;BR /&gt;                     instead of with shared libraries.  See ld(1) for&lt;BR /&gt;                     details.&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Feb 2002 19:35:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/library-load-error-when-moved-to-different-box/m-p/2657018#M722908</guid>
      <dc:creator>Christopher Caldwell</dc:creator>
      <dc:date>2002-02-01T19:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: Library Load Error when moved to different box</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/library-load-error-when-moved-to-different-box/m-p/2657019#M722909</link>
      <description>Thanks Christopher.  Your responses were excellent!  YOu get a '10'!!!!</description>
      <pubDate>Fri, 01 Feb 2002 19:53:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/library-load-error-when-moved-to-different-box/m-p/2657019#M722909</guid>
      <dc:creator>steveo622</dc:creator>
      <dc:date>2002-02-01T19:53:21Z</dc:date>
    </item>
  </channel>
</rss>

