! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
libxfcegui4 does not compile under solaris in debug mode with sunstudio
Status:
RESOLVED: FIXED
Product:
Libxfcegui4
Component:
General

Comments

Description William Bonnet 2007-02-16 23:36:37 CET
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:
./configure --enable-debug

then build

Actual Results:  
 cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -DDATADIR=\"/opt/csw/share\" -DG_LOG_DOMAIN=\"libxfcegui4\" -DPACKAGE_LOCALE_DIR=\"/opt/csw/share/locale\" -DPREFIX=\"/opt/csw\" -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/opt/csw/include/gtk-2.0 -I/opt/csw/lib/gtk-2.0/include -I/opt/csw/include/atk-1.0 -I/opt/csw/include/cairo -I/opt/csw/include/pango-1.0 -I/opt/csw/include/glib-2.0 -I/opt/csw/lib/glib-2.0/include -I/usr/openwin/include -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/opt/csw/include/startup-notification-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 netk-enum-types.c  -KPIC -DPIC -o .libs/libxfcegui4_la-netk-enum-types.o
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
Comment 1 William Bonnet 2007-02-17 19:35:53 CET
Created attachment 1002 
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
Comment 2 Nick Schermer editbugs 2007-03-27 14:47:48 CEST
Fixed in rev. 25307. Thanks for the patch.

Bug #2915

Reported by:
William Bonnet
Reported on: 2007-02-16
Last modified on: 2009-07-14

People

Assignee:
Xfce Bug Triage
CC List:
0 users

Version

Version:
unspecified

Attachments

Additional information