svpcom/pyzmq-ctypes — Issue #5: Error on `import zmq`
Author: jhcook
Created: 2012-03-05 18:52:57+00:00
State: open

Hi there. I've installed zmq, py, and ctypes_configure but receive the following error on Pypy 1.8.0:

>>>> sys.version
'2.7.2 (2346207d99463f299f09f3e151c9d5fa9158f71b, Feb 10 2012, 19:35:44)\n[PyPy 1.8.0 with GCC 4.4.6]'
>>>> import zmq
ctypesplatcheck_0.c: In function ‘dump_section_DOWNSTREAM’:
ctypesplatcheck_0.c:42: error: ‘ZMQ_DOWNSTREAM’ undeclared (first use in this function)
ctypesplatcheck_0.c:42: error: (Each undeclared identifier is reported only once
ctypesplatcheck_0.c:42: error: for each function it appears in.)
ctypesplatcheck_0.c: In function ‘dump_section_FORWARDER’:
ctypesplatcheck_0.c:242: error: ‘ZMQ_FORWARDER’ undeclared (first use in this function)
ctypesplatcheck_0.c: In function ‘dump_section_HWM’:
ctypesplatcheck_0.c:252: error: ‘ZMQ_HWM’ undeclared (first use in this function)
ctypesplatcheck_0.c: In function ‘dump_section_MAX_VSM_SIZE’:
ctypesplatcheck_0.c:282: error: ‘ZMQ_MAX_VSM_SIZE’ undeclared (first use in this function)
ctypesplatcheck_0.c: In function ‘dump_section_MCAST_LOOP’:
ctypesplatcheck_0.c:292: error: ‘ZMQ_MCAST_LOOP’ undeclared (first use in this function)
ctypesplatcheck_0.c: In function ‘dump_section_NOBLOCK’:
ctypesplatcheck_0.c:302: error: ‘ZMQ_NOBLOCK’ undeclared (first use in this function)
ctypesplatcheck_0.c: In function ‘dump_section_QUEUE’:
ctypesplatcheck_0.c:382: error: ‘ZMQ_QUEUE’ undeclared (first use in this function)
ctypesplatcheck_0.c: In function ‘dump_section_STREAMER’:
ctypesplatcheck_0.c:492: error: ‘ZMQ_STREAMER’ undeclared (first use in this function)
ctypesplatcheck_0.c: In function ‘dump_section_SWAP’:
ctypesplatcheck_0.c:522: error: ‘ZMQ_SWAP’ undeclared (first use in this function)
ctypesplatcheck_0.c: In function ‘dump_section_UPSTREAM’:
ctypesplatcheck_0.c:552: error: ‘ZMQ_UPSTREAM’ undeclared (first use in this function)

Traceback (most recent call last):
File "", line 1, in
File "/usr/lib64/pypy-1.8/site-packages/zmq/__init__.py", line 1, in
from _zmq import *
File "/usr/lib64/pypy-1.8/site-packages/zmq/_zmq.py", line 55, in
info = configure.configure(CConfigure)
File "/usr/lib64/pypy-1.8/site-packages/ctypes_configure/configure.py", line 182, in configure
infolist = list(run_example_code(writer.path, eci))
File "/usr/lib64/pypy-1.8/site-packages/ctypes_configure/configure.py", line 573, in run_example_code
executable = build_executable([filepath], eci)
File "/usr/lib64/pypy-1.8/site-packages/ctypes_configure/cbuild.py", line 457, in build_executable
compiler.build(noerr=noerr)
File "/usr/lib64/pypy-1.8/site-packages/ctypes_configure/cbuild.py", line 409, in build
self._build()
File "/usr/lib64/pypy-1.8/site-packages/ctypes_configure/cbuild.py", line 442, in _build
extra_preargs=self.compile_extra)
File "/usr/lib64/pypy-1.8/lib-python/modified-2.7/distutils/ccompiler.py", line 624, in compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File "/usr/lib64/pypy-1.8/lib-python/modified-2.7/distutils/unixccompiler.py", line 195, in _compile
raise CompileError, msg
CompileError: command 'cc' failed with exit status 1