[omniORB] OmniORB4 Build problem on HP-UX

Masaaki Sekiya sekiya@nagoya.ydc.co.jp
Tue, 8 Jan 2002 18:04:30 JST


> > 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. 
> 
> The code for Any::to_object is taken verbatim from the C++ mapping
> specification, so it's rather upsetting that your compiler complains
> about it. Does it work if you use this:
> 
>     to_object(Object_out obj) : ref(obj._data) { }
> 
> That's rather more in the spirit of the mapping spec.

ok. It works fine.

> [...]
> > While compiling corbaOrb.cc , system problem occurs like below..
> 
> > Error (system problem) 689: # Compiler received signal 11
> > gmake[3]: *** [static/corbaOrb.o] Error 3
> > 
> > 
> > This log says Compiler received signal 11 , Why ?
> 
> It's clearly a bug in the HP compiler. No matter what's wrong with the
> code being compiled, it shouldn't be able to segfault the compiler.
> Are you using the latest version?  Perhaps you can check with HP to
> see if there are any patches available?

I am using HP-UX11.11 with aC++ B3910B A.03.26.
And available patches are attached to it.
According to HP-web-site , the latest version is A.03.33.
Although the latest version may solve problems ,
it's difficult for me to use it now because of some reasons.
( other products couldn't be complied , our projects development policy .. etc )
I will try omniORB4 if I can get a chance to use the latest version.

Thanks.

Masaaki Sekiya