[pypy-issue] [issue1481] complie error :" src/handle.c:20:5: error: ‘_Py_DEC_REFTOTAL’ undeclared (first use in this function)" when use pip install pyuv

Amaury Forgeot d Arc tracker at bugs.pypy.org
Wed May 8 17:27:29 CEST 2013

Amaury Forgeot d Arc <amauryfa at gmail.com> added the comment:

You could try to
   #define _Py_DEC_REFTOTAL
Or completely remove the line; it's only for statistics in debug builds (sys.gettotalrefcount).

This said, this 'resurrect object' function which plays with reference counts is deeply incompatible with PyPy and 
its garbage collection scheme.
Don't expect the resulting code to work correctly.
By the way, see https://github.com/saghul/pyuv/issues/49
   ...it seems there is a problem with callbacks...

You should look for a port of pyuv with the cffi interface.

nosy: +amaury
status: unread -> wontfix

PyPy bug tracker <tracker at bugs.pypy.org>

More information about the pypy-issue mailing list