[omniORB] OmniORB4 Build problem on HP-UX

Masaaki Sekiya sekiya@nagoya.ydc.co.jp
Wed, 26 Dec 2001 16:22:05 JST


Hi,
When I try to build OmniORB4 on HP-UX11.11 with aC++ B3910B A.03.26 ,
the build failed with:

aCC -c -g -w +inst_v +DAportable -D_THREAD_SAFE -DRWSTD_MULTI_THREAD -DRW_MULTI_
THREAD  -I.. -I./.. -I../include -I./../include -D_HPUX_SOURCE -D_POSIX_C_SOURCE
=199506L -DUSE_omniORB_logStream -D_OMNIORB_LIBRARY -DCONFIG_DEFAULT_LOCATION='"
/etc/omniORB.cfg"' -DCONFIG_ENV='"OMNIORB_CONFIG"' -DUnixArchitecture -I. -I. -I
../../../../include -D__hppa__ -D__hpux__ -D__OSVERSION__=11 -o static/anonObjec
t.o anonObject.cc
Error 695: "../../../../include/omniORB4/CORBA_Any.h", line 221 # A member refer
ence must be initialized without the compiler needing to construct a temporary.
        to_object(Object_out obj) : ref(obj) { }
                                        ^^^
So I patched on CORBA_Any.h like below.

@@ -218,7 +218,7 @@
     UShort scale;
   };
   struct to_object {
-    to_object(Object_out obj) : ref(obj) { }
+    to_object(Object_ptr &obj) : ref(obj) { }
     Object_ptr& ref;
   };

Then the first error went away. 
However , next problem comes.
While compiling corbaOrb.cc , system problem occurs like below..

aCC -c -O -w +inst_v +DAportable -D_THREAD_SAFE -DRWSTD_MULTI_THREAD -DRW_MULTI_
THREAD  -I.. -I./.. -I../include -I./../include -D_HPUX_SOURCE -D_POSIX_C_SOURCE
=199506L -DUSE_omniORB_logStream -D_OMNIORB_LIBRARY -DCONFIG_DEFAULT_LOCATION='"
/etc/omniORB.cfg"' -DCONFIG_ENV='"OMNIORB_CONFIG"' -DUnixArchitecture -I. -I. -I
../../../../include -D__hppa__ -D__hpux__ -D__OSVERSION__=11 -o static/corbaOrb.
o corbaOrb.cc
Signal 11
( 0)  0x00297b88   sighandler__FiT1 + 0x148  [/opt/aCC/lbin/ctcom.pa20]
( 1)  0xc0208238   _sigreturn  [/usr/lib/libc.2]
( 2)  0x001d5c3c   baseClassList__5ClassFv + 0x8  [/opt/aCC/lbin/ctcom.pa20]
( 3)  0x001d5ae4   next__17BaseClassIteratorFv + 0x3e8  [/opt/aCC/lbin/ctcom.pa20]
( 4)  0x001d9c48   setInfo__18DerivationPathInfoFP5ClassT1bP11DeclarationT3 + 0x80  [/opt/aCC/lbin/ctcom.pa20]
( 5)  0x0015a934   isADerivedClassOf__5ClassFP5Class + 0x30  [/opt/aCC/lbin/ctcom.pa20]
( 6)  0x0029c144   compareConversionFunctions__F9TypeTokenN21b + 0x3d0  [/opt/aCC/lbin/ctcom.pa20]
( 7)  0x001748e4   getConversionFunction__10ExpressionSFP10Expression9TypeTokenbT3 + 0x204  [/opt/aCC/lbin/ctcom.pa20]
( 8)  0x002040a0   userConversions__10ExpressionSFP10Expression9TypeTokenbN33 + 0xfc  [/opt/aCC/lbin/ctcom.pa20]
( 9)  0x00250674   commonUserDefinedMatch__FiT1R9MatchDataT1 + 0x304  [/opt/aCC/lbin/ctcom.pa20]
(10)  0x0025081c   userDefinedMatch__FiT1R9MatchData + 0x38  [/opt/aCC/lbin/ctcom.pa20]
(11)  0x001a8850   overloadResolution__4CallFbT1 + 0x2e0  [/opt/aCC/lbin/ctcom.pa20]
(12)  0x001895a4   operatorOverload__10ExpressionF11StringTokenb + 0xd10  [/opt/aCC/lbin/ctcom.pa20]
(13)  0x001445c8   internalNodeSemantics__5ShiftFv + 0x38  [/opt/aCC/lbin/ctcom.pa20]
(14)  0x001dd944   nodeSemantics__10ExpressionFv + 0x1c0  [/opt/aCC/lbin/ctcom.pa20]
(15)  0x001ddd60   treeSemantics__10ExpressionFb + 0x310  [/opt/aCC/lbin/ctcom.pa20]
(16)  0x001c1370   doReduction3__FiR12ScannerValueP12ScannerValue + 0x7680  [/opt/aCC/lbin/ctcom.pa20]
(17)  0x001b9600   yyparse__Fv + 0xc28  [/opt/aCC/lbin/ctcom.pa20]
(18)  0x00118bc4   DoCompile__8CompilerFv + 0x224  [/opt/aCC/lbin/ctcom.pa20]
(19)  0x00283114   DoCompile__8CompilerFP6Buffer + 0x34  [/opt/aCC/lbin/ctcom.pa20]
(20)  0x002792a4   DoCompileFile__8CompilerFPc + 0x260  [/opt/aCC/lbin/ctcom.pa20]
(21)  0x00271b38   main + 0x43c  [/opt/aCC/lbin/ctcom.pa20]
(22)  0xc0142ac8   _start + 0xc4  [/usr/lib/libc.2]
(23)  0x002771a0   $START$ + 0x1a0  [/opt/aCC/lbin/ctcom.pa20]
Error (system problem) 689: # Compiler received signal 11
gmake[3]: *** [static/corbaOrb.o] Error 3


This log says Compiler received signal 11 , Why ?
Is there anyone who has some hints to solve this phenomenon ?
Has anyone successfully built omniORB4 with HP-UX ?
Any advice would be very appriciated. 
Thanks.

Masaaki Sekiya