[zeromq-dev] Compile Error of v2.0.6beta on RHEL5.4

Yu Bady bady.yu at gmail.com
Thu May 13 12:32:03 CEST 2010


I downloaded v2.0.6 beta src codes and build it on my Redhat Enterprise 5.4
system.

I configured it by "./configure --with-pgm --with-pic" and then make it.
 But it seems error happen at the last step.

I noticed there was an similar thread at:
http://lists.zeromq.org/pipermail/zeromq-dev/2010-January/001682.html.  But
we did not install intel icc/icpc.

The error output is:

libtool: link: g++ -shared -nostdlib
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/crti.o
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/crtbeginS.o
 .libs/libzmq_la-app_thread.o .libs/libzmq_la-command.o
.libs/libzmq_la-devpoll.o .libs/libzmq_la-dispatcher.o
.libs/libzmq_la-downstream.o .libs/libzmq_la-epoll.o .libs/libzmq_la-err.o
.libs/libzmq_la-fd_signaler.o .libs/libzmq_la-fq.o
.libs/libzmq_la-io_object.o .libs/libzmq_la-io_thread.o .libs/libzmq_la-ip.o
.libs/libzmq_la-kqueue.o .libs/libzmq_la-lb.o .libs/libzmq_la-object.o
.libs/libzmq_la-options.o .libs/libzmq_la-owned.o
.libs/libzmq_la-pgm_receiver.o .libs/libzmq_la-pgm_sender.o
.libs/libzmq_la-pgm_socket.o .libs/libzmq_la-p2p.o
.libs/libzmq_la-prefix_tree.o .libs/libzmq_la-pipe.o .libs/libzmq_la-poll.o
.libs/libzmq_la-pub.o .libs/libzmq_la-rep.o .libs/libzmq_la-req.o
.libs/libzmq_la-select.o .libs/libzmq_la-session.o
.libs/libzmq_la-socket_base.o .libs/libzmq_la-sub.o
.libs/libzmq_la-tcp_connecter.o .libs/libzmq_la-tcp_listener.o
.libs/libzmq_la-tcp_socket.o .libs/libzmq_la-thread.o
.libs/libzmq_la-upstream.o .libs/libzmq_la-uuid.o .libs/libzmq_la-xrep.o
.libs/libzmq_la-xreq.o .libs/libzmq_la-ypollset.o .libs/libzmq_la-zmq.o
.libs/libzmq_la-zmq_connecter.o .libs/libzmq_la-zmq_decoder.o
.libs/libzmq_la-zmq_encoder.o .libs/libzmq_la-zmq_engine.o
.libs/libzmq_la-zmq_init.o .libs/libzmq_la-zmq_listener.o
.libs/libzmq_la-packet.o .libs/libzmq_la-time.o .libs/libzmq_la-if.o
.libs/libzmq_la-getifaddrs.o .libs/libzmq_la-getnodeaddr.o
.libs/libzmq_la-indextoaddr.o .libs/libzmq_la-indextoname.o
.libs/libzmq_la-nametoindex.o .libs/libzmq_la-inet_network.o
.libs/libzmq_la-md5.o .libs/libzmq_la-gsi.o .libs/libzmq_la-tsi.o
.libs/libzmq_la-signal.o .libs/libzmq_la-txwi.o .libs/libzmq_la-rxwi.o
.libs/libzmq_la-transport.o .libs/libzmq_la-source.o
.libs/libzmq_la-receiver.o .libs/libzmq_la-recv.o .libs/libzmq_la-pgm.o
.libs/libzmq_la-timer.o .libs/libzmq_la-net.o .libs/libzmq_la-rate_control.o
.libs/libzmq_la-async.o .libs/libzmq_la-checksum.o
.libs/libzmq_la-reed_solomon.o .libs/libzmq_la-galois_tables.o
.libs/libzmq_la-wsastrerror.o .libs/libzmq_la-glib-compat.o
.libs/libzmq_la-backtrace.o .libs/libzmq_la-log.o .libs/libzmq_la-sockaddr.o
.libs/libzmq_la-version.o   -L/lib64 -lgthread-2.0 -lglib-2.0 -luuid
-lpthread -L/usr/lib/gcc/x86_64-redhat-linux/4.1.2
-L/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64 -L/lib/../lib64
-L/usr/lib/../lib64 -lstdc++ -lm -lc -lgcc_s
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/crtendS.o
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/crtn.o  -pthread
-pthread   -pthread -Wl,-soname -Wl,libzmq.so.0 -o .libs/libzmq.so.0.0.0

