<?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 problems with dynamic linking in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-dynamic-linking/m-p/2732668#M65787</link>
    <description>i've installed the ActivePerl 5.6 build 627 on a HP-UX 11.00 system and now i'm trying to compile DBD::Oracle v1.12. the module compiles but 'make test' fails with the following error message:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; gmake test&lt;BR /&gt;PERL_DL_NONLAZY=1 /opt/perl/bin/perl -Iblib/arch -Iblib/lib&lt;BR /&gt;-I/opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi -I/opt/perl/lib/5.6.1 -e 'use&lt;BR /&gt;Test::Harness qw(&amp;amp;runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t&lt;BR /&gt;t/base............../usr/lib/dld.sl: Can't shl_load() a library containing &lt;BR /&gt;Thread Local Storage: /usr/lib/libcl.2&lt;BR /&gt;/usr/lib/dld.sl: Exec format error&lt;BR /&gt;Failed to load Oracle extension and/or shared libraries:&lt;BR /&gt;install_driver(Oracle) failed: Can't load 'blib/arch/auto/DBD/Oracle/Oracle.sl'&lt;BR /&gt;for module DBD::Oracle: Exec format error at&lt;BR /&gt;/opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi/DynaLoader.pm line 206.&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 t/base.t line 19&lt;BR /&gt;The remaining tests will probably also fail with the same error.&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;(full typescript attached). i had this same problem with  the standard, manually built Perl 5.005_03 but linking Perl with pthread and cl libraries&lt;BR /&gt;(-Dlibs='-lpthread -lcl') solved it. has anyone managed to solve this problem with ActivePerl? i'm having problems understanding the dynamic linker in 11.00, why can't it load the libcl.sl unless the Perl binary has been linked with this library?&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 28 May 2002 14:50:53 GMT</pubDate>
    <dc:creator>marko asplund</dc:creator>
    <dc:date>2002-05-28T14:50:53Z</dc:date>
    <item>
      <title>problems with dynamic linking</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-dynamic-linking/m-p/2732668#M65787</link>
      <description>i've installed the ActivePerl 5.6 build 627 on a HP-UX 11.00 system and now i'm trying to compile DBD::Oracle v1.12. the module compiles but 'make test' fails with the following error message:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; gmake test&lt;BR /&gt;PERL_DL_NONLAZY=1 /opt/perl/bin/perl -Iblib/arch -Iblib/lib&lt;BR /&gt;-I/opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi -I/opt/perl/lib/5.6.1 -e 'use&lt;BR /&gt;Test::Harness qw(&amp;amp;runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t&lt;BR /&gt;t/base............../usr/lib/dld.sl: Can't shl_load() a library containing &lt;BR /&gt;Thread Local Storage: /usr/lib/libcl.2&lt;BR /&gt;/usr/lib/dld.sl: Exec format error&lt;BR /&gt;Failed to load Oracle extension and/or shared libraries:&lt;BR /&gt;install_driver(Oracle) failed: Can't load 'blib/arch/auto/DBD/Oracle/Oracle.sl'&lt;BR /&gt;for module DBD::Oracle: Exec format error at&lt;BR /&gt;/opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi/DynaLoader.pm line 206.&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 t/base.t line 19&lt;BR /&gt;The remaining tests will probably also fail with the same error.&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;(full typescript attached). i had this same problem with  the standard, manually built Perl 5.005_03 but linking Perl with pthread and cl libraries&lt;BR /&gt;(-Dlibs='-lpthread -lcl') solved it. has anyone managed to solve this problem with ActivePerl? i'm having problems understanding the dynamic linker in 11.00, why can't it load the libcl.sl unless the Perl binary has been linked with this library?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 28 May 2002 14:50:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-dynamic-linking/m-p/2732668#M65787</guid>
      <dc:creator>marko asplund</dc:creator>
      <dc:date>2002-05-28T14:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: problems with dynamic linking</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-dynamic-linking/m-p/2732669#M65788</link>
      <description>What's your SHLIB_PATH?</description>
      <pubDate>Tue, 28 May 2002 15:39:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-dynamic-linking/m-p/2732669#M65788</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2002-05-28T15:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: problems with dynamic linking</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-dynamic-linking/m-p/2732670#M65789</link>
      <description>Also read this thread: &lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xaed691ccb36bd611abdb0090277a778c,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xaed691ccb36bd611abdb0090277a778c,00.html&lt;/A&gt;</description>
      <pubDate>Tue, 28 May 2002 15:43:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-dynamic-linking/m-p/2732670#M65789</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2002-05-28T15:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: problems with dynamic linking</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-dynamic-linking/m-p/2732671#M65790</link>
      <description>originally SHLIB_PATH was not set at all but i tried setting it to /usr/lib but that didn't help and enabled SHLIB_PATH in DBD::Oracle (chatr +s enable blib/arch/auto/DBD/Oracle/Oracle.sl).&lt;BR /&gt;&lt;BR /&gt;i also tried changing the Makefile so that Oracle.sl would be linked with libcl.sl. after doing this 'chatr Oracle.sl' says:&lt;BR /&gt;&lt;BR /&gt;[390] % chatr blib/arch/auto/DBD/Oracle/Oracle.sl&lt;BR /&gt;blib/arch/auto/DBD/Oracle/Oracle.sl: &lt;BR /&gt;         shared library &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;             dynamic   /usr/lib/libcl.2&lt;BR /&gt;             dynamic   /opt/oracle/u01/app/oracle/product/8.1.7/lib//libclntsh.sl.8.0&lt;BR /&gt;             dynamic   /opt/oracle/u01/app/oracle/product/8.1.7/lib//libwtc8.sl&lt;BR /&gt;             dynamic   /usr/lib/librt.2&lt;BR /&gt;             dynamic   /usr/lib/libpthread.1&lt;BR /&gt;             dynamic   /usr/lib/libdld.2&lt;BR /&gt;             dynamic   /usr/lib/libm.2&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;but the same problems still remains.&lt;BR /&gt;&lt;BR /&gt;i also read the ITRC thread reference but unfortunately i couldn't figure out the connection to my problem.&lt;BR /&gt;</description>
      <pubDate>Wed, 29 May 2002 09:02:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-dynamic-linking/m-p/2732671#M65790</guid>
      <dc:creator>marko asplund</dc:creator>
      <dc:date>2002-05-29T09:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: problems with dynamic linking</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-dynamic-linking/m-p/2732672#M65791</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;make sure you have the latest ld patch&lt;BR /&gt;&lt;BR /&gt;PHSS_26262&lt;BR /&gt;&lt;BR /&gt;Then use LD_PRELOAD funtionality.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The LD_PRELOAD environment variable allows you to load additional shared&lt;BR /&gt;libraries at program startup. LD_PRELOAD provides a colon- separated or&lt;BR /&gt;space-separated list of shared libraries that the dynamic loader can&lt;BR /&gt;interpret. The dynamic loader, dld.sl, loads the specified shared libraries&lt;BR /&gt;as if the program had been linked explicitly with the shared libraries in&lt;BR /&gt;LD_PRELOAD before any other dependents of the program.&lt;BR /&gt;&lt;BR /&gt;see man dld.sl after the patch&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;         Steve Steel</description>
      <pubDate>Wed, 29 May 2002 12:01:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-dynamic-linking/m-p/2732672#M65791</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2002-05-29T12:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: problems with dynamic linking</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-dynamic-linking/m-p/2732673#M65792</link>
      <description>I've set my SHLIB_PATH to include  /opt/oracle/u01/app/oracle/product/8.1.7/lib/ and that helped a lot</description>
      <pubDate>Wed, 29 May 2002 12:19:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-dynamic-linking/m-p/2732673#M65792</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2002-05-29T12:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: problems with dynamic linking</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-dynamic-linking/m-p/2732674#M65793</link>
      <description>setting LD_PRELOAD to include&lt;BR /&gt;/usr/lib/libcl.2 solved the problem! thanks.&lt;BR /&gt;&lt;BR /&gt;i only have PHSS_24303 installed but it has LD_PRELOAD support and seems to be working.</description>
      <pubDate>Wed, 29 May 2002 12:27:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-dynamic-linking/m-p/2732674#M65793</guid>
      <dc:creator>marko asplund</dc:creator>
      <dc:date>2002-05-29T12:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: problems with dynamic linking</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-dynamic-linking/m-p/2732675#M65794</link>
      <description>Thanks very much for a very useful thread. Perhaps you can help me a tad more.&lt;BR /&gt;&lt;BR /&gt;Using the patch and setting LD_PRELOAD before installing DBD:Oracle worked fine, however, LD_PRELOAD needs to be set in the user environment before any perl calls to it. This conflicts with another 3rd party executable which core dumps when this is set.&lt;BR /&gt;&lt;BR /&gt;As this is a production system and dont want to install compilers etc, ideally I am looking for a 5.6.1 binary distribution for HP which has been compiled with the Dlibs='-lpthread -lcl' option set. &lt;BR /&gt;&lt;BR /&gt;Please can anyone point me to one?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;Adrian</description>
      <pubDate>Tue, 20 Aug 2002 10:46:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-dynamic-linking/m-p/2732675#M65794</guid>
      <dc:creator>Adrian Turner_1</dc:creator>
      <dc:date>2002-08-20T10:46:35Z</dc:date>
    </item>
  </channel>
</rss>

