[rrd-users] error compiling rrdtool 1.2.27 under RHEL3

xuejun wang tigerwang1974 at gmail.com
Mon Feb 18 10:10:38 CET 2008


maybe it's due to my a little obsolete redhat box, there happened too many
compiling errors when installing Cacti system under RHEL 3. I've overcome
some, but this one I really need help. below is the detail error messages
when I tried to compile rrdtool-1.2.27 source code onto my redhat system;

gcc -O3 -fno-strict-aliasing -Wall -std=gnu99 -pedantic -Wshadow
-Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations
-Wnested-externs -Winline -W -fPIC -DPIC -o .libs/rrdtool  -L/usr/local/lib
./.libs/librrd.so -lz -lm -Wl,--rpath -Wl,/usr/local/rrdtool-1.2.27/lib
./.libs/librrd.so: undefined reference to
`png_destroy_write_struct at PNG12_0'<%60png_destroy_write_struct at PNG12_0'>
./.libs/librrd.so: undefined reference to
`png_write_end at PNG12_0'<%60png_write_end at PNG12_0'>
./.libs/librrd.so: undefined reference to
`png_set_compression_level at PNG12_0' <%60png_set_compression_level at PNG12_0'>
./.libs/librrd.so: undefined reference to
`png_destroy_read_struct at PNG12_0'<%60png_destroy_read_struct at PNG12_0'>
./.libs/librrd.so: undefined reference to
`png_create_read_struct at PNG12_0'<%60png_create_read_struct at PNG12_0'>
./.libs/librrd.so: undefined reference to
`png_read_info at PNG12_0'<%60png_read_info at PNG12_0'>
./.libs/librrd.so: undefined reference to
`png_create_write_struct at PNG12_0'<%60png_create_write_struct at PNG12_0'>
./.libs/librrd.so: undefined reference to
`png_set_IHDR at PNG12_0'<%60png_set_IHDR at PNG12_0'>
./.libs/librrd.so: undefined reference to
`png_set_text at PNG12_0'<%60png_set_text at PNG12_0'>
./.libs/librrd.so: undefined reference to
`png_set_filter at PNG12_0'<%60png_set_filter at PNG12_0'>
./.libs/librrd.so: undefined reference to
`png_create_info_struct at PNG12_0'<%60png_create_info_struct at PNG12_0'>
./.libs/librrd.so: undefined reference to
`png_get_image_height at PNG12_0'<%60png_get_image_height at PNG12_0'>
./.libs/librrd.so: undefined reference to
`png_init_io at PNG12_0'<%60png_init_io at PNG12_0'>
./.libs/librrd.so: undefined reference to
`png_write_info at PNG12_0'<%60png_write_info at PNG12_0'>
./.libs/librrd.so: undefined reference to
`png_get_image_width at PNG12_0'<%60png_get_image_width at PNG12_0'>
./.libs/librrd.so: undefined reference to
`png_malloc at PNG12_0'<%60png_malloc at PNG12_0'>
./.libs/librrd.so: undefined reference to
`png_write_image at PNG12_0'<%60png_write_image at PNG12_0'>
./.libs/librrd.so: undefined reference to
`png_free at PNG12_0'<%60png_free at PNG12_0'>
collect2: ld returned 1 exit status
make[2]: *** [rrdtool] Error 1
make[2]: Leaving directory `/home/tiger/rrdtool-1.2.27/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/tiger/rrdtool-1.2.27'
make: *** [all] Error 2

>From above messages, it seemed libpng was not installed properly. But I have
tried to install libpng-1.2.24 & 1.2.18 without any error.

any idea about that? thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20080218/ffc3f3da/attachment.html 


More information about the rrd-users mailing list