Re: [ecasound] Something's badly wrong with ecasound!

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [ecasound] Something's badly wrong with ecasound!
From: Junichi Uekawa (dancer_AT_netfort.gr.jp)
Date: Wed Jan 09 2002 - 09:05:12 EET


On Tue, 8 Jan 2002 18:05:16 +0200 (EET)
Kai Vehmanen <k_AT_eca.cx> wrote:
> Libecasoundc is actually a C++ library which just happens to provide a
> public C API. It is compiled with c++, so -lstdc++ is not explicitly
> specified in the makefiles. I guess the easiest fix would be to just
> add -lstdc++ to libecasoundc/Makefile.am. This doesn't cause any problems
> as it's legal to specify one library multiple times, and libstdc++ is
> always already installed.
>

I've tracked down the problem to the fact that libtool is invoking gcc instead of g++.

$ /usr/bin/libtool --mode=link c++ -O2 -D_REENTRANT -DNDEBUG -ffast-math -fstrict-aliasing -funroll-loops -DENABLE_DBC -o libecasoundc.la -rpath /usr/local/lib -export-dynamic -s -version-info 1:0:1 ecasoundc.lo ../libecasound/libecasound.la -ldl -lm -lpthread
rm -fr .libs/libecasoundc.la .libs/libecasoundc.* .libs/libecasoundc.*
gcc -shared ecasoundc.lo -Wl,--rpath -Wl,/home/dancer/DEBIAN/ecasound/cvs/ecasound/sound/ecasound/libecasound/.libs -Wl,--rpath -Wl,/usr/local/lib -L/home/dancer/DEBIAN/ecasound/cvs/ecasound/sound/ecasound/kvutils/.libs ../libecasound/.libs/libecasound.so -ldl -lm -lpthread -Wl,-soname -Wl,libecasoundc.so.0 -o .libs/libecasoundc.so.0.1.0
(cd .libs && rm -f libecasoundc.so.0 && ln -s libecasoundc.so.0.1.0 libecasoundc.so.0)
(cd .libs && rm -f libecasoundc.so && ln -s libecasoundc.so.0.1.0 libecasoundc.so)
ar cru .libs/libecasoundc.a ecasoundc.o
ranlib .libs/libecasoundc.a
creating libecasoundc.la
(cd .libs && rm -f libecasoundc.la && ln -s ../libecasoundc.la libecasoundc.la)

Linking with gcc will not contain stdc++

$ gcc -v -shared ecasoundc.lo -Wl,--rpath -Wl,/home/dancer/DEBIAN/ecasound/cvs/ecasound/sound/ecasound/libecasound/.libs -Wl,--rpath -Wl,/usr/local/lib -L/home/dancer/DEBIAN/ecasound/cvs/ecasound/sound/ecasound/kvutils/.libs ../libecasound/.libs/libecasound.so -ldl -lm -lpthread -Wl,-soname -Wl,libecasoundc.so.0 -o .libs/libecasoundc.so.0.1.0
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
gcc version 2.95.4 20011006 (Debian prerelease)
 /usr/lib/gcc-lib/i386-linux/2.95.4/collect2 -m elf_i386 -shared -o .libs/libecasoundc.so.0.1.0 /usr/lib/crti.o /usr/lib/gcc-lib/i386-linux/2.95.4/crtbeginS.o -L/home/dancer/DEBIAN/ecasound/cvs/ecasound/sound/ecasound/kvutils/.libs -L/usr/lib/gcc-lib/i386-linux/2.95.4 ecasoundc.lo --rpath /home/dancer/DEBIAN/ecasound/cvs/ecasound/sound/ecasound/libecasound/.libs --rpath /usr/local/lib ../libecasound/.libs/libecasound.so -ldl -lm -lpthread -soname libecasoundc.so.0 -lgcc -lc -lgcc /usr/lib/gcc-lib/i386-linux/2.95.4/crtendS.o /usr/lib/crtn.o

Linking with g++ will contain stdc++

$ g++ -v -shared ecasoundc.lo -Wl,--rpath -Wl,/home/dancer/DEBIAN/ecasound/cvs/ecasound/sound/ecasound/libecasound/.libs -Wl,--rpath -Wl,/usr/local/lib -L/home/dancer/DEBIAN/ecasound/cvs/ecasound/sound/ecasound/kvutils/.libs ../libecasound/.libs/libecasound.so -ldl -lm -lpthread -Wl,-soname -Wl,libecasoundc.so.0 -o .libs/libecasoundc.so.0.1.0
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
gcc version 2.95.4 20011006 (Debian prerelease)
 /usr/lib/gcc-lib/i386-linux/2.95.4/collect2 -m elf_i386 -shared -o .libs/libecasoundc.so.0.1.0 /usr/lib/crti.o /usr/lib/gcc-lib/i386-linux/2.95.4/crtbeginS.o -L/home/dancer/DEBIAN/ecasound/cvs/ecasound/sound/ecasound/kvutils/.libs -L/usr/lib/gcc-lib/i386-linux/2.95.4 ecasoundc.lo --rpath /home/dancer/DEBIAN/ecasound/cvs/ecasound/sound/ecasound/libecasound/.libs --rpath /usr/local/lib ../libecasound/.libs/libecasound.so -ldl -lpthread -soname libecasoundc.so.0 -lstdc++ -lm -lgcc -lc -lgcc /usr/lib/gcc-lib/i386-linux/2.95.4/crtendS.o /usr/lib/crtn.o

and it sounds like a bug in libtool.

-- 
dancer_AT_debian.org  http://www.netfort.gr.jp/~dancer

-- To unsubscribe send message 'unsubscribe' in the body of the message to <ecasound-list-request_AT_wakkanet.fi>.


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Wed Jan 09 2002 - 08:56:07 EET