! 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 !
Terminal does not compile under solaris in debug mode with sunstudio
Status:
CLOSED: FIXED
Product:
Xfce4-terminal
Component:
General

Comments

Description William Bonnet 2007-02-17 22:04:40 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:
1. ./configure --enable-debug

Actual Results:  
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 22:05:21 CET
Created attachment 1004 
This patch solve the problem with sunstudio cc

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 19:14:31 CEST
Committed in revision 25308. Thanks for the patch Willian and hope you don't mind Benny.

Bug #2920

Reported by:
William Bonnet
Reported on: 2007-02-17
Last modified on: 2009-12-17

People

Assignee:
Benedikt Meurer
CC List:
0 users

Version

Attachments

Additional information