[omniORB] omniORB and gcc 3.0

Markus Redeker markus@gromit.ibp.de
Tue, 19 Jun 2001 14:42:17 +0200


--DocE+STaALJfprDB
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Dear all,

while I tried the newest gcc version (3.0), I found a bug in CORBA_sysdep.h:
The test for the gcc version only checks the minor number. So when one
switches from 2.95.x to 3.0, omniORB thinks that one uses an incredibly old
version - and disables namespace support.

I have included the CVS diff output.


Markus



--DocE+STaALJfprDB
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=sysdep_patch

Index: CORBA_sysdep.h
===================================================================
RCS file: /cvsroot/omni/include/omniORB3/CORBA_sysdep.h,v
retrieving revision 1.1.2.20
diff -c -r1.1.2.20 CORBA_sysdep.h
*** CORBA_sysdep.h	2000/12/04 13:46:43	1.1.2.20
--- CORBA_sysdep.h	2001/06/19 12:29:50
***************
*** 234,240 ****
  // Minor version number 91 is for egcs version 1.*  Some older
  // versions of 1.* may not support namespaces properly - this is
  // only tested for egcs 1.1.1
! #  if __GNUC_MINOR__ >= 91 || __GNUC_MINOR__ == 9
  #     define HAS_Cplusplus_Namespace
  #     define HAS_Cplusplus_Bool
  #  endif
--- 234,240 ----
  // Minor version number 91 is for egcs version 1.*  Some older
  // versions of 1.* may not support namespaces properly - this is
  // only tested for egcs 1.1.1
! #  if __GNUC_MINOR__ >= 91 || __GNUC_MINOR__ == 9 || __GNUC__ >= 3
  #     define HAS_Cplusplus_Namespace
  #     define HAS_Cplusplus_Bool
  #  endif

--DocE+STaALJfprDB--