GNOME Bugzilla – Bug 133886
libtool error while compiling alsamixer plug-in
Last modified: 2004-12-22 21:47:04 UTC
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../gst-libs -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -pthread -I/usr/include/gstreamer-0.7 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -DGST_DISABLE_DEPRECATED -g -Wall -Werror -DG_DISABLE_DEPRECATED -O0 -ggdb -MT libgstalsa_la-gstalsamixertrack.lo -MD -MP -MF .deps/libgstalsa_la-gstalsamixertrack.Tpo -c gstalsamixertrack.c -fPIC -DPIC -o .libs/libgstalsa_la-gstalsamixertrack.o /bin/sh ../../libtool --mode=link gcc -O0 -ggdb -o libgstalsa.la -rpath /usr/lib/gstreamer-0.7 -module -avoid-version libgstalsa_la-gstalsaplugin.lo libgstalsa_la-gstalsa.lo libgstalsa_la-gstalsaclock.lo libgstalsa_la-gstalsasink.lo libgstalsa_la-gstalsasrc.lo libgstalsa_la-gstalsamixer.lo libgstalsa_la-gstalsamixertrack.lo -lasound -lm -ldl -L../../gst-libs/gst -lgstinterfaces-0.7 libtool: link: `/usr/lib/libgstinterfaces-0.7.la' is not a valid libtool archive make[3]: *** [libgstalsa.la] Erreur 1 make[3]: Leaving directory `/usr/portage/tmp/portage/gst-plugins-0.7.4/work/gst-plugins/ext/alsa' make[2]: *** [all-recursive] Erreur 1 make[2]: Leaving directory `/usr/portage/tmp/portage/gst-plugins-0.7.4/work/gst-plugins/ext' make[1]: *** [all-recursive] Erreur 1 make[1]: Leaving directory `/usr/portage/tmp/portage/gst-plugins-0.7.4/work/gst-plugins' make: *** [all] Erreur 2 (named 0.7.4 but it is CVS HEAD) using libtool 1.5.2
this looks like a more general libtool/autotools error, not necessarily related to alsa ... or does the oss mixer element compile and link properly ? if you're building from the entire gst-plugins source tree, the alsa mixer should be linking against the gstinterfaces library in gst-plugins/gst-libs/gst, not against something in /usr/lib. it looks like the build tree is a bit out of whack here ... i'd try doing make clean and then running autogen.sh again.
can't be because of a dirty tree because i use a gentoo CVS ebuild. it first updates (-dP) the local repository then it copies it to a new directory where it compiles it. perhaps it is gentoo specific, i'll try to investigate that a bit further
i just verified that oss builds ok while alsa doesn't the difference i see is there in the Makefile.am : libgstalsa_la_LIBADD = $(ALSA_LIBS) \ -L${top_builddir}/gst-libs/gst -lgstinterfaces-@GST_MAJORMINOR@ libgstossaudio_la_LIBADD = $(top_builddir)/gst-libs/gst/libgstinterfaces-@GST_MAJORMINOR@.la so, perhaps replacing alsa LIBADD end with : $(top_builddir)/gst-libs/gst/libgstinterfaces-@GST_MAJORMINOR@.la works. even with the -L, it seems to try to use the system installed version.
Created attachment 24324 [details] [review] absolute .la file path unless it would use system installed one
Thanks for noticing. Applied.