<?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: Runtime unsats with a simple aC++ shlib on HP-UX in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-issues-while-compiling-a-simple-c-module-in-hp-ux/m-p/6550974#M496743</link>
    <description>&lt;P&gt;Thanks for all the help provided by you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It was really helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was&amp;nbsp; able to build the webservice in C++ and generate the "calc.so" using&amp;nbsp;the below steps&amp;nbsp;and load it in apache server successfully and now facing some issue while calling it through the client.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;aCC +DD64 -c -AA +z calculator.cpp----(1)&lt;/P&gt;&lt;P&gt;aCC +DD64 -b -o calc.so&amp;nbsp; calculator.o -lstd_v2 -lCsup -lunwind -lm------(2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are using another shared library as a load module(example-abc.so) and that library is written in C.which is getting linked with the webservice shared library generated by us through (2) i.e calc.so (in C++ as described above) at run time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The same webservice("calc.so") written and generated&amp;nbsp; in C&amp;nbsp;&amp;nbsp; gets linked with the&amp;nbsp; load module shared library(abc.so) is successfully deployed and tested using client.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can someone help me how to resolve this issue.&lt;/P&gt;</description>
    <pubDate>Wed, 23 Jul 2014 12:29:54 GMT</pubDate>
    <dc:creator>Biswadeep</dc:creator>
    <dc:date>2014-07-23T12:29:54Z</dc:date>
    <item>
      <title>Linking issues while compiling a simple c++ module in HP-UX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-issues-while-compiling-a-simple-c-module-in-hp-ux/m-p/6543036#M496732</link>
      <description>&lt;P&gt;We are trying to build a simple c++ module in hpux&amp;nbsp; and deploy it in Apache httpd server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Out tech stack consists of&lt;/P&gt;
&lt;P&gt;HP-UX B.11.31 U ia64&lt;/P&gt;
&lt;P&gt;aCC compiler for C++&lt;/P&gt;
&lt;P&gt;Apache 2.2.27&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We installed apache using the following steps&lt;/P&gt;
&lt;P&gt;Step 1: export CFLAGS="+DD64"&lt;/P&gt;
&lt;P&gt;Step 2: export CPPFLAGS="+DD64"&lt;/P&gt;
&lt;P&gt;Step 3: ./configure CC=aCC --enable-mods-shared=most&lt;/P&gt;
&lt;P&gt;Step 4: make&lt;/P&gt;
&lt;P&gt;Step 5: make install&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;compilation command:&lt;/P&gt;
&lt;P&gt;apxs -a -c -S cc=aCC&amp;nbsp;&amp;nbsp; -L/usr/lib/hpux64&amp;nbsp; -lstd_v2&amp;nbsp; -lCsup -lunwind&amp;nbsp; -lm calculator.cpp&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then the ".so"&amp;nbsp; is created in .libs directory.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then we used the command:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; nm calculator.cpp| grep UNDEF&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;we are getting undefined symbols mentioned below:&lt;/P&gt;
&lt;P&gt;[0]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|NOTYP|LOCAL|0|&amp;nbsp;&amp;nbsp; UNDEF|&lt;/P&gt;
&lt;P&gt;[61]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|FUNC |GLOB |0|&amp;nbsp;&amp;nbsp; UNDEF|_Unwind_Resume&lt;/P&gt;
&lt;P&gt;&amp;nbsp;[54]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|FUNC |GLOB |0|UNDEF|_ZNSt8ios_base4InitC1Ev &amp;nbsp;&lt;/P&gt;
&lt;P&gt;[53]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|FUNC |GLOB 0| UNDEF|_ZNSt8ios_base4InitD1Ev&lt;/P&gt;
&lt;P&gt;[51]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|FUNC |GLOB |0|&amp;nbsp;&amp;nbsp; UNDEF|_ZdlPv&lt;/P&gt;
&lt;P&gt;&amp;nbsp;[52]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|FUNC |GLOB |0|&amp;nbsp;&amp;nbsp; UNDEF|_Znwm &amp;nbsp;&lt;/P&gt;
&lt;P&gt;[63]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|FUNC |GLOB |0|&amp;nbsp;&amp;nbsp; UNDEF|__cxa_atexit&lt;/P&gt;
&lt;P&gt;[57]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|FUNC |GLOB |0|&amp;nbsp;&amp;nbsp; UNDEF|__cxa_finalize&lt;/P&gt;
&lt;P&gt;&amp;nbsp;[65]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|FUNC |GLOB |0UNDEF|__cxa_personality_routine&lt;/P&gt;
&lt;P&gt;&amp;nbsp;[62]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|FUNC |GLOB |0|&amp;nbsp;&amp;nbsp; UNDEF|ap_hook_handler&lt;/P&gt;
&lt;P&gt;[60]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|FUNC |GLOB |0|&amp;nbsp;&amp;nbsp; UNDEF|ap_rprintf&lt;/P&gt;
&lt;P&gt;&amp;nbsp;[55]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|FUNC |GLOB |0|&amp;nbsp;&amp;nbsp; UNDEF|ap_rputs&lt;/P&gt;
&lt;P&gt;&amp;nbsp;[64]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|FUNC |GLOB |0|&amp;nbsp;&amp;nbsp; UNDEF|strcmp&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hence we are unable to successfully deploy our service in apacheserver.&lt;/P&gt;
&lt;P&gt;When we are trying to load the ".so" module in apache server we are geting&amp;nbsp;these unsatisfied symbol and hence the apache server was unable to start.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The .so module that is created is not getting linked properly and hence we are facing these issues.&lt;/P&gt;
&lt;P&gt;Any valuable help from your side would be highly appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Waiting for a reply soon,&lt;/P&gt;
&lt;P&gt;Biswadeep Khan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.S. This thread has been moved&amp;nbsp;from General to HP-UX &amp;gt; languages. - Hp Forum Moderator&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jul 2014 01:38:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/linking-issues-while-compiling-a-simple-c-module-in-hp-ux/m-p/6543036#M496732</guid>
      <dc:creator>Biswadeep</dc:creator>
      <dc:date>2014-07-17T01:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: Linking issues while compiling a simple c++ module in HP-UX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-issues-while-compiling-a-simple-c-module-in-hp-ux/m-p/6543142#M496733</link>
      <description>&lt;P&gt;I see several issues with your attempt.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First of all, you should not be setting 'CC' to point to the C++ compiler. You should instead point it to '/opt/ansic/bin/cc', which is the C compiler. You should instead set the 'CXX' variable to point to the C++ compiler '/opt/aCC/bin/aCC'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Secondly, for generating shared libraries, you should be using the '-b' compiler option. I don't see this in the compilation command line you have provided.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that for C++ compilations, you must use the C++ compiler as the linker, and not directly use the linker. Typically, it is done by setting the 'LD' environment variable to point to the C++ compiler as well.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jul 2014 10:46:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/linking-issues-while-compiling-a-simple-c-module-in-hp-ux/m-p/6543142#M496733</guid>
      <dc:creator>SoumitraC</dc:creator>
      <dc:date>2014-07-16T10:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Linking issues while compiling a simple c++ module in HP-UX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-issues-while-compiling-a-simple-c-module-in-hp-ux/m-p/6543188#M496734</link>
      <description>&lt;P&gt;I tried specifying CXX=aCC but while building apache in the following confuguartion step&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;"./configure CXX=aCC --enable-mods-shared=all"&lt;/DIV&gt;&lt;DIV&gt;but in configure step of apache there is no option of specifying&amp;nbsp;&amp;nbsp;"CXX" as a parameter.It only takes "CC" as parameter.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Morover in our compilation command:&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;apxs -a -c -S CC=aCC calculator.cpp&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;if i m using the command:&lt;/DIV&gt;&lt;DIV&gt;apxs -a -c -S CXX=aCC -L/usr/lib/hpux64&amp;nbsp; -lstd_v2&amp;nbsp; -lCsup -lunwind&amp;nbsp; -lm calculator.cpp&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;it is giving error that CXX is unknown option with apxs binaries.&lt;/DIV&gt;&lt;DIV&gt;Please help&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lastly &amp;nbsp;I could not clearly understand the last point that you mentioned regarding "LD environment path " and c++ linker and compiler.It would be really helpful if you could elaborate this point clearly with the help of an example?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jul 2014 11:23:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/linking-issues-while-compiling-a-simple-c-module-in-hp-ux/m-p/6543188#M496734</guid>
      <dc:creator>Biswadeep</dc:creator>
      <dc:date>2014-07-16T11:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Linking issues while compiling a simple c++ module in HP-UX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-issues-while-compiling-a-simple-c-module-in-hp-ux/m-p/6544016#M496735</link>
      <description>&lt;P&gt;Unfortunately, I don't have the apache package handy to be more precise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BY '&lt;FONT face="courier new,courier"&gt;LD&lt;/FONT&gt;', I meant if this also invokes the linker, then you must ensure that it does not invoke the linker directly. It must invoke the C++ compiler for the linking. Usually, this is controlled by the '&lt;FONT face="courier new,courier"&gt;LD&lt;/FONT&gt;' environment variable (similar to the '&lt;FONT face="courier new,courier"&gt;CC&lt;/FONT&gt;' environment variable).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you saying that you have manually inserted the options "&lt;FONT face="courier new,courier"&gt;-L/usr/lib/hpux64&amp;nbsp; -lstd_v2&amp;nbsp; -lCsup -lunwind&amp;nbsp; -lm&lt;/FONT&gt;"? If so, you must remove them as these are automatically inserted by the compiler driver as required and in the correct order.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you haven't already, you should go through the documentation on creating shared libraries at:&lt;/P&gt;&lt;P&gt;&lt;A title="Creating and Using Shared Libraries" href="http://h21007.www2.hp.com/portal/download/files/unprot/aCxx/HTML/libs.htm#createlib" target="_blank"&gt;http://h21007.www2.hp.com/portal/download/files/unprot/aCxx/HTML/libs.htm#createlib&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jul 2014 03:53:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/linking-issues-while-compiling-a-simple-c-module-in-hp-ux/m-p/6544016#M496735</guid>
      <dc:creator>SoumitraC</dc:creator>
      <dc:date>2014-07-17T03:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Linking issues while compiling a simple c++ module in HP-UX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-issues-while-compiling-a-simple-c-module-in-hp-ux/m-p/6544130#M496736</link>
      <description>&lt;P&gt;I tried compiling a simple c++ code in aCC and build its ".so" without using apache.&lt;/P&gt;&lt;P&gt;The code is:&lt;/P&gt;&lt;P&gt;#include &amp;lt;float.h&amp;gt;&lt;/P&gt;&lt;P&gt;#include &amp;lt;string.h&amp;gt;&lt;/P&gt;&lt;P&gt;#include&amp;lt;iostream.h&amp;gt;&lt;/P&gt;&lt;P&gt;class calcService&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;public: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; int add(double a, double b, double *result); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; int sub(double a, double b, double *result);&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;int calcService::add(double a, double b, double *result)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;*result = a + b; &amp;nbsp;&lt;/P&gt;&lt;P&gt;return *result;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;int calcService::sub(double a, double b, double *result)&lt;/P&gt;&lt;P&gt;&amp;nbsp;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;*result = a - b; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return *result;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;int main()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; calcService calc; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;return 0;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;compilation command :&lt;/P&gt;&lt;P&gt;aCC -b +DD64 -AA -mt +z&amp;nbsp;&amp;nbsp; -L/usr/lib/hpux64 -o calc.so calculator.cpp&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then we used the command&lt;/P&gt;&lt;P&gt;nm calc.so | grep UNDEF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[0]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|NOTYP|LOCAL|0|&amp;nbsp;&amp;nbsp; UNDEF|&lt;BR /&gt;[48]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|FUNC |GLOB |0|&amp;nbsp;&amp;nbsp; UNDEF|_Unwind_Resume&lt;BR /&gt;[45]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|FUNC |GLOB |0|&amp;nbsp;&amp;nbsp; UNDEF|_ZNSt8ios_base4InitC1Ev&lt;BR /&gt;[44]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|FUNC |GLOB |0|&amp;nbsp;&amp;nbsp; UNDEF|_ZNSt8ios_base4InitD1Ev&lt;BR /&gt;[50]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|FUNC |GLOB |0|&amp;nbsp;&amp;nbsp; UNDEF|__cxa_atexit&lt;BR /&gt;[46]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|FUNC |GLOB |0|&amp;nbsp;&amp;nbsp; UNDEF|__cxa_finalize&lt;BR /&gt;[51]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|FUNC |GLOB |0|&amp;nbsp;&amp;nbsp; UNDEF|__cxa_personality_routine&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even in a simple c++ code without using any apache header I am getting these undefined symbol.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My environment variable is set as below:&lt;/P&gt;&lt;P&gt;CXX=aCC -mt +DD64&lt;BR /&gt;CXX_SLD=aCC -mt +DD64&lt;BR /&gt;CXX_EXELD=aCC -mt +DD64&lt;BR /&gt;CXX_EXELDFLAGS=-mt -Wl,+vshlibunsats -Wl,+s -Wl,-Bimmediate -Wl,-E -o&lt;BR /&gt;CC=/opt/aCC/bin/aCC&lt;BR /&gt;CC_ANSI_ORIG=cc -mt +DD64&lt;BR /&gt;CC_ANSI=aCC -mt +DD64&lt;BR /&gt;SLCC=cc -mt -Wl,+s +DD64 +W 474,2174,2177,2550 -Aa -c&lt;BR /&gt;EXELDLIBS=-lm&lt;BR /&gt;EXELDFLAGS=-Wl,+vshlibunsats,+s,+n,-Bimmediate,-Bnonfatal -o&lt;BR /&gt;EXELD=cc -mt -Wl,+s +DD64 +W 474,2174,2177,2550&lt;BR /&gt;LD_LIBRARY_PATH=/opt/oracle/product/11g_client/lib&lt;BR /&gt;SLD=ld&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please help how to get rid of these undefined symbol&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jul 2014 06:46:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/linking-issues-while-compiling-a-simple-c-module-in-hp-ux/m-p/6544130#M496736</guid>
      <dc:creator>Biswadeep</dc:creator>
      <dc:date>2014-07-17T06:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime unsats with a simple aC++ shlib as Apache plugin</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-issues-while-compiling-a-simple-c-module-in-hp-ux/m-p/6544182#M496737</link>
      <description>&lt;P&gt;&amp;gt;how to get rid of these undefined symbol&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These are defined in other shlibs.&amp;nbsp; If you are dynamically loading from a C program, then you need to supply these shilbs on the link line:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; -lstd_v2 -lCsup -lunwind&lt;/P&gt;&lt;P&gt;&lt;A href="http://h21007.www2.hp.com/portal/download/files/unprot/aCxx/HTML/distributing.htm#linking" target="_blank"&gt;http://h21007.www2.hp.com/portal/download/files/unprot/aCxx/HTML/distributing.htm#linking&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;-L/usr/lib/hpux64&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Leave this off, supplied by linker.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;these are automatically inserted by the compiler driver as required and in the correct order.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not when you create shlibs with -b.&amp;nbsp; See above for a better reference.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2014 16:13:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/linking-issues-while-compiling-a-simple-c-module-in-hp-ux/m-p/6544182#M496737</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2014-07-23T16:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime unsats with a simple aC++ shlib on HP-UX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-issues-while-compiling-a-simple-c-module-in-hp-ux/m-p/6544354#M496739</link>
      <description>&lt;P&gt;&amp;gt;Leave this off, supplied by linker&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I am not specifying lib path as&amp;nbsp; "-L/usr/lib/hpux64" then by default it goes to the path&amp;nbsp; "-L/usr/lib/hpux32". But we need to build it on 64 bit so we are specifying path as "-L/usr/lib/hpux64"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Secondly as per your instruction I tried running the following command&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;aCC -b&amp;nbsp; +DD64 -AA&amp;nbsp; +z -c&amp;nbsp; -L/usr/lib/hpux64&amp;nbsp; -lstd_v2 -lCsup -lunwind&amp;nbsp; calculator.cpp&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;aCC -b -o &amp;nbsp;calc.so&amp;nbsp; calculator.o&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but then I checked with the ldd and nm command as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ldd -d -r calc.so&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;calc.so: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;symbol not found: _ZNSt8ios_base4InitD1Ev&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (./calc.so) &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; symbol not found: _ZNSt8ios_base4InitC1Ev&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (./calc.so) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;symbol not found: __cxa_finalize&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (./calc.so) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;symbol not found: _Unwind_Resume&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (./calc.so) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;symbol not found: __cxa_atexit&amp;nbsp; (./calc.so) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;symbol not found: __cxa_personality_routine&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (./calc.so)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;nm calc.so|grep UNDEF&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;[0]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|NOTYP|LOCAL|0|&amp;nbsp;&amp;nbsp; UNDEF&lt;/P&gt;&lt;P&gt;| [48]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|FUNC |GLOB |0|&amp;nbsp;&amp;nbsp; UNDEF|_Unwind_Resume&lt;/P&gt;&lt;P&gt;[45]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|FUNC |GLOB |0|&amp;nbsp;&amp;nbsp; UNDEF|_ZNSt8ios_base4InitC1Ev&lt;/P&gt;&lt;P&gt;[44]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|FUNC |GLOB |0|&amp;nbsp;&amp;nbsp; UNDEF|_ZNSt8ios_base4InitD1Ev&lt;/P&gt;&lt;P&gt;[50]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|FUNC |GLOB |0|&amp;nbsp;&amp;nbsp; UNDEF|__cxa_atexit&lt;/P&gt;&lt;P&gt;[46]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|FUNC |GLOB |0|&amp;nbsp;&amp;nbsp; UNDEF|__cxa_finalize&lt;/P&gt;&lt;P&gt;[51]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0|FUNC |GLOB |0|&amp;nbsp;&amp;nbsp; UNDEF|__cxa_personality_routine&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am still getting these same unsatsified symbols.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please help&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jul 2014 09:21:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/linking-issues-while-compiling-a-simple-c-module-in-hp-ux/m-p/6544354#M496739</guid>
      <dc:creator>Biswadeep</dc:creator>
      <dc:date>2014-07-17T09:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime unsats with a simple aC++ shlib on HP-UX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-issues-while-compiling-a-simple-c-module-in-hp-ux/m-p/6544434#M496740</link>
      <description>&lt;P&gt;As Dennis clarified, the unsatisfied symbols are defined in the system libraries, which will be resolved once you link your shared library into the main program. There's no need for the symbols to be available in your shared library.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As regards the linker search path, the compiler option +DD64 specifies a 64-bit build, so you need not specify the -L explicitly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jul 2014 10:38:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/linking-issues-while-compiling-a-simple-c-module-in-hp-ux/m-p/6544434#M496740</guid>
      <dc:creator>SoumitraC</dc:creator>
      <dc:date>2014-07-17T10:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime unsats with a simple aC++ shlib on HP-UX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-issues-while-compiling-a-simple-c-module-in-hp-ux/m-p/6544450#M496741</link>
      <description>&lt;P&gt;As per my understanding of your statement the unsatisfied symbol in the ".so" gets resolved when we link the ".so" with&amp;nbsp;any main&amp;nbsp;program.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But in our case as we trying to deploy the code in apache, so our next step is not linking&amp;nbsp; the .so file with any main program but&amp;nbsp;to load the ".so" in&amp;nbsp; apache server as a module.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;so we are loading the ".so" in &amp;nbsp;apache httpd.conf file using&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LoadModule calc_module modules/calculator.so&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;the unsatisfied symbol in the ".so" should be resolved by apache while deploying it in server but it does not get resolved&amp;nbsp;&amp;nbsp;and &amp;nbsp;when we start the server using the command&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;STRONG&gt;apachectl start(command to start the server)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it fails to start and gives the&amp;nbsp;&amp;nbsp;error: unable to start the server because of the unsatisfied symbols present.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So please help what we should do now.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jul 2014 11:06:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/linking-issues-while-compiling-a-simple-c-module-in-hp-ux/m-p/6544450#M496741</guid>
      <dc:creator>Biswadeep</dc:creator>
      <dc:date>2014-07-17T11:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime unsats with a simple aC++ shlib as Apache plugin</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-issues-while-compiling-a-simple-c-module-in-hp-ux/m-p/6544624#M496742</link>
      <description>&lt;P&gt;&amp;gt;&amp;nbsp;by default it goes to the path&amp;nbsp; -L/usr/lib/hpux32.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Who are you going to believe?&amp;nbsp; You or an expert?&amp;nbsp; :-)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;aCC -b +DD64 -AA +z -c&amp;nbsp; -lstd_v2 -lCsup -lunwind&amp;nbsp; calculator.cpp&lt;/P&gt;&lt;P&gt;&amp;gt;aCC -b -o calc.so&amp;nbsp; calculator.o&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-c overrides -b.&amp;nbsp; Put the libs on the second line:&lt;/P&gt;&lt;P&gt;aCC +DD64 -c -AA +z calculator.cpp&lt;/P&gt;&lt;P&gt;aCC +DD64 -b -o calc.so&amp;nbsp; calculator.o&amp;nbsp;-lstd_v2 -lCsup -lunwind -lm&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;gt; &lt;/STRONG&gt;nm calc.so | grep UNDEF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;nm(1) is not the proper tool with dealing with shlibs.&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;I am still getting these same unsatsified symbols.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You didn't link with those shlibs.&amp;nbsp; Did you read the webpage about:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Linking Your HP aC++ Libraries with Other Languages&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;which will be resolved once you link your shared library into the main program.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is being dynamically loaded so needs those dependent shlibs are linked into the shlib.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;next step is not linking&amp;nbsp; the .so file ... but&amp;nbsp;to load the ".so" in&amp;nbsp; apache server as a module.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Right.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;what we should do now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Follow the directions on:&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" rel="nofollow" href="http://h21007.www2.hp.com/portal/download/files/unprot/aCxx/HTML/distributing.htm#linking"&gt;http://h21007.www2.hp.com/portal/download/files/unprot/aCxx/HTML/distributing.htm#linking&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2014 16:14:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/linking-issues-while-compiling-a-simple-c-module-in-hp-ux/m-p/6544624#M496742</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2014-07-23T16:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime unsats with a simple aC++ shlib on HP-UX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-issues-while-compiling-a-simple-c-module-in-hp-ux/m-p/6550974#M496743</link>
      <description>&lt;P&gt;Thanks for all the help provided by you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It was really helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was&amp;nbsp; able to build the webservice in C++ and generate the "calc.so" using&amp;nbsp;the below steps&amp;nbsp;and load it in apache server successfully and now facing some issue while calling it through the client.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;aCC +DD64 -c -AA +z calculator.cpp----(1)&lt;/P&gt;&lt;P&gt;aCC +DD64 -b -o calc.so&amp;nbsp; calculator.o -lstd_v2 -lCsup -lunwind -lm------(2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are using another shared library as a load module(example-abc.so) and that library is written in C.which is getting linked with the webservice shared library generated by us through (2) i.e calc.so (in C++ as described above) at run time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The same webservice("calc.so") written and generated&amp;nbsp; in C&amp;nbsp;&amp;nbsp; gets linked with the&amp;nbsp; load module shared library(abc.so) is successfully deployed and tested using client.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can someone help me how to resolve this issue.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2014 12:29:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/linking-issues-while-compiling-a-simple-c-module-in-hp-ux/m-p/6550974#M496743</guid>
      <dc:creator>Biswadeep</dc:creator>
      <dc:date>2014-07-23T12:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime unsats with a simple aC++ shlib as Apache plugin</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-issues-while-compiling-a-simple-c-module-in-hp-ux/m-p/6551300#M496744</link>
      <description>&lt;P&gt;&amp;gt;We are using another load module (abc.so) which is getting linked with ... calc.so at run time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You are loading abc.so fron calc.so?&lt;/P&gt;&lt;P&gt;What's the error you're getting?&amp;nbsp; What doesn't work?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2014 16:18:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/linking-issues-while-compiling-a-simple-c-module-in-hp-ux/m-p/6551300#M496744</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2014-07-23T16:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime unsats with a simple aC++ shlib as Apache plugin</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-issues-while-compiling-a-simple-c-module-in-hp-ux/m-p/6551888#M496745</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am&amp;nbsp;building a&amp;nbsp; C++&amp;nbsp;&amp;nbsp;webservice using a C++ webservice toolkit called gSOAP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For this, we have to build two shared libraries -&lt;/P&gt;&lt;P&gt;1. Shared library for our actual webservice (e.g. calculator.so) which is loaded into Apache server.&amp;nbsp; I generated &amp;nbsp;the "calculator.so" using&amp;nbsp;the below steps&amp;nbsp;and load it in apache server successfully.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;aCC +DD64 -c -AA +z calculator.cpp&amp;nbsp; soapC.cpp soapcalcService.cpp stdsoap2.cpp&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;aCC +DD64 -b -o calculator.so&amp;nbsp; calculator.o soapC.o soapcalcService.o stdsoap2.o&amp;nbsp;-lstd_v2 -lCsup -lunwind -lm&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Shared library for a Apache module provided by the gSOAP toolkit called mod_gsoap.so. We need to build this shared library uisng the code (mod_gsoap.c written in pure C language)&amp;nbsp;provided in the toolkit. mod_gsopa.so &amp;nbsp;is generated using the following command (where apxs is a "C binary" of apache server)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;apxs -a -i -c&amp;nbsp; mod_gsoap.c&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After building the the above two modules, we loaded the modules in Apache server.&amp;nbsp; Then we started the Apache server and&amp;nbsp;server was able to start.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have also created a client (calcclient.cpp) to call the calculator webservice deployed in Apache.&lt;/P&gt;&lt;P&gt;But when we run the&amp;nbsp;client:&lt;STRONG&gt;calcclient add 2 3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;we are getting the following error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;Error -1 fault: SOAP-ENV:Client[no subcode] &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;"End of file or no input: Operation interrupted or timed out"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;Detail: [no detail]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then tried bulding the mod_gsoap.so through aCC compiler instead of apxs using the following command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;aCC +DD64 -c -AA +z&lt;/STRONG&gt; &lt;STRONG&gt;mod_gsoap.c&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;aCC +DD64 -b -o mod_gsoap.so mod_gsoap.o&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and loaded the mod_gsoap.so into Apache but I get the same error after running the calcclient.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="arial,helvetica,sans-serif"&gt;&lt;EM&gt;But, when we build the same calculator.so and mod_gsoap.so shared libraries using C compilation, the calcclient runs successfully.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what is the reason that the code does not work in C++?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jul 2014 05:34:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/linking-issues-while-compiling-a-simple-c-module-in-hp-ux/m-p/6551888#M496745</guid>
      <dc:creator>Biswadeep</dc:creator>
      <dc:date>2014-07-24T05:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime unsats with a simple aC++ shlib as Apache plugin</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-issues-while-compiling-a-simple-c-module-in-hp-ux/m-p/6551892#M496746</link>
      <description>&lt;P&gt;Name mangling, perhaps?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You may want to verify that the symbols being crossed referenced do not get mangled, which would cause it to appear missing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jul 2014 05:40:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/linking-issues-while-compiling-a-simple-c-module-in-hp-ux/m-p/6551892#M496746</guid>
      <dc:creator>SoumitraC</dc:creator>
      <dc:date>2014-07-24T05:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime unsats with a simple aC++ shlib as Apache plugin</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-issues-while-compiling-a-simple-c-module-in-hp-ux/m-p/6551920#M496747</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following is our c++&amp;nbsp;calculator service&amp;nbsp;code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;calculator.cpp&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;extern "C"&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;#include "apache_gsoap.h"&lt;/P&gt;&lt;P&gt;} #include&amp;lt;iostream.h&amp;gt;&lt;/P&gt;&lt;P&gt;extern "C"&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;IMPLEMENT_GSOAP_SERVER()//Macro present in apache_gsoap.h&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;extern "C" int soap_serve(struct soap *soap) {&lt;/P&gt;&lt;P&gt;soap_init(soap); &amp;nbsp;&lt;/P&gt;&lt;P&gt;calcService service(soap); &amp;nbsp;&lt;/P&gt;&lt;P&gt;int err = service.serve();&lt;/P&gt;&lt;P&gt;&amp;nbsp; service.destroy(); &amp;nbsp;&lt;/P&gt;&lt;P&gt;return err;&lt;/P&gt;&lt;P&gt;} int calcService::add(double a, double b, double *result)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;*result = a + b; &amp;nbsp;&lt;/P&gt;&lt;P&gt;return SOAP_OK;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;int calcService::sub(double a, double b, double *result)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;*result = a - b; &amp;nbsp;&lt;/P&gt;&lt;P&gt;return SOAP_OK;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The apache_gsoap.h file is as folows:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#ifdef __cplusplus&lt;/P&gt;&lt;P&gt;extern "C"&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;--- IMPLEMENT_GSOAP_SERVER()/ ---//Code snnipet in "C" -- --&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;#ifdef __cplusplus&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The mod_gsoap.c file needed to generate the other module mod_gsoap.so is as follows:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="left"&gt;#ifdef __cplusplus &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="left"&gt;extern "C"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="left"&gt;{ &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="left"&gt;#endif &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="left"&gt;-&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="left"&gt;-&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="left"&gt;--- -- -- --&lt;BR /&gt;#ifdef __cplusplus&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="left"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="left"&gt;#endif&lt;BR /&gt;#endif&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So i guess there is no issue with name mangling as the C code is written with extern "C" code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jul 2014 06:37:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/linking-issues-while-compiling-a-simple-c-module-in-hp-ux/m-p/6551920#M496747</guid>
      <dc:creator>Biswadeep</dc:creator>
      <dc:date>2014-07-24T06:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime unsats with a simple aC++ shlib as Apache plugin</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-issues-while-compiling-a-simple-c-module-in-hp-ux/m-p/6552866#M496748</link>
      <description>&lt;P&gt;&amp;gt;we are getting the following error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;FONT color="#ff0000"&gt;Error -1 fault: SOAP-ENV:Client[no subcode] &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;"End of file or no input: Operation interrupted or timed out"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;A particularly useless error.&lt;/FONT&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;&amp;gt;&lt;FONT color="#0000ff" face="arial,helvetica,sans-serif"&gt;&lt;EM&gt;when we build the same calculator.so ... &lt;FONT color="#0000ff" face="arial,helvetica,sans-serif"&gt;&lt;EM&gt;using C compilation&lt;/EM&gt;&lt;/FONT&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;How can you do that when your source is C++?&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;&amp;gt;what is the reason that the code does not work in C++?&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;Have you tried setting breakpoints to trace the flow of code?&amp;nbsp; You may have to use tusc.&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;&amp;gt;int err = service.serve();&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;I assume serve() is dispatching to your calcService member functions?&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;extern "C" {&lt;/P&gt;&lt;P&gt;#include "apache_gsoap.h"&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;}&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;Since apache_gsoap.h has already been C++ified, you shouldn't put it in another extern "C" block.&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jul 2014 18:35:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/linking-issues-while-compiling-a-simple-c-module-in-hp-ux/m-p/6552866#M496748</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2014-07-24T18:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime unsats with a simple aC++ shlib as Apache plugin</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-issues-while-compiling-a-simple-c-module-in-hp-ux/m-p/6553676#M496749</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the updates and all the helps till now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;&amp;gt;&lt;FONT color="#0000ff" face="arial,helvetica,sans-serif"&gt;&lt;EM&gt;when we build the same calculator.so ... &lt;FONT color="#0000ff" face="arial,helvetica,sans-serif"&gt;&lt;EM&gt;using C compilation&lt;/EM&gt;&lt;/FONT&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;How can you do that when your source is C++?&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;--&amp;gt;The source is in pure &amp;nbsp;"C"&amp;nbsp; ( not in C++)&amp;nbsp; when we are using C compiler.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;&amp;gt;what is the reason that the code does not work in C++?&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;Have you tried setting breakpoints to trace the flow of code?&amp;nbsp; You may have to use tusc.&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;--&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;we can not use tusc on a shared library , our service is .so so we&amp;nbsp;&amp;nbsp;have tried tusc with the client code&amp;nbsp;(which is actually calling the service).&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;The output of tusc on client code is inconsistant on different executions.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;We have tried the same tusc for the service written in "C" as well &amp;nbsp;just to compare the output&amp;nbsp; and below is the difference we observed at the end of the output generated by tusc:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;In C:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" size="1"&gt;&lt;EM&gt;send(4, "P O S T&amp;nbsp;&amp;nbsp; / s o a p&amp;nbsp;&amp;nbsp; H T T P / ".., 608, 0) ........................................................ = 608&lt;BR /&gt;recv(4, "H T T P / 1 . 1&amp;nbsp;&amp;nbsp; 2 0 0&amp;nbsp;&amp;nbsp; O K \r".., 65536, 0) ...................................................... = 610&lt;BR /&gt;brk(0x6000000000034000) ...................................................................................... = 0&lt;BR /&gt;shutdown(4, SHUT_RDWR) ....................................................................................... = 0&lt;BR /&gt;close(4) ..................................................................................................... = 0&lt;BR /&gt;write(1, "a f t e r&amp;nbsp;&amp;nbsp; c a l l&amp;nbsp;&amp;nbsp; t o&amp;nbsp;&amp;nbsp; A d ".., 18) ........................................................... = 18&lt;BR /&gt;write(1, "\n", 1) ............................................................................................ = 1&lt;BR /&gt;brk(0x6000000000036000) ...................................................................................... = 0&lt;BR /&gt;ioctl(1, TCGETA, 0x87fffffffffcc410) ......................................................................... = 0&lt;BR /&gt;write(1, "r e s u l t&amp;nbsp;&amp;nbsp; a c t u a l&amp;nbsp;&amp;nbsp; =&amp;nbsp;&amp;nbsp; ".., 18) ........................................................... = 18&lt;BR /&gt;exit(0) ...............................&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;In C++&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff"&gt;&lt;EM&gt;&lt;FONT size="1"&gt;send(4, "P O S T&amp;nbsp;&amp;nbsp; / s o a p&amp;nbsp;&amp;nbsp; H T T P / ".., 608, 0) ........................................................ = 608&lt;BR /&gt;recv(4, "H T T P / 1 . 1&amp;nbsp;&amp;nbsp; 2 0 0&amp;nbsp;&amp;nbsp; O K \r".., 65536, 0) ...................................................... = 894&lt;BR /&gt;recv(4, 0x87fffffffffd8680, 65536, 0) ........................................................................ = 0&lt;BR /&gt;write(1, "a f t e r&amp;nbsp;&amp;nbsp; c a l l&amp;nbsp;&amp;nbsp; t o&amp;nbsp;&amp;nbsp; A d ".., 18) ........................................................... = 18&lt;BR /&gt;write(1, "\n", 1) ............................................................................................ = 1&lt;BR /&gt;write(1, "S O A P&amp;nbsp;&amp;nbsp; E R R O R : ", 11) ....................................................................... = 11&lt;BR /&gt;write(1, "\n", 1) ............................................................................................ = 1&lt;BR /&gt;write(1, "R e s u l t 2 : ", 8) .............................................................................. = 8&lt;BR /&gt;write(1, "0 ", 1) ............................................................................................ = 1&lt;BR /&gt;write(1, "\n", 1) ............................................................................................ = 1&lt;BR /&gt;write(2, "E r r o r&amp;nbsp;&amp;nbsp; ", 6) .................................................................................. = 6&lt;BR /&gt;write(2, "- 1 ", 2) .......................................................................................... = 2&lt;BR /&gt;write(2, "&amp;nbsp; f a u l t :&amp;nbsp;&amp;nbsp; ", 8) .............................................................................. = 8&lt;BR /&gt;write(2, "S O A P - E N V : C l i e n t ", 15) ............................................................... = 15&lt;BR /&gt;write(2, "[ ", 1) ............................................................................................ = 1&lt;BR /&gt;write(2, "n o&amp;nbsp;&amp;nbsp; s u b c o d e ", 10) ......................................................................... = 10&lt;BR /&gt;write(2, "] ", 1) ............................................................................................ = 1&lt;BR /&gt;write(2, "\n", 1) ............................................................................................ = 1&lt;BR /&gt;write(2, "" ", 1) ............................................................................................ = 1&lt;BR /&gt;write(2, "E n d&amp;nbsp;&amp;nbsp; o f&amp;nbsp;&amp;nbsp; f i l e&amp;nbsp;&amp;nbsp; o r&amp;nbsp;&amp;nbsp; n ".., 59) ........................................................... = 59&lt;BR /&gt;write(2, "" ", 1) ............................................................................................ = 1&lt;BR /&gt;write(2, "\n", 1) ............................................................................................ = 1&lt;BR /&gt;write(2, "D e t a i l :&amp;nbsp;&amp;nbsp; ", 8) .............................................................................. = 8&lt;BR /&gt;write(2, "[ n o&amp;nbsp;&amp;nbsp; d e t a i l ] ", 11) ....................................................................... = 11&lt;BR /&gt;write(2, "\n", 1) ............................................................................................ = 1&lt;BR /&gt;shutdown(4, SHUT_RDWR) ....................................................................................... = 0&lt;BR /&gt;close(4) ..................................................................................................... = 0&lt;BR /&gt;exit(0) ...................................................................................................... WIFEXITED(0)&lt;/FONT&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;&amp;gt;int err = service.serve();&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;I assume serve() is dispatching to your calcService member functions?&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;--&amp;gt; Yes this is correct&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;extern "C" {&lt;/P&gt;&lt;P&gt;#include "apache_gsoap.h"&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;}&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;Since apache_gsoap.h has already been C++ified, you shouldn't put it in another extern "C" block.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;&lt;BR /&gt;--&amp;gt;&lt;FONT color="#339966"&gt;Yes this is correct but using extern "C" multiple times should not make any difference ?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;&lt;FONT color="#339966"&gt;Please help what else we can try.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;&lt;FONT color="#339966"&gt;Thanks,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;&lt;FONT color="#339966"&gt;Biswadeep.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jul 2014 11:55:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/linking-issues-while-compiling-a-simple-c-module-in-hp-ux/m-p/6553676#M496749</guid>
      <dc:creator>Biswadeep</dc:creator>
      <dc:date>2014-07-25T11:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime unsats with a simple aC++ shlib as Apache plugin</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-issues-while-compiling-a-simple-c-module-in-hp-ux/m-p/6554540#M496750</link>
      <description>&lt;P&gt;&lt;FONT color="#339966"&gt;--&amp;gt;The source is in pure &amp;nbsp;"C"&amp;nbsp; ( not in C++)&amp;nbsp; when we are using C compiler.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;FONT color="#000000"&gt;But calculator.cpp is C++.&amp;nbsp; Or is that different than calc.so?&lt;/FONT&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;&amp;gt;we can not use tusc on a shared library&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="2"&gt;Yes, you use tusc on processes.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" size="2"&gt;write(1, "a f t e r&amp;nbsp;&amp;nbsp; c a l l&amp;nbsp;&amp;nbsp; t o&amp;nbsp;&amp;nbsp; A d ".., 18)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="2"&gt;It seems to go wrong here.&amp;nbsp; Is this your message?&amp;nbsp; You may have to ask tusc to print longer strings in the writes.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT size="2"&gt;write(1, "S O A P&amp;nbsp;&amp;nbsp; E R R O R : ", 11)&lt;BR /&gt;write(1, "R e s u l t 2 : ", 8)&lt;BR /&gt;write(1, "0 ", 1)&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;--&amp;gt;&lt;FONT color="#339966"&gt;using extern "C" multiple times should not make any difference?&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;&lt;FONT color="#339966"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;&lt;FONT color="#339966"&gt;&lt;FONT color="#000000"&gt;It has caused compilation errors in the past and not a good idea to do.&lt;/FONT&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jul 2014 21:51:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/linking-issues-while-compiling-a-simple-c-module-in-hp-ux/m-p/6554540#M496750</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2014-07-25T21:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime unsats with a simple aC++ shlib as Apache plugin</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-issues-while-compiling-a-simple-c-module-in-hp-ux/m-p/6555948#M496752</link>
      <description>&lt;P&gt;&lt;FONT color="#339966"&gt;---&amp;gt;But calculator.cpp is C++.&amp;nbsp; Or is that different than calc.so?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are trying to build our webservice in two differnet language: i.e in C and C++ respectively.&lt;/P&gt;&lt;P&gt;&amp;nbsp;The codes are in C and C++ respectively and the compiler is different for both the cases and the calc.so are also different in both the cases.&lt;/P&gt;&lt;P&gt;Both the webservices are distinct.&lt;/P&gt;&lt;P&gt;Our webservice is working fine with C code but in C++ we are facing issues as mentioned above.&lt;/P&gt;&lt;P&gt;Hope now its clear.Sorry for the confusion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;---&amp;gt;Yes, you use tusc on processes.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;We tried running our code using the following command:&lt;/P&gt;&lt;P&gt;tusc -f -o calc.tusc&amp;nbsp; -p 19174( 19174 is the main process id,after loading our calc.so(in C++)&amp;nbsp;, mod_gsoap.so(in C)&amp;nbsp;into the apache server and starting it)&lt;/P&gt;&lt;P&gt;tail -f calc.tusc&lt;/P&gt;&lt;P&gt;Here is our output file&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366ff" size="1"&gt;[19174] select(0, NULL, NULL, NULL, 0x87ffffffffff65d0) ...................................................... [sleeping] &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366ff" size="1"&gt;[19174] select(0, NULL, NULL, NULL, 0x87ffffffffff65d0) ...................................................... = 0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366ff" size="1"&gt;[19174] waitpid(-1, WIFEXITED(0), WNOHANG|WUNTRACED) ......................................................... = 0 &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366ff" size="1"&gt;[19174] select(0, NULL, NULL, NULL, 0x87ffffffffff65d0) ...................................................... = 0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366ff" size="1"&gt;[19174] waitpid(-1, WIFEXITED(0), WNOHANG|WUNTRACED) ......................................................... = 0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366ff" size="1"&gt;[19174] select(0, NULL, NULL, NULL, 0x87ffffffffff65d0) ...................................................... = 0 &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366ff" size="1"&gt;[19174] waitpid(-1, WIFEXITED(0), WNOHANG|WUNTRACED) ......................................................... = 0 &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366ff" size="1"&gt;[19174] select(0, NULL, NULL, NULL, 0x87ffffffffff65d0) ...................................................... = 0 &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366ff" size="1"&gt;[19174] waitpid(-1, WIFEXITED(0), WNOHANG|WUNTRACED) ......................................................... = 0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366ff" size="1"&gt;[19174] select(0, NULL, NULL, NULL, 0x87ffffffffff65d0) ...................................................... = 0 &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366ff" size="1"&gt;[19174] waitpid(-1, WIFEXITED(0), WNOHANG|WUNTRACED) ......................................................... = 0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When We tried tusc in C code thats working fine(for comaprison purpose) using the command:&lt;/P&gt;&lt;P&gt;tusc -f -o calc1.tusc&amp;nbsp; -p 26841( 26841 is the main process id,after loading our calc.so(in C) ,mod_gsoap.so(in C)( into the apache server and starting it)&lt;/P&gt;&lt;P&gt;tail -f calc1.tusc&lt;/P&gt;&lt;P&gt;the output file is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366ff" size="1"&gt;[26841] select(0, NULL, NULL, NULL, 0x87ffffffffff65d0) ...................................................... [sleeping]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366ff" size="1"&gt;[26841] &lt;FONT color="#3366ff"&gt;select(0, NULL, NULL, NULL, 0x87ffffffffff65d0) ...................................................... = 0 &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366ff" size="1"&gt;[26841] waitpid(-1, WIFEXITED(0), WNOHANG|WUNTRACED) ......................................................... = 0 &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366ff" size="1"&gt;[26841] select(0, NULL, NULL, NULL, 0x87ffffffffff65d0) ...................................................... = 0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366ff" size="1"&gt;[26841] waitpid(-1, WIFEXITED(0), WNOHANG|WUNTRACED) ......................................................... = 0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366ff" size="1"&gt;[26841] select(0, NULL, NULL, NULL, 0x87ffffffffff65d0) ...................................................... = 0 &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366ff" size="1"&gt;[26841] waitpid(-1, WIFEXITED(0), WNOHANG|WUNTRACED) ......................................................... = 0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366ff" size="1"&gt;[26841] select(0, NULL, NULL, NULL, 0x87ffffffffff65d0) ...................................................... = 0 &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366ff" size="1"&gt;[26841] waitpid(-1, WIFEXITED(0), WNOHANG|WUNTRACED) ......................................................... = 0 &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366ff" size="1"&gt;[26841] select(0, NULL, NULL, NULL, 0x87ffffffffff65d0) ...................................................... = 0 &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366ff" size="1"&gt;[26841] waitpid(-1, WIFEXITED(0), WNOHANG|WUNTRACED) ......................................................... = 0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The output file using tusc is same for process(using C) and process(using C++).&lt;/P&gt;&lt;P&gt;for c we are getting the correct result through client but for C++ it is not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;---&amp;gt; using extern "C" multiple times has caused compilation errors in the past and not a good idea to do.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ok&amp;nbsp;but we are not facing anny issues during compilation time.We have even removed the extern "C" line from our code and compiled the code again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please suggest what we should do next.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jul 2014 12:38:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/linking-issues-while-compiling-a-simple-c-module-in-hp-ux/m-p/6555948#M496752</guid>
      <dc:creator>Biswadeep</dc:creator>
      <dc:date>2014-07-28T12:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime unsats with a simple aC++ shlib as Apache plugin</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/linking-issues-while-compiling-a-simple-c-module-in-hp-ux/m-p/6556248#M496753</link>
      <description>&lt;P&gt;&amp;gt;Here is our output file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your two tusc output file fragments don't cover the error timeframe.&lt;/P&gt;&lt;P&gt;Your previous one did and included the error message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: The -p option has nothing to do with the PID but with listing them.&amp;nbsp; And so it should go next to the -f: -fp&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;The output file using tusc is same for process (using C) and process (using C++).&lt;/P&gt;&lt;P&gt;&amp;gt;for C we are getting the correct result through client but for C++ it is not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This would imply it isn't the system calls but how you process the data that's going wrong.&lt;/P&gt;&lt;P&gt;All tusc can do is bracket the timeframes.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jul 2014 17:39:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/linking-issues-while-compiling-a-simple-c-module-in-hp-ux/m-p/6556248#M496753</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2014-07-28T17:39:53Z</dc:date>
    </item>
  </channel>
</rss>

