Package: schoolbell
Severity: normal
Tags: patch

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

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes 
-fPIC -I/usr/include/python2.3 -c 
src/zope/interface/_zope_interface_coptimizations.c -o 
build/temp.linux-x86_64-2.3/src/zope/interface/_zope_interface_coptimizations.o
src/zope/interface/_zope_interface_coptimizations.c:339: error: static 
declaration of 'SpecType' follows non-static declaration
src/zope/interface/_zope_interface_coptimizations.c:73: error: previous 
declaration of 'SpecType' was here
error: command 'gcc' failed with exit status 1
make[1]: *** [build] Error 1
make[1]: Leaving directory `/schoolbell-0.7.1'
make: *** [build-stamp] Error 2

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

Regards
Andreas Jochens

diff -urN 
../tmp-orig/schoolbell-0.7.1/src/zope/interface/_zope_interface_coptimizations.c
 ./src/zope/interface/_zope_interface_coptimizations.c
--- 
../tmp-orig/schoolbell-0.7.1/src/zope/interface/_zope_interface_coptimizations.c
    2004-09-15 18:56:18.000000000 +0200
+++ ./src/zope/interface/_zope_interface_coptimizations.c       2005-03-07 
10:31:39.915426143 +0100
@@ -70,7 +70,7 @@
   return 0;
 }
 
-extern PyTypeObject SpecType;   /* Forward */
+static PyTypeObject SpecType;   /* Forward */
 
 static PyObject *
 implementedByFallback(PyObject *cls)


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

Reply via email to