<?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: Creating shared library in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-shared-library/m-p/2568355#M713596</link>
    <description>Hi Igor,&lt;BR /&gt;&lt;BR /&gt;Can you sheare the compile line options for the .o as well as the library.&lt;BR /&gt;&lt;BR /&gt;manish</description>
    <pubDate>Tue, 07 Sep 2004 07:02:19 GMT</pubDate>
    <dc:creator>Manish Srivastava</dc:creator>
    <dc:date>2004-09-07T07:02:19Z</dc:date>
    <item>
      <title>Creating shared library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-shared-library/m-p/2568353#M713594</link>
      <description>Hi, &lt;BR /&gt;I'm trying to create a shared library that uses another &lt;BR /&gt;third party static (.a) library. During compilation I got the message: &lt;BR /&gt;&lt;BR /&gt;ld: Invalid loader fixup for symbol "$000001B5". &lt;BR /&gt;&lt;BR /&gt;Probably, the library sources were compiled without +z option, but I haven't these sources. &lt;BR /&gt;There is no problem with creating an executable that uses this library. &lt;BR /&gt;May by somebody can help me with that. &lt;BR /&gt;Thanks, &lt;BR /&gt;Igor</description>
      <pubDate>Wed, 22 Aug 2001 04:30:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-shared-library/m-p/2568353#M713594</guid>
      <dc:creator>Voloshin Igor</dc:creator>
      <dc:date>2001-08-22T04:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Creating shared library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-shared-library/m-p/2568354#M713595</link>
      <description>Hello Voloshin,&lt;BR /&gt;&lt;BR /&gt;       Here i have tested with sample code.&lt;BR /&gt;&lt;BR /&gt; # cat sdisplay.c&lt;BR /&gt; #include &lt;STDIO.H&gt;&lt;BR /&gt; void sdisplay()&lt;BR /&gt; {&lt;BR /&gt;  printf("Message from static lib\n");&lt;BR /&gt; }&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; # cat ddisplay.c&lt;BR /&gt; #include &lt;STDIO.H&gt;&lt;BR /&gt; void ddisplay()&lt;BR /&gt; {&lt;BR /&gt;  sdisplay();&lt;BR /&gt;  printf("Message from dynamic lib\n");&lt;BR /&gt; }&lt;BR /&gt;&lt;BR /&gt; # cat main.c&lt;BR /&gt; #include &lt;STDIO.H&gt;&lt;BR /&gt; int main()&lt;BR /&gt; {&lt;BR /&gt;  ddisplay();&lt;BR /&gt;  printf("Message from main");&lt;BR /&gt;  return 0;&lt;BR /&gt; }&lt;BR /&gt;&lt;BR /&gt; #  cc -c sdisplay.c&lt;BR /&gt; #  ar cq libsdisplay.a sdisplay.o &lt;BR /&gt; #  cc +z -c ddisplay.c&lt;BR /&gt; #  ld -b -o libddisplay.so  ddisplay.o\&lt;BR /&gt;         -L. -lsdisplay&lt;BR /&gt; #  cc main.c -L. -lddisplay&lt;BR /&gt; # ./a.out&lt;BR /&gt;&lt;BR /&gt;  Message from static lib &lt;BR /&gt;  Message from dynamic lib&lt;BR /&gt;  Message from main&lt;BR /&gt;        &lt;BR /&gt;      First created dynamic object with +z option, use ld to create the dynamic library with static.&lt;BR /&gt;&lt;BR /&gt;I hope this will work for your problem.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;kalimuthu&lt;BR /&gt;&lt;BR /&gt;&lt;/STDIO.H&gt;&lt;/STDIO.H&gt;&lt;/STDIO.H&gt;</description>
      <pubDate>Tue, 07 Sep 2004 06:53:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-shared-library/m-p/2568354#M713595</guid>
      <dc:creator>kalimuthu</dc:creator>
      <dc:date>2004-09-07T06:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: Creating shared library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-shared-library/m-p/2568355#M713596</link>
      <description>Hi Igor,&lt;BR /&gt;&lt;BR /&gt;Can you sheare the compile line options for the .o as well as the library.&lt;BR /&gt;&lt;BR /&gt;manish</description>
      <pubDate>Tue, 07 Sep 2004 07:02:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-shared-library/m-p/2568355#M713596</guid>
      <dc:creator>Manish Srivastava</dc:creator>
      <dc:date>2004-09-07T07:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Creating shared library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-shared-library/m-p/2568356#M713597</link>
      <description>building a shared library needs that the object contain position-independent code (pic) - this is what is achieved with +z compile option.&lt;BR /&gt;&lt;BR /&gt;if the object code is non-pic, there is no way to build a shared library from it.&lt;BR /&gt;&lt;BR /&gt;also i think there is no supported way of converting non-pic code to pic.</description>
      <pubDate>Wed, 08 Sep 2004 08:34:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-shared-library/m-p/2568356#M713597</guid>
      <dc:creator>ranganath ramachandra</dc:creator>
      <dc:date>2004-09-08T08:34:16Z</dc:date>
    </item>
  </channel>
</rss>

