libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libtool 1.5.8 on Solaris 8


From: Carlo Wood
Subject: Re: libtool 1.5.8 on Solaris 8
Date: Fri, 27 Aug 2004 15:25:26 +0200
User-agent: Mutt/1.4.1i

On Thu, Aug 26, 2004 at 04:22:26PM -0400, Carlos Fangmeier wrote:
> 
> 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

Note that this doesn't look 'right', instead of having
a lot of -L..../.libs, you should be linking with the uninstalled
.la file.  This can be done by specifying the .la files in Makefile.am
on the LIBADD line.

> 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 
[..snip..]
> /usr/local/lib/./libstdc++.so /usr/local/lib/libnetsnmp.so -lgen -lcrypto 
[..snip..]
> -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

Does the error message stop there?  It doesn't seem finished.

Note that  /usr/local/lib/./libstdc++.so  and
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/../../libstdc++.so
are the same file.
The explicit mentioning of  /usr/local/lib/./libstdc++.so  (just before
the /usr/local/lib/libnetsnmp.so -lgen -lcrypto  etc) is weird though.

It might be that one of the libraries that you are using
thinks that it needs it (is specifically asking for it). 
The first thing you should do is to find out which library
thinks that it depends on /usr/local/lib/./libstdc++.so (if any).

This dependency is probably one that is specified in an .la file
of one of the libraries that you are linking with. And that is the
real error here then.

The crash might be cause by you linking to the wrong libstdc++.so.
Is this the only "libstdc++.so*" on your system?

-- 
Carlo Wood <address@hidden>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]