[Pyrex] ANN: Pyrex 0.9.8.4

Sébastien Sablé sable at users.sourceforge.net
Thu Jun 12 10:38:07 CEST 2008


Hi Greg,

here is a small test case. You can use it this way to reproduce the problem:

sable at incubus:~/test/pyrex-bug$ tar xzf foo-0.0.1.tar.gz
sable at incubus:~/test/pyrex-bug$ cd foo-0.0.1/
sable at incubus:~/test/pyrex-bug/foo-0.0.1$ pyrexc --version
Pyrex version 0.9.8.4
sable at incubus:~/test/pyrex-bug/foo-0.0.1$ python setup.py build
running build
running build_py
creating build
creating build/lib.linux-i686-2.5
creating build/lib.linux-i686-2.5/magnum
copying magnum/__init__.py -> build/lib.linux-i686-2.5/magnum
running build_ext
pyrexc magnum/magpy.pyx --> magnum/magpy.c
Creating lexicon...
Done (0.07 seconds)
Pickling lexicon...
Done (0.00 seconds)
building 'magpy' extension
creating build/temp.linux-i686-2.5
creating build/temp.linux-i686-2.5/magnum
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall 
-Wstrict-prototypes -fPIC -I/usr/include/python2.5 -c magnum/magpy.c -o 
build/temp.linux-i686-2.5/magnum/magpy.o
magnum/magpy.c: Dans la fonction «initmagpy» :
magnum/magpy.c:81: erreur: «Py_INCREF» undeclared (first use in this 
function)
magnum/magpy.c:81: erreur: (Each undeclared identifier is reported only once
magnum/magpy.c:81: erreur: for each function it appears in.)
magnum/magpy.c:82: erreur: «Py_DECREF» undeclared (first use in this 
function)
magnum/magpy.c:88: erreur: «PyList_SET_ITEM» undeclared (first use in 
this function)
magnum/magpy.c:111: erreur: «PyCObject_Check» undeclared (first use in 
this function)
magnum/magpy.c:120: erreur: «PyTuple_SET_ITEM» undeclared (first use in 
this function)
error: command 'gcc' failed with exit status 1
sable at incubus:~/test/pyrex-bug/foo-0.0.1$ python setup.py clean --all; 
rm magnum/*.c
running clean
removing 'build/temp.linux-i686-2.5' (and everything under it)
removing 'build/lib.linux-i686-2.5' (and everything under it)
'build/bdist.linux-i686' does not exist -- can't clean it
'build/scripts-2.5' does not exist -- can't clean it
removing 'build'
sable at incubus:~/test/pyrex-bug/foo-0.0.1$ # install Pyrex 0.9.8.2
sable at incubus:~/test/pyrex-bug/foo-0.0.1$ pyrexc --version
Pyrex version 0.9.8.2
sable at incubus:~/test/pyrex-bug/foo-0.0.1$ python setup.py build
running build
running build_py
creating build
creating build/lib.linux-i686-2.5
creating build/lib.linux-i686-2.5/magnum
copying magnum/__init__.py -> build/lib.linux-i686-2.5/magnum
running build_ext
pyrexc magnum/magpy.pyx --> magnum/magpy.c
Creating lexicon...
Done (0.13 seconds)
Pickling lexicon...
Done (0.00 seconds)
building 'magpy' extension
creating build/temp.linux-i686-2.5
creating build/temp.linux-i686-2.5/magnum
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall 
-Wstrict-prototypes -fPIC -I/usr/include/python2.5 -c magnum/magpy.c -o 
build/temp.linux-i686-2.5/magnum/magpy.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions 
build/temp.linux-i686-2.5/magnum/magpy.o -o 
build/lib.linux-i686-2.5/magpy.so
sable at incubus:~/test/pyrex-bug/foo-0.0.1$


regards

--
Sébastien Sablé




Greg Ewing a écrit :
> Sébastien Sablé wrote:
> 
>> +  if (__Pyx_ExportFunction("g_malloc0", (void*)g_malloc0, "void 
>> *(int)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto 
>> __pyx_L1;}
>> +  if (__Pyx_ExportFunction("Py_INCREF", (void*)Py_INCREF, "void 
>> (PyObject *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; 
>> goto __pyx_L1;}
> 
> Can you send me a (preferably small) test case that
> reproduces this?
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo-0.0.1.tar.gz
Type: application/x-gzip
Size: 1695 bytes
Desc: not available
Url : http://lists.copyleft.no/pipermail/pyrex/attachments/20080612/b67a80b7/attachment.bin 


More information about the Pyrex mailing list