jzmq
jzmq copied to clipboard
Error on make for libZMQ 4.0.0, references zmq_event_T, structure was removed April 28th
this changed happen in this commit: https://github.com/zeromq/libzmq/commit/9753de8566d335703c96160aa4e5f9c6e55208a9#diff-e81114d231ae71d13f16d1b6970abb37L353
and is in the master for libZMQ. So jzmq no longer compiles.
error:
Making all in src/main/c++
make[1]: Entering directory `/home/alex/dev/java/jzmq/src/main/c++'
make all-am
make[2]: Entering directory `/home/alex/dev/java/jzmq/src/main/c++'
/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -D_REENTRANT -D_THREAD_SAFE -I/usr/local/lib//include -I/usr/local/java/jdk1.7.0_45/include -I/usr/local/java/jdk1.7.0_45/include/linux -Wall -g -O2 -MT libjzmq_la-Event.lo -MD -MP -MF .deps/libjzmq_la-Event.Tpo -c -o libjzmq_la-Event.lo `test -f 'Event.cpp' || echo './'`Event.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -D_REENTRANT -D_THREAD_SAFE -I/usr/local/lib//include -I/usr/local/java/jdk1.7.0_45/include -I/usr/local/java/jdk1.7.0_45/include/linux -Wall -g -O2 -MT libjzmq_la-Event.lo -MD -MP -MF .deps/libjzmq_la-Event.Tpo -c Event.cpp -fPIC -DPIC -o .libs/libjzmq_la-Event.o
Event.cpp: In function '_jobject* Java_org_zeromq_ZMQ_00024Event_recv(JNIEnv*, jclass, jlong, jint)':
Event.cpp:60:5: error: 'zmq_event_t' was not declared in this scope
zmq_event_t event;
^
Event.cpp:60:17: error: expected ';' before 'event'
zmq_event_t event;
^
Event.cpp:72:13: error: 'event' was not declared in this scope
memcpy(&event.event, data, sizeof(event.event));
^
Event.cpp:148:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make[2]: *** [libjzmq_la-Event.lo] Error 1
make[2]: Leaving directory `/home/alex/dev/java/jzmq/src/main/c++'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/alex/dev/java/jzmq/src/main/c++'
make: *** [all-recursive] Error 1
well, even going back a commit I still get errors.
As libzmq doesn't have any tags to mark versions, is there a known commit that jzmq will compile against?
Good catch
found a commit that works, zeromq/libzmq@d4c5dc9
cppzmq, and consequently nzmqt are also failing on the build with this libZMQ 4 change. Hope it gets fixed