Bug#258796: gnome-db2: FTBFS with gcc-3.4: label at end of compound statement

Andreas Jochens Andreas Jochens <aj@andaco.de>, 258796@bugs.debian.org
Sun, 11 Jul 2004 15:27:50 +0200


Package: gnome-db2
Severity: normal
Tags: patch

When building 'gnome-db2' with gcc-3.4 I get the following error:

x86_64-linux-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. 	-I.. 	-I/usr/include 	 -DXTHREADS -DORBIT2=1 -pthread -I/usr/include/gtk-2.0 -I/usr/include/libgnomeui-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/libbonoboui-2.0 -I/usr/include/libglade-2.0 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgnome-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/libgnomeprint-2.2 -I/usr/include/libgnomeprintui-2.2   	-DG_LOG_DOMAIN=\"mergeant\" 	-DDTDINSTALLDIR=\""/usr/share/mergeant/dtd"\" 	-DPLUGINSINSTALLDIR=\""/usr/lib/mergeant/plugins"\" 	-DPIXMAPDIR=\""/usr/share/pixmaps/mergeant"\"         -I../lib 	-I../lib    -Wall -g -O2 -c interface_cb.c
interface_cb.c: In function `sql_data_view_cb':
interface_cb.c:467: warning: unused variable `dlg'
interface_cb.c: In function `refresh_plugins_table_cb':
interface_cb.c:685: warning: passing arg 3 of `gtk_clist_insert' from incompatible pointer type
interface_cb.c:688: warning: passing arg 2 of `gtk_clist_append' from incompatible pointer type
interface_cb.c: In function `sql_server_event_cb':
interface_cb.c:2215: warning: passing arg 2 of `gnome_db_error_dialog_show_errors' discards qualifiers from pointer target type
interface_cb.c:2218: error: label at end of compound statement
make[4]: *** [interface_cb.o] Error 1
make[4]: Leaving directory `/gnome-db2-0.12.1/build-tree/mergeant-0.12.1/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/gnome-db2-0.12.1/build-tree/mergeant-0.12.1/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/gnome-db2-0.12.1/build-tree/mergeant-0.12.1'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/gnome-db2-0.12.1/build-tree/mergeant-0.12.1'
make: *** [debian/stampdir/build-stamp] Error 2

With the attached patch 'gnome-db2' can be compiled using gcc-3.4.

Regards
Andreas Jochens

diff -urN ../tmp-orig/gnome-db2-0.12.1/debian/patches/003_gcc-3.4_fix.patch ./debian/patches/003_gcc-3.4_fix.patch
--- ../tmp-orig/gnome-db2-0.12.1/debian/patches/003_gcc-3.4_fix.patch	1970-01-01 01:00:00.000000000 +0100
+++ ./debian/patches/003_gcc-3.4_fix.patch	2004-07-11 14:43:19.201333319 +0200
@@ -0,0 +1,9 @@
+--- mergeant-0.12.1/src/interface_cb.c~	2004-07-11 14:42:05.213653961 +0200
++++ mergeant-0.12.1/src/interface_cb.c	2004-07-11 14:42:22.265353545 +0200
+@@ -2214,6 +2214,5 @@
+ 		gnome_db_error_dialog_show_errors (GNOME_DB_ERROR_DIALOG (conf->error_dlg),
+ 						   gda_connection_get_errors (cnc));
+ 		break;
+-	default :
+ 	}
+ }