[omniORB] Can't compile OmniEvents 2.1.1 with OmniORB 4.0.0 and g++ 3.2

Axelle Apvrille (LMC) Axelle.Apvrille@ericsson.ca
Fri Jan 10 21:11:01 2003


Hi,
I'm trying to use omniEvents 2.1.1 with OmniORB 4.0 (or is there another contribution more up to date somewhere ? is omniEvents still supported ?) on Linux, but it won't compile.

First, I have to change all the references from ...ORB3 to ORB4.
Then, I had to make a symbolic link from ./bin/i586_linux_2.0_glibc2.1 to ./build/bin because it's the best platform I have found that is supported by omniEvents (actually, I've got a Redhat 8.0 with a 2.4.18 kernel).

After modifying the top/config/config.mk and the right platform make as omniEvent recommends, I tried a 'make export' in top/src/contrib/omniEvents. I still had plenty of errors in the 'fe' directory because of STL stuff.
-> I changed a remaining HAS_STL_DEFAULT_ARGS to STL_HAS_DEFAULT_ARGS
and the include <list> and <set> to <list.h> and <set.h>
It compiled further one, but I still can't get it to compile all the way through:

/usr/bin/g++ -c -O2  -Wall -Wno-unused -DSTL_HAS_DEFAULT_ARGS -I../include -D__OMNIORB4__ -I../../../../stub -D_REENTRANT -D__STL_NO_NAMESPACES -DDEFAULT_LOGDIR='"/var/omniEvents"' -I. -I. -I../../../../include -D__x86__ -D__linux__ -D__OSVERSION__=2 -o omniEventsLog.o omniEventsLog.cc
In file included from /usr/include/c++/3.2/backward/iostream.h:31,
                 from ../include/omniEvents.h:50,
                 from ../include/omniEventsLog.h:50,
                 from omniEventsLog.cc:61:
/usr/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
omniEventsLog.cc: In member function `void omniEventsLog::init(CORBA::ORB*, 
   CORBA::BOA*, EventChannelFactory_i*&)':
omniEventsLog.cc:392: no matching function for call to `
   std::basic_ofstream<char, std::char_traits<char> >::attach(int&)'
omniEventsLog.cc:435: no matching function for call to `
   std::basic_ofstream<char, std::char_traits<char> >::attach(int&)'
omniEventsLog.cc: In member function `void omniEventsLog::checkpoint()':
omniEventsLog.cc:567: no matching function for call to `
   std::basic_ofstream<char, std::char_traits<char> >::attach(int&)'
omniEventsLog.cc:680: no matching function for call to `
   std::basic_ofstream<char, std::char_traits<char> >::attach(int&)'
make[1]: *** [omniEventsLog.o] Error 1

Can anyone help ? thanks ?
Axelle Apvrille.