Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

full Python 3.3 API for socket/ssl module #4

Open
wants to merge 1 commit into
base: expected_upstream
Choose a base branch
from

Conversation

fantix
Copy link
Owner

@fantix fantix commented Dec 23, 2013

This is a demo PR.

@uschen
Copy link

uschen commented Jan 27, 2014

@fantix, i'm having some problems on build the gevent using python3 setup.py build on debian
I have a couple machines, they have virtually the same packages, but some just couldn't compile.

they gave this kind of errors:

/home/xxx/.virtualenvs/xxx/bin/python util/cythonpp.py -o gevent.core.c gevent/core.ppyx
Running cython -o gevent.core.c gevent/core.pyx  # !EV_USE_SIGNALFD && !defined(LIBEV_EMBED) && !defined(_WIN32)
Running cython -o gevent.core.c gevent/core.pyx  # !EV_USE_SIGNALFD && !defined(LIBEV_EMBED) && defined(_WIN32)
Running cython -o gevent.core.c gevent/core.pyx  # !EV_USE_SIGNALFD && defined(LIBEV_EMBED) && !defined(_WIN32)
Running cython -o gevent.core.c gevent/core.pyx  # !EV_USE_SIGNALFD && defined(LIBEV_EMBED) && defined(_WIN32)
Running cython -o gevent.core.c gevent/core.pyx  # EV_USE_SIGNALFD && defined(LIBEV_EMBED) && !defined(_WIN32)
Running cython -o gevent.core.c gevent/core.pyx  # EV_USE_SIGNALFD && defined(LIBEV_EMBED) && defined(_WIN32)
Reusing cython -o gevent.core.c gevent/core.pyx  # EV_USE_SIGNALFD && defined(LIBEV_EMBED) && !defined(_WIN32)
Reusing cython -o gevent.core.c gevent/core.pyx  # EV_USE_SIGNALFD && defined(LIBEV_EMBED) && defined(_WIN32)
Generating gevent.core.c 1947265 bytes
Saving gevent/core.pyx
echo                          >> gevent.core.c
echo '#include "callbacks.c"' >> gevent.core.c
mv gevent.core.* gevent/
cython -o gevent.ares.c gevent/ares.pyx
mv gevent.ares.* gevent/
cython -o gevent._semaphore.c gevent/_semaphore.pyx
mv gevent._semaphore.* gevent/
cython -o gevent._util.c gevent/_util.pyx
mv gevent._util.* gevent/
building 'gevent.core' extension
creating build/temp.linux-x86_64-3.3
creating build/temp.linux-x86_64-3.3/gevent
gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include/python3.3m -c gevent/gevent.core.c -o build/temp.linux-x86_64-3.3/gevent/gevent.core.o
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_4loop___init__’:
gevent/gevent.core.c:5423:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c:5423:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c:5423:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c:5454:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c:5454:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c:5454:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c:5454:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_4loop_2_stop_watchers’:
gevent/gevent.core.c:6041:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_2io_3ref_2__set__’:
gevent/gevent.core.c:12943:7: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_2io_8priority___get__’:
gevent/gevent.core.c:13333:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_2io_8priority_2__set__’:
gevent/gevent.core.c:13409:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c:13433:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_2io_6active___get__’:
gevent/gevent.core.c:13965:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_2io_7pending___get__’:
gevent/gevent.core.c:14026:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_2io_6__init__’:
gevent/gevent.core.c:14369:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c:14369:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c:14369:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c:14550:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_2io_2fd_2__set__’:
gevent/gevent.core.c:14703:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c:14746:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c:14746:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c:14746:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_2io_6events_2__set__’:
gevent/gevent.core.c:14882:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c:14906:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c:14906:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c:14906:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_5timer_3ref_2__set__’:
gevent/gevent.core.c:15630:7: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_5timer_8priority___get__’:
gevent/gevent.core.c:16020:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_5timer_8priority_2__set__’:
gevent/gevent.core.c:16096:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c:16120:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_5timer_6active___get__’:
gevent/gevent.core.c:16636:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_5timer_7pending___get__’:
gevent/gevent.core.c:16697:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_5timer_6__init__’:
gevent/gevent.core.c:16891:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c:16891:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c:16891:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c:16891:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c:16958:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_6signal_3ref_2__set__’:
gevent/gevent.core.c:17732:7: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_6signal_8priority___get__’:
gevent/gevent.core.c:18122:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_6signal_8priority_2__set__’:
gevent/gevent.core.c:18198:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c:18222:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_6signal_6active___get__’:
gevent/gevent.core.c:18708:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_6signal_7pending___get__’:
gevent/gevent.core.c:18769:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_6signal_6__init__’:
gevent/gevent.core.c:18965:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c:18965:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c:18965:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c:19032:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_4idle_3ref_2__set__’:
gevent/gevent.core.c:19518:7: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_4idle_8priority___get__’:
gevent/gevent.core.c:19908:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_4idle_8priority_2__set__’:
gevent/gevent.core.c:19984:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c:20008:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_4idle_6active___get__’:
gevent/gevent.core.c:20494:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_4idle_7pending___get__’:
gevent/gevent.core.c:20555:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_4idle_6__init__’:
gevent/gevent.core.c:20686:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c:20686:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c:20686:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c:20753:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_7prepare_3ref_2__set__’:
gevent/gevent.core.c:21236:7: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_7prepare_8priority___get__’:
gevent/gevent.core.c:21626:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_7prepare_8priority_2__set__’:
gevent/gevent.core.c:21702:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c:21726:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_7prepare_6active___get__’:
gevent/gevent.core.c:22212:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_7prepare_7pending___get__’:
gevent/gevent.core.c:22273:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_7prepare_6__init__’:
gevent/gevent.core.c:22404:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c:22404:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c:22404:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c:22471:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_4fork_3ref_2__set__’:
gevent/gevent.core.c:22954:7: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_4fork_8priority___get__’:
gevent/gevent.core.c:23344:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_4fork_8priority_2__set__’:
gevent/gevent.core.c:23420:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c:23444:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_4fork_6active___get__’:
gevent/gevent.core.c:23930:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_4fork_7pending___get__’:
gevent/gevent.core.c:23991:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_4fork_6__init__’:
gevent/gevent.core.c:24122:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c:24122:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c:24122:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c:24189:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_5async_3ref_2__set__’:
gevent/gevent.core.c:24672:7: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_5async_8priority___get__’:
gevent/gevent.core.c:25062:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_5async_8priority_2__set__’:
gevent/gevent.core.c:25138:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c:25162:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_5async_6active___get__’:
gevent/gevent.core.c:25648:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_5async_6__init__’:
gevent/gevent.core.c:25840:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c:25840:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c:25840:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c:25907:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_5child_3ref_2__set__’:
gevent/gevent.core.c:26442:7: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_5child_8priority___get__’:
gevent/gevent.core.c:26832:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_5child_8priority_2__set__’:
gevent/gevent.core.c:26908:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c:26932:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_5child_6active___get__’:
gevent/gevent.core.c:27418:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_5child_7pending___get__’:
gevent/gevent.core.c:27479:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_5child_6__init__’:
gevent/gevent.core.c:27659:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c:27659:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c:27659:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_4stat_3ref_2__set__’:
gevent/gevent.core.c:28581:7: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_4stat_8priority___get__’:
gevent/gevent.core.c:28971:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_4stat_8priority_2__set__’:
gevent/gevent.core.c:29047:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c:29078:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_4stat_6active___get__’:
gevent/gevent.core.c:29571:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_4stat_7pending___get__’:
gevent/gevent.core.c:29632:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_4stat_6__init__’:
gevent/gevent.core.c:29801:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c:29801:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c:29801:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c:29868:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
gevent/gevent.core.c: In function ‘__pyx_tp_dealloc_6gevent_4core_watcher’:
gevent/gevent.core.c:32179:7: error: ‘struct _typeobject’ has no member named ‘tp_finalize’
gevent/gevent.core.c:32179:3: warning: implicit declaration of function ‘_PyGC_FINALIZED’ [-Wimplicit-function-declaration]
gevent/gevent.core.c:32185:5: warning: implicit declaration of function ‘PyObject_CallFinalizerFromDealloc’ [-Wimplicit-function-declaration]
gevent/gevent.core.c: At top level:
gevent/gevent.core.c:32401:3: warning: initialization makes pointer from integer without a cast [enabled by default]
gevent/gevent.core.c:32401:3: warning: (near initialization for ‘PyGeventWatcher_Type.tp_as_buffer’) [enabled by default]
gevent/gevent.core.c:32402:3: warning: initialization makes integer from pointer without a cast [enabled by default]
gevent/gevent.core.c:32402:3: warning: (near initialization for ‘PyGeventWatcher_Type.tp_flags’) [enabled by default]
gevent/gevent.core.c:32419:3: warning: initialization from incompatible pointer type [enabled by default]
gevent/gevent.core.c:32419:3: warning: (near initialization for ‘PyGeventWatcher_Type.tp_iternext’) [enabled by default]
gevent/gevent.core.c:32450:3: warning: initialization from incompatible pointer type [enabled by default]
gevent/gevent.core.c:32450:3: warning: (near initialization for ‘PyGeventWatcher_Type.tp_alloc’) [enabled by default]
gevent/gevent.core.c:11533:12: warning: ‘__pyx_pw_6gevent_4core_8callback_5__bool__’ defined but not used [-Wunused-function]
gevent/gevent.core.c:12328:18: warning: ‘__pyx_pw_6gevent_4core_7watcher_1__repr__’ defined but not used [-Wunused-function]
error: command 'gcc' failed with exit status 1

