[py24-twisted-web2] fails miserable

Oskar Dahl oskar18 at telia.com
Thu Dec 29 10:34:59 PST 2011


building 'twisted.internet.cfsupport' extension
/Developer/usr/bin/clang -fno-strict-aliasing -fno-common -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/local/include/python2.4 -c twisted/internet/cfsupport/cfsupport.c -o build/temp.macosx-10.7-i386-2.4/twisted/internet/cfsupport/cfsupport.o -w
twisted/internet/cfsupport/cfsupport.c:128:4: error: assignment to cast is illegal, lvalue casts are not supported
 ((PyObject*)__pyx_v_socket) = Py_None; Py_INCREF(((PyObject*)__pyx_v_socket));
 ~^~~~~~~~~~~~~~~~~~~~~~~~~~ ~
twisted/internet/cfsupport/cfsupport.c:134:4: error: assignment to cast is illegal, lvalue casts are not supported
 ((PyObject *)__pyx_v_socket) = __pyx_1;
 ~^~~~~~~~~~~~~~~~~~~~~~~~~~~ ~
twisted/internet/cfsupport/cfsupport.c:829:4: error: assignment to cast is illegal, lvalue casts are not supported
 ((PyObject*)__pyx_v_obj) = Py_None; Py_INCREF(((PyObject*)__pyx_v_obj));
 ~^~~~~~~~~~~~~~~~~~~~~~~ ~
twisted/internet/cfsupport/cfsupport.c:835:4: error: assignment to cast is illegal, lvalue casts are not supported
 ((PyObject *)__pyx_v_obj) = __pyx_1;
 ~^~~~~~~~~~~~~~~~~~~~~~~~ ~
4 errors generated.
error: command '/Developer/usr/bin/clang' failed with exit status 1


I'm using OS X 10.7.2 Lion with gcc 4.2.1 (5658)

So, what's the easiest/fastest way to just modify cfsupport.c and try again?



More information about the macports-users mailing list