<?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: Dynamic loader search paths on HP-UX 11i in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/dynamic-loader-search-paths-on-hp-ux-11i/m-p/3638495#M105103</link>
    <description>You can try -Wl,+b/usr/lib&lt;BR /&gt;&lt;BR /&gt;changing /usr/lib to whatever path you want.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 30 Sep 2005 05:58:44 GMT</pubDate>
    <dc:creator>Stephen Keane</dc:creator>
    <dc:date>2005-09-30T05:58:44Z</dc:date>
    <item>
      <title>Dynamic loader search paths on HP-UX 11i</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dynamic-loader-search-paths-on-hp-ux-11i/m-p/3638494#M105102</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;My question is related to building the Perl Oracle access module (DBD::Oracle) module with the Oracle Instant Client but since my problem concerns the HP-UX 11i linker and dynamic loader search paths in general I'm posting it here.&lt;BR /&gt;&lt;BR /&gt;I'm trying to figure out how to build DBD::Oracle 1.16 with Oracle Instant Client 10gR2 on HP-UX 11i (PA-RISC). Instant client is an Oracle client library that consists of shared libraries (search paths in the library files are broken) and include files. Building the DBD::Oracle module shared library (Oracle.sl) with Instant Client goes fine but when I try to run a program using that module I get the following error:&lt;BR /&gt;&lt;BR /&gt;nebbiolo% /opt/kronodoc/perl/kb3402dr7/bin/perl ~/dbi-test.pl &lt;BR /&gt;install_driver(Oracle) failed: Can't load '/opt/kronodoc/perl/kb3402dr7/lib/site_perl/5.8.6/PA-RISC2.0-LP64/auto/DBD/Oracle/Oracle.sl' for module DBD::Oracle: No such file or directory at /opt/kronodoc/perl/kb3402dr7/lib/5.8.6/PA-RISC2.0-LP64/DynaLoader.pm line 230.&lt;BR /&gt; at (eval 1) line 3&lt;BR /&gt;Compilation failed in require at (eval 1) line 3.&lt;BR /&gt;Perhaps a required shared library or dll isn't installed where expected&lt;BR /&gt; at /home/aspa/dbi-test.pl line 19&lt;BR /&gt;&lt;BR /&gt;When I run the same program with the LD_LIBRARY_PATH set everything goes fine:&lt;BR /&gt;&lt;BR /&gt;nebbiolo% env LD_LIBRARY_PATH=/opt/kronodoc/oracle10g/instantclient_10_2/lib /op&lt;BR /&gt;t/kronodoc/perl/kb3402dr7/bin/perl ~/dbi-test.pl&lt;BR /&gt;dbh: DBI::db=HASH(0x800000010013d9e8)&lt;BR /&gt;&lt;BR /&gt;I'd like to build the Instant Client library search path into the DBD::Oracle module or Perl binary itself to avoid having to set any extra environment variables, however.&lt;BR /&gt;&lt;BR /&gt;Here's how the DBD::Oracle shared library gets linked:&lt;BR /&gt;&lt;BR /&gt;/usr/bin/ld +b "/opt/kronodoc/oracle10g/instantclient_10_2/lib"  -b +vnocompatwarnings -L/usr/local/lib -L/lib/pa20_64 Oracle.o dbdimp.o oci8.o  -o blib/arch/auto/DBD/Oracle/Oracle.sl   -L/opt/kronodoc/oracle10g/instantclient_10_2/lib -lclntsh -lnnz10 -lociei   &lt;BR /&gt;&lt;BR /&gt;Here's what ldd says about the DBD::Oracle shared library I've built:&lt;BR /&gt;&lt;BR /&gt;nebbiolo% ldd blib/arch/auto/DBD/Oracle/Oracle.sl &lt;BR /&gt;        libclntsh.sl.10.1 =&amp;gt;    /opt/kronodoc/oracle10g/instantclient_10_2/lib/libclntsh.sl.10.1&lt;BR /&gt;        libnnz10.sl =&amp;gt;  /opt/kronodoc/oracle10g/instantclient_10_2/lib/libnnz10.sl&lt;BR /&gt;        libociei.sl =&amp;gt;  /opt/kronodoc/oracle10g/instantclient_10_2/lib/libociei.sl&lt;BR /&gt;        Unable to find library 'libnnz10.sl'.&lt;BR /&gt;&lt;BR /&gt;What would be the best way to embed the shared library search path either into the DBD::Oracle shared library or the Perl binary itself? Are there any other solutions which don't involve setting environment variables at run-time?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;br. aspa</description>
      <pubDate>Thu, 29 Sep 2005 14:22:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dynamic-loader-search-paths-on-hp-ux-11i/m-p/3638494#M105102</guid>
      <dc:creator>marko asplund</dc:creator>
      <dc:date>2005-09-29T14:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic loader search paths on HP-UX 11i</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dynamic-loader-search-paths-on-hp-ux-11i/m-p/3638495#M105103</link>
      <description>You can try -Wl,+b/usr/lib&lt;BR /&gt;&lt;BR /&gt;changing /usr/lib to whatever path you want.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Sep 2005 05:58:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dynamic-loader-search-paths-on-hp-ux-11i/m-p/3638495#M105103</guid>
      <dc:creator>Stephen Keane</dc:creator>
      <dc:date>2005-09-30T05:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic loader search paths on HP-UX 11i</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dynamic-loader-search-paths-on-hp-ux-11i/m-p/3638496#M105104</link>
      <description>The +b linker option is there on the above command line:&lt;BR /&gt;&lt;BR /&gt;/usr/bin/ld +b "/opt/kronodoc/oracle10g/instantclient_10_2/lib" -b +vnocompatwarnings -L/usr/local/lib -L/lib/pa20_64 Oracle.o dbdimp.o oci8.o -o blib/arch/auto/DBD/Oracle/Oracle.sl -L/opt/kronodoc/oracle10g/instantclient_10_2/lib -lclntsh -lnnz10 -lociei &lt;BR /&gt;&lt;BR /&gt;I don't understand why libnnz10.sl is listed twice when I check the list of linked libraries for Oracle.sl. With the first occurrence the linker finds the library but fails to find the second occurence.&lt;BR /&gt;&lt;BR /&gt;br. aspa</description>
      <pubDate>Fri, 30 Sep 2005 07:09:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dynamic-loader-search-paths-on-hp-ux-11i/m-p/3638496#M105104</guid>
      <dc:creator>marko asplund</dc:creator>
      <dc:date>2005-09-30T07:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic loader search paths on HP-UX 11i</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dynamic-loader-search-paths-on-hp-ux-11i/m-p/3638497#M105105</link>
      <description>'libnnz10.sl' will be listed twice if it is linked into the executable directky AND is linked into one of the shared libraries linked into your executable. The +b option should also be applied to any shared libraries that link in other (non-HP) shared libraries too.</description>
      <pubDate>Fri, 30 Sep 2005 07:36:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dynamic-loader-search-paths-on-hp-ux-11i/m-p/3638497#M105105</guid>
      <dc:creator>Stephen Keane</dc:creator>
      <dc:date>2005-09-30T07:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic loader search paths on HP-UX 11i</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dynamic-loader-search-paths-on-hp-ux-11i/m-p/3638498#M105106</link>
      <description>The library dependencies in this case are the following:&lt;BR /&gt;- Perl depends on Oracle.sl (DBD::Oracle driver)&lt;BR /&gt;- Oracle.sl is linked with libclntsh.sl (libnnz10.sl and libociei.sl can be linked in)&lt;BR /&gt;-  libclntsh.sl apparently depends on libnnz10.sl and libociei.sl&lt;BR /&gt;&lt;BR /&gt;I'm free to do any necessary build process modifications for Perl and Oracle.sl but the Oracle libraries (libclntsh.sl, libnnz10.sl and libociei.sl) are provided by Oracle and I don't have the source code for them.&lt;BR /&gt;&lt;BR /&gt;Is adding the correct library search path to all the libraries including all the Oracle provided libraries required? Can I somehow modify or add a search path to the Oracle libraries?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;aspa</description>
      <pubDate>Sun, 02 Oct 2005 06:07:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dynamic-loader-search-paths-on-hp-ux-11i/m-p/3638498#M105106</guid>
      <dc:creator>marko asplund</dc:creator>
      <dc:date>2005-10-02T06:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic loader search paths on HP-UX 11i</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dynamic-loader-search-paths-on-hp-ux-11i/m-p/3638499#M105107</link>
      <description>Hi Marko,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=929331" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=929331&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;check posts of Alex Glennie.&lt;BR /&gt;&lt;BR /&gt;HTH.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Fabio</description>
      <pubDate>Sun, 02 Oct 2005 06:55:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dynamic-loader-search-paths-on-hp-ux-11i/m-p/3638499#M105107</guid>
      <dc:creator>Fabio Ettore</dc:creator>
      <dc:date>2005-10-02T06:55:08Z</dc:date>
    </item>
  </channel>
</rss>

