Hi everyone, for a few weeks I'm working with autoconf and libtool to build some libraries and application. I'm having some problem final linking of the executable, the out is following:


/bin/sh ../libtool --mode=link --tag=CXX g++ -g -O2 -o audio_ivr -L/home/carlos/IVR_Base/src/snmp/.libs -L/home/carlos/IVR_Base/src/socket/.libs -L/home/carlos/IVR_Base/src/tiempo/.libs -L/home/carlos/IVR_Base/src/conf/.libs -L/home/carlos/IVR_Base/src/debug/.libs -L/home/carlos/IVR_Base/src/vxml/.libs -L/usr/local/ssl/lib -L/opt/nms/lib AudioChannel.o AudioConf.o audio_adm.o audio_appl.o audio_ctrl.o audio_error.o audio_main.o audio_teln.o -lsnmp -lsckmsg -ltiempo -lconf -ldebug -lvxml -lnetsnmp -lgen -lcrypto -lkstat -lelf -lm -lnsl -lsocket -ladm -lpthread -lwwwinit -lwwwhtml -lwwwhttp -lwwwcache -lwwwstream -lwwwapp -lwwwcore -lwwwutils -lwwwmime -lpics -lwwwnews -lwwwdir -lwwwgopher -lwwwfile -lwwwftp -lwwwxml -lwwwtrans -lmd5 -lwwwtelnet -lxmlparse -lxmltok -lcta -ladiapi -lnccapi -lvceapi -lswiapi -ladidtm -ldl -lsocket

g++ -g -O2 -o .libs/audio_ivr AudioChannel.o AudioConf.o audio_adm.o audio_appl.o audio_ctrl.o audio_error.o audio_main.o audio_teln.o -L/home/carlos/IVR_Base/src/snmp/.libs -L/home/carlos/IVR_Base/src/socket/.libs -L/home/carlos/IVR_Base/src/tiempo/.libs -L/home/carlos/IVR_Base/src/conf/.libs -L/home/carlos/IVR_Base/src/debug/.libs -L/home/carlos/IVR_Base/src/vxml/.libs -L/usr/local/ssl/lib -L/opt/nms/lib /home/carlos/IVR_Base/src/snmp/.libs/libsnmp.so /home/carlos/IVR_Base/src/socket/.libs/libsckmsg.so /home/carlos/IVR_Base/src/tiempo/.libs/libtiempo.so /home/carlos/IVR_Base/src/conf/.libs/libconf.so -L/usr2/SOURCES/S8/gcc-3.3/objdir/sparc-sun-solaris2.8/libstdc++-v3/src -L/usr2/SOURCES/S8/gcc-3.3/objdir/sparc-sun-solaris2.8/libstdc++-v3/src/.libs -L/usr2/SOURCES/S8/gcc-3.3/objdir/gcc -L/usr/local/sparc-sun-solaris2.8/bin -L/usr/local/sparc-sun-solaris2.8/lib -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/../../../sparc-sun-solaris2.8/lib -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/../.. /home/carlos/IVR_Base/src/debug/.libs/libdebug.so /home/carlos/IVR_Base/src/vxml/.libs/libvxml.so /usr/local/lib/./libstdc++.so /usr/local/lib/libnetsnmp.so -lgen -lcrypto -lkstat -lelf -lm -ladm -lpthread /usr/local/lib/libwwwinit.so /usr/local/lib/libwwwhtml.so /usr/local/lib/libwwwhttp.so /usr/local/lib/libwwwcache.so /usr/local/lib/libwwwstream.so /usr/local/lib/libwwwapp.so /usr/local/lib/libwwwcore.so /usr/local/lib/libwwwutils.so /usr/local/lib/libwwwmime.so /usr/local/lib/libpics.so /usr/local/lib/libwwwnews.so /usr/local/lib/libwwwdir.so /usr/local/lib/libwwwgopher.so /usr/local/lib/libwwwfile.so /usr/local/lib/libwwwftp.so /usr/local/lib/libwwwxml.so /usr/local/lib/libwwwtrans.so /usr/local/lib/libmd5.so /usr/local/lib/libwwwtelnet.so /usr/local/lib/libxmlparse.so /usr/local/lib/libxmltok.so -lnsl -lcta -ladiapi -lnccapi -lvceapi -lswiapi -ladidtm -ldl -lsocket -Wl,-R -Wl,/home/carlos/IVR_Base/lib -Wl,-R -Wl,/usr/local/lib -Wl,-R -Wl,/usr/local/lib/.
ld: warning: file /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/../../libstdc++.so: linked to /usr/local/lib/./libstdc++.so: attempted multiple inclusion of file


There is in the fist line the comman libtool and after that the final g++. But for some reason, the libtool script add more library path than are needed, with concecuence the multiple inclusion of file libstdc++.so. I know it is only a warning, but for some reason when I run the binary it crash with the following gdb output :

Program received signal SIGSEGV, Segmentation fault.

__dynamic_cast (src_ptr=0x0, src_type=0xfebd12d8, dst_type=0x1, src2dst=-41608536)
at ../../../../libstdc++-v3/libsupc++/tinfo.cc:710
710 ../../../../libstdc++-v3/libsupc++/tinfo.cc: No such file or directory.
in ../../../../libstdc++-v3/libsupc++/tinfo.cc
(gdb) bt
#0 __dynamic_cast (src_ptr=0x0, src_type=0xfebd12d8, dst_type=0x1, src2dst=-41608536)
at ../../../../libstdc++-v3/libsupc++/tinfo.cc:710
#1 0xfebd03a4 in __is_pointer (p=0xfd851aa8) at ../../gcc/cp/tinfo2.cc:244
#2 0xfebce070 in __cp_pop_exception (p=0xfd851aa8) at ../../gcc/cp/exception.cc:252



When I compile the binary without libtool ( first command without /bin/sh ../libtool --mode=link --tag=CXX ), the application run as espected.


I hope somebody could give me some guideline to solve my problem. Best regards

Carlos Fangmeier


P.S: Usin autoconf 2.59, automake 1.9 and g++ 3.3

_____________________________
La informacion contenida en esta transmision es confidencial, y no puede ser usada por 
otras personas que su(s) destinatario(s). El uso no autorizado de la informacion 
contenida en esta transmision puede ser sancionado criminalmente. Si ha recibido esta 
transmision por error, por favor destruyala y notifique al remitente telefonicamente, 
con cobro revertido o via e-mail.

The information contained in this transmission is privileged, and may not be used by 
any person other than its addressee(s). Unauthorized use of the information contained 
in this transmission may be punished  by law.  If received in error, please destroy 
and notify the sender by calling collect or by e-mail.
_____________________________


_______________________________________________ Libtool mailing list [EMAIL PROTECTED] http://lists.gnu.org/mailman/listinfo/libtool

Reply via email to