Re: [orbitcpp-list] Building ORBit-C++ against ORBit-mt
Status: Beta
Brought to you by:
philipd
From: <MHL...@t-...> - 2001-03-05 13:40:17
|
On Son, 04 Mär 2001 23:19:51 Sam Couter wrote: > Martin Schulze <MHL...@t-...> wrote: > > > > Ah those attachments, they always seem to get lost :-) > > Could you please try to send the patches again ? > > Heh... Maybe I forgot to attach them. Wouldn't be the first time I've > done > that. ;) No problem ... Anyway, I was not all successful :-( First I found out that you didn't correct one mistake in configure, line 2524 where it should be: if $ORBIT_IDL --help | grep -q backenddir; then instead of if orbit-idl --help | grep -q backenddir; then Could you please rebuild mt.diff to include that? (I didn't save my original files...) Still I got loads of errors running configure. Finally I saw the problem: Orbit-mt doesn't include a name-service. So the variables ORBIT_NAME_LIBS and ORBIT_NAME_CFLAGS aren't set correctly and configure fails. I patched my local Orbit-mt to compile and install the name-service from Orbit-0.5.7 under a new name and now at least orbitcpp compiles and installs properly. However the tests fail: The output from compiling test 'basic' is as follows: Making all in generated make[1]: Entering directory `/home/martin/buildlibs/orbitcpp-0.30/test/basic/generated' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/martin/buildlibs/orbitcpp-0.30/test/basic/generated' make[1]: Entering directory `/home/martin/buildlibs/orbitcpp-0.30/test/basic' /bin/sh ../../libtool --mode=link c++ -g -Wall -o client client.o ./../orb/liborbitcpp.la -L/opt/orbit/lib -L/usr/lib -lORBit-mt -lIIOP-mt -lORBitutil-mt -lgthread -lglib -lpthread -lpopt -lm -lm generated/libbasic.a c++ -g -Wall -o .libs/client client.o ../../orb/.libs/liborbitcpp.so -L/opt/orbit/lib -L/usr/lib -lORBit-mt -lIIOP-mt -lORBitutil-mt -lgthread -lglib -lpthread -lpopt -lm -lstdc++ -L/opt/orbit/lib -L/usr/lib -lORBit-mt -lIIOP-mt -lORBitutil-mt -lgthread -lglib -lpthread -lpopt -lm -lm generated/libbasic.a -Wl,--rpath -Wl,/opt/orbit/lib generated/libbasic.a(basic-cpp.o): In function `Test::Scoping::Failure::_orbitcpp_pack(void)': /home/martin/buildlibs/orbitcpp-0.30/test/basic/generated/../../../orb/orbitcpp_exception.hh(.bss+0x0): multiple definition of `ORBit_default_principal' client.o:/home/martin/buildlibs/orbitcpp-0.30/test/basic/../../orb/orbitcpp_sequence.hh:144: first defined here collect2: ld returned 1 exit status make[1]: *** [client] Error 1 make[1]: Leaving directory `/home/martin/buildlibs/orbitcpp-0.30/test/basic' make: *** [all-recursive] Error 1 The ouput from compiling test 'everything' is similar. So obviously there is a problem with ORBit_default_principal. I hope you have an idea what that is about. Cu, Martin |