Neopallium / lua-zmq

Lua zeromq2 binding
http://github.com/Neopallium/lua-zmq
MIT License
151 stars 36 forks source link

zeromq 3.x #35

Closed emberian closed 11 years ago

emberian commented 11 years ago

Is there any particular reason this hasn't been ported forward yet? I'm more than happy to port it if it just hasn't be done yet.

Neopallium commented 11 years ago

lua-zmq should already compile against zeromq 3.x. What problems have you run into? Or is there some missing function/option?

Neopallium commented 11 years ago

lua-zmq works with zeromq 3.2.2. I have updated the README file to list the supported versions. There might be some socket options missing from the 3.x support. Let me know if you run across any missing socket options.

emberian commented 11 years ago

Well how about that. It compiles fine when i clone it, but from luarocks:

gcc -O2 -fPIC -I/home/cmr/.local/include -c src/pre_generated-zmq.nobj.c -o src/pre_generated-zmq.nobj.o -I/usr/include
src/pre_generated-zmq.nobj.c: In function ‘simple_zmq_send’:
src/pre_generated-zmq.nobj.c:1966:3: error: too few arguments to function ‘zmq_send’
In file included from src/pre_generated-zmq.nobj.c:14:0:
/usr/include/zmq.h:349:16: note: declared here
src/pre_generated-zmq.nobj.c: In function ‘ZMQ_Socket__send_msg__meth’:
src/pre_generated-zmq.nobj.c:2639:3: error: too few arguments to function ‘zmq_send’
In file included from src/pre_generated-zmq.nobj.c:14:0:
/usr/include/zmq.h:349:16: note: declared here
src/pre_generated-zmq.nobj.c: In function ‘ZMQ_Socket__recv_msg__meth’:
src/pre_generated-zmq.nobj.c:2677:3: error: too few arguments to function ‘zmq_recv’
In file included from src/pre_generated-zmq.nobj.c:14:0:
/usr/include/zmq.h:350:16: note: declared here
src/pre_generated-zmq.nobj.c: In function ‘ZMQ_Socket__recv__meth’:
src/pre_generated-zmq.nobj.c:2701:3: error: too few arguments to function ‘zmq_recv’
In file included from src/pre_generated-zmq.nobj.c:14:0:
/usr/include/zmq.h:350:16: note: declared here

Error: Build error: Failed compiling object src/pre_generated-zmq.nobj.o

Those build errors were fixed if I installed zmq2 rather than zmq3

Neopallium commented 11 years ago

You will need the latest git version for 3.x support. I haven't released a new LuaRocks spec version that supports 3.x.

Use the fallowing commands to install the latest GIT version:

luarocks install https://raw.github.com/Neopallium/lua-zmq/master/rockspecs/lua-zmq-scm-1.rockspec

For threads: luarocks install https://raw.github.com/Neopallium/lua-llthreads/master/rockspecs/lua-llthreads-scm-0.rockspec luarocks install https://raw.github.com/Neopallium/lua-zmq/master/rockspecs/lua-zmq-threads-scm-0.rockspec

Neopallium commented 11 years ago

The support for 3.x hasn't really gotten enough testing/feedback for me to want to push out a new LuaRocks release. Let me know how it works out for you.