[Pkg-gpe-maintainers] Bug#505073: FTBFS with GCC 4.4: expected 'gint *' but argument is of type 'guint *'

Martin Michlmayr tbm at cyrius.com
Sun Nov 9 08:11:08 UTC 2008

Package: gpe-expenses
Version: 0.1.6-1
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-4.4
Tags: patch

Your package fails to build with the upcoming GCC 4.4.  Version 4.4
has not been released yet but I'm building with a snapshot in order
to find errors and give people an advance warning.

You can reproduce this problem with gcc-snapshot from unstable.

> Automatic build of gpe-expenses_0.1.6-1 on em64t by sbuild/amd64 0.53
> gcc -DHAVE_CONFIG_H -I. -I..    -I.. -I../.. -DLOCALE_DIR=\""/usr/share/locale"\" -DPREFIX=\"/usr\" -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -D_REENTRANT -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/pixman-1   -I/usr/include/qof -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -D_REENTRANT -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/pixman-1   -g -O2 -g -Wall -O2 -g2 -Wall  -Werror -Wdeclaration-after-statement -c expenses-gtk.c
> cc1: warnings being treated as errors
> expenses-gtk.c: In function 'cat_populate':
> expenses-gtk.c:284: error: pointer targets in passing argument 2 of 'gpe_pim_category_new' differ in signedness
> /usr/include/gpe/pim-categories.h:37: note: expected 'gint *' but argument is of type 'guint *'
> make[3]: *** [expenses-gtk.o] Error 1
> make[3]: Leaving directory `/build/tbm/gpe-expenses-0.1.6/src'

--- src/expenses-gtk.c~	2008-11-09 07:34:18.000000000 +0000
+++ src/expenses-gtk.c	2008-11-09 07:34:31.000000000 +0000
@@ -269,7 +269,7 @@
 cat_populate (const gchar * cat_name)
 	GSList * cat_list, *match;
-	guint max_list;
+	gint max_list;
 	match = NULL;
 	cat_list = gpe_pim_categories_list();

Martin Michlmayr

More information about the Pkg-gpe-maintainers mailing list