[zeromq-dev] Error: cannot link with -lzmq

Sharon Ben-Asher Sharon.Ben-Asher at avg.com
Thu Jul 5 12:28:32 CEST 2012


Hello again,

After successful build of the C lib, I have a problem with building zmq.jar:

configure:15622: checking for zmq_init in -lzmq
configure:15647: g++ -o conftest -g -O2 -D_REENTRANT -D_THREAD_SAFE -fPIC -I/home/sharon/zeromq-android/include  -L/home/sharon/zeromq-android/lib conftest.cpp -lzmq   >&5
/usr/bin/ld: skipping incompatible /home/sharon/zeromq-android/lib/libzmq.so when searching for -lzmq
/usr/bin/ld: skipping incompatible /home/sharon/zeromq-android/lib/libzmq.a when searching for -lzmq
/usr/bin/ld: cannot find -lzmq
collect2: ld returned 1 exit status

Thanks

Sharon


From: Sharon Ben-Asher
Sent: Thursday, July 05, 2012 12:56 PM
To: 'zeromq-dev at lists.zeromq.org'
Subject: RE: Error: comparison between signed and unsigned integer expressions

I solved the problem by converting the sizeof to int like this
if (sa->sa_family == AF_INET && sa_len >= (int)sizeof (address.ipv4)) {
I guess it's a platform specific issue? Anyway, it is needed to compile the lib for ARM.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120705/d1bd988f/attachment.htm>


More information about the zeromq-dev mailing list