[omniORB] Problem compiling omniEvent in RedHat 6.1usinggcc-2.91.66

Paul Nader Paul.Nader@aals27.alcatel.com.au
Sat, 02 Sep 2000 16:11:56 +1000


Janne,

Forgot to mention you need to change the order of libraries in src/dir.mk :

$(omniEvents): $(OMNIEVENTSOBJS) $(lib)
        @(libs="$(CORBA_LIB) $(lib)"; $(CXXExecutable))

to

$(omniEvents): $(OMNIEVENTSOBJS) $(lib)
        @(libs="$(lib) $(CORBA_LIB)"; $(CXXExecutable))

Paul.

Janne Haverinen wrote:

> Hi Paul,
>
> omniEvents compiles now but I still get linker errors below. It seems that
> linker somehow misses the omniORB library?
>
> Best regards,
>
> Janne
>
> + g++ -o omniEvents -fhandle-exceptions -Wall -Wno-unused
> -Wl,-rpath,../../../../lib/i586_linux_2.0 -L../../../../lib/i586_linux_2.0
> omniEvents.o -lomniORB2 -lomniDynamic2 -lomnithread -lpthread -ltcpwrapGK
> libomniEvents.a
> libomniEvents.a(EventChannelFactory_i.o): In function
> `EventChannelFactory_i::create_object(CosNaming::Name const &,
> CosLifeCycle::Criteria const &)':
> EventChannelFactory_i.o(.text+0x5f0): undefined reference to
> `CORBA::Any::operator>>=(unsigned long &) const'
> EventChannelFactory_i.o(.text+0x770): undefined reference to
> `CORBA::Any::operator>>=(unsigned long &) const'
> libomniEvents.a(EventChannelFactory_i.o): In function
> `CosLifeCycle::NVP::operator=(CosLifeCycle::NVP const &)':
> EventChannelFactory_i.o(.gnu.linkonce.t.__as__Q212CosLifeCycle3NVPRCQ212CosLifeCycle3NVP+0x20):
> undefined reference to `CORBA::Any::operator=(CORBA::Any const &)'
> libomniEvents.a(EventChannelFactory_i.o): In function
> `CosLifeCycle::NVP::NVP(void)':
> EventChannelFactory_i.o(.CosLifeCycle::NVP::gnu.linkonce.t.(void)+0x15):
> undefined reference to `CORBA::Any::Any(void)'
> EventChannelFactory_i.o(.CosLifeCycle::NVP::gnu.linkonce.t.(void)+0x3d):
> undefined reference to `CORBA::Any::~Any(void)'
> libomniEvents.a(EventChannelFactory_i.o): In function
> `CosLifeCycle::NVP::~NVP(void)':
> EventChannelFactory_i.o(.gnu.linkonce.t._._Q212CosLifeCycle3NVP+0x12):
> undefined reference to `CORBA::Any::~Any(void)'
> libomniEvents.a(CosLifeCycleSK.o): In function
> `CosLifeCycle::NVP::NP_alignedSize(unsigned int) const':
> CosLifeCycleSK.o(.text+0x29): undefined reference to
> `CORBA::Any::NP_alignedSize(unsigned int) const'
> libomniEvents.a(CosLifeCycleSK.o): In function
> `CosLifeCycle::NVP::operator>>=(NetBufferedStream &) const':
> CosLifeCycleSK.o(.text+0x5d): undefined reference to
> `CORBA::Any::operator>>=(NetBufferedStream &) const'
> libomniEvents.a(CosLifeCycleSK.o): In function
> `CosLifeCycle::NVP::operator<<=(NetBufferedStream &)':
> CosLifeCycleSK.o(.text+0x89): undefined reference to
> `CORBA::Any::operator<<=(NetBufferedStream &)'
> libomniEvents.a(CosLifeCycleSK.o): In function
> `CosLifeCycle::NVP::operator>>=(MemBufferedStream &) const':
> CosLifeCycleSK.o(.text+0xb5): undefined reference to
> `CORBA::Any::operator>>=(MemBufferedStream &) const'
> libomniEvents.a(CosLifeCycleSK.o): In function
> `CosLifeCycle::NVP::operator<<=(MemBufferedStream &)':
> CosLifeCycleSK.o(.text+0xe1): undefined reference to
> `CORBA::Any::operator<<=(MemBufferedStream &)'
> libomniEvents.a(CosEvent_i.o): In function
> `ProxyPushConsumer_i::push(CORBA::Any const &)':
> CosEvent_i.o(.text+0x9a8): undefined reference to
> `CORBA::Any::operator=(CORBA::Any const &)'
> libomniEvents.a(CosEvent_i.o): In function `ProxyPullSupplier_i::pull(void)':
> CosEvent_i.o(.text+0x2f98): undefined reference to `CORBA::Any::Any(CORBA::Any
> const &)'
> libomniEvents.a(CosEvent_i.o): In function `ProxyPullSupplier_i::try_pull(bool
> &)':
> CosEvent_i.o(.text+0x31c4): undefined reference to `CORBA::Any::Any(CORBA::Any
> const &)'
> CosEvent_i.o(.text+0x322b): undefined reference to `CORBA::Any::Any(void)'
> libomniEvents.a(CosEvent_i.o): In function `ProxyPullConsumer_i::getEvent(bool
> &)':
> CosEvent_i.o(.text+0x3f6c): undefined reference to
> `CORBA::Any::operator=(CORBA::Any const &)'
> CosEvent_i.o(.text+0x3f8f): undefined reference to `CORBA::Any::~Any(void)'
> libomniEvents.a(CosEvent_i.o): In function `event_t::operator=(event_t const
> &)':
> CosEvent_i.o(.gnu.linkonce.t.__as__7event_tRC7event_t+0xe): undefined
> reference to `CORBA::Any::operator=(CORBA::Any const &)'
> libomniEvents.a(CosEvent_i.o): In function `event_t::event_t(event_t const
> &)':
> CosEvent_i.o(.event_t::gnu.linkonce.t.(event_t const &)+0xe): undefined
> reference to `CORBA::Any::Any(CORBA::Any const &)'
> CosEvent_i.o(.event_t::gnu.linkonce.t.(event_t const &)+0x34): undefined
> reference to `CORBA::Any::~Any(void)'
> libomniEvents.a(CosEvent_i.o): In function `event_t::event_t(void)':
> CosEvent_i.o(.event_t::gnu.linkonce.t.(void)+0x9): undefined reference to
> `CORBA::Any::Any(void)'
> CosEvent_i.o(.event_t::gnu.linkonce.t.(void)+0x34): undefined reference to
> `CORBA::Any::~Any(void)'
> libomniEvents.a(CosEvent_i.o): In function `event_t::~event_t(void)':
> CosEvent_i.o(.gnu.linkonce.t._._7event_t+0xf): undefined reference to
> `CORBA::Any::~Any(void)'
> libomniEvents.a(CosEventCommSK.o): In function
> `_0RL_pc_bd959cc57b2e138f_00000000::alignedSize(unsigned long)':
> CosEventCommSK.o(.text+0x408): undefined reference to
> `CORBA::Any::NP_alignedSize(unsigned int) const'
> libomniEvents.a(CosEventCommSK.o): In function
> `_0RL_pc_bd959cc57b2e138f_00000000::marshalArguments(GIOP_C &)':
> CosEventCommSK.o(.text+0x433): undefined reference to
> `CORBA::Any::operator>>=(NetBufferedStream &) const'
> libomniEvents.a(CosEventCommSK.o): In function
> `CosEventComm::_sk_PushConsumer::dispatch(GIOP_S &, char const *, bool)':
> CosEventCommSK.o(.text+0x684): undefined reference to `CORBA::Any::Any(void)'
> CosEventCommSK.o(.text+0x697): undefined reference to
> `CORBA::Any::operator<<=(NetBufferedStream &)'
> CosEventCommSK.o(.text+0x704): undefined reference to `CORBA::Any::~Any(void)'
>
> CosEventCommSK.o(.text+0x8a6): undefined reference to `CORBA::Any::~Any(void)'
>
> CosEventCommSK.o(.text+0x8f7): undefined reference to `CORBA::Any::~Any(void)'
>
> libomniEvents.a(CosEventCommSK.o): In function
> `_0RL_pc_bd959cc57b2e138f_10000000::unmarshalReturnedValues(GIOP_C &)':
> CosEventCommSK.o(.text+0x1855): undefined reference to `CORBA::Any::Any(void)'
>
> CosEventCommSK.o(.text+0x1874): undefined reference to
> `CORBA::Any::operator<<=(NetBufferedStream &)'
> libomniEvents.a(CosEventCommSK.o): In function
> `_0RL_pc_bd959cc57b2e138f_20000000::unmarshalReturnedValues(GIOP_C &)':
> CosEventCommSK.o(.text+0x1aa1): undefined reference to `CORBA::Any::Any(void)'
>
> CosEventCommSK.o(.text+0x1ac4): undefined reference to
> `CORBA::Any::operator<<=(NetBufferedStream &)'
> libomniEvents.a(CosEventCommSK.o): In function
> `CosEventComm::_sk_PullSupplier::dispatch(GIOP_S &, char const *, bool)':
> CosEventCommSK.o(.text+0x1dc6): undefined reference to
> `CORBA::Any::NP_alignedSize(unsigned int) const'
> CosEventCommSK.o(.text+0x1dfb): undefined reference to
> `CORBA::Any::operator>>=(NetBufferedStream &) const'
> CosEventCommSK.o(.text+0x1ebe): undefined reference to
> `CORBA::Any::NP_alignedSize(unsigned int) const'
> CosEventCommSK.o(.text+0x1ef6): undefined reference to
> `CORBA::Any::operator>>=(NetBufferedStream &) const'
> libomniEvents.a(CosEventCommSK.o): In function
> `CORBA::Any_var::operator=(CORBA::Any *)':
> CosEventCommSK.o(.gnu.linkonce.t.__as__Q25CORBA7Any_varPQ25CORBA3Any+0x1b):
> undefined reference to `CORBA::Any::~Any(void)'
> libomniEvents.a(CosEventCommSK.o): In function
> `CORBA::Any_var::~Any_var(void)':
> CosEventCommSK.o(.gnu.linkonce.t._._Q25CORBA7Any_var+0x1b): undefined
> reference to `CORBA::Any::~Any(void)'
> collect2: ld returned 1 exit status
> make[1]: *** [omniEvents] Error 1
> make[1]: Leaving directory `/usr/local/omni2_8_0/src/contrib/omniEvents/src'
> make: *** [export] 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