<?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: Problem Creating Shared Library in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-shared-library/m-p/3238050#M714733</link>
    <description>Does anybody know how to get rid of this????</description>
    <pubDate>Fri, 02 Apr 2004 23:54:21 GMT</pubDate>
    <dc:creator>Lalit Seth</dc:creator>
    <dc:date>2004-04-02T23:54:21Z</dc:date>
    <item>
      <title>Problem Creating Shared Library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-shared-library/m-p/3238044#M714727</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I m using gcc 3.3.3 11.11/32 bit binary created by Merjin on hppa2.0w.&lt;BR /&gt;&lt;BR /&gt;I have created xaa.cpp&lt;BR /&gt;#include&lt;IOSTREAM.H&gt;&lt;BR /&gt;&lt;BR /&gt;void name()&lt;BR /&gt;{&lt;BR /&gt;cout&amp;lt;&amp;lt;"Name"&amp;lt;&lt;ENDL&gt;&lt;/ENDL&gt;}&lt;BR /&gt;&lt;BR /&gt;Then compile it using&lt;BR /&gt;g++ -c -g xaa.cpp&lt;BR /&gt;which does fine&lt;BR /&gt;now when i create shared library of this using &lt;BR /&gt;g++ -g -shared -fPIC -o xaa.so xaa.o&lt;BR /&gt;results in&lt;BR /&gt;/usr/ccs/bin/ld: Invalid loader fixup in text space needed in output file for symbol "std::basic_ostream&lt;CHAR&gt; &amp;gt;&amp;amp; std::endl&lt;CHAR&gt; &amp;gt;(std::basic_ostream&lt;CHAR&gt; &amp;gt;&amp;amp;)" in input file "xaa.o"&lt;BR /&gt;collect2: ld returned 1 exit status&lt;BR /&gt; &lt;BR /&gt;How can i resolve this???&lt;BR /&gt;&lt;BR /&gt;Rgds&lt;BR /&gt;Lalit&lt;/CHAR&gt;&lt;/CHAR&gt;&lt;/CHAR&gt;&lt;/IOSTREAM.H&gt;</description>
      <pubDate>Fri, 02 Apr 2004 07:24:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-shared-library/m-p/3238044#M714727</guid>
      <dc:creator>Lalit Seth</dc:creator>
      <dc:date>2004-04-02T07:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem Creating Shared Library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-shared-library/m-p/3238045#M714728</link>
      <description>Try doing the first compile from C++-code to object file with the -shared option. That should help, according to the man-page description of -shared option of g++.</description>
      <pubDate>Fri, 02 Apr 2004 07:41:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-shared-library/m-p/3238045#M714728</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2004-04-02T07:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem Creating Shared Library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-shared-library/m-p/3238046#M714729</link>
      <description>Thnks,&lt;BR /&gt;&lt;BR /&gt;Still Error Occurs :(&lt;BR /&gt;&lt;BR /&gt;What next ????</description>
      <pubDate>Fri, 02 Apr 2004 07:50:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-shared-library/m-p/3238046#M714729</guid>
      <dc:creator>Lalit Seth</dc:creator>
      <dc:date>2004-04-02T07:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem Creating Shared Library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-shared-library/m-p/3238047#M714730</link>
      <description>Have you tried without the debugging code? (remove the -g options from both g++ calls)</description>
      <pubDate>Fri, 02 Apr 2004 08:03:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-shared-library/m-p/3238047#M714730</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2004-04-02T08:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem Creating Shared Library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-shared-library/m-p/3238048#M714731</link>
      <description>No Luck Same Error</description>
      <pubDate>Fri, 02 Apr 2004 08:06:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-shared-library/m-p/3238048#M714731</guid>
      <dc:creator>Lalit Seth</dc:creator>
      <dc:date>2004-04-02T08:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem Creating Shared Library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-shared-library/m-p/3238049#M714732</link>
      <description>Tryed this&lt;BR /&gt;g++ -c -fPIC -shared xaa.cpp&lt;BR /&gt;g++ -fPIC -shared -o xaa.so xaa.o&lt;BR /&gt;&lt;BR /&gt;and got&lt;BR /&gt;&lt;BR /&gt;/usr/ccs/bin/ld: Invalid loader fixup in text space needed in output file for symbol "__gxx_personality_sj0" in input file "../HPUXGCC3.3.3-32/pa20_32/lib/libstdc++.a(ios.o)"&lt;BR /&gt;collect2: ld returned 1 exit status&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Apr 2004 08:14:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-shared-library/m-p/3238049#M714732</guid>
      <dc:creator>Lalit Seth</dc:creator>
      <dc:date>2004-04-02T08:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem Creating Shared Library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-shared-library/m-p/3238050#M714733</link>
      <description>Does anybody know how to get rid of this????</description>
      <pubDate>Fri, 02 Apr 2004 23:54:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-shared-library/m-p/3238050#M714733</guid>
      <dc:creator>Lalit Seth</dc:creator>
      <dc:date>2004-04-02T23:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem Creating Shared Library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-shared-library/m-p/3238051#M714734</link>
      <description>The problem is that libstdc++.a is not compiled as Position Independent Code (-fPIC). &lt;BR /&gt;&lt;BR /&gt;You have 2 options:&lt;BR /&gt;* Recompile libstdc++.a as position independent.&lt;BR /&gt;* Link with libstdc++.sl shared library.&lt;BR /&gt;&lt;BR /&gt;I have recompiled libstdc++.a as position independent and this problem was disappeared.&lt;BR /&gt;&lt;BR /&gt;Maxim</description>
      <pubDate>Wed, 14 Apr 2004 03:54:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-shared-library/m-p/3238051#M714734</guid>
      <dc:creator>Maxim Tseitlin</dc:creator>
      <dc:date>2004-04-14T03:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problem Creating Shared Library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-shared-library/m-p/3238052#M714735</link>
      <description>Could you try compiling xaa.o with the +z/+Z option which enables it to be linked as a shared library.&lt;BR /&gt;&lt;BR /&gt;You might also try linking with with standrad c library with "-lc" tag if that doesnt work.</description>
      <pubDate>Wed, 14 Apr 2004 17:21:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-shared-library/m-p/3238052#M714735</guid>
      <dc:creator>Paddy_1</dc:creator>
      <dc:date>2004-04-14T17:21:43Z</dc:date>
    </item>
  </channel>
</rss>

