Package: blender
Version: 2.36-1
Severity: serious
Tags: patch

blender fails to build because it declares BPy_CurNurb_methods as both
static and non-static:

gcc -pipe -funsigned-char -O2 -Wall -W -DGAMEBLENDER=1 -DUSE_SUMO_SOLID 
-DNDEBUG -Ibuild/linux2/source/blender/python/api2_2x 
-Isource/blender/python/api2_2x -Isource/blender/python/api2_2x 
-Ibuild/linux2/source/blender/blenkernel -Isource/blender/blenkernel 
-Isource/blender/blenkernel -Ibuild/linux2/source/blender/blenlib 
-Isource/blender/blenlib -Isource/blender/blenlib 
-Ibuild/linux2/source/blender/blenloader -Isource/blender/blenloader 
-Isource/blender/blenloader -Ibuild/linux2/source/blender/render/extern/include 
-Isource/blender/render/extern/include -Isource/blender/render/extern/include 
-Ibuild/linux2/source/blender/radiosity/extern/include 
-Isource/blender/radiosity/extern/include 
-Isource/blender/radiosity/extern/include 
-Ibuild/linux2/source/blender/makesdna -Isource/blender/makesdna 
-Isource/blender/makesdna -Iintern/guardedalloc -Iintern/bmfont 
-Ibuild/linux2/source/blender/imbuf -Isource/blender/imbuf 
-Isource/blender/imbuf -Ibuild/linux2/source/blender/include 
-Isource/blender/include -Isource/blender/include -I/usr/include/python2.3 
-I/usr/include -c -o build/linux2/source/blender/python/api2_2x/CurNurb.o 
source/blender/python/api2_2x/CurNurb.c
source/blender/python/api2_2x/CurNurb.c: In function 'M_CurNurb_New':
source/blender/python/api2_2x/CurNurb.c:197: warning: unused parameter 'self'
source/blender/python/api2_2x/CurNurb.c:197: warning: unused parameter 'args'
source/blender/python/api2_2x/CurNurb.c: In function 'CurNurb_isNurb':
source/blender/python/api2_2x/CurNurb.c:421: warning: dereferencing type-punned 
pointer will break strict-aliasing rules
source/blender/python/api2_2x/CurNurb.c:422: warning: dereferencing type-punned 
pointer will break strict-aliasing rules
source/blender/python/api2_2x/CurNurb.c:424: warning: dereferencing type-punned 
pointer will break strict-aliasing rules
source/blender/python/api2_2x/CurNurb.c:425: warning: dereferencing type-punned 
pointer will break strict-aliasing rules
source/blender/python/api2_2x/CurNurb.c: At top level:
source/blender/python/api2_2x/CurNurb.c:455: error: static declaration of 
'BPy_CurNurb_methods' follows non-static declaration
source/blender/python/api2_2x/CurNurb.c:54: error: previous declaration of 
'BPy_CurNurb_methods' was here
scons: *** [build/linux2/source/blender/python/api2_2x/CurNurb.o] Error 1
scons: building terminated because of errors.
make: *** [build-stamp] Error 2

The attached patch fixes this making both declarations static.

-- 
Matt
only in patch2:
unchanged:
--- blender-2.36.orig/source/blender/python/api2_2x/CurNurb.c
+++ blender-2.36/source/blender/python/api2_2x/CurNurb.c
@@ -51,7 +51,7 @@
  */
 
 
-extern PyMethodDef BPy_CurNurb_methods[];
+static PyMethodDef BPy_CurNurb_methods[];
 PyObject *CurNurb_CreatePyObject( Nurb * blen_nurb );
 static PyObject *CurNurb_setMatIndex( BPy_CurNurb * self, PyObject * args );
 static PyObject *CurNurb_getMatIndex( BPy_CurNurb * self );

Attachment: signature.asc
Description: Digital signature

Reply via email to