[omniORB] Cannot get omniorb 3.0.2 to compile on Solaris 2.6

Alwyn Schoeman AlwynS@prism.co.za
Fri, 13 Oct 2000 14:50:18 +0200


 Thank you that helped.  I however now get the following...

make[2]: Entering directory `/usr/local/stuff/omni/src/lib/omniORB2'
../../../bin/sun4_sosV_5.6/omniidl -bcxx -Wba -p../../../src/lib/omniORB2
-ComniORB3 ../../../idl/Naming.idl


omniidl: ERROR!

omniidl: Could not open IDL compiler module _omniidlmodule.so
omniidl: Please make sure it is in directory
/usr/local/stuff/omni/lib/sun4_sosV_5.6
omniidl: (or set the PYTHONPATH environment variable)

omniidl: (The error was `ld.so.1: python: fatal: relocation error: file
/usr/local/stuff/omni/lib/sun4_sosV_5.6/_omniidlmodule.so: symbol
_pure_error_: referenced symbol not found')


make[2]: *** [omniORB3/Naming.hh] Error 1
make[2]: Leaving directory `/usr/local/stuff/omni/src/lib/omniORB2'
make[1]: *** [export] Error 2
make[1]: Leaving directory `/usr/local/stuff/omni/src/lib'
make: *** [export] Error 2



-----Original Message-----
From: Duncan Grisby
To: Alwyn Schoeman
Cc: 'omniorb-list@uk.research.att.com'
Sent: 10/13/2000 1:34 PM
Subject: Re: [omniORB] Cannot get omniorb 3.0.2 to compile on Solaris 2.6 

On Friday 13 October, Alwyn Schoeman wrote:

> Using Solaris 2.6.
> Sun Workshop C++ 5.0   thus CXX_RUNTIME=-lCrun....
> Python 2.0beta2
> 
> It seems to be that std::cout symbol is a problem.... don't know
solution
> though...  libCrun doesn't have std::cout......

How peculiar. omniidl doesn't use cout at all, so I don't know why it
thinks it needs it. It might be because iostream.h is accidentally
#included. Try this small patch to remove the include, and see if that
helps.

Cheers,

Duncan.


Index: src/tool/omniidl/cxx/CORBA_sysdep.h
===================================================================
RCS file:
/project/omni/cvsroot/omni/src/tool/omniidl/cxx/CORBA_sysdep.h,v
retrieving revision 1.3.2.2
diff -u -r1.3.2.2 CORBA_sysdep.h
--- src/tool/omniidl/cxx/CORBA_sysdep.h	2000/08/17 09:00:53	1.3.2.2
+++ src/tool/omniidl/cxx/CORBA_sysdep.h	2000/10/13 11:30:45
@@ -728,12 +728,6 @@
 #define OMNI_CONSTRTYPE_FIX_VAR(T) typedef T::_var_type T##_var;
 #endif
 
-#ifndef USE_omniORB_logStream
-// New stubs use omniORB::logStream. Old stubs still need cerr. Include
-// the necessary iostream header if that is the case.
-#include <iostream.h>
-#endif
-
 // #define ENABLE_CLIENT_IR_SUPPORT
 // Define ENABLE_CLIENT_IR_SUPPORT to use as client to an Interface
Repository


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