When I try and compile 3.1.2 I run into a problem linking with the expat
library. Ganglia's libtool want to use the version in /usr/lib although
I believe it should be using the version in /usr/lib64:
==============================================================================
/bin/sh ../libtool --tag=CC --mode=link gcc -I.. -I. -I../include/
-D_LARGEFILE64_SOURCE -g -O2 -I/usr/local/confuse/include
-fno-strict-aliasing -Wall -D_REENTRANT -L/usr/local/confuse/lib -o
libganglia.la -rpath /usr/local/ganglia/lib64 -version-info 0:0:0 -release
3.1.2 -export-dynamic 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 -lexpat -lconfuse -lapr-1 -lpthread
gcc -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/local/confuse/lib -Wl,--rpath -Wl,/usr/local/confuse/lib
-L/usr/local/confuse/lib -ldl -lnsl /usr/lib/libexpat.so
/usr/local/confuse/lib/libconfuse.so /usr/lib/libapr-1.so -lpthread
-Wl,-soname -Wl,libganglia-3.1.2.so.0 -o .libs/libganglia-3.1.2.so.0.0.0
/usr/lib/libexpat.so: could not read symbols: File in wrong format
==============================================================================
If I modify the command by hand and put in /usr/lib64, it compiles fine.
If I try and compile 3.1.1 on the same computer, using the same configure
arguments, it builds fine:
==============================================================================
/bin/sh ../libtool --mode=link --tag=CC gcc -I.. -I. -I../include/
-D_LARGEFILE64_SOURCE -g -O2 -I/usr/local/confuse/include
-fno-strict-aliasing -Wall -D_REENTRANT -L/usr/local/confuse/lib -o
libganglia.la -rpath /usr/local/ganglia/lib64 -version-info 0:0:0 -release
3.1.1 -export-dynamic 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 -lexpat -lconfuse -lapr-1 -lpthread
gcc -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/local/confuse/lib -Wl,--rpath -Wl,/usr/local/confuse/lib
-L/usr/local/confuse/lib -ldl -lnsl /usr/lib64/libexpat.so
/usr/local/confuse/lib/libconfuse.so /usr/lib64/libapr-1.so -lpthread
-Wl,-soname -Wl,libganglia-3.1.1.so.0 -o .libs/libganglia-3.1.1.so.0.0.0
==============================================================================
Any idea how this issue can be fixed in the 3.1.2 version?
jrd
PS. A log of the configure script for 3.1.2 is attached.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-unknown-linux
checking host system type... x86_64-unknown-linux
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared
libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared
libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared
libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
Configuring libmetrics ...
configure: creating cache /root/build/ganglia/ganglia-3.1.2/config.cache
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-unknown-linux
checking host system type... x86_64-unknown-linux
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared
libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared
libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared
libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for kinfo_get_cpus in -lkinfo... no
checking for kstat_open in -lkstat... no
checking for kvm_open in -lkvm... no
checking for odm_initialize in -lodm... no
checking for _system_configuration in -lcfg... no
checking for perfstat_cpu_total in -lperfstat... no
checking for main in -lsocket... no
checking for main in -lresolv... yes
checking for main in -lnsl... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for inttypes.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking nlist.h usability... no
checking nlist.h presence... no
checking for nlist.h... no
checking paths.h usability... yes
checking paths.h presence... yes
checking for paths.h... yes
checking for stdlib.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/filsys.h usability... no
checking sys/filsys.h presence... no
checking for sys/filsys.h... no
checking sys/fs/s5param.h usability... no
checking sys/fs/s5param.h presence... no
checking for sys/fs/s5param.h... no
checking sys/mount.h usability... yes
checking sys/mount.h presence... yes
checking for sys/mount.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/statfs.h usability... yes
checking sys/statfs.h presence... yes
checking for sys/statfs.h... yes
checking sys/statvfs.h usability... yes
checking sys/statvfs.h presence... yes
checking for sys/statvfs.h... yes
checking sys/systeminfo.h usability... no
checking sys/systeminfo.h presence... no
checking for sys/systeminfo.h... no
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/vfs.h usability... yes
checking sys/vfs.h presence... yes
checking for sys/vfs.h... yes
checking for unistd.h... (cached) yes
checking utmp.h usability... yes
checking utmp.h presence... yes
checking for utmp.h... yes
checking sys/sockio.h usability... no
checking sys/sockio.h presence... no
checking for sys/sockio.h... no
checking rpc/rpc.h usability... yes
checking rpc/rpc.h presence... yes
checking for rpc/rpc.h... yes
checking if sockaddr{} has sa_len member... no
checking for an ANSI C-conforming const... yes
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking if uchar_t defined... no
checking if int8_t defined... yes
checking if uint8_t defined... yes
checking if int16_t defined... yes
checking if uint16_t defined... yes
checking if int32_t defined... yes
checking if uint32_t defined... yes
checking if size_t defined... (cached) yes
checking if ssize_t defined... yes
checking if socklen_t defined... yes
checking whether closedir returns void... no
checking whether gcc needs -traditional... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking whether lstat dereferences a symlink specified with a trailing
slash... yes
checking whether stat accepts an empty string... no
checking for working strtod... yes
checking for getmntinfo... no
checking for getpagesize... yes
checking for gettimeofday... yes
checking for memset... yes
checking for pstat_getdynamic... no
checking for strchr... yes
checking for strdup... yes
checking for strndup... yes
checking for strpbrk... yes
checking for strstr... yes
checking for strtol... yes
checking for sysinfo... yes
checking for uname... yes
checking for vsnprintf... yes
checking for strlcat... no
updating cache /root/build/ganglia/ganglia-3.1.2/config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating tests/Makefile
config.status: creating aix/Makefile
config.status: creating cygwin/Makefile
config.status: creating darwin/Makefile
config.status: creating dragonfly/Makefile
config.status: creating freebsd/Makefile
config.status: creating hpux/Makefile
config.status: creating irix/Makefile
config.status: creating linux/Makefile
config.status: creating netbsd/Makefile
config.status: creating openbsd/Makefile
config.status: creating osf/Makefile
config.status: creating solaris/Makefile
config.status: creating config.h
config.status: executing depfiles commands
checking for pthread_create in -lpthread... yes
checking for pthread_create in -lpthreads... no
Checking for python
checking for python... /usr/bin/python
checking Python version... 2.4
checking Python support... yes
Checking for apr
checking for apr-1-config... /usr/bin/apr-1-config
checking for apr_socket_send in -lapr-1... yes
The ganglia utilities use the Apache Portable Runtime functions
(http://www.apache.org/)
Found a suitable libapr1 library
Checking for confuse
Added -I/usr/local/confuse/include to CFLAGS
Added -L/usr/local/confuse/lib to LDFLAGS
checking for cfg_parse in -lconfuse... yes
Found a suitable Confuse library
Checking for expat
checking for XML_ParserCreate in -lexpat... yes
Found a suitable Expat library
checking for xdr_string in -lrpc... no
checking for socket in -lsocket... no
checking for inet_addr in -lnsl... yes
checking for gethostbyaddr_r in -lnsl... yes
checking for inet_aton... yes
checking for kstat_open in -lkstat... no
checking for kvm_open in -lkvm... no
checking for odm_initialize in -lodm... no
checking for _system_configuration in -lcfg... no
checking for perfstat_cpu_total in -lperfstat... no
checking for dlopen in -ldl... yes
checking for ANSI C header files... (cached) yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking net/if.h usability... yes
checking net/if.h presence... yes
checking for net/if.h... yes
checking netinet/tcp.h usability... yes
checking netinet/tcp.h presence... yes
checking for netinet/tcp.h... yes
checking for unistd.h... (cached) yes
checking stropts.h usability... yes
checking stropts.h presence... yes
checking for stropts.h... yes
checking sys/sockio.h usability... no
checking sys/sockio.h presence... no
checking for sys/sockio.h... no
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/filio.h usability... no
checking sys/filio.h presence... no
checking for sys/filio.h... no
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking net/if_dl.h usability... no
checking net/if_dl.h presence... no
checking for net/if_dl.h... no
checking net/raw.h usability... no
checking net/raw.h presence... no
checking for net/raw.h... no
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking for inttypes.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/mount.h usability... yes
checking sys/mount.h presence... yes
checking for sys/mount.h... yes
checking sys/vfs.h usability... yes
checking sys/vfs.h presence... yes
checking for sys/vfs.h... yes
checking sys/statfs.h usability... yes
checking sys/statfs.h presence... yes
checking for sys/statfs.h... yes
checking sys/statvfs.h usability... yes
checking sys/statvfs.h presence... yes
checking for sys/statvfs.h... yes
checking whether time.h and sys/time.h may both be included... yes
checking if uchar_t defined... no
checking if int8_t defined... yes
checking if uint8_t defined... yes
checking if int16_t defined... yes
checking if uint16_t defined... yes
checking if int32_t defined... yes
checking if uint32_t defined... yes
checking if size_t defined... yes
checking if ssize_t defined... yes
checking if socklen_t defined... yes
checking if time_t defined... yes
checking whether byte ordering is bigendian... no
checking for snprintf... yes
checking for vsnprintf... yes
checking for strlcat... no
checking for getopt_long... yes
checking for inet_ntop... yes
checking for strdup... yes
checking whether disabling type punning in gcc is possible... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating ganglia-config
config.status: creating tests/Makefile
config.status: creating ganglia.spec
config.status: creating gmetad/Makefile
config.status: creating lib/default_conf.h
config.status: creating lib/Makefile
config.status: creating gmond/Makefile
config.status: creating gstat/Makefile
config.status: creating gmond/modules/Makefile
config.status: creating gmond/modules/conf.d/modpython.conf
config.status: creating gmond/modules/example/Makefile
config.status: creating gmond/modules/cpu/Makefile
config.status: creating gmond/modules/disk/Makefile
config.status: creating gmond/modules/memory/Makefile
config.status: creating gmond/modules/network/Makefile
config.status: creating gmond/modules/python/Makefile
config.status: creating gmond/modules/python/README
config.status: creating gmond/modules/status/Makefile
config.status: creating gmond/modules/system/Makefile
config.status: creating gmond/python_modules/Makefile
config.status: creating gmond/python_modules/disk/Makefile
config.status: creating gmond/python_modules/example/Makefile
config.status: creating gmond/python_modules/network/Makefile
config.status: creating gmetad/gmetad.conf
config.status: creating gmetad/conf.c
config.status: creating gmetric/Makefile
config.status: creating include/Makefile
config.status: creating web/conf.php
config.status: creating web/version.php
config.status: creating config.h
config.status: executing depfiles commands
Welcome to..
______ ___
/ ____/___ _____ ____ _/ (_)___ _
/ / __/ __ `/ __ \/ __ `/ / / __ `/
/ /_/ / /_/ / / / / /_/ / / / /_/ /
\____/\__,_/_/ /_/\__, /_/_/\__,_/
/____/
Copyright (c) 2005 University of California, Berkeley
Version: 3.1.2 (Langley)
Library: Release 3.1.2 0:0:0
Type "make" to compile.
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general