<?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 Shared Libraries: Unresolved Symbol from libCsup.1 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-libraries-unresolved-symbol-from-libcsup-1/m-p/2553425#M887667</link>
    <description>Hi Everybody!&lt;BR /&gt;&lt;BR /&gt;I believe I'm having trouble with shared libraries on different UNIX versions. Here is my situation. We have a development machine based on UNIX 10.20 that runs CATIA on it. We have several in house programs that are linked with CATIA functions which run fine on 10.20. However, our productionmachine is targeted for UNIX 11.11. Some of the executables generated on 10.2 run fine on 11.11 and others don't.&lt;BR /&gt;&lt;BR /&gt;This is where I believe shared libraries are causing me problems.  Programs only using FORTRAN and CATIA run both on 10.20 and 11.11. The command used to generate these executables on 10.20 is:&lt;BR /&gt;&lt;BR /&gt;ld +s -E prog.o /opt/aCC/lib/crt.o /opt/aCC/lib/cpprt0.o \ /usr/catia/cfg/code/lib/libgeo.a -lc -lm -lf -ldld -lstream -lstd -lCsup -o prog&lt;BR /&gt;&lt;BR /&gt;The programs that don't work involve C wrappers around the FORTRAN.  The command to generate these executables is:&lt;BR /&gt;&lt;BR /&gt;cc -W1,+n -o TEST1  TEST1.o prog.o /usr/catia/cfg/code/lib/libgeo.a /usr/lib/libcl.sl   /usr/lib/libcma.sl   /usr/lib/libc.sl &lt;BR /&gt;&lt;BR /&gt;When these executables are run on 11.11 the following error is issued:&lt;BR /&gt;&lt;BR /&gt;/usr/lib/libdld.sl: Unresolved symbol: __StaticCTorTable_Start (data) from /usr/lib/libCsup.1&lt;BR /&gt;/usr/lib/libdld.sl: Unresolved symbol: __StaticCTorTable_End (data) from /usr/lib/libCsup.1&lt;BR /&gt;&lt;BR /&gt;I haven't worked much with shared libraries but I think the problem is with them. I've tried alot of different scenarios to get it to work (3 days worth) but no luck. I've checked environment variables e.g. SHLIB_PATH that are the same on both machines.&lt;BR /&gt;&lt;BR /&gt;What am I missing? Any suggestions or thoughts on this would greatly be appreciated. Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;Jim</description>
    <pubDate>Mon, 16 Jul 2001 21:13:53 GMT</pubDate>
    <dc:creator>Jim Leishman</dc:creator>
    <dc:date>2001-07-16T21:13:53Z</dc:date>
    <item>
      <title>Shared Libraries: Unresolved Symbol from libCsup.1</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-libraries-unresolved-symbol-from-libcsup-1/m-p/2553425#M887667</link>
      <description>Hi Everybody!&lt;BR /&gt;&lt;BR /&gt;I believe I'm having trouble with shared libraries on different UNIX versions. Here is my situation. We have a development machine based on UNIX 10.20 that runs CATIA on it. We have several in house programs that are linked with CATIA functions which run fine on 10.20. However, our productionmachine is targeted for UNIX 11.11. Some of the executables generated on 10.2 run fine on 11.11 and others don't.&lt;BR /&gt;&lt;BR /&gt;This is where I believe shared libraries are causing me problems.  Programs only using FORTRAN and CATIA run both on 10.20 and 11.11. The command used to generate these executables on 10.20 is:&lt;BR /&gt;&lt;BR /&gt;ld +s -E prog.o /opt/aCC/lib/crt.o /opt/aCC/lib/cpprt0.o \ /usr/catia/cfg/code/lib/libgeo.a -lc -lm -lf -ldld -lstream -lstd -lCsup -o prog&lt;BR /&gt;&lt;BR /&gt;The programs that don't work involve C wrappers around the FORTRAN.  The command to generate these executables is:&lt;BR /&gt;&lt;BR /&gt;cc -W1,+n -o TEST1  TEST1.o prog.o /usr/catia/cfg/code/lib/libgeo.a /usr/lib/libcl.sl   /usr/lib/libcma.sl   /usr/lib/libc.sl &lt;BR /&gt;&lt;BR /&gt;When these executables are run on 11.11 the following error is issued:&lt;BR /&gt;&lt;BR /&gt;/usr/lib/libdld.sl: Unresolved symbol: __StaticCTorTable_Start (data) from /usr/lib/libCsup.1&lt;BR /&gt;/usr/lib/libdld.sl: Unresolved symbol: __StaticCTorTable_End (data) from /usr/lib/libCsup.1&lt;BR /&gt;&lt;BR /&gt;I haven't worked much with shared libraries but I think the problem is with them. I've tried alot of different scenarios to get it to work (3 days worth) but no luck. I've checked environment variables e.g. SHLIB_PATH that are the same on both machines.&lt;BR /&gt;&lt;BR /&gt;What am I missing? Any suggestions or thoughts on this would greatly be appreciated. Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;Jim</description>
      <pubDate>Mon, 16 Jul 2001 21:13:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-libraries-unresolved-symbol-from-libcsup-1/m-p/2553425#M887667</guid>
      <dc:creator>Jim Leishman</dc:creator>
      <dc:date>2001-07-16T21:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Shared Libraries: Unresolved Symbol from libCsup.1</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-libraries-unresolved-symbol-from-libcsup-1/m-p/2553426#M887668</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;  This can be the problem of patches. Please find out the recent patches available for shared libraries and load with all suggested pre requisites. I hope this will solve ur problem&lt;BR /&gt;&lt;BR /&gt;Best of luck&lt;BR /&gt;&lt;BR /&gt;Shahul</description>
      <pubDate>Tue, 17 Jul 2001 05:04:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-libraries-unresolved-symbol-from-libcsup-1/m-p/2553426#M887668</guid>
      <dc:creator>Shahul</dc:creator>
      <dc:date>2001-07-17T05:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Shared Libraries: Unresolved Symbol from libCsup.1</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-libraries-unresolved-symbol-from-libcsup-1/m-p/2553427#M887669</link>
      <description>check with nm the entry points in your library libCsup.1&lt;BR /&gt;&lt;BR /&gt;nm libCsup.1 | grep Table_Start&lt;BR /&gt;&lt;BR /&gt;I get the following results:&lt;BR /&gt;__StaticCtorTable_Start|1073754880|static|data   |$DATA$CDTORC1$     &lt;BR /&gt;&lt;BR /&gt;I found that only __StaticCtorTable is an entry point but not __StaticCTorTable as your ld complains&lt;BR /&gt;(watch out for the  the capital T)&lt;BR /&gt;&lt;BR /&gt;check this for your box first</description>
      <pubDate>Tue, 17 Jul 2001 05:17:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-libraries-unresolved-symbol-from-libcsup-1/m-p/2553427#M887669</guid>
      <dc:creator>Rainer von Bongartz</dc:creator>
      <dc:date>2001-07-17T05:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: Shared Libraries: Unresolved Symbol from libCsup.1</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-libraries-unresolved-symbol-from-libcsup-1/m-p/2553428#M887670</link>
      <description>&lt;BR /&gt;The executables you are generating on 10.20, why dont you compile them as static so all the library stuff you need is linked into the executable, then when you move them to 11i and run them they should work fine.</description>
      <pubDate>Tue, 17 Jul 2001 07:10:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-libraries-unresolved-symbol-from-libcsup-1/m-p/2553428#M887670</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2001-07-17T07:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Shared Libraries: Unresolved Symbol from libCsup.1</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-libraries-unresolved-symbol-from-libcsup-1/m-p/2553429#M887671</link>
      <description>Jim,&lt;BR /&gt;&lt;BR /&gt;If the OS is 11.11 here is the ac++ runtime libs patch that should be installed.&lt;BR /&gt;&lt;BR /&gt;PHSS_22898&lt;BR /&gt;&lt;BR /&gt;If the O/S is 11.0 install PHSS_22543&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;-denver</description>
      <pubDate>Wed, 25 Jul 2001 20:04:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-libraries-unresolved-symbol-from-libcsup-1/m-p/2553429#M887671</guid>
      <dc:creator>Denver Osborn</dc:creator>
      <dc:date>2001-07-25T20:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: Shared Libraries: Unresolved Symbol from libCsup.1</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-libraries-unresolved-symbol-from-libcsup-1/m-p/2553430#M887672</link>
      <description>Yeah, it's working!!!  I want to thank everybody for their insights and suggestions.&lt;BR /&gt;&lt;BR /&gt;shahul - You were right, I needed a patch. This got me going in the right direction.&lt;BR /&gt;&lt;BR /&gt;Rainer - Your suggestion verified I was missing the indicated entry points.&lt;BR /&gt;&lt;BR /&gt;Stefan - I tried your idea as a test case to see if I could get it going. However, I can't do that because I'm bounded by CATIA scripts that use shared libraries.&lt;BR /&gt;&lt;BR /&gt;Denver - Thanks for identifying the correct patches, it worked like a charm. I hope I was clear in describing my problem over the phone. I called you back the next day but couldn't reach you, so I closed out the call (ticket?) using the automation process on the phone by leaving a message for you.&lt;BR /&gt;&lt;BR /&gt;One thing about these type of problems, you pick up and find out alot of neat things along the way.</description>
      <pubDate>Fri, 27 Jul 2001 14:47:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-libraries-unresolved-symbol-from-libcsup-1/m-p/2553430#M887672</guid>
      <dc:creator>Jim Leishman</dc:creator>
      <dc:date>2001-07-27T14:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Shared Libraries: Unresolved Symbol from libCsup.1</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-libraries-unresolved-symbol-from-libcsup-1/m-p/2553431#M887673</link>
      <description>Hi Jim,&lt;BR /&gt;&lt;BR /&gt;I had met this problem developping a client/ server application model to validate migration of DCE/RPC (XDR) on hp 11.0 and I was surprised that libraries names from hp-ux side has changed !!!&lt;BR /&gt;&lt;BR /&gt;Better you include all libraries into your make file. &lt;BR /&gt;Once link edition is OK and no more "Unresolved symbols" are comming then try to remove library by library till you have the new subset you are looking for.&lt;BR /&gt;&lt;BR /&gt;Good luck.</description>
      <pubDate>Fri, 27 Jul 2001 15:09:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-libraries-unresolved-symbol-from-libcsup-1/m-p/2553431#M887673</guid>
      <dc:creator>Magdi KAMAL</dc:creator>
      <dc:date>2001-07-27T15:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: Shared Libraries: Unresolved Symbol from libCsup.1</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-libraries-unresolved-symbol-from-libcsup-1/m-p/2553432#M887674</link>
      <description>Maqdi,&lt;BR /&gt;&lt;BR /&gt;I actually did that. I threw all the shared libraries (and the kitchen sink!) into my makefile and started to back them out one at a time. The problem was I needed a patch to update the libCsup.1 library. Thanks for your input.&lt;BR /&gt;&lt;BR /&gt;Jim</description>
      <pubDate>Fri, 27 Jul 2001 19:08:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-libraries-unresolved-symbol-from-libcsup-1/m-p/2553432#M887674</guid>
      <dc:creator>Jim Leishman</dc:creator>
      <dc:date>2001-07-27T19:08:51Z</dc:date>
    </item>
  </channel>
</rss>

