<?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: static library problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/static-library-problem/m-p/2581021#M725510</link>
    <description>since nobody responding to this message.  i am adding traced path during core&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#0  0x5001d0 in kill ()&lt;BR /&gt;#1  0x50e6b8 in raise ()&lt;BR /&gt;#2  0x50958c in abort_C ()&lt;BR /&gt;#3  0x4f3568 in abort ()&lt;BR /&gt;#4  0x5150c4 in shl_load ()&lt;BR /&gt;#5  0x50b004 in SO_per_src_lookup ()&lt;BR /&gt;#6  0x4f6e58 in nss_get_backend_u ()&lt;BR /&gt;#7  0x4f7828 in nss_search ()&lt;BR /&gt;#8  0x4a837c in __gethostbyname_r ()&lt;BR /&gt;#9  0x4a84d0 in gethostbyname ()            &lt;BR /&gt;#10 0x4516a8 in _X11TransSocketINETConnect ()&lt;BR /&gt;#11 0x4524a4 in _X11TransConnect ()&lt;BR /&gt;#12 0x44ce18 in _X11TransConnectDisplay ()&lt;BR /&gt;#13 0x432204 in XOpenDisplay ()&lt;BR /&gt;#14 0x3e4e64 in XtOpenDisplay ()&lt;BR /&gt;#15 0x3e505c in _XtAppInit ()&lt;BR /&gt;#16 0x3ee9dc in XtOpenApplication ()&lt;BR /&gt;&lt;BR /&gt;By seeing the above  trace, getHostbyName() internaly calls shl_load(). &lt;BR /&gt;because of usage os shl_load() function. system throughs the error message&lt;BR /&gt;&lt;BR /&gt;but why getHostbyName calls shl_load. Then How i can create the version by using A++(because aCC manual shows we can not use +A for  shl_load call used any where)&lt;BR /&gt;&lt;BR /&gt;is there any wrong with HP system. do we need any patch?&lt;BR /&gt;&lt;BR /&gt;please respond to this,  this is very critical to me.&lt;BR /&gt;&lt;BR /&gt;satya</description>
    <pubDate>Mon, 24 Sep 2001 16:55:58 GMT</pubDate>
    <dc:creator>satyach</dc:creator>
    <dc:date>2001-09-24T16:55:58Z</dc:date>
    <item>
      <title>static library problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/static-library-problem/m-p/2581020#M725509</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt; When I run a statically built (archive) executable on HPUX 11.0 with  aCC: HP ANSI C++ B3910B A.03.25 I see the following error message: &lt;BR /&gt; $ a.out  aCC runtime: ERROR: Unexpected use of shared libraries &lt;BR /&gt; aCC runtime: ERROR: Read aCC manpage, +A option &lt;BR /&gt; /usr/lib/libnss_files.1 Abort(coredump) &lt;BR /&gt;&lt;BR /&gt; The +A option is used during compile and it seems to make no difference i/ ensure a static archive executable. &lt;BR /&gt;&lt;BR /&gt;please suggest me, how to create static library version with out above problem&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;satya</description>
      <pubDate>Tue, 18 Sep 2001 14:11:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/static-library-problem/m-p/2581020#M725509</guid>
      <dc:creator>satyach</dc:creator>
      <dc:date>2001-09-18T14:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: static library problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/static-library-problem/m-p/2581021#M725510</link>
      <description>since nobody responding to this message.  i am adding traced path during core&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#0  0x5001d0 in kill ()&lt;BR /&gt;#1  0x50e6b8 in raise ()&lt;BR /&gt;#2  0x50958c in abort_C ()&lt;BR /&gt;#3  0x4f3568 in abort ()&lt;BR /&gt;#4  0x5150c4 in shl_load ()&lt;BR /&gt;#5  0x50b004 in SO_per_src_lookup ()&lt;BR /&gt;#6  0x4f6e58 in nss_get_backend_u ()&lt;BR /&gt;#7  0x4f7828 in nss_search ()&lt;BR /&gt;#8  0x4a837c in __gethostbyname_r ()&lt;BR /&gt;#9  0x4a84d0 in gethostbyname ()            &lt;BR /&gt;#10 0x4516a8 in _X11TransSocketINETConnect ()&lt;BR /&gt;#11 0x4524a4 in _X11TransConnect ()&lt;BR /&gt;#12 0x44ce18 in _X11TransConnectDisplay ()&lt;BR /&gt;#13 0x432204 in XOpenDisplay ()&lt;BR /&gt;#14 0x3e4e64 in XtOpenDisplay ()&lt;BR /&gt;#15 0x3e505c in _XtAppInit ()&lt;BR /&gt;#16 0x3ee9dc in XtOpenApplication ()&lt;BR /&gt;&lt;BR /&gt;By seeing the above  trace, getHostbyName() internaly calls shl_load(). &lt;BR /&gt;because of usage os shl_load() function. system throughs the error message&lt;BR /&gt;&lt;BR /&gt;but why getHostbyName calls shl_load. Then How i can create the version by using A++(because aCC manual shows we can not use +A for  shl_load call used any where)&lt;BR /&gt;&lt;BR /&gt;is there any wrong with HP system. do we need any patch?&lt;BR /&gt;&lt;BR /&gt;please respond to this,  this is very critical to me.&lt;BR /&gt;&lt;BR /&gt;satya</description>
      <pubDate>Mon, 24 Sep 2001 16:55:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/static-library-problem/m-p/2581021#M725510</guid>
      <dc:creator>satyach</dc:creator>
      <dc:date>2001-09-24T16:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: static library problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/static-library-problem/m-p/2581022#M725511</link>
      <description>It looks like its trying to figure out which method it should use to resolve the hostname, i.e. NIS, DNS or local file.  The libnss_files implements lookups for local files.  Unfortunately, I couldn't find a archived version of this libarary.  Your program is puking because its trying to pull in a shared library and that's not allowed when you use the +A option.  Can you try relinking with the -Wl,a archived_shared option?  This would instruct the linker to compile against archived library as much as possible and then fall back to using shared libraries.  Not sure if this would be an option for you though.&lt;BR /&gt;&lt;BR /&gt;-Santosh</description>
      <pubDate>Mon, 24 Sep 2001 17:38:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/static-library-problem/m-p/2581022#M725511</guid>
      <dc:creator>Santosh Nair_1</dc:creator>
      <dc:date>2001-09-24T17:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: static library problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/static-library-problem/m-p/2581023#M725512</link>
      <description>Hi Santosh&lt;BR /&gt;&lt;BR /&gt;good to see your reply.  as per ur suggestions. i tried following options.&lt;BR /&gt;&lt;BR /&gt;-Wl,a archived_shared (it gave error during linking about the syntax).&lt;BR /&gt;&lt;BR /&gt;I tried the following option&lt;BR /&gt;&lt;BR /&gt;-Wl,-a,archive&lt;BR /&gt;&lt;BR /&gt;it created the executable. it gives the following error during execution.&lt;BR /&gt;&lt;BR /&gt;Error: Can't open display: XX100:0.0&lt;BR /&gt;&lt;BR /&gt;even though DISPLAY env and xhost defined properly(i tested by invoking xclock)&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;satya</description>
      <pubDate>Mon, 24 Sep 2001 18:30:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/static-library-problem/m-p/2581023#M725512</guid>
      <dc:creator>satyach</dc:creator>
      <dc:date>2001-09-24T18:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: static library problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/static-library-problem/m-p/2581024#M725513</link>
      <description>Sorry about the typo, that should have read archive, not archived.&lt;BR /&gt;&lt;BR /&gt;As for the display problem, what is tha application trying to do?  Is the display that its trying to use your workstation/PC and what is the DISPLAY environment variable set to?&lt;BR /&gt;&lt;BR /&gt;Also, just out of curiosity, what is this app if you don't mind me asking?&lt;BR /&gt;&lt;BR /&gt;-Santosh</description>
      <pubDate>Mon, 24 Sep 2001 18:42:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/static-library-problem/m-p/2581024#M725513</guid>
      <dc:creator>Santosh Nair_1</dc:creator>
      <dc:date>2001-09-24T18:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: static library problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/static-library-problem/m-p/2581025#M725514</link>
      <description>Hi Santhosh&lt;BR /&gt;&lt;BR /&gt;I am working on SUN workstion and remote login to HP machine.&lt;BR /&gt;&lt;BR /&gt;i used setenv DISPLAY HP_IP:0.0&lt;BR /&gt;in login xterm window.&lt;BR /&gt;&lt;BR /&gt;and i gave xhost HP_IP in my xterm(SUN).&lt;BR /&gt;&lt;BR /&gt;i tested by invoking the xterm and xclock .&lt;BR /&gt;&lt;BR /&gt;Even if i am sitting in front of the HP machine and i am using same work station(executable lies on the same machine). it gave same error.&lt;BR /&gt;&lt;BR /&gt;I am developing a GUI, which contains tree object and other common moti objects.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Satya&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Sep 2001 18:52:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/static-library-problem/m-p/2581025#M725514</guid>
      <dc:creator>satyach</dc:creator>
      <dc:date>2001-09-24T18:52:45Z</dc:date>
    </item>
  </channel>
</rss>

