I am using omniEvents 2.1.2 with omniORB 4 on RH 8.0. I have compiled omniORB with gcc 3.2 and its working fine. But i compiled omniEvents with gcc2.96 as required and it gives me the following error:
+ /usr/bin/g++296 -o chkfmt -O2 -Wall -Wno-unused -Wl,-rpath,../../../../lib/i586_linux_2.0_glibc2.1 -L../../../../lib/i586_linux_2.0_glibc2.1 ../util/args.o y.tab.o lex.yy.o oep_types.o oep_global.o chkfmt.o -lomniORB4 -lomniDynamic4 -lomnithread -lpthread
y.tab.o: In function `__static_initialization_and_destruction_0':
y.tab.o(.text+0xec1): undefined reference to `omni_thread::init_t::init_t(void)'
y.tab.o(.text+0xecd): undefined reference to `_omniFinalCleanup::_omniFinalCleanup(void)'
as well as other related errors. Now, the error suggests that the threads are causing a problem, but i tested the compiler with another pthread program and it worked fine. What could be the problem?
OmniEvents is build on omniORB, but you have used
two incompatible compilers for omniEvents and omniORB.
What is happening, is that the different name mangling
schemes of gcc 2.96 and gcc 3.2 are saving you from
linking incompatible object files together.
You will have to use the same compiler for both.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.