[zeromq-dev] undefined reference to `zmq_z85_encode'
Pieter Hintjens
ph at imatix.com
Thu Jan 22 00:29:22 CET 2015
It's possible you're linking against an older version of libzmq
already installed on your system, perhaps?
On Wed, Jan 21, 2015 at 10:44 PM, Check Peck <comptechgeeky at gmail.com> wrote:
> I am trying to integrate ZeroMQ security (The Strawhouse Pattern) in our
> application. I installed libsodium and czmq like this -
>
> git clone git://github.com/jedisct1/libsodium.git
> cd libsodium
> ./autogen.sh
> ./configure && make check
> sudo make install
> sudo ldconfig
> cd ..
>
> git clone git://github.com/zeromq/czmq.git
> cd czmq
> ./autogen.sh
> ./configure && make check
> sudo make install
> sudo ldconfig
> cd ..
>
> And I installed ZeroMQ like this -
>
> wget http://download.zeromq.org/zeromq-4.0.5.tar.gz
> tar -xvzf zeromq-4.0.5.tar.gz
> cd zeromq-4.0.5/
> ./autogen.sh
> ./configure
> make -j4
> sudo make install
>
> After that I added the code for Strawhouse patter in our application and
> when I was compiling our application, I got the below error -
>
> /usr/local/lib/libczmq.a(src_libczmq_la-zauth_v2.o): In function
> `zap_request_new':
> /home/david/czmq/src/zauth_v2.c:269: undefined reference to
> `zmq_z85_encode'
> /usr/local/lib/libczmq.a(src_libczmq_la-zcert.o): In function
> `zcert_new_from':
> /home/david/czmq/src/zcert.c:93: undefined reference to `zmq_z85_encode'
> /home/david/czmq/src/zcert.c:94: undefined reference to `zmq_z85_encode'
> /usr/local/lib/libczmq.a(src_libczmq_la-zcert.o): In function
> `zcert_new':
> /home/david/czmq/src/zcert.c:64: undefined reference to
> `zmq_curve_keypair'
> /home/david/czmq/src/zcert.c:67: undefined reference to `zmq_z85_decode'
> /home/david/czmq/src/zcert.c:68: undefined reference to `zmq_z85_decode'
> /usr/local/lib/libczmq.a(src_libczmq_la-zcert.o): In function
> `zcert_load':
> /home/david/czmq/src/zcert.c:231: undefined reference to
> `zmq_z85_decode'
> /home/david/czmq/src/zcert.c:233: undefined reference to
> `zmq_z85_decode'
> collect2: error: ld returned 1 exit status
> make[2]: *** [data_server/data_server] Error 1
> make[1]: *** [data_server/CMakeFiles/data_server.dir/all] Error 2
> make[1]: *** Waiting for unfinished jobs....
>
> What could be wrong? Any suggestions will be of great help. I was following
> this wiki - http://hintjens.com/blog:49
>
>
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
More information about the zeromq-dev
mailing list