Most of the build problems on amd64/gcc-4.0 have been fixed by the latest
upload, thanks!
I still get one single error when building 'inkscape' on amd64 with gcc-4.0:
if x86_64-linux-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/freetype2
-I/usr/include/freetype2 -I/usr/X11R6/include -DPOTRACE=\"potrace\"
-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/libxml2 -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include
-I/usr/include/gtkmm-2.4 -I/usr/lib/gtkmm-2.4/include -I/usr/include/glibmm-2.4
-I/usr/lib/glibmm-2.4/include -I/usr/include/gdkmm-2.4
-I/usr/lib/gdkmm-2.4/include -I/usr/include/pangomm-1.4
-I/usr/include/atkmm-1.6 -Wall -g -O2 -MT dialogs/export.o -MD -MP -MF
"dialogs/.deps/export.Tpo" -c -o dialogs/export.o `test -f 'dialogs/export.cpp'
|| echo './'`dialogs/export.cpp; \
then mv -f "dialogs/.deps/export.Tpo" "dialogs/.deps/export.Po"; else rm -f
"dialogs/.deps/export.Tpo"; exit 1; fi
dialogs/export.cpp: In function 'void sp_export_detect_size(GtkObject*)':
dialogs/export.cpp:1301: error: cast from 'void*' to 'int' loses precision
make[3]: *** [dialogs/export.o] Error 1
make[3]: Leaving directory `/inkscape-0.41/src'
The attached small patch fixes this.
Regards
Andreas Jochens
diff -urN ../tmp-orig/inkscape-0.41/src/dialogs/export.cpp
./src/dialogs/export.cpp
--- ../tmp-orig/inkscape-0.41/src/dialogs/export.cpp 2005-02-01
08:13:20.000000000 +0100
+++ ./src/dialogs/export.cpp 2005-02-11 10:05:03.524914583 +0100
@@ -1298,7 +1298,7 @@
/* We're now using a custom size, not a fixed one */
/* printf("Detecting state: %s\n", selection_names[key]); */
- selection_type old =
(selection_type)((int)gtk_object_get_data(GTK_OBJECT(base), "selection-type"));
+ selection_type old =
(selection_type)((long)gtk_object_get_data(GTK_OBJECT(base), "selection-type"));
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(gtk_object_get_data(base,
selection_names[old])), FALSE);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(gtk_object_get_data(base,
selection_names[key])), TRUE);
gtk_object_set_data(GTK_OBJECT(base), "selection-type", (gpointer)key);
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]