<?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: C compiler issue in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/c-compiler-issue/m-p/3861343#M98386</link>
    <description>Thanks Clay &amp;amp; Dennis. Will check and revert back soon.</description>
    <pubDate>Wed, 13 Sep 2006 05:13:18 GMT</pubDate>
    <dc:creator>Avinash Sangle</dc:creator>
    <dc:date>2006-09-13T05:13:18Z</dc:date>
    <item>
      <title>C compiler issue</title>
      <link>https://community.hpe.com/t5/operating-system-linux/c-compiler-issue/m-p/3861340#M98383</link>
      <description>ld: Unsatisfied symbols: &lt;BR /&gt;   $global$ (data) (probably missing /usr/ccs/lib/crt0.o) &lt;BR /&gt;     Building the independent server mulserv &lt;BR /&gt; *** Expect unresolved references similar to: &lt;BR /&gt;     /usr/ccs/bin/ld: Unsatisfied shared library symbols: &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;ERROR LOG : &lt;BR /&gt; &lt;BR /&gt;    Building the shared library libsmul.sl &lt;BR /&gt;+ ld +s +n -o libsmul.sl globref.o mulsvr.o -L. -L/home/tc5/tc5new/support/usc/l &lt;BR /&gt;ib -L/home/tc5/tc5new/support/ui/lib -L/home/tc5/tc5new/support/os/lib -L/home/t &lt;BR /&gt;c5/tc5new/support/ddb/lib -L/home/tc5/tc5new/support/sm/lib -L/home/tc5/tc5new/s &lt;BR /&gt;upport/metadb/lib -L/home/tc5/tc5new/support/csa/lib -L/home/tc5/tc5new/support/ &lt;BR /&gt;omf/svr -L/home/tc5/tc5new/bin /home/tc5/tc5new/tc5cusdir/lib/libmul.a /home/tc5 &lt;BR /&gt;/tc5new/tc5cusdir/lib/libmulcl.a -L/home/tc5/tc5new/bin -lsomf -L/home/tc5/tc5ne &lt;BR /&gt;w/bin -lslcm -lsocc -lspup -lstkt -lstms -lsxml -lswsm -lswww -lsapc -lsdmm -lsp &lt;BR /&gt;fm -lsvis -lsvpd -lsc9t -lscds -lsemg -lsxrf -lsvms -lsmci -lsedt -lsccf -lscms  &lt;BR /&gt;/home/tc5/tc5new/support/omf/lib/libsvu.a -lsusc -lsuim -lsos -lsddb -lssm -lsme &lt;BR /&gt;tc -lscsa -lm -lc &lt;BR /&gt;ld: Unsatisfied symbols: &lt;BR /&gt;   $global$ (data) (probably missing /usr/ccs/lib/crt0.o) &lt;BR /&gt;     Building the independent server mulserv &lt;BR /&gt; *** Expect unresolved references similar to: &lt;BR /&gt;     /usr/ccs/bin/ld: Unsatisfied shared library symbols: &lt;BR /&gt;     U_update_state_vector (code) &lt;BR /&gt;     U_get_shLib_unw_tbl (code) &lt;BR /&gt;     U_resume_execution (code) &lt;BR /&gt;     __StaticCtorTable_Start (data) &lt;BR /&gt;     U_get_previous_frame_x (code) &lt;BR /&gt;     U_get_unwind_table (code) &lt;BR /&gt;     __ZStaticCtorTable_End (data) &lt;BR /&gt;     __StaticCtorTable_End (data) &lt;BR /&gt;     U_get_shLib_text_addr (code) &lt;BR /&gt;     U_get_unwind_entry (code) &lt;BR /&gt;     __ZStaticCtorTable_Start (data) &lt;BR /&gt;  &lt;BR /&gt;+ cc -Wl,-O -Wl,+vshlibunsats,+s,+n,-Bimmediate,-Bnonfatal -o mulserv /home/tc5/ &lt;BR /&gt;tc5new/support/omf/svr/svrcmain.o mulserv.o -L. -L/home/tc5/tc5new/support/usc/l &lt;BR /&gt;ib -L/home/tc5/tc5new/support/ui/lib -L/home/tc5/tc5new/support/os/lib -L/home/t &lt;BR /&gt;c5/tc5new/support/ddb/lib -L/home/tc5/tc5new/support/sm/lib -L/home/tc5/tc5new/s &lt;BR /&gt;upport/metadb/lib -L/home/tc5/tc5new/support/csa/lib -L/home/tc5/tc5new/support/ &lt;BR /&gt;omf/svr -L/home/tc5/tc5new/bin mulsvr.o -lsmul -lsomf /home/tc5/tc5new/support/o &lt;BR /&gt;mf/lib/libsvu.a -lsusc -lsuim -lsos -lsddb -lssm -lsmetc -lscsa -lm &lt;BR /&gt;(Warning) Optimizing ADDILs in the presence of the debug information. Debug info &lt;BR /&gt;rmation may be corrupted (1594) &lt;BR /&gt;/usr/ccs/bin/ld: Unsatisfied symbols: &lt;BR /&gt;   _mulDCap0UpdValidateDialog (first referenced in mulsvr.o) (code) &lt;BR /&gt;   _mulm0SmcDwgm0CreMulDwgFromSmcDg (first referenced in mulsvr.o) (code) &lt;BR /&gt;   _mulDPer0UpdProcessDialog (first referenced in mulsvr.o) (code) &lt;BR /&gt;   _mulDCap0CreProcessDialog (first referenced in mulsvr.o) (code) &lt;BR /&gt;   _mulGnRqAcItm0GenChItmReport (first referenced in mulsvr.o) (code) &lt;BR /&gt;   _mulm0MulDwgDoRevisePre (first referenced in mulsvr.o) (code) &lt;BR /&gt;   _mulDCap0CreValidateDialog (first referenced in mulsvr.o) (code) &lt;BR /&gt;   _mulDCap0UpdSetDialogDefaults (first referenced in mulsvr.o) (code) &lt;BR /&gt;   _mulDPer0UpdSetDialogDefaults (first referenced in mulsvr.o) (code) &lt;BR /&gt;   _mulm0MulDwgDoRevisePost (first referenced in mulsvr.o) (code) &lt;BR /&gt;   _mulDPer0CreProcessDialog (first referenced in mulsvr.o) (code) &lt;BR /&gt;   _mulDDgMRevm0GetSpLegValSmcDrg (first referenced in mulsvr.o) (code) &lt;BR /&gt;   _mulDPer0UpdValidateDialog (first referenced in mulsvr.o) (code) &lt;BR /&gt;   _mulDCap0CreSetDialogDefaults (first referenced in mulsvr.o) (code) &lt;BR /&gt;   _mulDPer0CreSetDialogDefaults (first referenced in mulsvr.o) (code) &lt;BR /&gt;   _mulDDgMGetIm0ShowEcnEcrStatus (first referenced in mulsvr.o) (code) &lt;BR /&gt;   _mulDPer0CreValidateDialog (first referenced in mulsvr.o) (code) &lt;BR /&gt;   _mulm0DwgDocm0ChkSmc2MulDgExist (first referenced in mulsvr.o) (code) &lt;BR /&gt;   _mulDCap0UpdProcessDialog (first referenced in mulsvr.o) (code) &lt;BR /&gt;   _mulDDgMRevSetDialogDefaults (first referenced in mulsvr.o) (code) &lt;BR /&gt;   _mulDDgMRevm0GetSpLVMulEcnEcr (first referenced in mulsvr.o) (code) &lt;BR /&gt;s &lt;BR /&gt;</description>
      <pubDate>Tue, 12 Sep 2006 11:19:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/c-compiler-issue/m-p/3861340#M98383</guid>
      <dc:creator>Avinash Sangle</dc:creator>
      <dc:date>2006-09-12T11:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: C compiler issue</title>
      <link>https://community.hpe.com/t5/operating-system-linux/c-compiler-issue/m-p/3861341#M98384</link>
      <description>This isn't a compiler issue; it's a linker issue. At least for some of these, you need to add libcl. &lt;BR /&gt;&lt;BR /&gt;Here's an approach that can be used to solve the general case of this problem:&lt;BR /&gt;&lt;BR /&gt;1) Create a textfile that contains the symbol list from all libraries:&lt;BR /&gt;&lt;BR /&gt;nm /usr/lib/lib* &amp;gt; mysymlist&lt;BR /&gt;&lt;BR /&gt;2) Examine this text file for the undefined symbols:&lt;BR /&gt;&lt;BR /&gt;vi mysymlist&lt;BR /&gt;&lt;BR /&gt;You would search for "U_update_state_vector", for example. When you find the actual code your then do&lt;BR /&gt;a "? Symbols from" reverse search in vi and that will tell you the actual library name.&lt;BR /&gt;&lt;BR /&gt;Learn this technique and you shouldn't have to ask this question again.&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Sep 2006 11:44:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/c-compiler-issue/m-p/3861341#M98384</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-09-12T11:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: linker unsat problem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/c-compiler-issue/m-p/3861342#M98385</link>
      <description>&lt;P&gt;There are several things wrong here. The first is that you MUST use aCC -b to link aC++ shared libs. You can NOT use ld directly, or the C driver cc.&lt;BR /&gt;&lt;BR /&gt;Also for aC++, you must NOT use the linker's -O option. (The warning (1594).)&lt;BR /&gt;&lt;BR /&gt;You neglected to pass -b to the cc driver to pass on to ld. (This may be the real issue.)&lt;BR /&gt;&lt;BR /&gt;When creating aC++ shlibs, you must following the directions on:&lt;BR /&gt;&lt;A target="_blank" href="http://www.docs.hp.com/en/7762/5991-4874/distributing.htm#linking"&gt;http://www.docs.hp.com/en/7762/5991-4874/distributing.htm#linking&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If the intention of the comment "*** Expect unresolved references similar to" is to ignore unsats, perhaps you should not use +vshlibunsats.&lt;BR /&gt;&lt;BR /&gt;Clay is right that you need -lcl to define some of the symbols. But an easier way to find the library that defines the symbols is to use:&lt;BR /&gt;$ nm -pxAN /usr/lib/lib*&lt;BR /&gt;&lt;BR /&gt;The -A option prints the name of the lib with the symbol.&lt;/P&gt;</description>
      <pubDate>Sat, 29 Oct 2011 09:36:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/c-compiler-issue/m-p/3861342#M98385</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-10-29T09:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: C compiler issue</title>
      <link>https://community.hpe.com/t5/operating-system-linux/c-compiler-issue/m-p/3861343#M98386</link>
      <description>Thanks Clay &amp;amp; Dennis. Will check and revert back soon.</description>
      <pubDate>Wed, 13 Sep 2006 05:13:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/c-compiler-issue/m-p/3861343#M98386</guid>
      <dc:creator>Avinash Sangle</dc:creator>
      <dc:date>2006-09-13T05:13:18Z</dc:date>
    </item>
  </channel>
</rss>

