[omniORB] OmniORB4 Build problem on HP-UX

Duncan Grisby dgrisby@uk.research.att.com
Wed, 02 Jan 2002 17:27:22 +0000


On Wednesday 26 December, Masaaki Sekiya wrote:

> 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.

[...]
> 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?

Cheers,

Duncan.

-- 
 -- Duncan Grisby  \  Research Engineer  --
  -- AT&T Laboratories Cambridge          --
   -- http://www.uk.research.att.com/~dpg1 --