[omniORB] patch against omniORB 3 [for IRIX 6.5]

James Riden jamesr@harlequin.co.uk
16 Feb 2000 13:51:01 +0000


There's a compiler bug in MIPSpro 7.2.1 that prevents the nameservice
from compiling - it doesn't seem to like the user-defined -> operator
in this context - but I think it can be fixed by upgrading to 7.3 

An ugly patch for this :

turing% cvs diff include/omniORB3/CORBA_sysdep.h 
Index: include/omniORB3/CORBA_sysdep.h
===================================================================
RCS file: /cvsroot/omni/include/omniORB3/Attic/CORBA_sysdep.h,v
retrieving revision 1.1.2.6
diff -r1.1.2.6 CORBA_sysdep.h
268a269,271
> #if _COMPILER_VERSION == 721
> #define MIPSPRO_WORKAROUND
> #endif


turing% cvs diff src/appl/omniNames/BindingIterator_i.h 
Index: src/appl/omniNames/BindingIterator_i.h
===================================================================
RCS file: /cvsroot/omni/src/appl/omniNames/BindingIterator_i.h,v
retrieving revision 1.5.8.2
diff -r1.5.8.2 BindingIterator_i.h
49a50
> #ifndef MIPSPRO_WORKAROUND
50a52,54
> #else
>       b.ptr()->binding_type = CosNaming::nobject;
> #endif

[David - I hope I've retained the originial semantics here]

After doing this,  I don't seem to have any problems with omniORB 3 on
IRIX.

cheers,
 James