RE: [orbitcpp-list] problems compiling idl with ORBit-cpp, again
Status: Beta
Brought to you by:
philipd
From: Richard A. <ric...@ix...> - 2001-07-04 23:01:02
|
It is my understanding that when you call orbit-idl --lang=c++ file.idl ORBit will look in its backenddir location for a shared library called liborbit-idl-c++-backend.so. It will dynamically open this library and execute the interface methods provided by it. It appears that for some reason the dynamic open of this library is failing on your system. Dynamic open is performed by use of the dlopen() and dlsym() functions from libdl. dlopen() can only work if the library is built in position independent code (PIC) format. From your message > ** WARNING **: Module load failed: ld.so.1: orbit-idl: fatal: relocation To me this indicates that the liborbit-c++-backend.so library was NOT built in a position-independent (relocatable) code format or it is somehow corrupted. I cannot guess more. My only suggestion is ensure that your operating system and compiler can build shared libraries which can be opened with dlopen(). You can test this by trying the code sample shared_lib2 found at http://www.linuxprogramming.com/SourceLib/Basics/ You may need to modify the make flags for your compiler as the example is for a linux system. What is your operating system, compiler, libc version, libdl version? This information may help someone who knows more. -- Rich On Wed, 04 Jul 2001 18:51:32 Marga wrote: > This message was sent from Geocrawler.com by "Marga" > <ma...@gb...> > > > I have check that I have not two versions of > libstdc++. > > I have recompiled all the necessary for ORBit-cpp > to work and nothing, ?? > > Marga > --------------------------------------- > > I think you have two different versions of > libstdc++ now. > > The C13 stuff is just the mangled C++ function > entry point names. > > Does the compiler work on other programs with > shared libraries? > > > > > On Wed, 20 Jun 2001 19:02:16 Margarita de Cabo > wrote: > > Hi again, > > > > I have done my libsdtc++ a sahred library, I > have recompiled ORBit-cpp > > with no problems, I hava installed a new version > of gcc (2.95.3), and I > > am still > > having problems with no found symbols in > liborbit-idl-c++-backend.so. > > In my first atempts the no found reference was > C13__ ..., or something > > like that, now the error is: > > > > orbit-idl -lc++ > > > --backenddir=/usr/local/packages/ORBit-cpp/sparc-sun-solaris/lib/orbit-idl > > prueba.idl > > > > ** WARNING **: Module load failed: ld.so.1: > orbit-idl: fatal: relocation > > error: file > > > /usr/local/packages/ORBit-cpp/sparc-sun-solaris/lib/orbit-idl/liborbit-idl-c++-backend.so: > > symbol __pure_virtual: referenced symbol not > found > > > > ** CRITICAL **: file orbit-idl-driver.c: line 50 > (orbit_idl_to_backend): > > assertion `binfo && binfo->op_output' failed. > > > > ** WARNING **: prueba.idl compilation failed > > > > I need help, I am desperate. > > > > Thanks for your time. > > > > Marga > > > > > > begin:vcard > > n:de Cabo;Margarita > > tel;fax:34-983-423667 > > tel;work:34-983-423660 ext:25536 > > x-mozilla-html:TRUE > > org:Universidad de Valladolid;TSCIT > > version:2.1 > > email;internet:ma...@te... > > adr;quoted-printable:;;Edificio de las Nuevas > > Tecnolog=EDas =0D=0ACamino del Cementerio > > s/n ;Valladolid;Valladolid;47011;Espana > > x-mozilla-cpt:;0 > > fn:Margarita de Cabo > > end:vcard > > > > > > _______________________________________________ > orbitcpp-list mailing list > orb...@li... > http://lists.sourceforge.net/lists/listinfo/orbitcpp-list > > > > Geocrawler.com - The Knowledge Archive > |