GNOME Bugzilla – Bug 430594
Unable to compile gst-plugins-bad CVS
Last modified: 2007-04-17 11:44:06 UTC
Hi, Compilation failed with CVS revision of gst-plugins-bad, but gstreamer, gst-plugins-good, gst-plugins-base works fine :: make[2]: Entering directory `/ssa_u1/usr_audio/dev/User/lglayal/GStreamer/Revision_Avril2007/gst-plugins-bad/gst' Making all in app make[3]: Entering directory `/ssa_u1/usr_audio/dev/User/lglayal/GStreamer/Revision_Avril2007/gst-plugins-bad/gst/app' if /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/X11R6/include -I../../gst-libs -I../../gst-libs -pthread -I/usr/audio/dev/User/lglayal/GStreamer/Revision_Avril2007/Binaires//include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -Wall -Werror -g -DGST_DISABLE_DEPRECATED -pthread -I/usr/audio/dev/User/lglayal/GStreamer/Revision_Avril2007/Binaires//include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -pthread -I/usr/audio/dev/User/lglayal/GStreamer/Revision_Avril2007/Binaires//include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 ../../gst-libs/ -g -O2 -I/usr/X11R6/include -MT libgstapp_la-gstapp.lo -MD -MP -MF ".deps/libgstapp_la-gstapp.Tpo" -c -o libgstapp_la-gstapp.lo `test -f 'gstapp.c' || echo './'`gstapp.c; \ then mv -f ".deps/libgstapp_la-gstapp.Tpo" ".deps/libgstapp_la-gstapp.Plo"; else rm -f ".deps/libgstapp_la-gstapp.Tpo"; exit 1; fi gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/X11R6/include -I../../gst-libs -I../../gst-libs -pthread -I/usr/audio/dev/User/lglayal/GStreamer/Revision_Avril2007/Binaires//include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -Wall -Werror -g -DGST_DISABLE_DEPRECATED -pthread -I/usr/audio/dev/User/lglayal/GStreamer/Revision_Avril2007/Binaires//include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -pthread -I/usr/audio/dev/User/lglayal/GStreamer/Revision_Avril2007/Binaires//include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 ../../gst-libs/ -g -O2 -I/usr/X11R6/include -MT libgstapp_la-gstapp.lo -MD -MP -MF .deps/libgstapp_la-gstapp.Tpo -c gstapp.c -fPIC -DPIC -o .libs/libgstapp_la-gstapp.o gcc: cannot specify -o with -c or -S and multiple compilations make[3]: *** [libgstapp_la-gstapp.lo] Error 1 make[3]: Leaving directory `/ssa_u1/usr_audio/dev/User/lglayal/GStreamer/Revision_Avril2007/gst-plugins-bad/gst/app' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/ssa_u1/usr_audio/dev/User/lglayal/GStreamer/Revision_Avril2007/gst-plugins-bad/gst' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/ssa_u1/usr_audio/dev/User/lglayal/GStreamer/Revision_Avril2007/gst-plugins-bad' make: *** [all] Error 2 [lglayal@heineken /usr/audio/dev/User/lglayal/GStreamer/Revision_Avril2007/gst-plugins-bad]$gcc --version gcc (GCC) 3.3.3 20040412 (Red Hat Linux 3.3.3-7) Copyright (C) 2003 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Regards.
Missing flag for compilation in Makefile.am, the following modification applied everithing works fine. [lglayal@heineken /ssa_u1/usr_audio/dev/User/lglayal/GStreamer/Revision_Avril2007/gst-plugins-bad/gst/app]$cvs diff Makefile.am Index: Makefile.am =================================================================== RCS file: /cvs/gstreamer/gst-plugins-bad/gst/app/Makefile.am,v retrieving revision 1.2 diff -r1.2 Makefile.am 6c6 < $(top_srcdir)/gst-libs/ --- > -I$(top_srcdir)/gst-libs/ [lglayal@heineken /ssa_u1/usr_audio/dev/User/lglayal/GStreamer/Revision_Avril2007/gst-plugins-bad/gst/app]$ Regards.
Should be fixed now, please re-open if not: 2007-04-17 Tim-Philipp Müller <tim at centricular dot net> * gst/app/Makefile.am: Fix CFLAGS and hopefully #430594. (it should have been -I$(top_srcdir)/gst-libs/ instead of just $(top_srcdir)/gst-libs/, but since it's already contained in GST_CFLAGS we can just as well remove it)
Works fine, thank you.