[omniORB] Port of omniORB_280pre1 to Compaq C++ 6.2 OpenVMS Alpha
Wed, 07 Jul 1999 15:09:24 -0400
"Gary D. Duzan" wrote:
> In Message <firstname.lastname@example.org> ,
> Sai-Lai Lo <S.Lo@uk.research.att.com> wrote:
> =>I'll check the _0RL_buildDesc_cstring to make sure other compilers are not
> =>upset with the change. Sigh!
> xlC doesn't like it:
> xlC_r -c -O -I../../../../include -D_REENTRANT -D_THREAD_SAFE -I. -I./.. -I./../.. -DUSE_omniORB_logStream -D_OMNIORB2_DYNAMIC_LIBRARY -DUnixArchitecture -DCONFIG_DEFAULT_LOCATION=/etc/omniORB.cfg -D__aix__ -D__powerpc__ -D__OSVERSION__=4 -o irdynstub.o irdynstub.cc
> "../../../../include/omniORB2/CORBA.h", line 1414.9: 1540-316: (W) The nested class "CORBA::ImplementationDef" is undefined and cannot be defined later.
DEC cxx version 5.6 chokes on this as well. I made it an empty class. I guess another approach (for platforms without namespaces) would be to forward declare _CORBA_ImplementationDef or something and use a typedef (so that it could be completed if that is the intent).
I have managed to get a clean build on OpenVMS Alpha with the DEC cxx 5.6 compiler, but the VAX compiler runs out of virtual memory (with page file quota set to 300Mb). Sigh!
> "./../irDynSK.cc", line 2997.91: 1540-224: (S) Conversion from "_CORBA_String_member" to a reference to a non-const type "_CORBA_String_member&" requires a temporary.
> "./../irDynSK.cc", line 2997.91: 1540-306: (I) The previous message applies to argument 2 of function "_0RL_buildDesc_cstring(tcDescriptor&,_CORBA_String_member&)".
> gmake: *** [irdynstub.o] Error 1
> I'm trying a recompile now with the const added.
> xlC also doesn't have const_cast<>, so it needs the following:
> *** CORBA_sysdep.h.orig Sat Jun 26 13:55:09 1999
> --- CORBA_sysdep.h Wed Jul 7 08:54:18 1999
> *** 244,249 ****
> --- 244,253 ----
> # define SIZEOF_PTR 8
> + #elif defined(__xlC__) && (__xlC__ <= 0x0301)
> + #undef HAS_Cplusplus_const_cast
> #if defined(__hpux__)
> More info once I finish compiling everything...
> Gary Duzan
> GTE Laboratories