@uschen
Copy link

uschen commented Jan 27, 2014

Does gevent requires those packages for building python3.3?

apt-get build-dep python3.2
apt-get install libreadline-dev libncurses5-dev libssl1.0.0 tk8.5-dev zlib1g-dev liblzma-dev

thanks!!

@uschen
Copy link

uschen commented Jan 27, 2014

After using system's c-ares and libev by moving the c-ares and libev folders, it's successfully built.

@fantix
Copy link
Owner Author

fantix commented Feb 6, 2014

@bigreat the tp_finalize thing seems to be a new feature in Cython 0.20. Is it the version you are using? I've been doing a pip install 'cython<0.20' locally FYI.

For those deb packages, I don't think building gevent requires them other than python3.3-dev. Please feel free to let me know if there's anything weird on your env. Thanks!

@carldunham
Copy link

Seeing the same thing on osx. Building with 'cython<0.20' worked. Thanks!

@uschen
Copy link

uschen commented Feb 11, 2014

@fantix i think'cython<0.20' is very likely to be the solution... i will try it across different environments in the next couple of days.

@fantix
Copy link
Owner Author

fantix commented Feb 12, 2014

Thanks for trying this out!

@uschen
Copy link

uschen commented Feb 28, 2014

@fantix on os x, cython<0.2 works fine. However, on debian (with libev-dev package), it won't build unless move the included libev and use system one.
those were the errors with included libev:
gevent/gevent.core.c: At top level: gevent/gevent.core.c:39359:18: error: redefinition of ‘__pyx_tp_new_6gevent_4core_fork’ gevent/gevent.core.c:35824:18: note: previous definition of ‘__pyx_tp_new_6gevent_4core_fork’ was here gevent/gevent.core.c:39370:13: error: redefinition of ‘__pyx_tp_dealloc_6gevent_4core_fork’ gevent/gevent.core.c:35835:13: note: previous definition of ‘__pyx_tp_dealloc_6gevent_4core_fork’ was here gevent/gevent.core.c:39380:12: error: redefinition of ‘__pyx_tp_traverse_6gevent_4core_fork’ gevent/gevent.core.c:35845:12: note: previous definition of ‘__pyx_tp_traverse_6gevent_4core_fork’ was here gevent/gevent.core.c:39396:12: error: redefinition of ‘__pyx_tp_clear_6gevent_4core_fork’ gevent/gevent.core.c:35861:12: note: previous definition of ‘__pyx_tp_clear_6gevent_4core_fork’ was here gevent/gevent.core.c:39412:18: error: redefinition of ‘__pyx_getprop_6gevent_4core_4fork_ref’ gevent/gevent.core.c:35877:18: note: previous definition of ‘__pyx_getprop_6gevent_4core_4fork_ref’ was here gevent/gevent.core.c:39416:12: error: redefinition of ‘__pyx_setprop_6gevent_4core_4fork_ref’ gevent/gevent.core.c:35881:12: note: previous definition of ‘__pyx_setprop_6gevent_4core_4fork_ref’ was here gevent/gevent.core.c:39426:18: error: redefinition of ‘__pyx_getprop_6gevent_4core_4fork_callback’

