[zeromq-dev] Python bindings for zeromq 2.0.6 compilation error

Umesh Chandak chandakumesh at gmail.com
Fri Jun 11 07:22:28 CEST 2010

Hi ,

I am using zeromq 2.0.6 version of the zeromq for C.

I also want to compile the 2.0.6 version of python bindings. But on the net
the latest available is 2.0.7 .

Therefore I did the following to get teh python binding code for 2.0.6

1. git clone git://github.com/ellisonbg/pyzmq.git
        This gives me the latest git of 2.0.7

2.  git checkout 88a07bbbb968ff1efcec5b458d1257
     To go to 1 version before latest version.

3. Then I created a new setup.cfg file to reflect proper include and
libraries path.

4. To compile I did,

   python setup.py install.

After step 4. I get the following errors

running install
running build
running build_py
running build_ext
building 'zmq._zmq' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -I/home/umesh/zeromq-install/include
-I/usr/include/python2.6 -c zmq/_zmq.c -o
In file included from zmq/_zmq.c:146:
/home/umesh/zeromq-install/include/zmq.h:226: warning: function declaration
isnât a prototype
/home/umesh/zeromq-install/include/zmq.h:236: warning: function declaration
isnât a prototype
zmq/_zmq.c: In function â__pyx_pf_3zmq_4_zmq_6Socket_getsockoptâ:
zmq/_zmq.c:3369: warning: implicit declaration of function âzmq_getsockoptâ
zmq/_zmq.c: In function âinit_zmqâ:
zmq/_zmq.c:10359: error: âZMQ_PAIRâ undeclared (first use in this function)
zmq/_zmq.c:10359: error: (Each undeclared identifier is reported only once
zmq/_zmq.c:10359: error: for each function it appears in.)
zmq/_zmq.c:10623: error: âZMQ_RCVMOREâ undeclared (first use in this
zmq/_zmq.c:10635: error: âZMQ_SNDMOREâ undeclared (first use in this
zmq/_zmq.c:10839: error: âETERMâ undeclared (first use in this function)
error: command 'gcc' failed with exit status 1

Can you help me in resolving these errors.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20100611/aa6ec1f6/attachment.html>

More information about the zeromq-dev mailing list