omniEvents compilation error

  • Osama Saad Khan

    Osama Saad Khan - 2003-03-26

    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 lex.yy.o oep_types.o oep_global.o chkfmt.o -lomniORB4 -lomniDynamic4 -lomnithread -lpthread In function `__static_initialization_and_destruction_0': undefined reference to `omni_thread::init_t::init_t(void)' 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?

    • Anonymous - 2003-03-26

      Hi Osama,

      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.

      Yours sincerely,



Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks