Package: synaptic
Severity: normal
Tags: patch

When building 'synaptic' on amd64 with gcc-4.0,
I get the following error:

if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../common -I../pixmaps 
-DPACKAGE_DATA_DIR=\""/usr/share"\" 
-DPACKAGE_LOCALE_DIR=\""/usr/share/locale"\" 
-DSYNAPTIC_GLADEDIR=\""/usr/share/synaptic/glade/"\" 
-DSYNAPTIC_PIXMAPDIR=\""/usr/share/synaptic/pixmaps/"\" -DXTHREADS 
-I/usr/include/gtk-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/libglade-2.0 
-I/usr/include/libxml2   -DXTHREADS -I/usr/include/freetype2 
-I/usr/X11R6/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
-I/usr/include/gtk-2.0 -I/usr/include/pango-1.0 -I/usr/lib/gtk-2.0/include 
-I/usr/include/atk-1.0       -g -O2 -MT rgmainwindow.o -MD -MP -MF 
".deps/rgmainwindow.Tpo" -c -o rgmainwindow.o rgmainwindow.cc; \
then mv -f ".deps/rgmainwindow.Tpo" ".deps/rgmainwindow.Po"; else rm -f 
".deps/rgmainwindow.Tpo"; exit 1; fi
rgmainwindow.cc: In static member function 'static void 
RGMainWindow::cbChangedView(GtkWidget*, void*)':
rgmainwindow.cc:2421: error: cast from 'void*' to 'int' loses precision
make[3]: *** [rgmainwindow.o] Error 1
make[3]: Leaving directory `/synaptic-0.55+cvs20041119/gtk'

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

Regards
Andreas Jochens

diff -urN ../tmp-orig/synaptic-0.55+cvs20041119/gtk/rgmainwindow.cc 
./gtk/rgmainwindow.cc
--- ../tmp-orig/synaptic-0.55+cvs20041119/gtk/rgmainwindow.cc   2004-11-16 
11:16:32.000000000 +0100
+++ ./gtk/rgmainwindow.cc       2005-01-13 18:03:42.986177287 +0100
@@ -2418,7 +2418,7 @@
    //   cout << "cbChangedView()"<<endl;
 
    RGMainWindow *me = (RGMainWindow *) data; 
-   int view = (int)gtk_object_get_data(GTK_OBJECT(self), "index");
+   long view = (long)gtk_object_get_data(GTK_OBJECT(self), "index");
    me->changeView(view);
 }
 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to