@uschen
Copy link

uschen commented Feb 28, 2014

@fantix with debian libev, those are the testing results:
``
Longest-running tests:
180.0 seconds: /somefolder/bin/python -u test__issue6.py
180.0 seconds: /somefolder/bin/python -u test__socket_dns.py
180.0 seconds: /somefolder/bin/python -u test__socket_dns6.py
15.0 seconds: /somefolder/bin/python -u test__pool.py
12.1 seconds: /somefolder/bin/python -u test__threadpool.py

5/77 tests failed in 03:10

3/77 expected failures

  • /somefolder/bin/python -u test__issue6.py
  • /somefolder/bin/python -u test__socket_dns.py
  • /somefolder/bin/python -u test__socket_dns6.py

2/77 unexpected failures

  • /somefolder/bin/python -u test_close_backend_fd.py
  • /somefolder/bin/python -u test__destroy.py

``

@fantix
Copy link
Owner Author

fantix commented Feb 28, 2014

@bigreat building on Ubuntu gave me the same result as yours. I'll take a look at those tests, thanks for trying out! Btw are you using my master for the tests please?

@uschen
Copy link

uschen commented Mar 10, 2014

@fantix yes, it was the head of master. I just tested the latest one. it's built without problems on python 3.3.5 deiban with cython 0.20.1

