Package: zopeinterface
Severity: normal
Tags: patch

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

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes 
-fPIC -IDependencies/zope.interface-ZopeInterface-3.0.0/zope.interface 
-I/usr/include/python2.3 -c 
Dependencies/zope.interface-ZopeInterface-3.0.0/zope.interface/_zope_interface_coptimizations.c
 -o 
./build/temp.linux-x86_64-2.3/Dependencies/zope.interface-ZopeInterface-3.0.0/zope.interface/_zope_interface_coptimizations.o
Dependencies/zope.interface-ZopeInterface-3.0.0/zope.interface/_zope_interface_coptimizations.c:339:
 error: static declaration of 'SpecType' follows non-static declaration
Dependencies/zope.interface-ZopeInterface-3.0.0/zope.interface/_zope_interface_coptimizations.c:73:
 error: previous declaration of 'SpecType' was here
error: command 'gcc' failed with exit status 1
make: *** [common-build-impl] Error 1

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

Regards
Andreas Jochens

diff -urN 
../tmp-orig/zopeinterface-3.0.0/Dependencies/zope.interface-ZopeInterface-3.0.0/zope.interface/_zope_interface_coptimizations.c
 
./Dependencies/zope.interface-ZopeInterface-3.0.0/zope.interface/_zope_interface_coptimizations.c
--- 
../tmp-orig/zopeinterface-3.0.0/Dependencies/zope.interface-ZopeInterface-3.0.0/zope.interface/_zope_interface_coptimizations.c
     2004-08-04 12:03:17.000000000 +0200
+++ 
./Dependencies/zope.interface-ZopeInterface-3.0.0/zope.interface/_zope_interface_coptimizations.c
   2005-02-12 19:36:07.324059864 +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