[Pkg-qof-maintainers] Bug#337374: qof: FTBFS (amd64): cast to pointer from integer of different size

Andreas Jochens aj at andaco.de
Fri Nov 4 07:08:37 UTC 2005


Package: qof
Version: 0.6.0-1
Severity: serious
Tags: patch

When building 'qof' on amd64/unstable, I get the following error:

 cc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -DPREFIX=\"/usr\" -DDATADIR=\"/usr/share\" -g -g -Wall -O2 -Wall -I/usr/include/libxml2 -I/usr/include/libgda-1.2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -Werror -Wmissing-prototypes -Wmissing-declarations -g -Wall -O2 -Wall -c qofgobj.c  -fPIC -DPIC -o .libs/qofgobj.o
cc1: warnings being treated as errors
qofgobj.c: In function 'qof_gobject_getter':
qofgobj.c:131: warning: cast to pointer from integer of different size
qofgobj.c:142: warning: cast to pointer from integer of different size
qofgobj.c:154: warning: cast to pointer from integer of different size
make[4]: *** [qofgobj.lo] Error 1
make[4]: Leaving directory `/qof-0.6.0/qof'

With the attached patch 'qof' can be compiled on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/qof-0.6.0/qof/qofgobj.c ./qof/qofgobj.c
--- ../tmp-orig/qof-0.6.0/qof/qofgobj.c	2005-09-29 14:40:28.000000000 +0000
+++ ./qof/qofgobj.c	2005-11-04 06:53:36.000000000 +0000
@@ -121,7 +121,7 @@
   else
   if (G_IS_PARAM_SPEC_INT(gps))
   {
-    int ival;
+    long ival;
     
     GValue gval = {G_TYPE_INVALID};
     g_value_init (&gval, G_TYPE_INT);
@@ -133,7 +133,7 @@
   else
   if (G_IS_PARAM_SPEC_UINT(gps))
   {
-    int ival;
+    long ival;
     GValue gval = {G_TYPE_INVALID};
     g_value_init (&gval, G_TYPE_UINT);
     g_object_get_property (gob, getter->param_name, &gval);
@@ -144,7 +144,7 @@
   else
   if (G_IS_PARAM_SPEC_BOOLEAN(gps))
   {
-    int ival;
+    long ival;
     
     GValue gval = {G_TYPE_INVALID};
     g_value_init (&gval, G_TYPE_BOOLEAN);




More information about the Pkg-qof-maintainers mailing list