<?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 Perl with shared libperl.sl in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-with-shared-libperl-sl/m-p/2673342#M723077</link>
    <description>i'm trying to build a Perl v5.005_03&lt;BR /&gt;binary with a shared libperl.sl on&lt;BR /&gt;HP-UX 11.00. building and installing&lt;BR /&gt;goes fine but the installed Perl binary is linked against the libperl.sl&lt;BR /&gt;located in the build and not the installation directory.&lt;BR /&gt;&lt;BR /&gt;chatr /opt/local/perl/perl-5.005_03-a6/bin/perl | grep libperl&lt;BR /&gt;&lt;BR /&gt;says&lt;BR /&gt;&lt;BR /&gt;static    /home/foo/tmp/perl/perl5.005_03/libperl.sl&lt;BR /&gt;&lt;BR /&gt;when i delete the build directory and try to execute Perl i get the following error message:&lt;BR /&gt;&lt;BR /&gt;/usr/lib/dld.sl: Can't open shared library: /home/aspa/tmp/perl/perl5.005_03/libperl.sl&lt;BR /&gt;/usr/lib/dld.sl: No such file or directory&lt;BR /&gt;Abort (core dumped)&lt;BR /&gt;&lt;BR /&gt;Perl has been linked against the following libraries: -lpthread -lcl -lm. these seem to be required when using DBI &amp;amp; DBD::Oracle.&lt;BR /&gt;&lt;BR /&gt;how do i correctly build a Perl binary with a shared libperl.sl on HP-UX?&lt;BR /&gt;</description>
    <pubDate>Thu, 28 Feb 2002 10:57:50 GMT</pubDate>
    <dc:creator>marko asplund</dc:creator>
    <dc:date>2002-02-28T10:57:50Z</dc:date>
    <item>
      <title>Perl with shared libperl.sl</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-with-shared-libperl-sl/m-p/2673342#M723077</link>
      <description>i'm trying to build a Perl v5.005_03&lt;BR /&gt;binary with a shared libperl.sl on&lt;BR /&gt;HP-UX 11.00. building and installing&lt;BR /&gt;goes fine but the installed Perl binary is linked against the libperl.sl&lt;BR /&gt;located in the build and not the installation directory.&lt;BR /&gt;&lt;BR /&gt;chatr /opt/local/perl/perl-5.005_03-a6/bin/perl | grep libperl&lt;BR /&gt;&lt;BR /&gt;says&lt;BR /&gt;&lt;BR /&gt;static    /home/foo/tmp/perl/perl5.005_03/libperl.sl&lt;BR /&gt;&lt;BR /&gt;when i delete the build directory and try to execute Perl i get the following error message:&lt;BR /&gt;&lt;BR /&gt;/usr/lib/dld.sl: Can't open shared library: /home/aspa/tmp/perl/perl5.005_03/libperl.sl&lt;BR /&gt;/usr/lib/dld.sl: No such file or directory&lt;BR /&gt;Abort (core dumped)&lt;BR /&gt;&lt;BR /&gt;Perl has been linked against the following libraries: -lpthread -lcl -lm. these seem to be required when using DBI &amp;amp; DBD::Oracle.&lt;BR /&gt;&lt;BR /&gt;how do i correctly build a Perl binary with a shared libperl.sl on HP-UX?&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Feb 2002 10:57:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-with-shared-libperl-sl/m-p/2673342#M723077</guid>
      <dc:creator>marko asplund</dc:creator>
      <dc:date>2002-02-28T10:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Perl with shared libperl.sl</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-with-shared-libperl-sl/m-p/2673343#M723078</link>
      <description>Try the following sequence of commands:&lt;BR /&gt;&lt;BR /&gt;1. Either add the libperl library path to the SHLIB_PATH environment variable, or alternatively you can re-link the executable specifying the +b &lt;PATH&gt; option to ld to include the appropriate run-time path to search.&lt;BR /&gt;&lt;BR /&gt;2. Enable the library for runtime path lookup:&lt;BR /&gt;&lt;BR /&gt;$ chatr -l &lt;LIBRARY&gt; &lt;EXECUTABLE&gt;&lt;BR /&gt;&lt;BR /&gt;3. Make sure the run-time path lookup options are enabled:&lt;BR /&gt;&lt;BR /&gt;$ chatr +s enable +b enable &lt;EXECUTABLE&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps!&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Steve&lt;/EXECUTABLE&gt;&lt;/EXECUTABLE&gt;&lt;/LIBRARY&gt;&lt;/PATH&gt;</description>
      <pubDate>Thu, 28 Feb 2002 11:29:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-with-shared-libperl-sl/m-p/2673343#M723078</guid>
      <dc:creator>Steven Gillard_2</dc:creator>
      <dc:date>2002-02-28T11:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: Perl with shared libperl.sl</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-with-shared-libperl-sl/m-p/2673344#M723079</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;look at&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://pxr.perl.org/source/INSTALL" target="_blank"&gt;http://pxr.perl.org/source/INSTALL&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;947 &lt;BR /&gt;948 You can often recognize failures to build/use a shared libperl from error&lt;BR /&gt;949 messages complaining about a missing libperl.so (or libperl.sl in HP-UX),&lt;BR /&gt;950 for example:&lt;BR /&gt;951 18126:./miniperl: /sbin/loader: Fatal Error: cannot map libperl.so&lt;BR /&gt;952 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;         Steve Steel</description>
      <pubDate>Thu, 28 Feb 2002 12:33:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-with-shared-libperl-sl/m-p/2673344#M723079</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2002-02-28T12:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Perl with shared libperl.sl</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-with-shared-libperl-sl/m-p/2673345#M723080</link>
      <description>thanks for your answers. i recompiled Perl (without the embedded path list) and tried adding the library path to SHLIB_PATH. i enabled SHLIB_PATH lookups with&lt;BR /&gt;&lt;BR /&gt;chatr +s enable /opt/local/perl/perl-5.005_03-d1/bin/perl&lt;BR /&gt;&lt;BR /&gt;and set SHLIB_PATH to /opt/local/perl/perl-5.005_03-d1/lib/5.00503/PA-RISC2.0/CORE&lt;BR /&gt;&lt;BR /&gt;chatr says:&lt;BR /&gt;&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  disabled  first  Not Defined&lt;BR /&gt;         shared library list:&lt;BR /&gt;             static    /home/aspa/tmp/perl/perl5.005_03-d1/libperl.sl&lt;BR /&gt;&lt;BR /&gt;but perl still won't start:&lt;BR /&gt;&lt;BR /&gt;/usr/lib/dld.sl: Can't open shared library: /home/aspa/tmp/perl/perl5.005_03-d1/libperl.sl&lt;BR /&gt;/usr/lib/dld.sl: No such file or directory&lt;BR /&gt;Abort (core dumped)&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Feb 2002 13:36:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-with-shared-libperl-sl/m-p/2673345#M723080</guid>
      <dc:creator>marko asplund</dc:creator>
      <dc:date>2002-02-28T13:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Perl with shared libperl.sl</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-with-shared-libperl-sl/m-p/2673346#M723081</link>
      <description>The problem is the libperl library has not been enabled for runtime path lookup in the executable.  I can see this because chatr lists it as "static" - it should be "dynamic".  This occurs when the library is linked with -l:&lt;FULL pathname=""&gt; instead of just -l&lt;NAME&gt;.&lt;BR /&gt;&lt;BR /&gt;As per my earlier post, run the following command to fix this:&lt;BR /&gt;&lt;BR /&gt;$ chatr -l &lt;LIBRARY&gt; &lt;EXECUTABLE&gt; &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Steve&lt;/EXECUTABLE&gt;&lt;/LIBRARY&gt;&lt;/NAME&gt;&lt;/FULL&gt;</description>
      <pubDate>Thu, 28 Feb 2002 13:53:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-with-shared-libperl-sl/m-p/2673346#M723081</guid>
      <dc:creator>Steven Gillard_2</dc:creator>
      <dc:date>2002-02-28T13:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: Perl with shared libperl.sl</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-with-shared-libperl-sl/m-p/2673347#M723082</link>
      <description>ok, now it works, thanks! my problem was that i specified the library path in the installation directory though it should have been in the build directory.&lt;BR /&gt;&lt;BR /&gt;is there a way of "hard coding" the libperl.sl search path (in installation directory) to the perl executable without recompiling so that the SHLIB_PATH won't have to be set for every process which uses perl?&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Feb 2002 14:21:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-with-shared-libperl-sl/m-p/2673347#M723082</guid>
      <dc:creator>marko asplund</dc:creator>
      <dc:date>2002-02-28T14:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Perl with shared libperl.sl</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-with-shared-libperl-sl/m-p/2673348#M723083</link>
      <description>Not without relinking (that I know of, anyway).  If you link with the +b &lt;PATH&gt; option that will include the path in the runtime search list so you won't have to set SHLIB_PATH.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Steve&lt;/PATH&gt;</description>
      <pubDate>Thu, 28 Feb 2002 14:51:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-with-shared-libperl-sl/m-p/2673348#M723083</guid>
      <dc:creator>Steven Gillard_2</dc:creator>
      <dc:date>2002-02-28T14:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Perl with shared libperl.sl</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-with-shared-libperl-sl/m-p/2673349#M723084</link>
      <description>i added:&lt;BR /&gt;&lt;BR /&gt;-Dldflags='-Wl,+b,/opt/local/perl/perl-5.005_03-d5/lib/5.00503/PA-RISC2.0/CORE::'&lt;BR /&gt;&lt;BR /&gt;to the Perl configuration command line and rebuilt perl with a shared libperl.sl. after installation i ran:&lt;BR /&gt;&lt;BR /&gt;chatr -l /home/aspa/tmp/perl/perl5.005_03-d5/libperl.sl /opt/local/&lt;BR /&gt;perl/perl-5.005_03-d5/bin/perl&lt;BR /&gt;&lt;BR /&gt;and now perl runs without setting the SHLIB_PATH variable. thanks for the help.</description>
      <pubDate>Thu, 28 Feb 2002 15:12:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-with-shared-libperl-sl/m-p/2673349#M723084</guid>
      <dc:creator>marko asplund</dc:creator>
      <dc:date>2002-02-28T15:12:19Z</dc:date>
    </item>
  </channel>
</rss>

