<?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: g++ - static =&amp;gt; shl_load unsatisfied symbols in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/g-static-gt-shl-load-unsatisfied-symbols/m-p/4458568#M679941</link>
    <description>&lt;BR /&gt;&amp;gt;On IPF you can't do that since only libc.so &amp;gt;is provided.&lt;BR /&gt;it means that on the IPF the libc.so is provided and we don't link it static?&lt;BR /&gt;&lt;BR /&gt;and the dld?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;You said you have done this before or it is &amp;gt;failing now?&lt;BR /&gt;&lt;BR /&gt;now, is a new project.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;You can only do this on PA and if you do, &amp;gt;you must stub out setlocale and anything &amp;gt;else that calls dlopen/shl_load. Or you &amp;gt;must use static libs for all of your &amp;gt;contributions but leave system libs as &amp;gt;shlibs.&lt;BR /&gt;&lt;BR /&gt;ok i try this, but i don't find the flag for this option by gcc :-(&lt;BR /&gt;which flag is it?&lt;BR /&gt;&lt;BR /&gt;thx</description>
    <pubDate>Tue, 14 Jul 2009 08:28:45 GMT</pubDate>
    <dc:creator>T Bruns</dc:creator>
    <dc:date>2009-07-14T08:28:45Z</dc:date>
    <item>
      <title>g++ - static =&gt; shl_load unsatisfied symbols</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/g-static-gt-shl-load-unsatisfied-symbols/m-p/4458562#M679935</link>
      <description>hello&lt;BR /&gt;&lt;BR /&gt;i hava a problem.&lt;BR /&gt;&lt;BR /&gt;i try to compile a programm with "-static" and then the linker come back with this error:&lt;BR /&gt;&lt;BR /&gt;/usr/css/bin/ld: unsatisfied symbols&lt;BR /&gt;shl_load (first referenced in /usr/lib/libc.a(setlocale.o))&lt;BR /&gt;/usr/css/bin/ld: unsatisfied symbols&lt;BR /&gt;shl_unload (first referenced in /usr/lib/libc.a(setlocale.o))&lt;BR /&gt;/usr/css/bin/ld: unsatisfied symbols&lt;BR /&gt;shl_findsym (first referenced in /usr/lib/libc.a(setlocale.o))&lt;BR /&gt;&lt;BR /&gt;HP-UX B 11.11&lt;BR /&gt;g++ 3.2&lt;BR /&gt;&lt;BR /&gt;Libraries:&lt;BR /&gt;Xm, xerces-c Xt X11 Xp Xext phtread&lt;BR /&gt;&lt;BR /&gt;Greetings&lt;BR /&gt;Thomas</description>
      <pubDate>Mon, 13 Jul 2009 12:07:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/g-static-gt-shl-load-unsatisfied-symbols/m-p/4458562#M679935</guid>
      <dc:creator>T Bruns</dc:creator>
      <dc:date>2009-07-13T12:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: g++ - static =&gt; shl_load unsatisfied symbols</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/g-static-gt-shl-load-unsatisfied-symbols/m-p/4458563#M679936</link>
      <description>That's correct.  You can't use -static if you want to dynamically load something.&lt;BR /&gt;In order to use setlocale(3) and a bunch of networking functions, you must link with -l:libdld.sl.</description>
      <pubDate>Tue, 14 Jul 2009 01:09:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/g-static-gt-shl-load-unsatisfied-symbols/m-p/4458563#M679936</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-07-14T01:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: g++ - static =&gt; shl_load unsatisfied symbols</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/g-static-gt-shl-load-unsatisfied-symbols/m-p/4458564#M679937</link>
      <description>mmhh that is not what i want :-( &lt;BR /&gt;&lt;BR /&gt;i want some application which is fully linked static.&lt;BR /&gt;&lt;BR /&gt;Background is, we produce on a HPUX PA-Risc and linked it fully static for an itanium Intel 64Bit. &lt;BR /&gt;&lt;BR /&gt;Also we need all libs static :-(&lt;BR /&gt;&lt;BR /&gt;Is there any way to do this?&lt;BR /&gt;&lt;BR /&gt;thx</description>
      <pubDate>Tue, 14 Jul 2009 04:10:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/g-static-gt-shl-load-unsatisfied-symbols/m-p/4458564#M679937</guid>
      <dc:creator>T Bruns</dc:creator>
      <dc:date>2009-07-14T04:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: g++ - static =&gt; shl_load unsatisfied symbols</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/g-static-gt-shl-load-unsatisfied-symbols/m-p/4458565#M679938</link>
      <description>Hey Thomas,&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Also we need all libs static :-(&lt;BR /&gt;&lt;BR /&gt;I think that could become difficult to get all required libraries as static ones. &lt;BR /&gt;&lt;BR /&gt;As Dennis mentioned, some libraries should/must be shared because they a very specific for the system the run on (e.g. libnss). By the way, it is a bad idea to build a completely statically linked application (you may find some of these arguments useful: &lt;A href="http://people.redhat.com/drepper/no_static_linking.html)." target="_blank"&gt;http://people.redhat.com/drepper/no_static_linking.html).&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If you build your application on a PA-RISC system, you must have already set up your build environments with static/shared libraries and include header files for Itanium systems? Why don't you then just use the shared libraries? Probably the --sysroot option is useful for your case?&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Andi</description>
      <pubDate>Tue, 14 Jul 2009 07:42:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/g-static-gt-shl-load-unsatisfied-symbols/m-p/4458565#M679938</guid>
      <dc:creator>Andre-Marcel Hellmund</dc:creator>
      <dc:date>2009-07-14T07:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: g++ - static =&gt; shl_load unsatisfied symbols</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/g-static-gt-shl-load-unsatisfied-symbols/m-p/4458566#M679939</link>
      <description>&amp;gt;I want some application which is fully linked static.&lt;BR /&gt;&lt;BR /&gt;On IPF you can't do that since only libc.so is provided.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;we produce on a HP-UX PA-RISC and linked it fully static for Integrity.&lt;BR /&gt;&lt;BR /&gt;You said you have done this before or it is failing now?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Also we need all libs static :-(&lt;BR /&gt;&lt;BR /&gt;You can only do this on PA and if you do, you must stub out setlocale and anything else that calls dlopen/shl_load.  Or you must use static libs for all of your contributions but leave system libs as shlibs.</description>
      <pubDate>Tue, 14 Jul 2009 08:06:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/g-static-gt-shl-load-unsatisfied-symbols/m-p/4458566#M679939</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-07-14T08:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: g++ - static =&gt; shl_load unsatisfied symbols</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/g-static-gt-shl-load-unsatisfied-symbols/m-p/4458567#M679940</link>
      <description>Hello ANdi&lt;BR /&gt;&lt;BR /&gt;mmhh i don't now exactly if we need the itanium libs. Our point is we use the compatibility mode from the Itanium to run the APP, so we don't need the Itanium lib(?).&lt;BR /&gt;&lt;BR /&gt;therefore i think we need the HPUX libs as static?&lt;BR /&gt;&lt;BR /&gt;sorry for my english.&lt;BR /&gt;&lt;BR /&gt;thx</description>
      <pubDate>Tue, 14 Jul 2009 08:21:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/g-static-gt-shl-load-unsatisfied-symbols/m-p/4458567#M679940</guid>
      <dc:creator>T Bruns</dc:creator>
      <dc:date>2009-07-14T08:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: g++ - static =&gt; shl_load unsatisfied symbols</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/g-static-gt-shl-load-unsatisfied-symbols/m-p/4458568#M679941</link>
      <description>&lt;BR /&gt;&amp;gt;On IPF you can't do that since only libc.so &amp;gt;is provided.&lt;BR /&gt;it means that on the IPF the libc.so is provided and we don't link it static?&lt;BR /&gt;&lt;BR /&gt;and the dld?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;You said you have done this before or it is &amp;gt;failing now?&lt;BR /&gt;&lt;BR /&gt;now, is a new project.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;You can only do this on PA and if you do, &amp;gt;you must stub out setlocale and anything &amp;gt;else that calls dlopen/shl_load. Or you &amp;gt;must use static libs for all of your &amp;gt;contributions but leave system libs as &amp;gt;shlibs.&lt;BR /&gt;&lt;BR /&gt;ok i try this, but i don't find the flag for this option by gcc :-(&lt;BR /&gt;which flag is it?&lt;BR /&gt;&lt;BR /&gt;thx</description>
      <pubDate>Tue, 14 Jul 2009 08:28:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/g-static-gt-shl-load-unsatisfied-symbols/m-p/4458568#M679941</guid>
      <dc:creator>T Bruns</dc:creator>
      <dc:date>2009-07-14T08:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: g++ - static =&gt; shl_load unsatisfied symbols</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/g-static-gt-shl-load-unsatisfied-symbols/m-p/4458569#M679942</link>
      <description>&amp;gt;I think we need the HP-UX libs as archive?&lt;BR /&gt;&lt;BR /&gt;No, it means you need to copy your non-system PA shlibs to your IPF box.&lt;BR /&gt;Or you link your non-system libs as archive and the rest shared.</description>
      <pubDate>Tue, 14 Jul 2009 08:30:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/g-static-gt-shl-load-unsatisfied-symbols/m-p/4458569#M679942</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-07-14T08:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: g++ - static =&gt; shl_load unsatisfied symbols</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/g-static-gt-shl-load-unsatisfied-symbols/m-p/4458570#M679943</link>
      <description>&amp;gt;I don't find the flag for this option by gcc :-(  which flag is it?&lt;BR /&gt;&lt;BR /&gt;There isn't any for a foreign devil compiler.  If you were using aC++, you would just use +A.&lt;BR /&gt;&lt;BR /&gt;So you have to invent your own stubs.</description>
      <pubDate>Tue, 14 Jul 2009 08:33:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/g-static-gt-shl-load-unsatisfied-symbols/m-p/4458570#M679943</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-07-14T08:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: g++ - static =&gt; shl_load unsatisfied symbols</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/g-static-gt-shl-load-unsatisfied-symbols/m-p/4458571#M679944</link>
      <description>Hey Thomas,&lt;BR /&gt;&lt;BR /&gt;okay, sorry, then I just misunderstood you. I thought you were doing some cross-compiling on PA ...&lt;BR /&gt;&lt;BR /&gt;You could check this page (&lt;A href="http://h21007.www2.hp.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c108973a801/?ciid=0208713ba4f02110713ba4f02110275d6e10RCRD)" target="_blank"&gt;http://h21007.www2.hp.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c108973a801/?ciid=0208713ba4f02110713ba4f02110275d6e10RCRD)&lt;/A&gt; about ARIES ... I think you don't need the application to be linked statically to use ARIES.&lt;BR /&gt;&lt;BR /&gt;See the example below&lt;BR /&gt;&lt;BR /&gt;PA-RISC build:&lt;BR /&gt;hs0040:c5122564&amp;gt; uname -a&lt;BR /&gt;HP-UX hs0040 B.11.11 U 9000/800 151414671 unlimited-user license&lt;BR /&gt;hs0040&amp;gt; /opt/aCC/bin/aCC -Ae test.c -o test&lt;BR /&gt;hs0040&amp;gt; ./test&lt;BR /&gt;PA-RISC&lt;BR /&gt;hs0040&amp;gt; /usr/ccs/bin/ldd test&lt;BR /&gt;        /usr/lib/libc.2 =&amp;gt;      /usr/lib/libc.2&lt;BR /&gt;        /usr/lib/libdld.2 =&amp;gt;    /usr/lib/libdld.2&lt;BR /&gt;        /usr/lib/libc.2 =&amp;gt;      /usr/lib/libc.2&lt;BR /&gt;hs0040&amp;gt; file /usr/lib/libc.2&lt;BR /&gt;/usr/lib/libc.2:        PA-RISC2.0 shared library -not stripped&lt;BR /&gt;&lt;BR /&gt;Itanium run:&lt;BR /&gt;hs0138&amp;gt; ./test&lt;BR /&gt;PA-RISC&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Jul 2009 08:33:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/g-static-gt-shl-load-unsatisfied-symbols/m-p/4458571#M679944</guid>
      <dc:creator>Andre-Marcel Hellmund</dc:creator>
      <dc:date>2009-07-14T08:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: g++ - static =&gt; shl_load unsatisfied symbols</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/g-static-gt-shl-load-unsatisfied-symbols/m-p/4458572#M679945</link>
      <description>hey andi,&lt;BR /&gt;&lt;BR /&gt;and this app runs on itanium without probs?&lt;BR /&gt;&lt;BR /&gt;this is the same with my app and therefor it must run too!?&lt;BR /&gt;&lt;BR /&gt;thx</description>
      <pubDate>Tue, 14 Jul 2009 08:36:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/g-static-gt-shl-load-unsatisfied-symbols/m-p/4458572#M679945</guid>
      <dc:creator>T Bruns</dc:creator>
      <dc:date>2009-07-14T08:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: g++ - static =&gt; shl_load unsatisfied symbols</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/g-static-gt-shl-load-unsatisfied-symbols/m-p/4458573#M679946</link>
      <description>Hey Thomas,&lt;BR /&gt;&lt;BR /&gt;yes, I worked fine for me without any problems.&lt;BR /&gt;&lt;BR /&gt;Andi</description>
      <pubDate>Tue, 14 Jul 2009 08:43:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/g-static-gt-shl-load-unsatisfied-symbols/m-p/4458573#M679946</guid>
      <dc:creator>Andre-Marcel Hellmund</dc:creator>
      <dc:date>2009-07-14T08:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: g++ - static =&gt; shl_load unsatisfied symbols</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/g-static-gt-shl-load-unsatisfied-symbols/m-p/4458574#M679947</link>
      <description>ok i try it...&lt;BR /&gt;&lt;BR /&gt;I'm curious about it.&lt;BR /&gt;&lt;BR /&gt;thx</description>
      <pubDate>Tue, 14 Jul 2009 13:43:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/g-static-gt-shl-load-unsatisfied-symbols/m-p/4458574#M679947</guid>
      <dc:creator>T Bruns</dc:creator>
      <dc:date>2009-07-14T13:43:25Z</dc:date>
    </item>
  </channel>
</rss>

