<?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: Unresolved Symbol error in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/unresolved-symbol-error/m-p/3336869#M712464</link>
    <description>Michael,&lt;BR /&gt;Thank you for pointing to those previous discussions.&lt;BR /&gt;Based on my understanding, I did an explicit link with libCsup library while building the executable, but now I am getting the following error:&lt;BR /&gt;CC: error: could not find __perfopt_mode symbol.  You must use CC to link.  If your main is not in C++, a call to _main() is required. (740)&lt;BR /&gt;CC: error: could not find __head symbol.  You must use CC to link.  If your main is not in C++, a call to _main() is required. (740)&lt;BR /&gt;We have a main function in one of source file whose object file is CSTARServer.o and it is included in the command to build the executable.&lt;BR /&gt;Inspite of the above error the executable gets built.&lt;BR /&gt;Can anyone please provide an explanation?&lt;BR /&gt;&lt;BR /&gt;Thank You.&lt;BR /&gt;Sanjib.</description>
    <pubDate>Wed, 21 Jul 2004 02:28:58 GMT</pubDate>
    <dc:creator>Sanjib Talukdar</dc:creator>
    <dc:date>2004-07-21T02:28:58Z</dc:date>
    <item>
      <title>Unresolved Symbol error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unresolved-symbol-error/m-p/3336866#M712461</link>
      <description>All,&lt;BR /&gt;&lt;BR /&gt;We have compiled and built an executable on HP UX 11.00. While running this executable we are getting the following error:&lt;BR /&gt;/usr/lib/dld.sl: Unresolved symbol: __shlinit (code)  from /usr/lib/librwtool.2&lt;BR /&gt;Abort(coredump)&lt;BR /&gt;&lt;BR /&gt;Can anyone please point out what the problem? Do we need to specify some library paths in SHLIB_PATH?&lt;BR /&gt;&lt;BR /&gt;We used the following compiler and linkers:&lt;BR /&gt;what /bin/CC&lt;BR /&gt;/bin/CC:&lt;BR /&gt;        HP C++ HPCPLUSPLUS  A.12.14 (980921)&lt;BR /&gt;&lt;BR /&gt;what /bin/ld&lt;BR /&gt;/bin/ld:&lt;BR /&gt;        $Revision: 92453-07 linker linker crt0.o B.11.16.01 030316 $&lt;BR /&gt;        HP aC++ B3910B X.03.37.01 Classic Iostream Library&lt;BR /&gt;        HP aC++ B3910B X.03.37.01 Language Support Library&lt;BR /&gt;        ld_msgs.cat: $Revision: 1.85 $&lt;BR /&gt;        92453-07 linker command s800.sgs ld PA64 B.11.38 REL 031217&lt;BR /&gt;&lt;BR /&gt;The following is the command line for building the executable:&lt;BR /&gt;CC -W l,-z -W l,-Bimmediate -W l,-Bnonfatal -W l,+s    +eh       -Wl,-a,archive  CSTARCallBack.o CSTARDisplay.o CSTARServer.o CSTARToXdr.o ChangeOE.o RestorSvc.o ChangeLnFeat.o ChangeIntrcpt.o TransFileMgr.o tbcc.o   /prod/ssi/ssi-3.18/dg/dev/lib/libDG.a  /prod/ssi/ssi-3.18/dg/dev/lib/libOSSGW.a      /prod/ssi/ssi-3.18/dg/dev/lib/libpwd.a     /prod/ssi/ssi-3.18/dg/dev/xdr/libidl.a        /prod/ssi/ssi-3.18/dg/rogue/lib/libtls0s.a -L/opt/datagate/lib    -L/opt/datagate/rsa/tipemlib/hp9000/lib  -lsinfra -lsclass -laclapi -lUtil  -lInfra -lpksec  -lTipemCS  -lLLCache  -ltipemutl  -ltipem  -ldgsnmp -lRawMsg -lMdrivers  -lLinklist -lavl -lxdr  -Wl,-a,default   -lm  -lrwtool -ldce -lndbm -ldld -lc_r -I.  -I/opt/CC/include/CC  -I/opt/datagate/include  -I/opt/datagate/include/security  -I/usr/include/reentrant  -I/usr/include            -I/prod/ssi/ssi-3.18/dg/rogue  -I/prod/ssi/ssi-3.18/dg/dev/xdr  -I/prod/ssi/ssi-3.18/dg/dev/include  -I/prod/ssi/ssi-3.18/dg/dev/src/libOSSGW  -I/prod/ssi/ssi-3.18/dg/dev/src/libDG  -o CSTARServer-6.0.1&lt;BR /&gt;&lt;BR /&gt;Thank You.&lt;BR /&gt;Sanjib.</description>
      <pubDate>Tue, 20 Jul 2004 23:38:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unresolved-symbol-error/m-p/3336866#M712461</guid>
      <dc:creator>Sanjib Talukdar</dc:creator>
      <dc:date>2004-07-20T23:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Unresolved Symbol error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unresolved-symbol-error/m-p/3336867#M712462</link>
      <description>Check these two postings, they may provide some assistance.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=143652" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=143652&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=132021" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=132021&lt;/A&gt;</description>
      <pubDate>Tue, 20 Jul 2004 23:54:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unresolved-symbol-error/m-p/3336867#M712462</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2004-07-20T23:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: Unresolved Symbol error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unresolved-symbol-error/m-p/3336868#M712463</link>
      <description>why are you using CC ? you are not supposed to. CC is obsoleted - no longer supported. you should be using aCC.&lt;BR /&gt;&lt;BR /&gt;__shlInit is defined in libCsup.sl and this will be passed to the linker in the link line by aCC. so when you use aCC this will automatically be taken care of.</description>
      <pubDate>Wed, 21 Jul 2004 01:31:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unresolved-symbol-error/m-p/3336868#M712463</guid>
      <dc:creator>ranganath ramachandra</dc:creator>
      <dc:date>2004-07-21T01:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: Unresolved Symbol error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unresolved-symbol-error/m-p/3336869#M712464</link>
      <description>Michael,&lt;BR /&gt;Thank you for pointing to those previous discussions.&lt;BR /&gt;Based on my understanding, I did an explicit link with libCsup library while building the executable, but now I am getting the following error:&lt;BR /&gt;CC: error: could not find __perfopt_mode symbol.  You must use CC to link.  If your main is not in C++, a call to _main() is required. (740)&lt;BR /&gt;CC: error: could not find __head symbol.  You must use CC to link.  If your main is not in C++, a call to _main() is required. (740)&lt;BR /&gt;We have a main function in one of source file whose object file is CSTARServer.o and it is included in the command to build the executable.&lt;BR /&gt;Inspite of the above error the executable gets built.&lt;BR /&gt;Can anyone please provide an explanation?&lt;BR /&gt;&lt;BR /&gt;Thank You.&lt;BR /&gt;Sanjib.</description>
      <pubDate>Wed, 21 Jul 2004 02:28:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unresolved-symbol-error/m-p/3336869#M712464</guid>
      <dc:creator>Sanjib Talukdar</dc:creator>
      <dc:date>2004-07-21T02:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Unresolved Symbol error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unresolved-symbol-error/m-p/3336870#M712465</link>
      <description>Thank you for your responses.&lt;BR /&gt;We have to use CC (and older header files and libraries) because the source code is very old and not very compatible with the current standards of type declarations and functions.&lt;BR /&gt;Anyway, we managed to build the executable using aCC and older headers and libraries. But we are getting segmentation fault error in Rogue Wave function calls while executing it. We had recompiled older Rogue Wave Tools library (7.0.A) on our HP UX 11.00 platform using aCC and used that to build the executable.&lt;BR /&gt;Any suggestions will be welcome.</description>
      <pubDate>Thu, 22 Jul 2004 02:46:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unresolved-symbol-error/m-p/3336870#M712465</guid>
      <dc:creator>Sanjib Talukdar</dc:creator>
      <dc:date>2004-07-22T02:46:27Z</dc:date>
    </item>
  </channel>
</rss>

