Hi,
From a user I got a report that gpaint (I am the maintainer) doesn't
build on his system. I asked for an output of the console and
compared it with the output I get. Here's where the error occurs in
his output:
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -I/sw/include/
gnome-1.0 -DNEED_GNOMESUPPORT_H -I/sw/lib/gnome-libs/include -I/sw/
include/glib-1.2 -I/sw/lib/glib/include -I/sw/include/orbit-1.0 -I/sw/
include/gtk-1.2 -I/usr/X11R6/include -I/sw/include -I/sw/include/
gtk-1.2 -I/sw/include/glib-1.2 -I/sw/lib/glib/include -I/usr/X11R6/
include -I/sw/include/gdk-pixbuf-1.0 -I/sw/include/glib-2.0 -I/sw/
lib/glib-2.0/include -Wall -Wunused -c util.c
util.c: In function 'image_buf_draw_flash':
util.c:432: warning: pointer targets in passing argument 3 of
'gdk_gc_set_dashes' differ in signedness
util.c: In function 'handle_button_move':
util.c:945: error: label at end of compound statement
util.c: In function 'handle_button_release':
util.c:1096: error: label at end of compound statement
make[2]: *** [util.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive-am] Error 2
### execution of make failed, exit code 2
Here's the same section on my system:
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -I/sw/include/
gnome-1.0 -DNEED_GNOMESUPPORT_H -I/sw/lib/gnome-libs/include -I/sw/
include/glib-1.2 -I/sw/lib/glib/include -I/sw/include/orbit-1.0 -I/sw/
include/gtk-1.2 -I/usr/X11R6/include -I/sw/include -I/sw/include/
gtk-1.2 -I/sw/include/glib-1.2 -I/sw/lib/glib/include -I/usr/X11R6/
include -I/sw/include/gdk-pixbuf-1.0 -I/sw/include/glib-2.0 -I/sw/
lib/glib-2.0/include -Wall -Wunused -c util.c
util.c: In function `handle_button_move':
util.c:945: warning: deprecated use of label at end of compound
statement
util.c: In function `handle_button_release':
util.c:1096: warning: deprecated use of label at end of compound
statement
So he gets an error, I get a warning. If I look at the code in
util.c, the offending lines correspond to the closing bracket after a
switch-case statement:
...
case PASTE:
image_buf_put_clipboard_image(ibuf, x, y);
break;
default:
} <--- line 945
Maybe there should be a break; after the default: ?
I could patch the util.c file to fix that, but I was wondering why it
works on my system but not on his.
Were both using this compiler:
Default compiler has been set to:
gcc version 4.0.0 20041026 (Apple Computer, Inc. build 4061)
- Koen.
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel