<?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: complie and runtime problem with gcc compiler in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/complie-and-runtime-problem-with-gcc-compiler/m-p/5156572#M684124</link>
    <description>change the compiler option from gcc to g++ and remove -lstream &amp;amp; -lstdc++. and that works.</description>
    <pubDate>Thu, 12 Feb 2009 10:13:16 GMT</pubDate>
    <dc:creator>jackie_siu</dc:creator>
    <dc:date>2009-02-12T10:13:16Z</dc:date>
    <item>
      <title>complie and runtime problem with gcc compiler</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/complie-and-runtime-problem-with-gcc-compiler/m-p/5156567#M684119</link>
      <description>hi all,&lt;BR /&gt;  I encoutered a puzzled problem when i compile and run an old program on a new installed hp-ux machine. Following is the trouble detail:&lt;BR /&gt;  machine info:&lt;BR /&gt;   CPU info:&lt;BR /&gt;   Number of CPUs = 16&lt;BR /&gt;   Clock speed = 1598 MHz&lt;BR /&gt;   Bus speed   = 533 MT/s&lt;BR /&gt;   CPUID registers&lt;BR /&gt;      vendor information =       "GenuineIntel"&lt;BR /&gt;      processor serial number =  0x0000000000000000&lt;BR /&gt;      processor version info =   0x0000000020010104&lt;BR /&gt;         architecture revision:       0&lt;BR /&gt;         processor family:           32   Intel(R) Itanium 2 9100 series&lt;BR /&gt;         processor model:             1   Intel(R) Itanium 2 9100 series&lt;BR /&gt;         processor revision:          1   Stepping A1&lt;BR /&gt;         largest CPUID reg:           4&lt;BR /&gt;      processor capabilities =   0x0000000000000005&lt;BR /&gt;                      implements long branch:  1&lt;BR /&gt;        implements 16-byte atomic operations:  1&lt;BR /&gt;   Bus features&lt;BR /&gt;      implemented =  0xbdf0000020000000&lt;BR /&gt;      selected    =  0x0020000000000000&lt;BR /&gt;         Exclusive Bus Cache Line Replacement Enabled&lt;BR /&gt; &lt;BR /&gt;Cache info (per core):&lt;BR /&gt;   L1 Instruction: size =   16 KB, associativity = 4&lt;BR /&gt;   L1 Data:        size =   16 KB, associativity = 4&lt;BR /&gt;   L2 Instruction: size = 1024 KB, associativity = 8&lt;BR /&gt;   L2 Data:        size =  256 KB, associativity = 8&lt;BR /&gt;   L3 Unified:     size = 9216 KB, associativity = 9&lt;BR /&gt; &lt;BR /&gt;Memory = 32634 MB (31.869141 GB)&lt;BR /&gt; &lt;BR /&gt;Firmware info:&lt;BR /&gt;   Firmware revision = 9.048&lt;BR /&gt;   FP SWA driver revision: 1.18&lt;BR /&gt;   IPMI is supported on this system.&lt;BR /&gt;   ERROR: Unable to obtain manageability firmware revision info.&lt;BR /&gt; &lt;BR /&gt;Platform info:&lt;BR /&gt;   model string =          "ia64 hp server rx8640"&lt;BR /&gt;   machine id number =     7a16ac1c-771e-11dd-a308-d2950179ded4&lt;BR /&gt;   machine serial number = SGH4830C73&lt;BR /&gt; &lt;BR /&gt;OS info:&lt;BR /&gt;   sysname  = HP-UX&lt;BR /&gt;   nodename = SRBZ-6&lt;BR /&gt;   release  = B.11.23&lt;BR /&gt;   version  = U (unlimited-user license)&lt;BR /&gt;   machine  = ia64&lt;BR /&gt;   idnumber = 2048306204&lt;BR /&gt;   vmunix _release_version:               &lt;BR /&gt;@(#) $Revision: vmunix:    B11.23_LR FLAVOR=perf Fri Aug 29 22:35:38 PDT 2003 $&lt;BR /&gt;&lt;BR /&gt;useful env info:&lt;BR /&gt;MANPATH=/opt/VRTS/vxfs4.1/man:/usr/share/man/%L:/usr/share/man:/usr/contrib/man/%L:/usr/contrib/man:/usr/local/man/%L:/usr/local/man:/opt/graphics/common/man:/opt/ignite/share/man/%L:/opt/ignite/share/man:/opt/ldapux/share/man:/opt/ldapux/ypldapd/man:/opt/ipf/man:/opt/cifsclient/share/man:/opt/openssl/man:/opt/openssl/prngd/man:/opt/wbem/share/man:/opt/amgr/man:/opt/amgr/man/%L:/usr/dt/share/man:/opt/samba/man:/opt/samba/WTEC_Support_Tools/man:/opt/resmon/share/man/%L:/opt/resmon/share/man:/opt/perf/man/%L:/opt/perf/man:/opt/prm/man/%L:/opt/prm/man:/opt/gwlm/man/%L:/opt/gwlm/man:/opt/sec_mgmt/share/man:/opt/dsau/man:/opt/gnome/man:/opt/VRTS/man:/opt/perl_32/man:/opt/perl_64/man:/opt/swa/share/man/%L:/opt/swa/share/man:/opt/ssh/share/man:/opt/drd/share/man/%L:/opt/drd/share/man:/opt/sfmdb/pgsql/man:/opt/sfm/share/man:/opt/aCC/share/man/%L:/opt/aCC/share/man:/opt/audio/share/man:/opt/langtools/share/man/%L:/opt/langtools/share/man:/opt/caliper/man/%L:/opt/caliper/man:/opt/cadvise/share/man/%L:/opt/cadvise/share/man:/opt/image/share/man:/opt/sentinel/man/%L:/opt/sentinel/man:/opt/imake/man:/opt/EMCpower/share:/opt/hp-gcc/man&lt;BR /&gt;SHLIB_PATH=/usr/lib:/usr/local/lib:/usr/lib/hpux64:/u01/app/lib:/opt/hp-gcc-4.0.4/lib:/opt/hp-gcc-4.0.4/lib/hpux64:/oracle/ora/lib:/oracle/ora/lib32&lt;BR /&gt;BILLINGROOT=/develop/bill&lt;BR /&gt;PATH=/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/usr/contrib/Q4/bin:/opt/perl/bin:/opt/hparray/bin:/opt/nettladm/bin:/opt/fcms/bin:/usr/contrib/kwdb/bin:/usr/bin/X11:/opt/graphics/common/bin:/opt/upgrade/bin:/opt/ipf/bin:/opt/wbem/bin:/opt/wbem/sbin:/opt/resmon/bin:/opt/perf/bin:/opt/prm/bin:/opt/hpsmh/bin:/opt/gwlm/bin:/opt/gvsd/bin:/opt/sas/bin:/opt/sec_mgmt/bastille/bin:/opt/dsau/bin:/opt/dsau/sbin:/opt/firefox:/opt/gnome/bin:/opt/ignite/bin:/opt/mozilla:/opt/perl_32/bin:/opt/perl_64/bin:/opt/sec_mgmt/spc/bin:/opt/ssh/bin:/opt/swa/bin:/opt/thunderbird:/opt/drd/bin:/opt/sfm/bin:/opt/aCC/bin:/opt/caliper/bin:/opt/cadvise/bin:/opt/sentinel/bin:/opt/langtools/bin:/usr/contrib/bin/X11:/opt/hp-gcc/bin:/develop/bill/bin:/oracle/app/oracle/product/10.2.0/db_2/bin:/opt/aCC/bin:/opt/langtools/bin:/usr/local/bin:/opt/java1.4:.:/develop/bill/bin:/oracle/app/oracle/product/10.2.0/db_2/bin:/opt/aCC/bin:/opt/langtools/bin:/usr/local/bin:/opt/java1.4:.&lt;BR /&gt;NLS_LANG=american_america.zhs16gbk&lt;BR /&gt;EDITOR=vi&lt;BR /&gt;ORACLE_SID=radb&lt;BR /&gt;ERASE=^H&lt;BR /&gt;ORA_NLS10=/oracle/app/oracle/product/10.2.0/db_2/nls/data&lt;BR /&gt;SHELL=/usr/bin/ksh&lt;BR /&gt;LD_LIBRARY_PATH=/oracle/app/oracle/product/10.2.0/db_2/lib:ORACLE_HOME/rdbms/lib:/oracle/app/oracle/product/10.2.0/db_2/network/lib:/develop/bill/apps/dll:/usr/lib:/usr/local/lib:/develop/bill/apps/lib/com:/develop/bill/apps/lib/favor_part:/opt/hp-gcc-4.0.4/lib:/opt/hp-gcc-4.0.4/lib/hpux64&lt;BR /&gt;TERM=vt100&lt;BR /&gt;ORACLE_HOME=/oracle/app/oracle/product/10.2.0/db_2&lt;BR /&gt;PWD=/opt/aCC/include&lt;BR /&gt;TZ=EAT-8&lt;BR /&gt;LINES=53&lt;BR /&gt;&lt;BR /&gt;compiler info:&lt;BR /&gt;software_spec          GNU_C_C++,l=/opt/hp-gcc-4.0.4,r=4.0.4,v=HP&lt;BR /&gt;install_source         SRBZ-6:/develop/gcc-ia64-4.0.4.depot&lt;BR /&gt;directory              /opt/hp-gcc-4.0.4&lt;BR /&gt;location               /opt/hp-gcc-4.0.4&lt;BR /&gt;&lt;BR /&gt;complie error info:&lt;BR /&gt;&lt;BR /&gt;  gcc -mlp64  -o recordtodb recordtodb.o /develop/bill/repository/obj/login.o  /develop/bill/repository/obj/stdafx.o /develop/bill/repository/obj/cast5.o /develop/bill/repository/obj/cast5box.o /develop/bill/repository/obj/basicfunc.o /develop/bill/repository/obj/md5.o public.o -lxnet -L/oracle/app/oracle/product/10.2.0/db_2/lib/ -L/develop/bill/repository/obj/ -lclntsh -lm -lstream -lstdc++&lt;BR /&gt;ld: (Warning) Unsatisfied symbol "_stream_rmutex" in file /lib/hpux64/libstream.so&lt;BR /&gt;ld: (Warning) Potential unresolved symbol "__udivdi3": &lt;BR /&gt;shared library reference is resolved to non-exported &lt;BR /&gt;definition in file "/opt/hp-gcc-4.0.4/lib/gcc/ia64-hp-hpux11.23/4.0.4/hpux64/libgcc.a[__udivdi3.o]".&lt;BR /&gt;ld: (Warning) Potential unresolved symbol "__udivsi3": &lt;BR /&gt;shared library reference is resolved to non-exported &lt;BR /&gt;definition in file "/opt/hp-gcc-4.0.4/lib/gcc/ia64-hp-hpux11.23/4.0.4/hpux64/libgcc.a[__udivsi3.o]".&lt;BR /&gt;ld: (Warning) Potential unresolved symbol "__divdi3": &lt;BR /&gt;shared library reference is resolved to non-exported &lt;BR /&gt;definition in file "/opt/hp-gcc-4.0.4/lib/gcc/ia64-hp-hpux11.23/4.0.4/hpux64/libgcc.a[__divdi3.o]".&lt;BR /&gt;ld: (Warning) Potential unresolved symbol "__divsi3": &lt;BR /&gt;shared library reference is resolved to non-exported &lt;BR /&gt;definition in file "/opt/hp-gcc-4.0.4/lib/gcc/ia64-hp-hpux11.23/4.0.4/hpux64/libgcc.a[__divsi3.o]".&lt;BR /&gt;ld: (Warning) Unsatisfied symbol "_cstreams_rmutex" in file /lib/hpux64/libstream.so&lt;BR /&gt;ld: (Warning) Unsatisfied symbol "__cxa_finalize" in file /lib/hpux64/libstream.so&lt;BR /&gt;ld: (Warning) Unsatisfied symbol "__cxa_atexit" in file /lib/hpux64/libstream.so&lt;BR /&gt;ld: (Warning) Unsatisfied symbol "__cxa_personality_routine" in file /lib/hpux64/libstream.so&lt;BR /&gt;9 warnings.&lt;BR /&gt;&lt;BR /&gt;run error info:&lt;BR /&gt;  /usr/lib/hpux64/dld.so: Unsatisfied code symbol '__cxa_personality_routine' in load module '/usr/lib/hpux64/libstream.so.1'.&lt;BR /&gt;/usr/lib/hpux64/dld.so: Unsatisfied data symbol '_cstreams_rmutex' in load module '/usr/lib/hpux64/libstream.so.1'.&lt;BR /&gt;/usr/lib/hpux64/dld.so: Unsatisfied data symbol '_stream_rmutex' in load module '/usr/lib/hpux64/libstream.so.1'.&lt;BR /&gt;Killed&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;that's all.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;how to solve this problem?&lt;BR /&gt;  &lt;BR /&gt;</description>
      <pubDate>Thu, 12 Feb 2009 07:30:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/complie-and-runtime-problem-with-gcc-compiler/m-p/5156567#M684119</guid>
      <dc:creator>jackie_siu</dc:creator>
      <dc:date>2009-02-12T07:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: complie and runtime problem with gcc compiler</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/complie-and-runtime-problem-with-gcc-compiler/m-p/5156568#M684120</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;This seems likely a problem with the code itself.&lt;BR /&gt;&lt;BR /&gt;Also insure that HP-UX 64 bit libraries are installed, present and on the SHLIB_PATH and other library path environment variables.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 12 Feb 2009 07:42:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/complie-and-runtime-problem-with-gcc-compiler/m-p/5156568#M684120</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-02-12T07:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: complie and runtime problem with gcc compiler</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/complie-and-runtime-problem-with-gcc-compiler/m-p/5156569#M684121</link>
      <description>Steven,&lt;BR /&gt;  thanks for your reply. But I don't think the problem is generated from original code,because I have runned the code for about 2 years at other machine(same hp-ux version). and I assure that the 64-bit libraries has been installed. I have compared the shlib_path configuration of the new machine with the old ones, and didn't find any difference. So I don't think the resolution you provide can resolve my trouble.</description>
      <pubDate>Thu, 12 Feb 2009 07:59:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/complie-and-runtime-problem-with-gcc-compiler/m-p/5156569#M684121</guid>
      <dc:creator>jackie_siu</dc:creator>
      <dc:date>2009-02-12T07:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: complie and runtime problem with gcc compiler</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/complie-and-runtime-problem-with-gcc-compiler/m-p/5156570#M684122</link>
      <description>What you are doing is illegal.  You can't mix g++ with aC++ code, remove -lstream.&lt;BR /&gt;&lt;BR /&gt;You also must compile and link with g++, not gcc.  Remove -lstdc++.&lt;BR /&gt;&lt;BR /&gt;This warning is scary but it doesn't say where the problem is:&lt;BR /&gt;ld: (Warning) Potential unresolved symbol "__udivdi3": shared library reference is resolved to non-exported definition in file __udivdi3.o".</description>
      <pubDate>Thu, 12 Feb 2009 08:53:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/complie-and-runtime-problem-with-gcc-compiler/m-p/5156570#M684122</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-02-12T08:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: complie and runtime problem with gcc compiler</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/complie-and-runtime-problem-with-gcc-compiler/m-p/5156571#M684123</link>
      <description>Thanks a lot, Dennis. I have got the correct result.</description>
      <pubDate>Thu, 12 Feb 2009 10:11:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/complie-and-runtime-problem-with-gcc-compiler/m-p/5156571#M684123</guid>
      <dc:creator>jackie_siu</dc:creator>
      <dc:date>2009-02-12T10:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: complie and runtime problem with gcc compiler</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/complie-and-runtime-problem-with-gcc-compiler/m-p/5156572#M684124</link>
      <description>change the compiler option from gcc to g++ and remove -lstream &amp;amp; -lstdc++. and that works.</description>
      <pubDate>Thu, 12 Feb 2009 10:13:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/complie-and-runtime-problem-with-gcc-compiler/m-p/5156572#M684124</guid>
      <dc:creator>jackie_siu</dc:creator>
      <dc:date>2009-02-12T10:13:16Z</dc:date>
    </item>
  </channel>
</rss>

