<?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: Linking problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-problem/m-p/5153868#M683945</link>
    <description>&amp;gt;-L/usr/lib/&lt;BR /&gt;&lt;BR /&gt;Remove this.  There should be NO IPF shlibs in this path.  This is for PA32 only.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;ld: Unsatisfied symbol M3UA_oamcmd(int,int,timeval*,void*,M3uaOamObject,int*,M3uaOamCmd,M3uaCmdParms*)&lt;BR /&gt;&lt;BR /&gt;This is a C++ mangled name.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;FUNC |GLOB |0| .text|M3UA_oamcmd&lt;BR /&gt;&lt;BR /&gt;This is a C name.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;When function def is present why in linking it is throwing error?&lt;BR /&gt;&lt;BR /&gt;If your definition is C, you must declare it as:&lt;BR /&gt;extern "C" void? M3UA_oamcmd(int,int,timeval*,void*,M3uaOamObject,int*,M3uaOamCmd,M3uaCmdParms*)&lt;BR /&gt;</description>
    <pubDate>Sat, 31 Jan 2009 07:42:56 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2009-01-31T07:42:56Z</dc:date>
    <item>
      <title>Linking problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-problem/m-p/5153867#M683944</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am trying to make binary for using some library but getting linking error.&lt;BR /&gt;&lt;BR /&gt;command:&lt;BR /&gt;/opt/aCC/bin/aCC -I. +test.c -L/usr/lib/ -L/opt/OC/lib/hpux32/ -l M3UAOamAPIWBB.&lt;BR /&gt;=======&lt;BR /&gt;o/p:&lt;BR /&gt;/usr/ccs/bin/ld -z -o a.out -u___exit -umain -L/opt/aCC/lib/hpux32 test.o -L /usr/lib/ -L /opt/OC/lib/hpux32/ -lTTL -lM3UAOamAPIWBB -lstd_v2 -lCsup -lpthread -lm -lunwind -lCsup -lc -ldl &amp;gt;/var/tmp/AAAa18375 2&amp;gt;&amp;amp;1&lt;BR /&gt; /opt/aCC/bin/c++filt &amp;amp;2&lt;BR /&gt;ld: Unsatisfied symbol "M3UA_oamcmd(int,int,timeval*,void*,M3uaOamObject,int*,M3uaOamCmd,M3uaCmdParms*)" in file test.o&lt;BR /&gt;1 errors.&lt;BR /&gt; removing /var/tmp/AAAa18375&lt;BR /&gt;=======&lt;BR /&gt;&lt;BR /&gt;I checked that may be function is not defind in that library so I am geeting error.&lt;BR /&gt;so I checked that library file and found:&lt;BR /&gt;&lt;BR /&gt;when i use nm comand for finding this procedure in /opt/OC/lib/hpux32/ and found &lt;BR /&gt;bash-2.05b# nm *.so|grep M3UA_oamcmd&lt;BR /&gt;nm:  libTTLIntf.so:  cannot open&lt;BR /&gt;[265]    |     67635600|    8528|FUNC |GLOB |0|   .text|M3UA_oamcmd&lt;BR /&gt;[265]    |     67635600|    8528|FUNC |GLOB |0|   .text|M3UA_oamcmd&lt;BR /&gt;[265]    |     67635600|    8528|FUNC |GLOB |0|   .text|M3UA_oamcmd&lt;BR /&gt;[265]    |     67635600|    8528|FUNC |GLOB |0|   .text|M3UA_oamcmd&lt;BR /&gt;bash-2.05b#&lt;BR /&gt;&lt;BR /&gt;When function def is present why in linking it is throwing error.&lt;BR /&gt;Expert ant comments on ??&lt;BR /&gt;&lt;BR /&gt;TIA&lt;BR /&gt;-Amit&lt;BR /&gt;</description>
      <pubDate>Sat, 31 Jan 2009 06:36:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/linking-problem/m-p/5153867#M683944</guid>
      <dc:creator>astra</dc:creator>
      <dc:date>2009-01-31T06:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Linking problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-problem/m-p/5153868#M683945</link>
      <description>&amp;gt;-L/usr/lib/&lt;BR /&gt;&lt;BR /&gt;Remove this.  There should be NO IPF shlibs in this path.  This is for PA32 only.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;ld: Unsatisfied symbol M3UA_oamcmd(int,int,timeval*,void*,M3uaOamObject,int*,M3uaOamCmd,M3uaCmdParms*)&lt;BR /&gt;&lt;BR /&gt;This is a C++ mangled name.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;FUNC |GLOB |0| .text|M3UA_oamcmd&lt;BR /&gt;&lt;BR /&gt;This is a C name.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;When function def is present why in linking it is throwing error?&lt;BR /&gt;&lt;BR /&gt;If your definition is C, you must declare it as:&lt;BR /&gt;extern "C" void? M3UA_oamcmd(int,int,timeval*,void*,M3uaOamObject,int*,M3uaOamCmd,M3uaCmdParms*)&lt;BR /&gt;</description>
      <pubDate>Sat, 31 Jan 2009 07:42:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/linking-problem/m-p/5153868#M683945</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-01-31T07:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Linking problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-problem/m-p/5153869#M683946</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;But I am not getting this&lt;BR /&gt;&lt;BR /&gt;========&lt;BR /&gt;If your definition is C, you must declare it as: &lt;BR /&gt;extern "C" void? M3UA_oamcmd(int,int,timeval*,void*,M3uaOamObject,int*,M3uaOamCmd,M3uaCmd&lt;BR /&gt;Parms*)&lt;BR /&gt;===============================&lt;BR /&gt;Please clarified more.&lt;BR /&gt;&lt;BR /&gt;And one more thing both the thing is provied by HP, Is any work around to make binary in this case.I ha.ve to use this system call but i can not able to make binary&lt;BR /&gt;&lt;BR /&gt;Regard,&lt;BR /&gt;Amit&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 31 Jan 2009 09:30:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/linking-problem/m-p/5153869#M683946</guid>
      <dc:creator>astra</dc:creator>
      <dc:date>2009-01-31T09:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Linking problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-problem/m-p/5153870#M683947</link>
      <description>&amp;gt;But I am not getting this:&lt;BR /&gt;&lt;BR /&gt;(This should now be obvious and a light should have appeared above your head.  :-)&lt;BR /&gt;&lt;BR /&gt;========&lt;BR /&gt;If your definition is C, you must declare it as:&lt;BR /&gt;extern "C" void? M3UA_oamcmd(int, int, timeval*, void*, M3uaOamObject, int*, M3uaOamCmd, M3uaCmdParms*)&lt;BR /&gt;===============================&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Please clarified more.&lt;BR /&gt;&lt;BR /&gt;What language is M3UA_oamcmd written?&lt;BR /&gt;test.o is in C++.  If you want C++ to call C, you must declare the functions, types and data in an extern "C" block.  (Or use extern "C" before each function.)&lt;BR /&gt;&lt;BR /&gt;&amp;gt;the thing is provided by HP, Is any work around to make binary in this case.  I have to use this system call but i can not able to make binary&lt;BR /&gt;&lt;BR /&gt;Where is your header that declares M3UA_oamcmd?  You need to edit it (C++ify it.)</description>
      <pubDate>Sat, 31 Jan 2009 09:38:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/linking-problem/m-p/5153870#M683947</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-01-31T09:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: Linking problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-problem/m-p/5153871#M683948</link>
      <description>Thanks,&lt;BR /&gt;Resloved issue.&lt;BR /&gt;&lt;BR /&gt;-Amit</description>
      <pubDate>Sun, 01 Feb 2009 06:33:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/linking-problem/m-p/5153871#M683948</guid>
      <dc:creator>astra</dc:creator>
      <dc:date>2009-02-01T06:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Linking problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-problem/m-p/5153872#M683949</link>
      <description>got solution</description>
      <pubDate>Sun, 01 Feb 2009 06:35:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/linking-problem/m-p/5153872#M683949</guid>
      <dc:creator>astra</dc:creator>
      <dc:date>2009-02-01T06:35:04Z</dc:date>
    </item>
  </channel>
</rss>

