[omniORB] Re: problem compiling the omniEvents 2.1

Paul Nader Paul.Nader@aals27.alcatel.com.au
Fri, 13 Oct 2000 17:48:04 +1000


Hi Janne,

Apply this diff:

bash$ rcsdiff -r1.8 oep_types.h
===================================================================
RCS file: RCS/oep_types.h,v
retrieving revision 1.8
diff -r1.8 oep_types.h
79c79
< #ifdef HAS_DEFAULT_STL_ARGS
---
> #ifdef STL_HAS_DEFAULT_ARGS

(ie include/oep_types.h line 79 should read STL_HAS_DEFAULT_ARGS not
 HAS_DEFAULT_STL_ARGS)

Thanks, Paul.

Janne Haverinen wrote:

> Hi Paul, and thanks for the omniEvents 2.1!
>
> I have some problems compiling the omniEvents for Linux. Linux
> distribution I'm using
> is RH6.2 with egcs-2.91.66.
>
> The following errors remain during compilation, no matter what
> combination of STL defines I use.
>
> Regards,
> Janne
>
> make[1]: Entering directory `/usr/local/omni/src/contrib/omniEvents/fe'
> ../../../../bin/i586_linux_2.0_glibc2.1/omkdepend -D__cplusplus
> -D__GNUG__ -D__GNUC__ -DSTL_NO_ALLOCATOR_ARGS -I../include
> -D__OMNIORB3__ -I../../../../stub -D_REENTRANT -D__STL_NO_NAMESPACES -I.
> -I../../../../include -D__x86__ -D__linux__ -D__OSVERSION__=2 chkfmt.cc
> oep_global.cc oep_types.cc lex.yy.cc y.tab.cc
> /usr/bin/g++ -c -O2  -Wall -Wno-unused -DSTL_NO_ALLOCATOR_ARGS
> -I../include -D__OMNIORB3__ -I../../../../stub -D_REENTRANT
> -D__STL_NO_NAMESPACES -I.  -I../../../../include -D__x86__ -D__linux__
> -D__OSVERSION__=2 -o y.tab.o y.tab.cc
> In file included from ../include/omniEvents.h:66,
>                  from oep.yy:56:
> ../include/oep_types.h:90: `allocator' was not declared in this scope
> ../include/oep_types.h:90: template argument 2 is invalid
> ../include/oep_types.h:90: warning: ANSI C++ forbids typedef which does
> not specify a type
> ../include/oep_types.h:91: `allocator' was not declared in this scope
> ../include/oep_types.h:91: template argument 2 is invalid
> ../include/oep_types.h:91: warning: ANSI C++ forbids typedef which does
> not specify a type
> ../include/oep_types.h:92: `allocator' was not declared in this scope
> ../include/oep_types.h:92: template argument 2 is invalid
> ../include/oep_types.h:92: warning: ANSI C++ forbids typedef which does
> not specify a type
> ../include/oep_types.h:93: `allocator' was not declared in this scope
> ../include/oep_types.h:93: template argument 2 is invalid
> ../include/oep_types.h:93: warning: ANSI C++ forbids typedef which does
> not specify a type
> make[1]: *** [y.tab.o] Error 1
> make[1]: Leaving directory `/usr/local/omni/src/contrib/omniEvents/fe'
> make: *** [all] Error 1

--
 Paul Nader                          mailto:Paul.Nader@alcatel.com.au
 Principal Engineer                  PH: (61.2) 9690 5421
 Network Applications Division       FX: (61.2) 9690 5225
 Alcatel Telecom, Australia          280 Botany Rd, Alexandria, Sydney