@uschen
Copy link

uschen commented Mar 10, 2014

16/121 unexpected failures
 - /home/someuser/.virtualenvs/someproject/bin/python -u -m monkey_test test_ftplib.py
 - /home/someuser/.virtualenvs/someproject/bin/python -u -m monkey_test test_asyncore.py
 - /home/someuser/.virtualenvs/someproject/bin/python -u -m monkey_test --Event test_thread.py
 - /home/someuser/.virtualenvs/someproject/bin/python -u -m monkey_test test_select.py
 - /home/someuser/.virtualenvs/someproject/bin/python -u -m monkey_test --Event test_select.py
 - /home/someuser/.virtualenvs/someproject/bin/python -u -m monkey_test --Event test_socket.py
 - /home/someuser/.virtualenvs/someproject/bin/python -u -m monkey_test test_urllib2_localnet.py
 - /home/someuser/.virtualenvs/someproject/bin/python -u -m monkey_test --Event test_asyncore.py
 - /home/someuser/.virtualenvs/someproject/bin/python -u -m monkey_test test_thread.py
 - /home/someuser/.virtualenvs/someproject/bin/python -u -m monkey_test --Event test_threading.py
 - /home/someuser/.virtualenvs/someproject/bin/python -u -m monkey_test test_threading.py
 - /home/someuser/.virtualenvs/someproject/bin/python -u -m monkey_test --Event test_urllib2_localnet.py
 - /home/someuser/.virtualenvs/someproject/bin/python -u -m monkey_test test_httplib.py
 - /home/someuser/.virtualenvs/someproject/bin/python -u -m monkey_test --Event test_httplib.py
 - /home/someuser/.virtualenvs/someproject/bin/python -u -m monkey_test --Event test_ftplib.py
 - /home/someuser/.virtualenvs/someproject/bin/python -u -m monkey_test test_socket.py

@fantix
Copy link
Owner Author

fantix commented Mar 10, 2014

@bigreat hm yeah, these failures are new after I copy those tests from stdlib to greentests/3.3/ ... there was also some other failures after I switched to Denis'es socket/ssl module (mostly fixed by now). It'll take quite a while to fix all of them I guess :P

@uschen
Copy link

uschen commented Mar 10, 2014

@fantix thanks for the great work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants