<?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: Problem loading library with shl_load (hpux 11-23/ia64) in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/problem-loading-library-with-shl-load-hpux-11-23-ia64/m-p/4225457#M92036</link>
    <description>&amp;gt;embedded path enabled third .:/opt/BMCS/mq/bin:/opt/mqm/lib:/usr/ucblib:/usr/ccs/lib:/usr/lib&lt;BR /&gt;&amp;gt;shared library list: libamq.so&lt;BR /&gt;&lt;BR /&gt;So where is libamq.so?&lt;BR /&gt;In /opt/BMCS/mq/bin:/opt/mqm/lib:/usr/ucblib?&lt;BR /&gt;/usr/ccs/lib:/usr/lib are not valid.  The former because there are no libs there.  The latter because this is a PA32 path.</description>
    <pubDate>Tue, 01 Jul 2008 07:02:32 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2008-07-01T07:02:32Z</dc:date>
    <item>
      <title>Problem loading library with shl_load (hpux 11-23/ia64)</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-loading-library-with-shl-load-hpux-11-23-ia64/m-p/4225452#M92031</link>
      <description>$ uname -a&lt;BR /&gt;HP-UX itahp B.11.23 U ia64 2910282009 unlimited-user license&lt;BR /&gt;&lt;BR /&gt;I'm trying to load a library using the following command&lt;BR /&gt;libraryHandle = shl_load( library,  BIND_FIRST | BIND_DEFERRED | DYNAMIC_PATH, 0L );&lt;BR /&gt;&lt;BR /&gt;(gdb) p library&lt;BR /&gt;$2 = 0x600000000001fb20 "/opt/BMCS/mq/bin/AMQAMP00"&lt;BR /&gt;&lt;BR /&gt;This fails with errno=2&lt;BR /&gt;(gdb) p errno&lt;BR /&gt;$1 = 2&lt;BR /&gt;from errno.h:&lt;BR /&gt;#define ENOENT          2       /* No such file or directory    */&lt;BR /&gt;&lt;BR /&gt;if I try to ls the file there is no problem and also if I try to read its content:&lt;BR /&gt;&lt;BR /&gt;ls -la /opt/BMCS/mq/bin/AMQAMP00&lt;BR /&gt;-rwxr-xr-x   2 patrolmq   mqm          21552 Jun 25 19:45 /opt/BMCS/mq/bin/AMQAMP00&lt;BR /&gt;&lt;BR /&gt;$ file /opt/BMCS/mq/bin/AMQAMP00&lt;BR /&gt;/opt/BMCS/mq/bin/AMQAMP00:      ELF-64 shared object file - IA64&lt;BR /&gt;&lt;BR /&gt;The path is built from a few links&lt;BR /&gt;/opt/BMCS/mq -&amp;gt; /home/patrolmq/common/mq&lt;BR /&gt;/opt/BMCS/mq/bin/AMQAMP00 -&amp;gt; HPUX11/AMQAMP00&lt;BR /&gt;&lt;BR /&gt;I have no idea what is wrong. I tried to copy the file to some other location without any link to the file (/home/patrolmq) and it didn't help.&lt;BR /&gt;&lt;BR /&gt;Were should I go from here?&lt;BR /&gt;</description>
      <pubDate>Tue, 01 Jul 2008 06:03:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-loading-library-with-shl-load-hpux-11-23-ia64/m-p/4225452#M92031</guid>
      <dc:creator>Yair Carel</dc:creator>
      <dc:date>2008-07-01T06:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem loading library with shl_load (hpux 11-23/ia64)</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-loading-library-with-shl-load-hpux-11-23-ia64/m-p/4225453#M92032</link>
      <description>&amp;gt;This fails with errno=2&lt;BR /&gt;&lt;BR /&gt;It is illegal for you you to look at errno unless libraryHandle is NULL.  Otherwise you may get some stale errno value.&lt;BR /&gt;&lt;BR /&gt;If you want more details on errors, OR in BIND_VERBOSE.&lt;BR /&gt;&lt;BR /&gt;Also, any reason you aren't using dlopen(3) on IPF?</description>
      <pubDate>Tue, 01 Jul 2008 06:34:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-loading-library-with-shl-load-hpux-11-23-ia64/m-p/4225453#M92032</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-07-01T06:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem loading library with shl_load (hpux 11-23/ia64)</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-loading-library-with-shl-load-hpux-11-23-ia64/m-p/4225454#M92033</link>
      <description>The libraryHandle is indeed NULL only then I look at the value of errno.&lt;BR /&gt;The reason I use shl_load is because this is old code that i'm porting from PA-RISC to itanium.&lt;BR /&gt;Anyway I will try now using dlopen.&lt;BR /&gt;Thanks a lot from you quick answer.&lt;BR /&gt;I will let you know what happened after the change to dlopen.</description>
      <pubDate>Tue, 01 Jul 2008 06:42:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-loading-library-with-shl-load-hpux-11-23-ia64/m-p/4225454#M92033</guid>
      <dc:creator>Yair Carel</dc:creator>
      <dc:date>2008-07-01T06:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem loading library with shl_load (hpux 11-23/ia64)</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-loading-library-with-shl-load-hpux-11-23-ia64/m-p/4225455#M92034</link>
      <description>&amp;gt;The libraryHandle is indeed NULL only then I look at the value of errno.  The reason I use shl_load is because this is old code that I'm porting from PA-RISC to Integrity.&lt;BR /&gt;&lt;BR /&gt;Ok, I assumed the answer was easy.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Anyway I will try now using dlopen.&lt;BR /&gt;&lt;BR /&gt;Before you do that, try with BIND_VERBOSE.  You may be getting the errors on dependent shlibs.&lt;BR /&gt;I.e. what does "chatr AMQAMP00" show?</description>
      <pubDate>Tue, 01 Jul 2008 06:49:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-loading-library-with-shl-load-hpux-11-23-ia64/m-p/4225455#M92034</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-07-01T06:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem loading library with shl_load (hpux 11-23/ia64)</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-loading-library-with-shl-load-hpux-11-23-ia64/m-p/4225456#M92035</link>
      <description>chatr /opt/BMCS/mq/bin/AMQAMP00&lt;BR /&gt;-------------------------------&lt;BR /&gt;/opt/BMCS/mq/bin/AMQAMP00:&lt;BR /&gt;         64-bit ELF shared library&lt;BR /&gt;         shared library dynamic path search:&lt;BR /&gt;             LD_LIBRARY_PATH    enabled  first&lt;BR /&gt;             SHLIB_PATH         enabled  second&lt;BR /&gt;             embedded path      enabled  third  .:/opt/BMCS/mq/bin:/opt/mqm/lib:/usr/ucblib:/usr/ccs/lib:/usr/lib&lt;BR /&gt;         shared library list:&lt;BR /&gt;             libamq.so&lt;BR /&gt;         shared vtable support disabled&lt;BR /&gt;         explicit unloading enabled&lt;BR /&gt;         segments:&lt;BR /&gt;             index type     address      flags size&lt;BR /&gt;                 6 text 4000000000000000 z---c-    D (default)&lt;BR /&gt;                 7 data 6000000000000000 ---m--    D (default)&lt;BR /&gt;         kernel assisted branch prediction enabled&lt;BR /&gt;         lazy swap allocation for dynamic segments disabled&lt;BR /&gt;         nulptr references disabled&lt;BR /&gt;         address space model: default&lt;BR /&gt;         caliper dynamic instrumentation disabled&lt;BR /&gt;</description>
      <pubDate>Tue, 01 Jul 2008 06:53:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-loading-library-with-shl-load-hpux-11-23-ia64/m-p/4225456#M92035</guid>
      <dc:creator>Yair Carel</dc:creator>
      <dc:date>2008-07-01T06:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problem loading library with shl_load (hpux 11-23/ia64)</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-loading-library-with-shl-load-hpux-11-23-ia64/m-p/4225457#M92036</link>
      <description>&amp;gt;embedded path enabled third .:/opt/BMCS/mq/bin:/opt/mqm/lib:/usr/ucblib:/usr/ccs/lib:/usr/lib&lt;BR /&gt;&amp;gt;shared library list: libamq.so&lt;BR /&gt;&lt;BR /&gt;So where is libamq.so?&lt;BR /&gt;In /opt/BMCS/mq/bin:/opt/mqm/lib:/usr/ucblib?&lt;BR /&gt;/usr/ccs/lib:/usr/lib are not valid.  The former because there are no libs there.  The latter because this is a PA32 path.</description>
      <pubDate>Tue, 01 Jul 2008 07:02:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-loading-library-with-shl-load-hpux-11-23-ia64/m-p/4225457#M92036</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-07-01T07:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem loading library with shl_load (hpux 11-23/ia64)</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-loading-library-with-shl-load-hpux-11-23-ia64/m-p/4225458#M92037</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Either the file needed is not there at all or it may be corrupt.&lt;BR /&gt;&lt;BR /&gt;if its there compare it to a library of the same name and location on a working system.&lt;BR /&gt;&lt;BR /&gt;I've seen a few circumstances where an oracle library was sitting on an unlucky part of the disk where the size suddenly changed and we out of the blue could not compile or start oracle.&lt;BR /&gt;&lt;BR /&gt;Such corruption could be the case here.&lt;BR /&gt;&lt;BR /&gt;Good Luck&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 01 Jul 2008 07:25:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-loading-library-with-shl-load-hpux-11-23-ia64/m-p/4225458#M92037</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2008-07-01T07:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem loading library with shl_load (hpux 11-23/ia64)</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-loading-library-with-shl-load-hpux-11-23-ia64/m-p/4225459#M92038</link>
      <description>Well indeed the libamq.so was missing, I created a link to it in its location &lt;BR /&gt;/opt/BMCS/mq/bin/libamq.so -&amp;gt; /opt/BMCS/mq/bin/HPUX11/libamq.so&lt;BR /&gt;&lt;BR /&gt;But still this doesn't help.&lt;BR /&gt;&lt;BR /&gt;I'm now testing with the BIND_VERBOSE flag, and will also try the dlopen</description>
      <pubDate>Tue, 01 Jul 2008 08:01:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-loading-library-with-shl-load-hpux-11-23-ia64/m-p/4225459#M92038</guid>
      <dc:creator>Yair Carel</dc:creator>
      <dc:date>2008-07-01T08:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem loading library with shl_load (hpux 11-23/ia64)</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-loading-library-with-shl-load-hpux-11-23-ia64/m-p/4225460#M92039</link>
      <description>&amp;gt;Well indeed the libamq.so was missing&lt;BR /&gt;&lt;BR /&gt;You may need to recursively apply chatr on your shlib to find all dependent shlibs.&lt;BR /&gt;You can also use ldd(1) to get the all at once.  But unfortunately it stops on the first missing one, where chatr(1) just lists them where they should be.</description>
      <pubDate>Tue, 01 Jul 2008 08:09:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-loading-library-with-shl-load-hpux-11-23-ia64/m-p/4225460#M92039</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-07-01T08:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem loading library with shl_load (hpux 11-23/ia64)</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-loading-library-with-shl-load-hpux-11-23-ia64/m-p/4225461#M92040</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Its restore or reinstall the product time. If this ever worked, and you have backups, you should be able to install/restore and verify the contents of the missing folder.&lt;BR /&gt;&lt;BR /&gt;Where one library is missing, there are probably other ones missing.&lt;BR /&gt;&lt;BR /&gt;If you have a similar system you may be able to shortcut the process with an scp -p of a directory or two.&lt;BR /&gt;&lt;BR /&gt;To be safe though reinstall of the depots/sources of the software is my recommendation.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 01 Jul 2008 08:30:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-loading-library-with-shl-load-hpux-11-23-ia64/m-p/4225461#M92040</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2008-07-01T08:30:50Z</dc:date>
    </item>
  </channel>
</rss>

