<?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 Unable to build a shared library on HP-UX  11.22 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-build-a-shared-library-on-hp-ux-11-22/m-p/4897709#M701439</link>
    <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I am trying to port my shared library to HP-UX 11.22 running on Itanium2. The linker is unable to find the libraries that I build *and* have in the correct place! &lt;BR /&gt;I seem to have the correct link line :)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;......................................................&lt;BR /&gt;Linking executable nu80d_HP-UX_42_ia64.sl &lt;BR /&gt;/opt/aCC/bin/aCC +Oopenmp +DD64 +DSitanium2 +U77 -b *.o +O3 -Wl,-ashared -Wl,-L/a/homes/myneni/nu_libs -Wl,-L/a/homes/OSLIBS/LIB-HP-UX -lnumerflib_HP-UX_ia64 -lnumerclib_HP-UX_ia64 -lbcslib42_HP-UX_ia64 -lmetis_11_ia64 -Wl,-L/opt/mlib/lib/hpux64 -lblas_HP-UX_ia64 -Wl,-L/usr/lib/hpux64 -lIO77 -lF90 -lU77 -lstream -o nu80d_HP-UX_42_ia64.sl&lt;BR /&gt;ld: Can't find library or mismatched ABI for -lnumerflib_HP-UX_ia64&lt;BR /&gt;Fatal error.&lt;BR /&gt;make: *** [link_HP-UX_ia64] Error 1&lt;BR /&gt;myneni@hp73 p4_mdl/mbd &amp;gt;&lt;BR /&gt;&lt;BR /&gt;The library libnumerflib_HP-UX_ia64.a does exist in 'nu_libs' so I am not sure why ld doesn't find it. I also tried not having -Wl, ahead of each -L/path/...but that didn't help either.&lt;BR /&gt;&lt;BR /&gt;The objects in libnumerflib_HP-UX_ia64.a are of the following type: &lt;BR /&gt;y12mdf.o:       ELF-64 relocatable object file - IA64&lt;BR /&gt;&lt;BR /&gt;Any help is most appreciated.&lt;BR /&gt;&lt;BR /&gt;-Sachin</description>
    <pubDate>Thu, 21 Apr 2005 18:11:10 GMT</pubDate>
    <dc:creator>sachin myneni</dc:creator>
    <dc:date>2005-04-21T18:11:10Z</dc:date>
    <item>
      <title>Unable to build a shared library on HP-UX  11.22</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-build-a-shared-library-on-hp-ux-11-22/m-p/4897709#M701439</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I am trying to port my shared library to HP-UX 11.22 running on Itanium2. The linker is unable to find the libraries that I build *and* have in the correct place! &lt;BR /&gt;I seem to have the correct link line :)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;......................................................&lt;BR /&gt;Linking executable nu80d_HP-UX_42_ia64.sl &lt;BR /&gt;/opt/aCC/bin/aCC +Oopenmp +DD64 +DSitanium2 +U77 -b *.o +O3 -Wl,-ashared -Wl,-L/a/homes/myneni/nu_libs -Wl,-L/a/homes/OSLIBS/LIB-HP-UX -lnumerflib_HP-UX_ia64 -lnumerclib_HP-UX_ia64 -lbcslib42_HP-UX_ia64 -lmetis_11_ia64 -Wl,-L/opt/mlib/lib/hpux64 -lblas_HP-UX_ia64 -Wl,-L/usr/lib/hpux64 -lIO77 -lF90 -lU77 -lstream -o nu80d_HP-UX_42_ia64.sl&lt;BR /&gt;ld: Can't find library or mismatched ABI for -lnumerflib_HP-UX_ia64&lt;BR /&gt;Fatal error.&lt;BR /&gt;make: *** [link_HP-UX_ia64] Error 1&lt;BR /&gt;myneni@hp73 p4_mdl/mbd &amp;gt;&lt;BR /&gt;&lt;BR /&gt;The library libnumerflib_HP-UX_ia64.a does exist in 'nu_libs' so I am not sure why ld doesn't find it. I also tried not having -Wl, ahead of each -L/path/...but that didn't help either.&lt;BR /&gt;&lt;BR /&gt;The objects in libnumerflib_HP-UX_ia64.a are of the following type: &lt;BR /&gt;y12mdf.o:       ELF-64 relocatable object file - IA64&lt;BR /&gt;&lt;BR /&gt;Any help is most appreciated.&lt;BR /&gt;&lt;BR /&gt;-Sachin</description>
      <pubDate>Thu, 21 Apr 2005 18:11:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-build-a-shared-library-on-hp-ux-11-22/m-p/4897709#M701439</guid>
      <dc:creator>sachin myneni</dc:creator>
      <dc:date>2005-04-21T18:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to build a shared library on HP-UX  11.22</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-build-a-shared-library-on-hp-ux-11-22/m-p/4897710#M701440</link>
      <description>You are compiling with '-Wl,-ashared', thus linker only searches for shared libraries and you have archive library (.a).&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Apr 2005 22:56:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-build-a-shared-library-on-hp-ux-11-22/m-p/4897710#M701440</guid>
      <dc:creator>Ermin Borovac</dc:creator>
      <dc:date>2005-04-21T22:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to build a shared library on HP-UX  11.22</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-build-a-shared-library-on-hp-ux-11-22/m-p/4897711#M701441</link>
      <description>As said by Ermin using -Wl,-ashared forces search for shared library only. Replace it with -Wl,-ashared_archive, to search in shared libraries and then on failure search in archive libraries.&lt;BR /&gt;&lt;BR /&gt;man ld...for more information &lt;BR /&gt;&lt;BR /&gt;-Amit</description>
      <pubDate>Thu, 21 Apr 2005 23:13:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-build-a-shared-library-on-hp-ux-11-22/m-p/4897711#M701441</guid>
      <dc:creator>Amit Agarwal_1</dc:creator>
      <dc:date>2005-04-21T23:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to build a shared library on HP-UX  11.22</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-build-a-shared-library-on-hp-ux-11-22/m-p/4897712#M701442</link>
      <description>Ermin and Amit. Thanks!&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 22 Apr 2005 12:46:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-build-a-shared-library-on-hp-ux-11-22/m-p/4897712#M701442</guid>
      <dc:creator>sachin myneni</dc:creator>
      <dc:date>2005-04-22T12:46:33Z</dc:date>
    </item>
  </channel>
</rss>

