[omniORB] Port of omniORB_280pre1 to Compaq C++ 6.2 OpenVMS Alpha 7.1

Gary D. Duzan gdd0@gte.com
Wed, 07 Jul 1999 14:55:50 -0400


In Message <3or9mkdc5j.fsf@neem.uk.research.att.com> ,
   Sai-Lai Lo <S.Lo@uk.research.att.com> wrote:

=>Bruce,
=>
=>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.
"./../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[3]: *** [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
  #endif
  
+ #elif defined(__xlC__) && (__xlC__ <= 0x0301)
+ 
+ #undef HAS_Cplusplus_const_cast
+ 
  #endif
  
  #if defined(__hpux__)

More info once I finish compiling everything...

					Gary Duzan
					GTE Laboratories