User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; fr-FR; rv:1.8.1) Gecko/20061228 Firefox/2.0 Build Identifier: When the --enable-debug flag is passed to configure then compilation fails since compilers options generated by configure are gcc options not sun CC Reproducible: Always Steps to Reproduce: 1. ./configure --enable-debug Actual Results: gmake[3]: entrant dans le répertoire « /export/home/william/community/blastwave/svn/csw/trunk/xfce/mcs-manager/work/william-unknown.d/xfce-mcs-manager-4.4.0/xfce-setting-show » source='xfce-setting-show.c' object='xfce_setting_show-xfce-setting-show.o' libtool=no \ DEPDIR=.deps depmode=none /bin/bash ../depcomp \ cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -DG_LOG_DOMAIN=\"xfce-settings-show\" -I/export/home/william/community/blastwave/build.5.10-sparc/opt/csw/include -I/opt/csw/include -I/export/home/william/community/blastwave/build.5.10-sparc/opt/csw/include/xfce4 -I/usr/openwin/include -I/opt/csw/include/xfce4 -I/opt/csw/include/glib-2.0 -I/opt/csw/lib/glib-2.0/include -I/usr/openwin/include -I/opt/csw/include/xfce4 -I/opt/csw/include/gtk-2.0 -I/opt/csw/lib/gtk-2.0/include -I/opt/csw/include/pango-1.0 -I/opt/csw/include/glib-2.0 -I/opt/csw/lib/glib-2.0/include -I/opt/csw/include/cairo -I/opt/csw/include/atk-1.0 -fno-strict-aliasing -Werror -Wall -xO3 -xarch=v8 -xspace -xildoff -I/export/home/william/community/blastwave/build.5.10-sparc/opt/csw/include -I/opt/csw/include -xlibmil -errtags=yes -erroff=E_EMPTY_DECLARATION -c -o xfce_setting_show-xfce-setting-show.o `test -f 'xfce-setting-show.c' || echo './'`xfce-setting-show.c cc: Warning: illegal option -fno-strict-aliasing cc: illegal option -Werror To compile with SunStudio 11, compiler option -Werror should be replaced by -errwarn=%all and option -fno-strict-aliasing should be omited
Created attachment 1003 This patch solve the problem with sunstudio cc The patch add test for support of -Wall -Werror -errwarn=%all Before -Wall -Werror were always added without testing support. The -errwarn option is the equivalent to -Werror for sun's compiler
Patch applied in revision 25305. Thanks.