<?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: Why is /usr/lib/hpux32 used? in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/why-is-usr-lib-hpux32-used/m-p/4964143#M99309</link>
    <description>From your last post it looks like 32 and 64-bit modes are mixed in the same compilation which could be causing the error possibly.&lt;BR /&gt;&lt;BR /&gt;LPATH=/usr/lib/hpux64:$LD_LIBRARY_PATH shows a 64-bit library while also providing a 32-bit library to the linker on the command line (-L/usr/lib/hpux32). Note the "-L" option would take precedence over the LPATH environment variable.&lt;BR /&gt;&lt;BR /&gt;Could you post the gcc command line you are using as well as the relevant portion of your makefile which could help in debugging this further. Also, what does LD_LIBRARY_PATH contain.&lt;BR /&gt;&lt;BR /&gt;cheers!</description>
    <pubDate>Thu, 02 Mar 2006 17:12:26 GMT</pubDate>
    <dc:creator>Sandman!</dc:creator>
    <dc:date>2006-03-02T17:12:26Z</dc:date>
    <item>
      <title>Why is /usr/lib/hpux32 used?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/why-is-usr-lib-hpux32-used/m-p/4964135#M99301</link>
      <description>I am trying to understand why the libraries in /usr/lib/hpux32 are the default libs used by the linker.  If this is due to the LPATH, then what causes LPATH's value, if it has not been set explicitly?&lt;BR /&gt;&lt;BR /&gt;===============================================&lt;BR /&gt;$ uname -rs&lt;BR /&gt;HP-UX B.11.23&lt;BR /&gt;$ model&lt;BR /&gt;ia64 hp server rx4640&lt;BR /&gt;$ cc -V&lt;BR /&gt;cc: HP aC++/ANSI C B3910B A.06.05 [Jul 25 2005]&lt;BR /&gt;$ cc hello.c&lt;BR /&gt;$ ldd -s -v a.out&lt;BR /&gt;  find library=libc.so.1; required by a.out&lt;BR /&gt;    search path=/usr/lib/hpux32:/opt/langtools/lib/hpux32  (RUNPATH)&lt;BR /&gt;    trying path=/usr/lib/hpux32/libc.so.1&lt;BR /&gt;        libc.so.1 =&amp;gt;    /usr/lib/hpux32/libc.so.1&lt;BR /&gt;&lt;BR /&gt;  find library=libdl.so.1; required by /usr/lib/hpux32/libc.so.1&lt;BR /&gt;    search path=/usr/lib/hpux32  (RUNPATH)&lt;BR /&gt;    trying path=/usr/lib/hpux32/libdl.so.1&lt;BR /&gt;        libdl.so.1 =&amp;gt;   /usr/lib/hpux32/libdl.so.1&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Mar 2006 12:48:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/why-is-usr-lib-hpux32-used/m-p/4964135#M99301</guid>
      <dc:creator>VAS_1</dc:creator>
      <dc:date>2006-03-02T12:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: Why is /usr/lib/hpux32 used?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/why-is-usr-lib-hpux32-used/m-p/4964136#M99302</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;That's the default linker search path on Itanium (32-bit) based systems. If you had a PA-RISC (32-bit) system then the default library path would be "/usr/lib". You can change the default linker (ld) search path by using the LPATH environment variable or the -L linker option (the latter taking precedence over the former).&lt;BR /&gt;&lt;BR /&gt;If unset LPATH then ld searches the default dir "/usr/lib" for parisc &amp;amp; "usr/lib/hpux32" for itanium. If LPATH is set, ld searches only the dirs specified in LPATH and the default dirs are not searched unless  specified in LPATH. To nclude /usr/local/lib in the search path after the default directories, set LPATH as follows:&lt;BR /&gt; &lt;BR /&gt;# export LPATH=/usr/lib:/usr/local/lib&lt;BR /&gt;&lt;BR /&gt;Note the "-L" switch if given to cc has higher priority than LPATH.&lt;BR /&gt;&lt;BR /&gt;cheers!</description>
      <pubDate>Thu, 02 Mar 2006 13:13:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/why-is-usr-lib-hpux32-used/m-p/4964136#M99302</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2006-03-02T13:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: Why is /usr/lib/hpux32 used?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/why-is-usr-lib-hpux32-used/m-p/4964137#M99303</link>
      <description>&amp;gt; That's the default linker search path on Itanium (32-bit) based systems. &lt;BR /&gt;&lt;BR /&gt;Hmmm.  I thought this machine was 64-bit.  If I execute getconf KERNEL_BITS it returns 64.  Is there something else I should look at?</description>
      <pubDate>Thu, 02 Mar 2006 13:42:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/why-is-usr-lib-hpux32-used/m-p/4964137#M99303</guid>
      <dc:creator>VAS_1</dc:creator>
      <dc:date>2006-03-02T13:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Why is /usr/lib/hpux32 used?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/why-is-usr-lib-hpux32-used/m-p/4964138#M99304</link>
      <description>Might also depend on the whether the C compiler is 32 or 64 bit.</description>
      <pubDate>Thu, 02 Mar 2006 13:56:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/why-is-usr-lib-hpux32-used/m-p/4964138#M99304</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2006-03-02T13:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: Why is /usr/lib/hpux32 used?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/why-is-usr-lib-hpux32-used/m-p/4964139#M99305</link>
      <description>Could you post the output of the following commands:&lt;BR /&gt;&lt;BR /&gt;# what cc&lt;BR /&gt;# file cc&lt;BR /&gt;&lt;BR /&gt;thanks!</description>
      <pubDate>Thu, 02 Mar 2006 15:42:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/why-is-usr-lib-hpux32-used/m-p/4964139#M99305</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2006-03-02T15:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: Why is /usr/lib/hpux32 used?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/why-is-usr-lib-hpux32-used/m-p/4964140#M99306</link>
      <description>$ what `which cc`&lt;BR /&gt;/usr/bin/cc:&lt;BR /&gt;        HP aC++/C for Itanium(R)-based systems B3910B A.06.05 [Jul 25 2005]&lt;BR /&gt;$ file `which cc`&lt;BR /&gt;/usr/bin/cc:    ELF-32 executable object file - IA64&lt;BR /&gt;&lt;BR /&gt;(/usr/bin/cc -&amp;gt; /opt/ansic/bin/cc)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Mar 2006 15:57:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/why-is-usr-lib-hpux32-used/m-p/4964140#M99306</guid>
      <dc:creator>VAS_1</dc:creator>
      <dc:date>2006-03-02T15:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: Why is /usr/lib/hpux32 used?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/why-is-usr-lib-hpux32-used/m-p/4964141#M99307</link>
      <description>I admin a server which successfully compiled some COBOL programs (PeopleSoft).  After installing the GNUbase fileset from the TC-OpenSource depot, the compilation fails with this error:&lt;BR /&gt;&lt;BR /&gt;Assembler messages: &lt;BR /&gt;Can't open +A64 for reading: No such file or directory &lt;BR /&gt;ld: Can't find library or mismatched ABI for -lm &lt;BR /&gt;Fatal error. &lt;BR /&gt;&lt;BR /&gt;The LPATH is set in the make file to /usr/lib/hpux64:$LD_LIBRARY_PATH.  If I set a library path in the compile command (-L/usr/lib/hpux32) the error message travels down to a different set of (PSoft) libraries.  &lt;BR /&gt;&lt;BR /&gt;I would like to understand _why_ the GNUbase install is affecting this.&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Mar 2006 16:12:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/why-is-usr-lib-hpux32-used/m-p/4964141#M99307</guid>
      <dc:creator>VAS_1</dc:creator>
      <dc:date>2006-03-02T16:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: Why is /usr/lib/hpux32 used?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/why-is-usr-lib-hpux32-used/m-p/4964142#M99308</link>
      <description>Doing a file on cc shows that it's a 32-bit binary and will by default generate 32-bit objects, unless its behaviour is changed using the +DD64 switch. You can compile the source code in both modes and look inside the created binaries using ldd.&lt;BR /&gt;&lt;BR /&gt;# cc hello.c&lt;BR /&gt;# ldd -s -v a.out&lt;BR /&gt;&lt;BR /&gt;Will generate 32-bit objects &amp;amp; link the 32-bit library "usr/lib/hpux32" into a.out.&lt;BR /&gt;&lt;BR /&gt;# cc +DD64 hello.c -o hello64&lt;BR /&gt;# ldd -s -v hello64&lt;BR /&gt;&lt;BR /&gt;Will generate 64-bit objects &amp;amp; link the 64-bit library "usr/lib/hpux64" into hello64. Doing a file on a.out &amp;amp; hello64 should show this distinction as well.&lt;BR /&gt;&lt;BR /&gt;cheers!&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Mar 2006 16:31:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/why-is-usr-lib-hpux32-used/m-p/4964142#M99308</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2006-03-02T16:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Why is /usr/lib/hpux32 used?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/why-is-usr-lib-hpux32-used/m-p/4964143#M99309</link>
      <description>From your last post it looks like 32 and 64-bit modes are mixed in the same compilation which could be causing the error possibly.&lt;BR /&gt;&lt;BR /&gt;LPATH=/usr/lib/hpux64:$LD_LIBRARY_PATH shows a 64-bit library while also providing a 32-bit library to the linker on the command line (-L/usr/lib/hpux32). Note the "-L" option would take precedence over the LPATH environment variable.&lt;BR /&gt;&lt;BR /&gt;Could you post the gcc command line you are using as well as the relevant portion of your makefile which could help in debugging this further. Also, what does LD_LIBRARY_PATH contain.&lt;BR /&gt;&lt;BR /&gt;cheers!</description>
      <pubDate>Thu, 02 Mar 2006 17:12:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/why-is-usr-lib-hpux32-used/m-p/4964143#M99309</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2006-03-02T17:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Why is /usr/lib/hpux32 used?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/why-is-usr-lib-hpux32-used/m-p/4964144#M99310</link>
      <description>&lt;BR /&gt;&amp;gt;LPATH=/usr/lib/hpux64:$LD_LIBRARY_PATH shows a 64-bit library &lt;BR /&gt;&amp;gt;while also providing a 32-bit library to the linker on &lt;BR /&gt;&amp;gt;the command line (-L/usr/lib/hpux32). Note the "-L" option would &lt;BR /&gt;&amp;gt;take precedence over the LPATH environment variable.&lt;BR /&gt;&lt;BR /&gt;Well, I was the one who forced the -L/usr/lib/hpux32 to see if the LPATH having /usr/lib/hpux64 on it was part of my problem. &lt;BR /&gt;&lt;BR /&gt;I'm really mixing up compilers, (COBOL, HP's ANSI C and gcc), in my tests to see how much additional information I can get during the process.  &lt;BR /&gt;&lt;BR /&gt;That being said, the COBOL installation appears to be 64-bit, and I am going to reinstall as 32-bit tomorrow, and then see what happens with the PeopleSoft compile, with and without GNUbase utilities....&lt;BR /&gt;&lt;BR /&gt;This conversation has been most educational for me.  Thank you!  I will post what happens next.&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Mar 2006 17:23:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/why-is-usr-lib-hpux32-used/m-p/4964144#M99310</guid>
      <dc:creator>VAS_1</dc:creator>
      <dc:date>2006-03-02T17:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Why is /usr/lib/hpux32 used?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/why-is-usr-lib-hpux32-used/m-p/4964145#M99311</link>
      <description>I removed the original CBL compiler install and reinstalled as 32-bit option.  I still receive a library error if I have the GNUBase utilities installed.  I have to think about this one....&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 03 Mar 2006 16:28:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/why-is-usr-lib-hpux32-used/m-p/4964145#M99311</guid>
      <dc:creator>VAS_1</dc:creator>
      <dc:date>2006-03-03T16:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: Why is /usr/lib/hpux32 used?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/why-is-usr-lib-hpux32-used/m-p/4964146#M99312</link>
      <description>&amp;gt;I removed the original CBL compiler install and reinstalled as 32-bit option. I &amp;gt;still receive a library error if I have the GNUBase utilities installed. I have to &amp;gt;think about this one....&lt;BR /&gt;&lt;BR /&gt;Well I hope these posts have been useful to you. In any case what library error are you getting?</description>
      <pubDate>Fri, 03 Mar 2006 16:35:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/why-is-usr-lib-hpux32-used/m-p/4964146#M99312</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2006-03-03T16:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Why is /usr/lib/hpux32 used?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/why-is-usr-lib-hpux32-used/m-p/4964147#M99313</link>
      <description>Yes, I do find the replies most useful and thought-provoking.  &lt;BR /&gt;&lt;BR /&gt;This is the _cobol compiler_ error:&lt;BR /&gt;&lt;BR /&gt;Assembler messages:&lt;BR /&gt;Can't open +A64 for reading: No such file or directory&lt;BR /&gt;ld: Can't find library or mismatched ABI for -lm&lt;BR /&gt;Fatal error. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 03 Mar 2006 16:47:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/why-is-usr-lib-hpux32-used/m-p/4964147#M99313</guid>
      <dc:creator>VAS_1</dc:creator>
      <dc:date>2006-03-03T16:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Why is /usr/lib/hpux32 used?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/why-is-usr-lib-hpux32-used/m-p/4964148#M99314</link>
      <description>Could you provide more information which may aid in troubleshooting this. How about posting the compilation command used, also the contents of environment variables like SHLIB_PATH and LD_LIBRARY_PATH.&lt;BR /&gt;&lt;BR /&gt;What Cobol product and its version are you using?&lt;BR /&gt;&lt;BR /&gt;thanks!</description>
      <pubDate>Fri, 03 Mar 2006 17:23:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/why-is-usr-lib-hpux32-used/m-p/4964148#M99314</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2006-03-03T17:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: Why is /usr/lib/hpux32 used?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/why-is-usr-lib-hpux32-used/m-p/4964149#M99315</link>
      <description>I'm assuming your real problem is:&lt;BR /&gt;&amp;gt;Assembler messages:&lt;BR /&gt;Can't open +A64 for reading: No such file or directory&lt;BR /&gt;ld: Can't find library or mismatched ABI for -lm&lt;BR /&gt;Fatal error.&lt;BR /&gt;&amp;gt;I would like to understand _why_ the GNUbase install is affecting this.&lt;BR /&gt;&lt;BR /&gt;It appears you have replaced HP's assembler by a foreign devil version?&lt;BR /&gt;&lt;BR /&gt;/usr/ccs/bin/as should accept the +A64 option.&lt;BR /&gt;You might want to use:&lt;BR /&gt; # /usr/sbin/swverify OS-Core.C-KRN&lt;BR /&gt;&lt;BR /&gt;If your COBOL has a verbose -v mode, you might want to see which component is producing that error.&lt;BR /&gt;&lt;BR /&gt;The mismatched ABI probably occurs because you don't have the right -L.</description>
      <pubDate>Tue, 07 Mar 2006 00:45:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/why-is-usr-lib-hpux32-used/m-p/4964149#M99315</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2006-03-07T00:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Why is /usr/lib/hpux32 used?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/why-is-usr-lib-hpux32-used/m-p/4964150#M99316</link>
      <description>&amp;gt;It appears you have replaced HP's assembler by a foreign devil version?&lt;BR /&gt;&lt;BR /&gt;Bingo!  The GNU utilities included an assembler, which is installed in /usr/local/bin  /usr/ccs/bin, which is where HP's assembler is located, came _after_ /usr/local/bin in the default PATH.  &lt;BR /&gt;&lt;BR /&gt;Thanks to you and Sandman.  I had finally narrowed it down to where things were going wrong, and your sentence set the light bulb off!  &lt;BR /&gt;&lt;BR /&gt;It is Merant Cobol 4.0, by the way, that the PeopleSoft program uses, which is where the original problem showed up.&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Mar 2006 09:47:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/why-is-usr-lib-hpux32-used/m-p/4964150#M99316</guid>
      <dc:creator>VAS_1</dc:creator>
      <dc:date>2006-03-07T09:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Why is /usr/lib/hpux32 used?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/why-is-usr-lib-hpux32-used/m-p/4964151#M99317</link>
      <description>&amp;gt;It appears you have replaced HP's assembler by a foreign devil version?&lt;BR /&gt;&lt;BR /&gt;Bingo!  The GNU utilities included an assembler, which is installed in /usr/local/bin.   HP's assembler is located in /usr/ccs/bin, which comes _after_ /usr/local/bin in the default PATH.  &lt;BR /&gt;&lt;BR /&gt;Thanks to you and Sandman.  I had finally narrowed it down to where things were going wrong, and your sentence set the light bulb off!  &lt;BR /&gt;&lt;BR /&gt;It is Merant Cobol 4.0, by the way, that the PeopleSoft program uses, which is where the original problem showed up.&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Mar 2006 09:49:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/why-is-usr-lib-hpux32-used/m-p/4964151#M99317</guid>
      <dc:creator>VAS_1</dc:creator>
      <dc:date>2006-03-07T09:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Why is /usr/lib/hpux32 used?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/why-is-usr-lib-hpux32-used/m-p/4964152#M99318</link>
      <description>I rearranged the system path so the ANSI C and ccs directories precede /usr/local/bin, where the GNU utilities installed.&lt;BR /&gt;&lt;BR /&gt;Thanks again.</description>
      <pubDate>Tue, 07 Mar 2006 12:38:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/why-is-usr-lib-hpux32-used/m-p/4964152#M99318</guid>
      <dc:creator>VAS_1</dc:creator>
      <dc:date>2006-03-07T12:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Why is /usr/lib/hpux32 used?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/why-is-usr-lib-hpux32-used/m-p/4964153#M99319</link>
      <description>Closed.</description>
      <pubDate>Thu, 27 Apr 2006 15:29:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/why-is-usr-lib-hpux32-used/m-p/4964153#M99319</guid>
      <dc:creator>VAS_1</dc:creator>
      <dc:date>2006-04-27T15:29:03Z</dc:date>
    </item>
  </channel>
</rss>

