Ticket #518 (new defect)

Opened 1 year ago

Last modified 9 months ago

evolution2 plugin can not compile with suncc with warning flags only for gcc

Reported by: HaltonHuo Assigned to: abauer
Priority: high Milestone:
Component: Plugin: evolution2 Version:
Severity: critical Keywords:
Cc:

Description

on trunk code, sun cc can not compile since the flag -Wall -Werror -Wno-return-type, following are compile error message:

/ws/onnv-tools-prc/SUNWspro/SS11/bin/cc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/opensync-1.0 -DORBIT2=1 -D_REENTRANT -D_PTHREADS -I/usr/include/libgnome-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/orbit-2.0 -I/usr/include/gconf/2 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/bonobo-activation-2.0 -I/usr/include/evolution-data-server-1.10 -I/usr/include/libxml2 -Wall -Werror -Wno-return-type -g -c evolution2_sync.c -KPIC -DPIC -o .libs/evolution2_sync.o

cc: illegal option -Wall

Attachments

plugin-evo2-wall.diff (1.2 kB) - added by HaltonHuo on 07/27/07 09:19:39.
patch for this bug, check whether is gcc, otherwise do not use -Wall

Change History

07/27/07 09:19:39 changed by HaltonHuo

  • attachment plugin-evo2-wall.diff added.

patch for this bug, check whether is gcc, otherwise do not use -Wall

11/11/07 00:45:49 changed by felixmoeller

The patch certainly needs to be updated to cmake. If you do that, you might try getting someone on irc to apply it.