Hi,

i am trying to compile ganglia on one of my Centos 5.4 boxes (64 bit).
Configure runs through without complaints, but make fails miserably:

...
mv -f .deps/libgmond.Tpo .deps/libgmond.Plo
/bin/sh ../libtool --tag=CC   --mode=link gcc -std=gnu99 -I.. -I.
-I../include/ -D_LARGEFILE64_SOURCE -DSYSCONFDIR='"/etc/ganglia"' -g -O2
-fno-strict-aliasing -Wall -D_REENTRANT -fPIC -version-info 0:0:0 -release
3.1.7 -export-dynamic   -o libganglia.la -rpath /usr/lib64
gm_protocol_xdr.lo become_a_nobody.lo debug_msg.lo daemon_init.lo file.lo
dotconf.lo error_msg.lo ganglia.lo hash.lo inetaddr.lo llist.lo
my_inet_ntop.lo rdwr.lo readdir.lo tcp.lo scoreboard.lo apr_net.lo
libgmond.lo    -ldl -lnsl -lnsl -lpcre -lexpat -lconfuse -lapr-1 -lpthread
gcc -std=gnu99 -shared  .libs/gm_protocol_xdr.o .libs/become_a_nobody.o
.libs/debug_msg.o .libs/daemon_init.o .libs/file.o .libs/dotconf.o
.libs/error_msg.o .libs/ganglia.o .libs/hash.o .libs/inetaddr.o
.libs/llist.o .libs/my_inet_ntop.o .libs/rdwr.o .libs/readdir.o .libs/tcp.o
.libs/scoreboard.o .libs/apr_net.o .libs/libgmond.o  -Wl,--rpath
-Wl,/usr/lib64 -Wl,--rpath -Wl,/usr/lib64 -ldl -lnsl -lpcre
/usr/lib64/libexpat.so /usr/lib64/libconfuse.a /usr/lib64/libapr-1.so
-lpthread  -Wl,-soname -Wl,libganglia-3.1.7.so.0 -o
.libs/libganglia-3.1.7.so.0.0.0
/usr/bin/ld: /usr/lib64/libconfuse.a(confuse.o): relocation R_X86_64_32
against `a local symbol' can not be used when making a shared object;
recompile with -fPIC
/usr/lib64/libconfuse.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libganglia.la] Error 1
make[2]: Leaving directory `/root/compile/ganglia-3.1.7/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/compile/ganglia-3.1.7'
make: *** [all] Error 2


I put -fPIC into the CFLAGS of the top Makefile and lib/Makefile (as the
recommendation of the error output above suggests), but the problem remains.
Some more data about my environment:

[r...@ganglia01 ganglia-3.1.7]# uname -a
Linux ganglia01 2.6.18-164.6.1.el5 #1 SMP Tue Nov 3 16:12:36 EST 2009 x86_64
x86_64 x86_64 GNU/Linux

[r...@ganglia01 ganglia-3.1.7]# cat /etc/redhat-release
CentOS release 5.4 (Final)


Is someone here who could give me a pointer how to get this running?

Cheers,
Raimund
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general

Reply via email to