[omniORB] Problem compiling omniEvent in RedHat 6.1 using gcc-2.91.66

Paul Nader Paul.Nader@aals27.alcatel.com.au
Fri, 01 Sep 2000 11:55:14 +1000


Hi Janne,

No you don't need to change just yet. You'll need to make several changes
in the
code (my fault for not having posted a patch earlier but the fisrt reports
of  build
problems on RH come in only a couple of weeks ago & I'm very close to
making a
new release for omniORB3.0.1 which includes these changes + others).

Here is what you need to do:

1) In oep_types.c the constructor for OEP_ecps
should read :

//------------------------------------------------------------------------
// Event Channel Persistent Data Representation
//------------------------------------------------------------------------


OEP_ecps::OEP_ecps() :
  key(NULL),
  pullRetryPeriod(PULL_RETRY_PERIOD),
  maxEventsPerConsumer(MAX_EVENTS_PER_CONSUMER)
{
  // Empty
}

The member initialisations for cadm and sadm were left behind by mistake in
the
release version and are no longer relevant or correct (they try to
inilialize a list
with NULL).

2)  Remove #include <omniEvents.h> from include/getopt.h.
     If you wish to compile for WIN32 with this last change you'll also
have
     to change all .cc files in the examples directory and replace:

#ifdef __WIN32__
#include <getopt.h>
#include <iostream>
#else

with

#ifdef __WIN32__
#include <getopt.h>
#include <iostream>
using namespace std;
#else

Can you let me know how you go?

Cheers, Paul.

Janne Haverinen wrote:

> Hi,
>
> I get errors below when compiling omniEvents (for omniORB2.8) in RH 6.1
> using  gcc-2.91.66.
> Is there a way to get around of this or do I have to change my versions
> of compiler and OS?
>
> Regards,
>
> Janne
>
> oep_types.cc: In method `OEP_ecps::OEP_ecps()':
> oep_types.cc:272: warning: using type void* for NULL
> oep_types.cc:272: warning: using type void* for NULL
> oep_types.cc:272: no matching function for call to `list<OEP_caps
> *,__default_alloc_template<true,0> >::list (NULL)'
> /usr/include/g++-2/stl_list.h:212: candidates are: list<OEP_caps
> *,__default_alloc_template<true,0> >::list<OEP_caps *, alloc>()
> /usr/include/g++-2/stl_list.h:283:                 list<OEP_caps
> *,__default_alloc_template<true,0> >::list<OEP_caps *, alloc>(unsigned
> int, OEP_caps *const &)
> /usr/include/g++-2/stl_list.h:284:                 list<OEP_caps
> *,__default_alloc_template<true,0> >::list<OEP_caps *, alloc>(int,
> OEP_caps *const &)
> /usr/include/g++-2/stl_list.h:285:                 list<OEP_caps
> *,__default_alloc_template<true,0> >::list<OEP_caps *, alloc>(long int,
> OEP_caps *const &)
> /usr/include/g++-2/stl_list.h:286:                 list<OEP_caps
> *,__default_alloc_template<true,0> >::list<OEP_caps *, alloc>(unsigned
> int)
> /usr/include/g++-2/stl_list.h:300:                 list<OEP_caps
> *,__default_alloc_template<true,0> >::list<OEP_caps *, alloc>(const
> list<OEP_caps *,__default_alloc_template<true,0> > &)
> oep_types.cc:272: warning: using type void* for NULL
> oep_types.cc:272: warning: using type void* for NULL
> oep_types.cc:272: no matching function for call to `list<OEP_saps
> *,__default_alloc_template<true,0> >::list (NULL)'
> /usr/include/g++-2/stl_list.h:212: candidates are: list<OEP_saps
> *,__default_alloc_template<true,0> >::list<OEP_saps *, alloc>()
> /usr/include/g++-2/stl_list.h:283:                 list<OEP_saps
> *,__default_alloc_template<true,0> >::list<OEP_saps *, alloc>(unsigned
> int, OEP_saps *const &)
> /usr/include/g++-2/stl_list.h:284:                 list<OEP_saps
> *,__default_alloc_template<true,0> >::list<OEP_saps *, alloc>(int,
> OEP_saps *const &)
> /usr/include/g++-2/stl_list.h:285:                 list<OEP_saps
> *,__default_alloc_template<true,0> >::list<OEP_saps *, alloc>(long int,
> OEP_saps *const &)
> /usr/include/g++-2/stl_list.h:286:                 list<OEP_saps
> *,__default_alloc_template<true,0> >::list<OEP_saps *, alloc>(unsigned
> int)
> /usr/include/g++-2/stl_list.h:300:                 list<OEP_saps
> *,__default_alloc_template<true,0> >::list<OEP_saps *, alloc>(const
> list<OEP_saps *,__default_alloc_template<true,0> > &)
> make[1]: *** [oep_types.o] Error 1
> make[1]: Leaving directory
> `/usr/local/omni2_8_0/src/contrib/omniEvents/fe'
> make: *** [export] Error 1