<?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: compiling shared libraries question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/compiling-shared-libraries-question/m-p/3286434#M715580</link>
    <description>It is definitely complaining about trying to load a 32-bit shared library from a 64-bit program.&lt;BR /&gt;You need to compile the files for the shared library with a "+DD64" or "+DA2.0W" option to create 64-bit code.</description>
    <pubDate>Tue, 25 May 2004 14:27:31 GMT</pubDate>
    <dc:creator>Mike Stroyan</dc:creator>
    <dc:date>2004-05-25T14:27:31Z</dc:date>
    <item>
      <title>compiling shared libraries question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiling-shared-libraries-question/m-p/3286432#M715578</link>
      <description>Have a rp3440 machine up and running and are busy porting our software to it. I have run into a problem when trying to build a shared library. Here is the output of the build process - which seems to run just fine:&lt;BR /&gt;&lt;BR /&gt;ld -b -o libz.sl.1.1.3 adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o  zutil.o inflate.o infblock.o inftrees.o infcodes.o infutil.o inffast.o +h zlib.dll&lt;BR /&gt;&lt;BR /&gt;ld: (Warning) At least one PA 2.0 object file (adler32.o) was detected. The linked output may not run on a PA 1.x system.&lt;BR /&gt;&lt;BR /&gt;        rm -f libz.sl libz.sl.1 &lt;BR /&gt;        ln -s libz.sl.1.1.3 libz.sl &lt;BR /&gt;        ln -s libz.sl.1.1.3 libz.sl.1 &lt;BR /&gt;        cp libz.sl /home/intergy/Code/Shared/Core/bin/ZipUtility/zlib.dll &lt;BR /&gt;        chmod 777 /home/intergy/Code/Shared/Core/bin/ZipUtility/zlib.dll &lt;BR /&gt;&lt;BR /&gt;The last two lines copy the library to our directory and sets it to be world executable/writeable/readable ... &lt;BR /&gt;&lt;BR /&gt;When I try to use it from within our system, I get this message: &lt;BR /&gt;&lt;BR /&gt;/usr/lib/pa20_64/dld.sl: '/home/intergy/Code/Shared/Core/bin/ZipUtility/zlib.dll' is not a valid load module: Bad magic number&lt;BR /&gt;&lt;BR /&gt;When looking at the file using the UNIX file command, I get: &lt;BR /&gt;&lt;BR /&gt;file /home/intergy/Code/Shared/Core/bin/ZipUtility/zlib.dll &lt;BR /&gt;/home/intergy/Code/Shared/Core/bin/ZipUtility/zlib.dll: PA-RISC2.0 shared library -not stripped &lt;BR /&gt;&lt;BR /&gt;Which looks all right to me.  Anyone knows how I can get around this?  Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 25 May 2004 13:50:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiling-shared-libraries-question/m-p/3286432#M715578</guid>
      <dc:creator>Jimmy Tom_2</dc:creator>
      <dc:date>2004-05-25T13:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: compiling shared libraries question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiling-shared-libraries-question/m-p/3286433#M715579</link>
      <description>Almost sounds like a mis-match between 32 and 64 bit libraries....&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Tue, 25 May 2004 14:11:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiling-shared-libraries-question/m-p/3286433#M715579</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2004-05-25T14:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: compiling shared libraries question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiling-shared-libraries-question/m-p/3286434#M715580</link>
      <description>It is definitely complaining about trying to load a 32-bit shared library from a 64-bit program.&lt;BR /&gt;You need to compile the files for the shared library with a "+DD64" or "+DA2.0W" option to create 64-bit code.</description>
      <pubDate>Tue, 25 May 2004 14:27:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiling-shared-libraries-question/m-p/3286434#M715580</guid>
      <dc:creator>Mike Stroyan</dc:creator>
      <dc:date>2004-05-25T14:27:31Z</dc:date>
    </item>
  </channel>
</rss>

