erlzmq
erlzmq copied to clipboard
Build error mac os 10.6.4
I can not build, not with version 2.0.8, 2.0.7, 2.0.6. Sources zeromq2 download with http://www.zeromq.org/area:download
configure: == Package: zmq-0.1 ==
configure: Host OS: darwin10.4.0 configure: Install dir: /opt/local/lib/erlang/lib/zmq-0.1
configure: C++ compiler: g++ configure: CXXFLAGS: -m32 -D_DARWIN_C_SOURCE -dynamiclib -Wl,-undefined -Wl,dynamic_lookup -g -O3 -DNDEBUG -g -O2 -Werror -I/opt/local/lib/erlang/usr/include -I/opt/local/lib/erlang/lib/erl_interface-3.7/include -I/opt/zeromq-2.0.6/include configure: Erlang compiler: /opt/local/bin/erlc configure: Erlang erts dir: /opt/local/lib/erlang/erts-5.8 configure: Erlang erts ver: 5.8 configure: erl_interface: /opt/local/lib/erlang/lib/erl_interface-3.7 configure: ZeroMQ: /opt/zeromq-2.0.6
configure: Debug/warnings: no/yes configure: Documentation: yes configure: Examples: yes
home:erlzmq apanasenko$ make make all-recursive Making all in c_src g++ -o ../priv/zmq_drv.dylib zmq_drv.cpp -Wall -m32 -D_DARWIN_C_SOURCE -dynamiclib -Wl,-undefined -Wl,dynamic_lookup -g -O3 -DNDEBUG -g -O2 -Werror -I/opt/local/lib/erlang/usr/include -I/opt/local/lib/erlang/lib/erl_interface-3.7/include -I/opt/zeromq-2.0.6/include -shared -fPIC -L/opt/zeromq-2.0.6/lib -lzmq -lpthread zmq_drv.cpp: In function ‘void zmqdrv_ready_input(erl_drv_data, erl_drv_event)’: zmq_drv.cpp:342: error: ‘ZMQ_EVENTS’ was not declared in this scope zmq_drv.cpp:342: error: ‘zmq_getsockopt’ was not declared in this scope /opt/zeromq-2.0.6/include/zmq.h: In function ‘void zmqdrv_init(zmq_drv_t_, ErlIOVec_)’: /opt/zeromq-2.0.6/include/zmq.h:140: error: too few arguments to function ‘void* zmq_init(int, int, int)’ zmq_drv.cpp:515: error: at this point in file zmq_drv.cpp: In function ‘void zmqdrv_socket(zmq_drv_t_, ErlIOVec_)’: zmq_drv.cpp:561: error: ‘ZMQ_FD’ was not declared in this scope zmq_drv.cpp:561: error: ‘zmq_getsockopt’ was not declared in this scope zmq_drv.cpp: In function ‘void zmqdrv_getsockopt(zmq_drv_t_, ErlIOVec_)’: zmq_drv.cpp:675: error: ‘ZMQ_RCVMORE’ was not declared in this scope zmq_drv.cpp:678: error: ‘zmq_getsockopt’ was not declared in this scope zmq_drv.cpp: In function ‘void zmqdrv_recv(zmq_drv_t_, ErlIOVec_)’: zmq_drv.cpp:848: error: ‘ZMQ_EVENTS’ was not declared in this scope zmq_drv.cpp:848: error: ‘zmq_getsockopt’ was not declared in this scope make[2]: *** [../priv/zmq_drv.dylib] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
Looks like you're trying to make against 2.6 branch, but 2.6 doesn't have ZMQ_FD and ZMQ_EVENTS.
2.8 branch should work ok. I don't have a mac to test this, could you post configure/make output.
I am downloading a zip (tar.gz) archives from the site, it is certainly not branch.
Make zeromq-2.0.8: http://gist.github.com/557208 Make erlzmq: http://gist.github.com/557209