xrl / libm2handler

Home of libm2handler. A mongrel2 handler library for C.
http://mongrel2.org/doc/tip/docs/manual/book.wiki
BSD 2-Clause "Simplified" License
12 stars 1 forks source link

zeromq version #2

Open RoJo73 opened 7 years ago

RoJo73 commented 7 years ago

Does this depend on a certain version of zeromq? I get the following errors:

eps/handler.Tpo -c src/handler.c -fPIC -DPIC -o .libs/handler.o src/handler.c: In function 'mongrel2_recv': src/handler.c:275:5: error: too few arguments to function 'zmq_recv' zmq_recv(pull_socket->zmq_socket,msg,0); ^ In file included from src/handler.c:14:0: /usr/local/include/zmq.h:355:16: note: declared here ZMQ_EXPORT int zmq_recv (void _s, void buf, size_t len, int flags); ^ src/handler.c: In function 'mongrel2_send': src/handler.c:308:5: error: too few arguments to function 'zmq_send' zmq_send(pub_socket->zmq_socket,msg,0); ^ In file included from src/handler.c:14:0: /usr/local/include/zmq.h:353:16: note: declared here ZMQ_EXPORT int zmq_send (void s, const void buf, size_t len, int flags); ^ Makefile:753: recipe for target 'handler.lo' failed make: _* [handler.lo] Error 1

xrl commented 7 years ago

Wow, you're trying to use an old project on an old HTTP server! Is Mongrel2 still maintained?

In any case, yes, I think it requires an older zeromq library to work. Version 2? Now there's 3 or 4 out. May not be too hard to modify to work with newer libraries.

Let me know if you get it working, happy to merge the work in.

RoJo73 commented 7 years ago

mongrel2 v1.11.0 as of Thu Dec 31 2015; i guess it's a bit dated