agoragames/pyevent — Issue #3: prevent doesn't build against libevent 2.0.16
Author: blalor
Created: 2011-12-11 01:45:35+00:00
State: open

I fixed `setup.py` to point to the directory where I've got `libevent` version 2.0.16 installed. Compilation fails. Installing `libevent` 1.4.14b allows `pyevent` to build.

found system libevent for darwin
running install
running build
running build_ext
building 'event' extension
llvm-gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -I/Users/blalor/homebrew/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c event.c -o build/temp.macosx-10.7-intel-2.7/event.o
event.c: In function ‘__pyx_pf_5event_5event_add’:
event.c:2069: warning: implicit conversion shortens 64-bit value into a 32-bit value
event.c:2076: warning: implicit conversion shortens 64-bit value into a 32-bit value
event.c: In function ‘__pyx_pf_5event_11bufferevent_read’:
event.c:4137: error: dereferencing pointer to incomplete type
event.c:4149: error: dereferencing pointer to incomplete type
event.c:4177: error: dereferencing pointer to incomplete type
event.c: In function ‘__pyx_pf_5event_11bufferevent_write’:
event.c:4247: warning: passing argument 2 of ‘PyObject_AsCharBuffer’ from incompatible pointer type
event.c:4247: warning: passing argument 3 of ‘PyObject_AsCharBuffer’ from incompatible pointer type
event.c: In function ‘__pyx_pf_5event_dns_resolve_reverse’:
event.c:5307: warning: passing argument 1 of ‘evdns_resolve_reverse’ from incompatible pointer type
event.c: In function ‘__pyx_pf_5event_dns_resolve_reverse_ipv6’:
event.c:5463: warning: passing argument 1 of ‘evdns_resolve_reverse’ from incompatible pointer type
event.c: In function ‘__pyx_pf_5event_12__wsgi_input_read’:
event.c:6320: warning: pointer targets in passing argument 1 of ‘PyString_FromStringAndSize’ differ in signedness
event.c: In function ‘__pyx_f_5event___path_handler’:
event.c:6607: warning: assignment discards qualifiers from pointer target type
event.c:6630: warning: assignment discards qualifiers from pointer target type
event.c:6653: warning: assignment discards qualifiers from pointer target type
event.c: In function ‘__pyx_pf_5event_5event___simple_callback’:
event.c:1689: warning: implicit conversion shortens 64-bit value into a 32-bit value
event.c: In function ‘__pyx_pf_5event_5event_add’:
event.c:2069: warning: implicit conversion shortens 64-bit value into a 32-bit value
event.c:2076: warning: implicit conversion shortens 64-bit value into a 32-bit value
event.c: In function ‘__pyx_pf_5event_11bufferevent_read’:
event.c:4137: error: dereferencing pointer to incomplete type
event.c:4149: error: dereferencing pointer to incomplete type
event.c:4177: error: dereferencing pointer to incomplete type
event.c: In function ‘__pyx_pf_5event_11bufferevent_write’:
event.c:4247: warning: passing argument 2 of ‘PyObject_AsCharBuffer’ from incompatible pointer type
event.c:4247: warning: passing argument 3 of ‘PyObject_AsCharBuffer’ from incompatible pointer type
event.c: In function ‘__pyx_f_5event___evdns_callback’:
event.c:4536: warning: cast from pointer to integer of different size
event.c: In function ‘__pyx_pf_5event_dns_resolve_ipv4’:
event.c:4995: warning: cast to pointer from integer of different size
event.c: In function ‘__pyx_pf_5event_dns_resolve_ipv6’:
event.c:5151: warning: cast to pointer from integer of different size
event.c: In function ‘__pyx_pf_5event_dns_resolve_reverse’:
event.c:5307: warning: cast to pointer from integer of different size
event.c:5307: warning: passing argument 1 of ‘evdns_resolve_reverse’ from incompatible pointer type
event.c: In function ‘__pyx_pf_5event_dns_resolve_reverse_ipv6’:
event.c:5463: warning: cast to pointer from integer of different size
event.c:5463: warning: passing argument 1 of ‘evdns_resolve_reverse’ from incompatible pointer type
event.c: In function ‘__pyx_pf_5event_12__wsgi_input_read’:
event.c:6320: warning: pointer targets in passing argument 1 of ‘PyString_FromStringAndSize’ differ in signedness
event.c: In function ‘__pyx_f_5event___path_handler’:
event.c:6607: warning: assignment discards qualifiers from pointer target type
event.c:6630: warning: assignment discards qualifiers from pointer target type
event.c:6653: warning: assignment discards qualifiers from pointer target type
lipo: can't open input file: /var/folders/7n/2lnbh47137z3xvg69t5rv0r00000gp/T//cchy47Ew.out (No such file or directory)
error: command 'llvm-gcc-4.2' failed with exit status 1