andrew
unread,Jan 31, 2011, 3:56:10 AM1/31/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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)
как это можно исправить?