[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

tanguofu tracker at bugs.pypy.org
Wed May 8 17:06:41 CEST 2013


New submission from tanguofu <tanguofu at gmail.com>:

Installing collected packages: pyuv
  Running setup.py install for pyuv
    libuv needs to be compiled.
    Building libuv...
    building 'pyuv' extension
    cc -fPIC -Wimplicit -DMODULE_VERSION=0.10.3 -DLIBUV_REVISION=9b801d5
-I/home/tanguofu/pypy/include -Ideps/libuv/include -c src/pyuv.c -o
build/temp.linux-x86_64-2.7/src/pyuv.o
    In file included from src/pyuv.c:7:0:
    src/handle.c: In function ‘resurrect_object’:
    src/handle.c:20:5: error: ‘_Py_DEC_REFTOTAL’ undeclared (first use in this
function)
    src/handle.c:20:5: note: each undeclared identifier is reported only once
for each function it appears in
    error: command 'cc' failed with exit status 1
    Complete output from command /home/tanguofu/pypy/bin/pypy -c "import
setuptools;__file__='/tmp/pip-build-tanguofu/pyuv/setup.py';exec(compile(open(__file__).read().replace('\r\n',
'\n'), __file__, 'exec'))" install --record
/tmp/pip-T_11x2-record/install-record.txt --single-version-externally-managed:
    running install

running build

running build_ext

libuv needs to be compiled.

Building libuv...

building 'pyuv' extension

creating build

creating build/temp.linux-x86_64-2.7

creating build/temp.linux-x86_64-2.7/src

cc -fPIC -Wimplicit -DMODULE_VERSION=0.10.3 -DLIBUV_REVISION=9b801d5
-I/home/tanguofu/pypy/include -Ideps/libuv/include -c src/pyuv.c -o
build/temp.linux-x86_64-2.7/src/pyuv.o

In file included from src/pyuv.c:7:0:

src/handle.c: In function ‘resurrect_object’:

src/handle.c:20:5: error: ‘_Py_DEC_REFTOTAL’ undeclared (first use in this function)

src/handle.c:20:5: note: each undeclared identifier is reported only once for
each function it appears in

error: command 'cc' failed with exit status 1

----------------------------------------
Command /home/tanguofu/pypy/bin/pypy -c "import
setuptools;__file__='/tmp/pip-build-tanguofu/pyuv/setup.py';exec(compile(open(__file__).read().replace('\r\n',
'\n'), __file__, 'exec'))" install --record
/tmp/pip-T_11x2-record/install-record.txt --single-version-externally-managed
failed with error code 1 in /tmp/pip-build-tanguofu/pyuv
Storing complete log in /home/tanguofu/.pip/pip.log

----------
messages: 5691
nosy: pypy-issue, tanguofu
priority: feature
release: 2.0
status: unread
title: complie error :" src/handle.c:20:5: error: ‘_Py_DEC_REFTOTAL’ undeclared (first use in this function)" when use pip install pyuv

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1481>
________________________________________


More information about the pypy-issue mailing list