From: Stefan v. d. W. <st...@su...> - 2006-07-08 01:23:08
|
On Fri, Jul 07, 2006 at 07:06:58PM -0600, Fernando Perez wrote: > On 7/7/06, Travis Oliphant <oli...@ee...> wrote: > > I just committed a big change to the NumPy SVN (r2773-r2777) which ad= ds > > the prefix npy_ or NPY_ to all names not otherwise pre-fixed. > > > > There is also a noprefix.h header that allows you to use the names > > without the prefixes defined, as before > > > > Plus: > > > > 1) The special FLAG names with _FLAGS now have the _FLAGS removed > > 2) The PY_ARRAY_TYPES_PREFIX is ignored. > > 3) The tMIN/tMAX macros are removed > > 4) MAX_DIMS --> NPY_MAXDIMS > > 5) OWN_DATA --> NPY_OWNDATA >=20 > Make sure scipy builds after these, I think I just saw it not build > with 'OWN_DATA' errors. Maybe I just caught you in-between commits... I see the following before the compilation breaks: Lib/cluster/src/vq_wrap.cpp: In function =E2=80=98PyObject* ARGOUT_argout= (char*, char*, int*, int)=E2=80=99: Lib/cluster/src/vq_wrap.cpp:734: error: =E2=80=98OWN_DATA=E2=80=99 was no= t declared in this scope Lib/cluster/src/vq_wrap.cpp: In function =E2=80=98int char_to_size(char)=E2= =80=99: Lib/cluster/src/vq_wrap.cpp:582: warning: control reaches end of non-void= function Lib/cluster/src/vq_wrap.cpp: In function =E2=80=98int char_to_numtype(cha= r)=E2=80=99: Lib/cluster/src/vq_wrap.cpp:590: warning: control reaches end of non-void= function Lib/cluster/src/vq_wrap.cpp: At global scope: Lib/cluster/src/vq_wrap.cpp:147: warning: =E2=80=98void* SWIG_TypeQuery(c= onst char*)=E2=80=99 defined but not used Lib/cluster/src/vq_wrap.cpp:301: warning: =E2=80=98void SWIG_addvarlink(P= yObject*, char*, PyObject* (*)(), int (*)(PyObject*))=E2=80=99 defined bu= t not used Lib/cluster/src/vq_wrap.cpp:315: warning: =E2=80=98int SWIG_ConvertPtr(Py= Object*, void**, swig_type_info*, int)=E2=80=99 defined but not used Lib/cluster/src/vq_wrap.cpp:516: warning: =E2=80=98PyObject* l_output_hel= per(PyObject*, PyObject*)=E2=80=99 defined but not used In file included from /usr/include/python2.4/Python.h:8, from Lib/cluster/src/vq_wrap.cpp:176: /usr/include/python2.4/pyconfig.h:835:1: warning: "_POSIX_C_SOURCE" redef= ined In file included from /usr/include/string.h:26, from Lib/cluster/src/vq_wrap.cpp:27: /usr/include/features.h:150:1: warning: this is the location of the previ= ous definition In file included from Lib/cluster/src/vq_wrap.cpp:499: Lib/cluster/src/vq.h:57:7: warning: no newline at end of file Lib/cluster/src/vq_wrap.cpp: In function =E2=80=98PyObject* ARGOUT_argout= (char*, char*, int*, int)=E2=80=99: Lib/cluster/src/vq_wrap.cpp:734: error: =E2=80=98OWN_DATA=E2=80=99 was no= t declared in this scope Lib/cluster/src/vq_wrap.cpp: In function =E2=80=98int char_to_size(char)=E2= =80=99: Lib/cluster/src/vq_wrap.cpp:582: warning: control reaches end of non-void= function Lib/cluster/src/vq_wrap.cpp: In function =E2=80=98int char_to_numtype(cha= r)=E2=80=99: Lib/cluster/src/vq_wrap.cpp:590: warning: control reaches end of non-void= function Lib/cluster/src/vq_wrap.cpp: At global scope: Lib/cluster/src/vq_wrap.cpp:147: warning: =E2=80=98void* SWIG_TypeQuery(c= onst char*)=E2=80=99 defined but not used Lib/cluster/src/vq_wrap.cpp:301: warning: =E2=80=98void SWIG_addvarlink(P= yObject*, char*, PyObject* (*)(), int (*)(PyObject*))=E2=80=99 defined bu= t not used Lib/cluster/src/vq_wrap.cpp:315: warning: =E2=80=98int SWIG_ConvertPtr(Py= Object*, void**, swig_type_info*, int)=E2=80=99 defined but not used Lib/cluster/src/vq_wrap.cpp:516: warning: =E2=80=98PyObject* l_output_hel= per(PyObject*, PyObject*)=E2=80=99 defined but not used error: Command "g++ -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -= fPIC -I/home/stefan/lib/python2.4/site-packages/numpy/core/include -I/usr= /include/python2.4 -c Lib/cluster/src/vq_wrap.cpp -o build/temp.linux-i68= 6-2.4/Lib/cluster/src/vq_wrap.o" failed with exit status 1 Error building package. St=C3=A9fan |