[zeromq-dev] ZeroMQ (2.1.0 & Git master) fails to build on CentOS 4

Chris Patti cpatti at gmail.com
Wed Dec 1 20:43:57 CET 2010


Folks;

I realize that I'm dealing with an edge case here, CentOS 4 is long in
the tooth to say the least, but that's the environment we're stuck
with for the moment at my work place.

I get this identical error when building from Git or tarball, I also
upgraded autoconf, automake, libtool and m4 to the latest to get the
Git autogen.sh script to actually generate a configure that would run.

Here's the error:
----
mv -f .deps/local_lat.Tpo .deps/local_lat.Po
/bin/sh ../libtool --tag=CXX   --mode=link g++  -g -O2   -o local_lat
local_lat.o ../src/libzmq.la -luuid -lrt -lpthread
libtool: link: g++ -g -O2 -o .libs/local_lat local_lat.o
../src/.libs/libzmq.so -luuid -lrt -lpthread
local_lat.o(.text+0x94): In function `main':
/home/cpatti/src/zeromq2/perf/local_lat.cpp:45: undefined reference to
`zmq_init'
local_lat.o(.text+0xad):/home/cpatti/src/zeromq2/perf/local_lat.cpp:51:
undefined reference to `zmq_socket'
local_lat.o(.text+0xc4):/home/cpatti/src/zeromq2/perf/local_lat.cpp:57:
undefined reference to `zmq_bind'
local_lat.o(.text+0xd7):/home/cpatti/src/zeromq2/perf/local_lat.cpp:63:
undefined reference to `zmq_msg_init'
local_lat.o(.text+0xf9):/home/cpatti/src/zeromq2/perf/local_lat.cpp:70:
undefined reference to `zmq_recv'
local_lat.o(.text+0x109):/home/cpatti/src/zeromq2/perf/local_lat.cpp:75:
undefined reference to `zmq_msg_size'
local_lat.o(.text+0x11f):/home/cpatti/src/zeromq2/perf/local_lat.cpp:79:
undefined reference to `zmq_send'
local_lat.o(.text+0x136):/home/cpatti/src/zeromq2/perf/local_lat.cpp:86:
undefined reference to `zmq_msg_close'
local_lat.o(.text+0x148):/home/cpatti/src/zeromq2/perf/local_lat.cpp:92:
undefined reference to `zmq_sleep'
local_lat.o(.text+0x150):/home/cpatti/src/zeromq2/perf/local_lat.cpp:94:
undefined reference to `zmq_close'
local_lat.o(.text+0x160):/home/cpatti/src/zeromq2/perf/local_lat.cpp:100:
undefined reference to `zmq_term'
local_lat.o(.text+0x176):/home/cpatti/src/zeromq2/perf/local_lat.cpp:102:
undefined reference to `zmq_strerror'
local_lat.o(.text+0x19b):/home/cpatti/src/zeromq2/perf/local_lat.cpp:72:
undefined reference to `zmq_strerror'
local_lat.o(.text+0x1c5):/home/cpatti/src/zeromq2/perf/local_lat.cpp:81:
undefined reference to `zmq_strerror'
local_lat.o(.text+0x1db):/home/cpatti/src/zeromq2/perf/local_lat.cpp:59:
undefined reference to `zmq_strerror'
local_lat.o(.text+0x1f1):/home/cpatti/src/zeromq2/perf/local_lat.cpp:88:
undefined reference to `zmq_strerror'
local_lat.o(.text+0x207):/home/cpatti/src/zeromq2/perf/local_lat.cpp:96:
more undefined references to `zmq_strerror' follow
collect2: ld returned 1 exit status
make[1]: *** [local_lat] Error 1
make[1]: Leaving directory `/home/cpatti/src/zeromq2/perf'
make: *** [all-recursive] Error 1
[14:34][cpatti at box42-182:~/src/zeromq2(master)]$

Any clues would be greatly appreciated!

Thanks,
-Chris
(I'm running the latest because I want to use the PHP bindings, the
instructions for which state you need the dev version)
-- 
Christopher Patti - Geek At Large | GTalk: cpatti at gmail.com | AIM:
chrisfeohpatti | P: (260) 54PATTI
"Technology challenges art, art inspires technology." - John Lasseter, Pixar



More information about the zeromq-dev mailing list