/usr/bin/ld: .libs/libzmq_la-txwi.o: relocation R_X86_64_PC32 against
`pgm_rs_create' can not be used when making a shared object; recompile with
-fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libzmq.la] Error 1
make[2]: Leaving directory `/build/zeromq-2.0.6/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/build/zeromq-2.0.6/src'


Building command line of .libs/libzmq_la-txwi.o is:
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-D_GNU_SOURCE -D_REENTRANT -D_THREAD_SAFE
 -I../foreign/openpgm/libpgm-2.0.24/openpgm/pgm/include/
 -Wno-variadic-macros -Wno-long-long  -pthread -I/usr/include/glib-2.0
-I/usr/lib64/glib-2.0/include -pipe -Wall -Wextra -Wfloat-equal -Wshadow
-Wunsafe-loop-optimizations -Wpointer-arith -Wbad-function-cast -Wcast-qual
-Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes
-Wold-style-definition -Wmissing-prototypes -Wmissing-declarations
-Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls
-Wnested-externs -Winline -pedantic -std=gnu99 --param
max-inline-insns-single=600 -D_REENTRANT -D_GNU_SOURCE -D__need_IOV_MAX
-DCONFIG_HAVE_PSELECT -DCONFIG_HAVE_POLL -DCONFIG_HAVE_PPOLL
-DCONFIG_HAVE_EPOLL -DCONFIG_HAVE_CLOCK_GETTIME
-DCONFIG_HAVE_CLOCK_NANOSLEEP -DCONFIG_HAVE_NANOSLEEP -DCONFIG_HAVE_USLEEP
-DCONFIG_HAVE_RTC -DCONFIG_HAVE_TSC -DCONFIG_HAVE_IFR_NETMASK
-DCONFIG_HAVE_GETIFADDRS -DCONFIG_HAVE_GETHOSTBYNAME2
-DCONFIG_HAVE_GETPROTOBYNAME_R -DCONFIG_BIND_INADDR_ANY
-DCONFIG_GALOIS_MUL_LUT -DCONFIG_HAVE_MCAST_JOIN -DCONFIG_HAVE_IP_MREQN
-DCONFIG_HAVE_SPRINTF_GROUPING -DCONFIG_HAVE_HPET
-DPGM_GNUC_INTERNAL=G_GNUC_INTERNAL -DGETTEXT_PACKAGE='"pgm"'
-DG_LOG_DOMAIN='"Pgm"' -g -O2 -MT libzmq_la-txwi.lo -MD -MP -MF
.deps/libzmq_la-txwi.Tpo -c -o libzmq_la-txwi.lo `test -f
'../foreign/openpgm/libpgm-2.0.24/openpgm/pgm/txwi.c' || echo
'./'`../foreign/openpgm/libpgm-2.0.24/openpgm/pgm/txwi.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -D_GNU_SOURCE -D_REENTRANT
-D_THREAD_SAFE -I../foreign/openpgm/libpgm-2.0.24/openpgm/pgm/include/
-Wno-variadic-macros -Wno-long-long -pthread -I/usr/include/glib-2.0
-I/usr/lib64/glib-2.0/include -pipe -Wall -Wextra -Wfloat-equal -Wshadow
-Wunsafe-loop-optimizations -Wpointer-arith -Wbad-function-cast -Wcast-qual
-Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes
-Wold-style-definition -Wmissing-prototypes -Wmissing-declarations
-Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls
-Wnested-externs -Winline -pedantic -std=gnu99 --param
max-inline-insns-single=600 -D_REENTRANT -D_GNU_SOURCE -D__need_IOV_MAX
-DCONFIG_HAVE_PSELECT -DCONFIG_HAVE_POLL -DCONFIG_HAVE_PPOLL
-DCONFIG_HAVE_EPOLL -DCONFIG_HAVE_CLOCK_GETTIME
-DCONFIG_HAVE_CLOCK_NANOSLEEP -DCONFIG_HAVE_NANOSLEEP -DCONFIG_HAVE_USLEEP
-DCONFIG_HAVE_RTC -DCONFIG_HAVE_TSC -DCONFIG_HAVE_IFR_NETMASK
-DCONFIG_HAVE_GETIFADDRS -DCONFIG_HAVE_GETHOSTBYNAME2
-DCONFIG_HAVE_GETPROTOBYNAME_R -DCONFIG_BIND_INADDR_ANY
-DCONFIG_GALOIS_MUL_LUT -DCONFIG_HAVE_MCAST_JOIN -DCONFIG_HAVE_IP_MREQN
-DCONFIG_HAVE_SPRINTF_GROUPING -DCONFIG_HAVE_HPET
-DPGM_GNUC_INTERNAL=G_GNUC_INTERNAL -DGETTEXT_PACKAGE=\"pgm\"
-DG_LOG_DOMAIN=\"Pgm\" -g -O2 -MT libzmq_la-txwi.lo -MD -MP -MF
.deps/libzmq_la-txwi.Tpo -c
../foreign/openpgm/libpgm-2.0.24/openpgm/pgm/txwi.c  -fPIC -DPIC -o
.libs/libzmq_la-txwi.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -D_GNU_SOURCE -D_REENTRANT
-D_THREAD_SAFE -I../foreign/openpgm/libpgm-2.0.24/openpgm/pgm/include/
-Wno-variadic-macros -Wno-long-long -pthread -I/usr/include/glib-2.0
-I/usr/lib64/glib-2.0/include -pipe -Wall -Wextra -Wfloat-equal -Wshadow
-Wunsafe-loop-optimizations -Wpointer-arith -Wbad-function-cast -Wcast-qual
-Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes
-Wold-style-definition -Wmissing-prototypes -Wmissing-declarations
-Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls
-Wnested-externs -Winline -pedantic -std=gnu99 --param
max-inline-insns-single=600 -D_REENTRANT -D_GNU_SOURCE -D__need_IOV_MAX
-DCONFIG_HAVE_PSELECT -DCONFIG_HAVE_POLL -DCONFIG_HAVE_PPOLL
-DCONFIG_HAVE_EPOLL -DCONFIG_HAVE_CLOCK_GETTIME
-DCONFIG_HAVE_CLOCK_NANOSLEEP -DCONFIG_HAVE_NANOSLEEP -DCONFIG_HAVE_USLEEP
-DCONFIG_HAVE_RTC -DCONFIG_HAVE_TSC -DCONFIG_HAVE_IFR_NETMASK
-DCONFIG_HAVE_GETIFADDRS -DCONFIG_HAVE_GETHOSTBYNAME2
-DCONFIG_HAVE_GETPROTOBYNAME_R -DCONFIG_BIND_INADDR_ANY
-DCONFIG_GALOIS_MUL_LUT -DCONFIG_HAVE_MCAST_JOIN -DCONFIG_HAVE_IP_MREQN
-DCONFIG_HAVE_SPRINTF_GROUPING -DCONFIG_HAVE_HPET
-DPGM_GNUC_INTERNAL=G_GNUC_INTERNAL -DGETTEXT_PACKAGE=\"pgm\"
-DG_LOG_DOMAIN=\"Pgm\" -g -O2 -MT libzmq_la-txwi.lo -MD -MP -MF
.deps/libzmq_la-txwi.Tpo -c
../foreign/openpgm/libpgm-2.0.24/openpgm/pgm/txwi.c  -fPIC -DPIC -o
libzmq_la-txwi.o >/dev/null 2>&1
mv -f .deps/libzmq_la-txwi.Tpo .deps/libzmq_la-txwi.Plo



Any idea on this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20100513/fe023288/attachment.htm>


More information about the zeromq-dev mailing list