Установка gevent

137 views
Skip to first unread message

andrew

unread,
Jan 31, 2011, 3:56:10 AM1/31/11
to gevent: coroutine-based Python network library
Пытаюсь собирать gevent так:
python setup.py build --libevent /home/andrew/libevent-2.0.10-stable

все заканчивается ошибкой:
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-
prototypes -fPIC -Ibuild/temp.linux-i686-2.6/libevent -Ibuild/
temp.linux-i686-2.6/libevent/include -I/home/andrew/libevent-2.0.10-
stable -I/home/andrew/libevent-2.0.10-stable/include -I/usr/local/
include/python2.6 -c gevent/core.c -o build/temp.linux-i686-2.6/gevent/
core.o
gevent/core.c: In function
`__pyx_pf_6gevent_4core_17http_request_base_6get_input_headers':
gevent/core.c:9277: warning: implicit declaration of function
`TAILQ_FIRST'
gevent/core.c:9277: warning: assignment makes pointer from integer
without a cast
gevent/core.c:9387: warning: implicit declaration of function
`TAILQ_NEXT'
gevent/core.c:9387: `next' undeclared (first use in this function)
gevent/core.c:9387: (Each undeclared identifier is reported only once
gevent/core.c:9387: for each function it appears in.)
gevent/core.c:9387: warning: assignment makes pointer from integer
without a cast
error: command 'gcc' failed with exit status 1

Происходит она по все видимости из-за того, что в файле gevent/
libevent.h
не определено next в макросе
#define TAILQ_GET_NEXT(X) TAILQ_NEXT((X), next)

как это можно исправить?

Eugene Chernyshov

unread,
Jan 31, 2011, 2:55:16 PM1/31/11
to geve...@googlegroups.com
gevent компилил всего один раз и вроде прошлую версию. помню что легко оно мне не далось. ошибка не знакомая.

2011/1/31 andrew <zhu...@tversu.ru>
Reply all
Reply to author
Forward
0 new messages