[rrd-users] rrdtool compilation issue on x86_64
dag at wieers.com
Sun Nov 27 18:13:39 MET 2005
Andrey Brindeev reported rrdtool problems with my x86_64 packages. The
behaviour was that when using rrdtool, libpng symbols were inside the
librrd library, but no reference to the libpng shared library was present.
# ldd /usr/lib64/librrd.so.0
libc.so.6 => /lib64/tls/libc.so.6 (0x0000002a956e2000)
/lib64/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 (0x000000552aaaa000)
The buildlog also had comments like:
*** Warning: linker path does not have real file for library -lpng.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because I did check the linker path looking for a file starting
*** with libpng but no candidates were found. (...for file magic test)
After looking into it, I noticed this difference between i386 and x86_64:
-checking how to recognise dependent libraries... pass_all
+checking how to recognise dependent libraries... file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )
If I then patched configure to use 'pass_all', all was fine.
The following patch fixed it for me in configure, but I wonder if this is
related to an older or incorrect autoconf ?
--- configure.orig 2005-11-27 18:00:00.117013352 +0100
+++ configure 2005-11-27 18:00:33.385955704 +0100
@@ -3592,7 +3592,7 @@
# This must be Linux ELF.
case $host_cpu in
- alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
+ alpha* | hppa* | i*86 | x86_64 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
# glibc up to 2.1.1 does not perform some relocations on ARM
Hopes this helpes other people and we can find a proper solution for the
Thanks and kind regards,
-- dag wieers, dag at wieers.com, http://dag.wieers.com/ --
[all I want is a warm bed and a kind word and unlimited power]
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
More information about the rrd-users