[zeromq-dev] problems building on GNU+Linux
Marco Maggi
marco.maggi-ipsu at poste.it
Thu Nov 4 21:37:04 CET 2010
Ciao,
I am new to 0MQ; I am trying to build it with the final
purpose of writing a language binding; my platform is a
i686-pc-linux-gnu, Slackware Linux, GCC 4.5.0. I want to
signal a couple of problems.
The README file coming with "zeromq-2.0.10.tar.gz" refers
to an INSTALL file which is not in the distribution, so I am
trying to make the instructions at [1] be enough for me.
While running "configure" the UUID library is recognised
but while compiling I get the error:
libtool: link: g++ -g -O2 -o .libs/local_lat local_lat.o ../src/.libs/libzmq.so /usr/local/lib/libuuid.so -lpthread
../src/.libs/libzmq.so: undefined reference to `uuid_generate'
../src/.libs/libzmq.so: undefined reference to `uuid_unparse'
collect2: ld returned 1 exit status
I have installed OSSP UUID[2] from source under
"/usr/local" and it comes with both "uuid.h" and
"libuuid.so"; I gather that this is not the library 0MQ
wants, but nevertheless the Autoconf test picks it up: it is
not specific enough. I see in "configure.in" that the test
looks for "main" while the test for Cygwin looks for
"uuid_generate": looking for this function on Linux, too,
should work.
I also have a "uuid.h" and "libuuid.so" under "/usr"; the
header file attributes the copyright to Theodore Ts'o, and
on Slackware it comes in the util-linux-ng package[3]; it
looks like this is the needed library, yes? To make 0MQ
find it I have to compile with:
$ ./configure \
CPPFLAGS=-I/usr/include \
LDFLAGS=-L/usr/lib
maybe this conflict can be documented somewhere?
With this it builds and "ldd" shows that the installed
libzmq library will find the correct libuuid (I will compile
some test program tomorrow, when the sun is up).
TIA
[1] <http://www.zeromq.org/intro:get-the-software>
[2] <http://www.ossp.org/pkg/lib/uuid/>
[3] <http://userweb.kernel.org/~kzak/util-linux-ng/>
--
Marco Maggi
More information about the zeromq-dev
mailing list