<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>What Cython version?  try updating it.</div><div><br>-MinRK</div><div><br>On Feb 22, 2013, at 0:55, xantares 09 <<a href="mailto:xantares09@hotmail.com">xantares09@hotmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div>

<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
<div dir="ltr">
Hi<br><br>I'm trying to build pyzmq from git.<br><br>I installed libzmq from git successfully.<br><br>The configure in pyzmq went OK after my patch:<br>pyzmq $ python ./setup.py configure --zmq=../libzmq/build/install<br>running configure<br>cc -c /tmp/timer_create0hukf0.c -o tmp/timer_create0hukf0.o<br>cc tmp/timer_create0hukf0.o -o a.out<br>tmp/timer_create0hukf0.o: In function `main':<br>timer_create0hukf0.c:(.text+0x15): undefined reference to `timer_create'<br>collect2: ld returned 1 exit status<br>cc -c /tmp/timer_createy_kGTs.c -o tmp/timer_createy_kGTs.o<br>cc tmp/timer_createy_kGTs.o -lrt -o a.out<br>************************************************<br>Configure: Autodetecting ZMQ settings...<br>    Custom ZMQ dir:       ../libzmq/build/install<br>gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I../libzmq/build/install/include -Izmq/utils -Izmq/core -Izmq/devices -c build/temp.linux-x86_64-2.7/scratch/vers.c -o build/temp.linux-x86_64-2.7/scratch/vers.o<br>gcc -pthread build/temp.linux-x86_64-2.7/scratch/vers.o -L../libzmq/build/install/lib -Wl,-R/home/schueller/projects/libzmq/build/install/lib -lzmq -lrt -o build/temp.linux-x86_64-2.7/scratch/vers<br>    ZMQ version detected: 3.3.0<br>************************************************<br><br>Then the cython build fails:<br>pyzmq $ python ./setup.py build<br>running build<br>running build_py<br>running build_ext<br>running configure<br>cc -c /tmp/timer_createnanPIx.c -o tmp/timer_createnanPIx.o<br>cc tmp/timer_createnanPIx.o -o a.out<br>tmp/timer_createnanPIx.o: In function `main':<br>timer_createnanPIx.c:(.text+0x15): undefined reference to `timer_create'<br>collect2: ld returned 1 exit status<br>cc -c /tmp/timer_createolhYyX.c -o tmp/timer_createolhYyX.o<br>cc tmp/timer_createolhYyX.o -lrt -o a.out<br>************************************************<br>Configure: Autodetecting ZMQ settings...<br>    Custom ZMQ dir:       ../libzmq/build/install<br>gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I../libzmq/build/install/include -Izmq/utils -Izmq/core -Izmq/devices -c build/temp.linux-x86_64-2.7/scratch/vers.c -o build/temp.linux-x86_64-2.7/scratch/vers.o<br>gcc -pthread build/temp.linux-x86_64-2.7/scratch/vers.o -L../libzmq/build/install/lib -Wl,-R/home/schueller/projects/libzmq/build/install/lib -lzmq -lrt -o build/temp.linux-x86_64-2.7/scratch/vers<br>    ZMQ version detected: 3.3.0<br>************************************************<br>skipping 'zmq/core/_device.c' Cython extension (up-to-date)<br>skipping 'zmq/core/_poll.c' Cython extension (up-to-date)<br>skipping 'zmq/core/_version.c' Cython extension (up-to-date)<br>cythoning zmq/core/constants.pyx to zmq/core/constants.c<br><br>Error compiling Cython file:<br>------------------------------------------------------------<br>...<br><br>#-----------------------------------------------------------------------------<br># Symbols to export<br>#-----------------------------------------------------------------------------<br><br>__all__ = [ key for key in locals().keys() if not key.startswith('_') ]<br>                                ^<br>------------------------------------------------------------<br><br>zmq/core/constants.pyx:190:33: Cannot convert 'size_t (zmq_msg_t *) nogil' to Python object<br><br>Error compiling Cython file:<br>------------------------------------------------------------<br>...<br>[[[ The same kind of error repeated a bunch of times ]]]<br>...<br>zmq/core/constants.pyx:190:33: Cannot convert 'void *(void) nogil' to Python object<br>building 'zmq.core.constants' extension<br>gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I../libzmq/build/install/include -Izmq/utils -Izmq/core -Izmq/devices -I/usr/include/python2.7 -c zmq/core/constants.c -o build/temp.linux-x86_64-2.7/zmq/core/constants.o<br>zmq/core/constants.c:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation.<br>error: command 'gcc' failed with exit status 1<br><br><br>What's wrong ?<br>                                         </div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>zeromq-dev mailing list</span><br><span><a href="mailto:zeromq-dev@lists.zeromq.org">zeromq-dev@lists.zeromq.org</a></span><br><span><a href="http://lists.zeromq.org/mailman/listinfo/zeromq-dev">http://lists.zeromq.org/mailman/listinfo/zeromq-dev</a></span><br></div></blockquote></body></html>