<?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: Bad magic number for shared library: libclntsh.sl.10.1 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library-libclntsh-sl-10-1/m-p/4331647#M683603</link>
    <description>&lt;A href="http://www.hp.com/go/aries" target="_blank"&gt;http://www.hp.com/go/aries&lt;/A&gt; may help.&lt;BR /&gt;&lt;BR /&gt;Thanks &lt;BR /&gt;Sri</description>
    <pubDate>Mon, 12 Jan 2009 13:46:03 GMT</pubDate>
    <dc:creator>Srimalik</dc:creator>
    <dc:date>2009-01-12T13:46:03Z</dc:date>
    <item>
      <title>Bad magic number for shared library: libclntsh.sl.10.1</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library-libclntsh-sl-10-1/m-p/4331636#M683592</link>
      <description>Hi Experts,&lt;BR /&gt;&lt;BR /&gt;I have oracle 10g installed on HP Integrity rx 2620 server. OS is HP-UX 11i v2 FOE September 2006 (version B.11.23).&lt;BR /&gt;&lt;BR /&gt;I have an application compiled on PA-RISC OS B.11.11 using aCC: HP ANSI C++ B3910B A.03.70 compiler.&lt;BR /&gt;&lt;BR /&gt;Compiler options: +DA1.0 -AA -mt&lt;BR /&gt;&lt;BR /&gt;My application makes use of oracle shared library: libclntsh.sl.10.1. It runs correctly on both PA-RISC v1 and v2. But on Itanium server i am getting Bad magic number for shared library: libclntsh.sl.10.1 error.&lt;BR /&gt;&lt;BR /&gt;Also note that i have Aries installed on the Itanium server.&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Thanks&lt;BR /&gt;Biradar</description>
      <pubDate>Mon, 05 Jan 2009 10:39:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library-libclntsh-sl-10-1/m-p/4331636#M683592</guid>
      <dc:creator>Biradar</dc:creator>
      <dc:date>2009-01-05T10:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Bad magic number for shared library: libclntsh.sl.10.1</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library-libclntsh-sl-10-1/m-p/4331637#M683593</link>
      <description>&amp;gt;Compiler options: +DA1.0 -AA -mt&lt;BR /&gt;&lt;BR /&gt;It is illegal to use +DA1.0, the last OS that supported those machines was 10.10.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I am getting Bad magic number for shared library libclntsh.sl.10.1 error.&lt;BR /&gt;&lt;BR /&gt;Are you sure that SHLIB_PATH only contains PA32 shlibs?  What does file(1) show for each?</description>
      <pubDate>Mon, 05 Jan 2009 10:51:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library-libclntsh-sl-10-1/m-p/4331637#M683593</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-01-05T10:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Bad magic number for shared library: libclntsh.sl.10.1</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library-libclntsh-sl-10-1/m-p/4331638#M683594</link>
      <description>Hi Dennis,&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;1. What compiler option i should using?&lt;BR /&gt;&lt;BR /&gt;I want a single code base to run on both PA-RISC(v1 &amp;amp; v2)and Itanium.&lt;BR /&gt;&lt;BR /&gt;2. SHLIB PATH is pointing to correct libs i guess.&lt;BR /&gt;&lt;BR /&gt;$ echo $SHLIB_PATH&lt;BR /&gt;/opt/osmf/lib:/opt/oracle/app/oracle/product/10.2.0/lib&lt;BR /&gt;&lt;BR /&gt;# pwd&lt;BR /&gt;/opt/oracle/app/oracle/product/10.2.0/lib32&lt;BR /&gt;# file libclntsh.so.10.1&lt;BR /&gt;libclntsh.so.10.1:      ELF-32 shared object file - IA64</description>
      <pubDate>Mon, 05 Jan 2009 11:56:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library-libclntsh-sl-10-1/m-p/4331638#M683594</guid>
      <dc:creator>Biradar</dc:creator>
      <dc:date>2009-01-05T11:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Bad magic number for shared library: libclntsh.sl.10.1</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library-libclntsh-sl-10-1/m-p/4331639#M683595</link>
      <description>&amp;gt;1. What compiler option I should using?&lt;BR /&gt;&amp;gt;I want a single code base to run on both PA-RISC(v1 &amp;amp; v2) and Integrity.&lt;BR /&gt;&lt;BR /&gt;You can use +DSportable.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;2. SHLIB_PATH is pointing to correct libs I guess.&lt;BR /&gt;libclntsh.so.10.1: ELF-32 shared object file - IA64&lt;BR /&gt;&lt;BR /&gt;These are the correct shlibs for an Integrity application.  You need to find the PA shlibs, possibly copy them from your PA box, to a different location?</description>
      <pubDate>Mon, 05 Jan 2009 17:52:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library-libclntsh-sl-10-1/m-p/4331639#M683595</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-01-05T17:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Bad magic number for shared library: libclntsh.sl.10.1</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library-libclntsh-sl-10-1/m-p/4331640#M683596</link>
      <description>Hi Dennis,&lt;BR /&gt;&lt;BR /&gt;Thanks once again.&lt;BR /&gt;&amp;gt; You can use +DSportable.&lt;BR /&gt;I have already tried with +DSportable option but without any success. I am still getting the same error.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; These are the correct shlibs for an Integrity application. You need to find the PA shlibs, possibly copy them from your PA box, to a different location?&lt;BR /&gt;&lt;BR /&gt;You are right. My application needs to run on Integrity server itself. So i have Oracle 10g for Itanium installed on the box. The same application runs correctly on PA-RISC where Oracle 10g for PA-RISC is installed.&lt;BR /&gt;&lt;BR /&gt;As i mentioned earlier i have Aries installed on the Itanium box. My application runs as a daemon. This is the error i am getting in nohup.out&lt;BR /&gt;&lt;BR /&gt;/usr/lib/dld.sl: Bad magic number for shared library: /opt/osmf/lib/libclntsh.sl&lt;BR /&gt;.10.1&lt;BR /&gt;/usr/lib/dld.sl: Exec format error&lt;BR /&gt;[HP ARIES32]: Core file for 32 bit PA-RISC application&lt;BR /&gt;[HP ARIES32]:   /opt/osmf/bin/osmfsemd saved to /var/opt/osmf/share/log/core.osm&lt;BR /&gt;fsemd.</description>
      <pubDate>Tue, 06 Jan 2009 04:54:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library-libclntsh-sl-10-1/m-p/4331640#M683596</guid>
      <dc:creator>Biradar</dc:creator>
      <dc:date>2009-01-06T04:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: Bad magic number for shared library: libclntsh.sl.10.1</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library-libclntsh-sl-10-1/m-p/4331641#M683597</link>
      <description>&amp;gt;I am still getting the same error.&lt;BR /&gt;&lt;BR /&gt;Naturally but faster.  :-)&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I have Aries installed on the Integrity box.&lt;BR /&gt;&lt;BR /&gt;No, you didn't do it.  Aries comes with HP-UX on all Integrity servers.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;dld.sl: Bad magic number for shared library: /opt/osmf/lib/libclntsh.sl.10.1&lt;BR /&gt;&lt;BR /&gt;You need to put a PA lib in that location.  Or you need to use SHLIB_PATH to move your PA shlibs elsewhere.</description>
      <pubDate>Tue, 06 Jan 2009 10:22:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library-libclntsh-sl-10-1/m-p/4331641#M683597</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-01-06T10:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: Bad magic number for shared library: libclntsh.sl.10.1</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library-libclntsh-sl-10-1/m-p/4331642#M683598</link>
      <description>&lt;!--!*#--&gt;Hi Dennis,&lt;BR /&gt;&lt;BR /&gt;Thanks for the reply.&lt;BR /&gt;&lt;BR /&gt;libclntsh.sl.10.1 is an Oracle library.&lt;BR /&gt;I have created a soft link to this library.&lt;BR /&gt;&lt;BR /&gt;libclntsh.sl.10.1 -&amp;gt; /&lt;BR /&gt;opt/oracle/app/oracle/product/10.2.0/lib32/libclntsh.so.10.1&lt;BR /&gt;&lt;BR /&gt;I have oracle 10g Itanium version installed on the box. Oracle 10g Itanium version unfortunately has no PA-RISC library. It has only IA libraries installed (both 32 / 64 bit)&lt;BR /&gt;&lt;BR /&gt;$ file /opt/oracle/app/oracle/product/10.2.0/lib32/libclntsh.so.10.1&lt;BR /&gt;/opt/oracle/app/oracle/product/10.2.0/lib32/libclntsh.so.10.1:  ELF-32 shared ob&lt;BR /&gt;ject file - IA64&lt;BR /&gt;&lt;BR /&gt;$ file /opt/oracle/app/oracle/product/10.2.0/lib/libclntsh.so.10.1&lt;BR /&gt;/opt/oracle/app/oracle/product/10.2.0/lib/libclntsh.so.10.1:    ELF-64 shared ob&lt;BR /&gt;ject file - IA64&lt;BR /&gt;&lt;BR /&gt;Please let me know what should I be doing?&lt;BR /&gt;&lt;BR /&gt;My program is complied on PA-RISC as i needs to be run on both PA-RISC / IA.&lt;BR /&gt;&lt;BR /&gt;I can recompile my program on IA and make it run but i do not want to have 2 different binaries.&lt;BR /&gt;&lt;BR /&gt;Also installing Oracle 10g PA-RISC on IA is another solution i can think of but i can do that as well.&lt;BR /&gt;&lt;BR /&gt;So i have compatible oracle for each of the architectures but only one binary of mine.&lt;BR /&gt;&lt;BR /&gt;How can i mke it run on both????&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Jan 2009 10:37:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library-libclntsh-sl-10-1/m-p/4331642#M683598</guid>
      <dc:creator>Biradar</dc:creator>
      <dc:date>2009-01-06T10:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Bad magic number for shared library: libclntsh.sl.10.1</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library-libclntsh-sl-10-1/m-p/4331643#M683599</link>
      <description>Few updates...&lt;BR /&gt;&lt;BR /&gt;My program is compiled on PA-RISC and makes use of oracle library libclntsh.sl.10.1.&lt;BR /&gt;&lt;BR /&gt;I have relative Oracle version installed on each of the boxes. viz. PA-RISC / IA&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;It runs correctly on both the versions of PA-RISC 1.1 and 2.0.&lt;BR /&gt;&lt;BR /&gt;Now i want my same program compiled on PA-RISC to run correctly on IA box.&lt;BR /&gt;&lt;BR /&gt;Unfortunately when i try to run it i get the following error.&lt;BR /&gt;&lt;BR /&gt;/usr/lib/dld.sl: Bad magic number for shared library: /opt/osmf/lib/libclntsh.sl&lt;BR /&gt;.10.1&lt;BR /&gt;/usr/lib/dld.sl: Exec format error&lt;BR /&gt;[HP ARIES32]: Core file for 32 bit PA-RISC application&lt;BR /&gt;[HP ARIES32]:   /opt/osmf/bin/osmfalert saved to /var/opt/osmf/share/log/core.os&lt;BR /&gt;mfalert.</description>
      <pubDate>Tue, 06 Jan 2009 10:46:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library-libclntsh-sl-10-1/m-p/4331643#M683599</guid>
      <dc:creator>Biradar</dc:creator>
      <dc:date>2009-01-06T10:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: Bad magic number for shared library: libclntsh.sl.10.1</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library-libclntsh-sl-10-1/m-p/4331644#M683600</link>
      <description>&amp;gt;I have created a soft link to this library.&lt;BR /&gt;libclntsh.sl.10.1 -&amp;gt; /&lt;BR /&gt;opt/oracle/app/oracle/product/10.2.0/lib32/libclntsh.so.10.1&lt;BR /&gt;&lt;BR /&gt;From /opt/osmf/lib?&lt;BR /&gt;You need to point to a PA shlib.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Oracle 10g Itanium version unfortunately has no PA-RISC library. It has only IA libraries installed (both 32/64 bit)&lt;BR /&gt;&lt;BR /&gt;Then your application isn't supported on Integrity.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Please let me know what should I be doing?&lt;BR /&gt;&amp;gt;My program is complied on PA-RISC as I need to be run on both PA-RISC / IA.&lt;BR /&gt;&lt;BR /&gt;You may need to have two versions.  What you are doing is probably not supported by Oracle.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I can recompile my program on IA and make it run but i do not want to have 2 different binaries.&lt;BR /&gt;&lt;BR /&gt;You may not have a choice.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Also installing Oracle 10g PA-RISC on IA is another solution i can think of but i can do that as well.&lt;BR /&gt;&lt;BR /&gt;You can't do that.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;How can I make it run on both?&lt;BR /&gt;&lt;BR /&gt;You must copy ALL of the load modules your application uses, including the PA oracle shlibs to your IPF box.</description>
      <pubDate>Tue, 06 Jan 2009 10:47:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library-libclntsh-sl-10-1/m-p/4331644#M683600</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-01-06T10:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Bad magic number for shared library: libclntsh.sl.10.1</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library-libclntsh-sl-10-1/m-p/4331645#M683601</link>
      <description>&amp;gt;ME: You must copy ALL of the load modules&lt;BR /&gt;&lt;BR /&gt;You can use ldd(1) on your application on your PA box to get a list of all shlibs you use.</description>
      <pubDate>Tue, 06 Jan 2009 10:55:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library-libclntsh-sl-10-1/m-p/4331645#M683601</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-01-06T10:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: Bad magic number for shared library: libclntsh.sl.10.1</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library-libclntsh-sl-10-1/m-p/4331646#M683602</link>
      <description>Hi Dennis,&lt;BR /&gt;&lt;BR /&gt;Thanks for your timely help.&lt;BR /&gt;&lt;BR /&gt;I think i will have to convince my boss to have 2 versions now.&lt;BR /&gt;&lt;BR /&gt;Thanks a lot and if i need any thing else i shall get back to you :)&lt;BR /&gt;&lt;BR /&gt;For now i will keep this thread still open ...</description>
      <pubDate>Tue, 06 Jan 2009 11:04:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library-libclntsh-sl-10-1/m-p/4331646#M683602</guid>
      <dc:creator>Biradar</dc:creator>
      <dc:date>2009-01-06T11:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: Bad magic number for shared library: libclntsh.sl.10.1</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library-libclntsh-sl-10-1/m-p/4331647#M683603</link>
      <description>&lt;A href="http://www.hp.com/go/aries" target="_blank"&gt;http://www.hp.com/go/aries&lt;/A&gt; may help.&lt;BR /&gt;&lt;BR /&gt;Thanks &lt;BR /&gt;Sri</description>
      <pubDate>Mon, 12 Jan 2009 13:46:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library-libclntsh-sl-10-1/m-p/4331647#M683603</guid>
      <dc:creator>Srimalik</dc:creator>
      <dc:date>2009-01-12T13:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Bad magic number for shared library: libclntsh.sl.10.1</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library-libclntsh-sl-10-1/m-p/4331648#M683604</link>
      <description>Hi Sri,&lt;BR /&gt;&lt;BR /&gt;MITR: MIxed mode TRanslator is the one i am looking for.&lt;BR /&gt;&lt;BR /&gt;If you think otherwise please let me know.&lt;BR /&gt;&lt;BR /&gt;But unfortunately MITR will be available only during Q1 of 2009.&lt;BR /&gt;&lt;BR /&gt;So still some time to go....&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Regards,&lt;BR /&gt;Biradar</description>
      <pubDate>Mon, 12 Jan 2009 14:37:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library-libclntsh-sl-10-1/m-p/4331648#M683604</guid>
      <dc:creator>Biradar</dc:creator>
      <dc:date>2009-01-12T14:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Bad magic number for shared library: libclntsh.sl.10.1</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library-libclntsh-sl-10-1/m-p/4331649#M683605</link>
      <description>My knowlege abt mitr is also limited but it seem MITR should resolve your issue.&lt;BR /&gt;&lt;BR /&gt;But, as it is not available yet you may try the beta. The page also says that "Currently there are no plans for general release of MITR."&lt;BR /&gt;&lt;BR /&gt;The best option for you is the one suggested by Dennis. copy the required PA libraries to a directory on you IA machine and include the path in SHLIB_PATH.&lt;BR /&gt;&lt;I have="" tried="" this="" long="" back="" and="" it="" works=""&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks &lt;BR /&gt;Sri&lt;/I&gt;</description>
      <pubDate>Mon, 12 Jan 2009 16:25:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library-libclntsh-sl-10-1/m-p/4331649#M683605</guid>
      <dc:creator>Srimalik</dc:creator>
      <dc:date>2009-01-12T16:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: Bad magic number for shared library: libclntsh.sl.10.1</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library-libclntsh-sl-10-1/m-p/4331650#M683606</link>
      <description>Hi Sri,&lt;BR /&gt;&lt;BR /&gt;Thanks once again.&lt;BR /&gt;&lt;BR /&gt;I have also tried that it works fine.&lt;BR /&gt;But as both of you suggested, we are also planning for a separate release for each of the architectures.&lt;BR /&gt;&lt;BR /&gt;Bye&lt;BR /&gt;Biradar</description>
      <pubDate>Tue, 13 Jan 2009 04:49:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number-for-shared-library-libclntsh-sl-10-1/m-p/4331650#M683606</guid>
      <dc:creator>Biradar</dc:creator>
      <dc:date>2009-01-13T04:49:43Z</dc:date>
    </item>
  </channel>
</rss>

