Package: gnome-python-extras
Version: 2.10.0-2
Severity: normal
Tags: patch

When building 'gnome-python-extras' on amd64/unstable with gcc-4.0,
I get the following error:

(cd .libs && rm -f gtkmozembed.la && ln -s ../gtkmozembed.la gtkmozembed.la)
make[3]: Leaving directory `/gnome-python-extras-2.10.0/build-2.3/gtkmozembed'
Making all in gtkspell
make[3]: Entering directory `/gnome-python-extras-2.10.0/build-2.3/gtkspell'
if /bin/sh ../libtool --mode=compile x86_64-linux-gcc -DHAVE_CONFIG_H -I. 
-I../../gtkspell -I.. -I../.. -I/usr/include/python2.3 -DXTHREADS 
-I/usr/include/gtkspell-2.0 -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/pygtk-2.0      -g -O2 -Wall -fno-strict-aliasing -MT 
gtkspellmodule.lo -MD -MP -MF ".deps/gtkspellmodule.Tpo" \
  -c -o gtkspellmodule.lo `test -f '../../gtkspell/gtkspellmodule.c' || echo 
'../../gtkspell/'`../../gtkspell/gtkspellmodule.c; \
then mv -f ".deps/gtkspellmodule.Tpo" ".deps/gtkspellmodule.Plo"; \
else rm -f ".deps/gtkspellmodule.Tpo"; exit 1; \
fi
mkdir .libs
 x86_64-linux-gcc -DHAVE_CONFIG_H -I. -I../../gtkspell -I.. -I../.. 
-I/usr/include/python2.3 -DXTHREADS -I/usr/include/gtkspell-2.0 
-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/pygtk-2.0 -g 
-O2 -Wall -fno-strict-aliasing -MT gtkspellmodule.lo -MD -MP -MF 
.deps/gtkspellmodule.Tpo -c ../../gtkspell/gtkspellmodule.c  -fPIC -DPIC -o 
.libs/gtkspellmodule.o
../../gtkspell/gtkspellmodule.c:115: error: static declaration of 
'gtkspell_SpellType' follows non-static declaration
../../gtkspell/gtkspellmodule.c:11: error: previous declaration of 
'gtkspell_SpellType' was here
make[3]: *** [gtkspellmodule.lo] Error 1
make[3]: Leaving directory `/gnome-python-extras-2.10.0/build-2.3/gtkspell'

With the attached patch 'gnome-python-extras' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/gnome-python-extras-2.10.0/gtkspell/gtkspellmodule.c 
./gtkspell/gtkspellmodule.c
--- ../tmp-orig/gnome-python-extras-2.10.0/gtkspell/gtkspellmodule.c    
2004-12-26 20:05:01.000000000 +0100
+++ ./gtkspell/gtkspellmodule.c 2005-06-19 14:58:08.000000000 +0200
@@ -8,7 +8,7 @@
     GtkSpell *spell;
 } gtkspell_SpellObject;
 
-extern PyTypeObject gtkspell_SpellType;
+static PyTypeObject gtkspell_SpellType;
 
 static PyObject *
 _wrap_gtkspell_new_attach (PyTypeObject *type, PyObject *args, PyObject *kwds)


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

Reply via email to