GNOME Bugzilla – Bug 121165
Compilation errors due to invalid -Wall option
Last modified: 2004-12-22 21:47:04 UTC
The Sun ONE Studio 8 compiler does not support the '-Wall' option and results in a compilation error. Makefile and compiler output: cc -DHAVE_CONFIG_H -I. -I. -I../../.. -I/opt/gnome-2.4/include -I../../../gst-libs -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -mt -I/opt/gnome-2.4/include/gstreamer-0.6 -I/opt/gnome-2.4/include/glib-2.0 -I/opt/gnome-2.4/lib/glib-2.0/include -I/opt/gnome-2.4/include/libxml2 -DGST_DISABLE_DEPRECATED -g -Wall -finline-functions -ffast-math -g -I/opt/gnome-2.4/include -c audio.c -KPIC -DPIC -o libgstaudio_la-audio.o cc: illegal option -Wall make[4]: *** [libgstaudio_la-audio.lo] Error 1 make[4]: Leaving directory `/gnome/2.4/nightly/src-2.4-20030901/gst-plugins-0.6.3/gst-libs/gst/audio' This option is used in other makefiles in the gst-libs/gst directory tree. Patching 'configure' fixes this (remove -Wall from GST_ERROR on line 1758 and 1764).
Please attach your config.log.
We need to use AS_COMPILER_FLAG() here, like we do in HEAD: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/configure.ac.diff?r1=1.205.2.2.2.18&r2=1.205.2.2.2.19
Created attachment 19691 [details] config.log in tar.gz file
Ah, yes, of course. I thought it already used AS_COMPILER_FLAG().
Created attachment 19706 [details] [review] patch to add AS_COMPILER_FLAG()
Committed to 0.6 CVS.