<div>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;</div>
<div> </div>
<div>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<br>
./.libs/librrd.so: undefined reference to <a href="mailto:%60png_destroy_write_struct@PNG12_0'">`png_destroy_write_struct@PNG12_0'</a><br>./.libs/librrd.so: undefined reference to <a href="mailto:%60png_write_end@PNG12_0'">`png_write_end@PNG12_0'</a><br>
./.libs/librrd.so: undefined reference to <a href="mailto:%60png_set_compression_level@PNG12_0'">`png_set_compression_level@PNG12_0'</a><br>./.libs/librrd.so: undefined reference to <a href="mailto:%60png_destroy_read_struct@PNG12_0'">`png_destroy_read_struct@PNG12_0'</a><br>
./.libs/librrd.so: undefined reference to <a href="mailto:%60png_create_read_struct@PNG12_0'">`png_create_read_struct@PNG12_0'</a><br>./.libs/librrd.so: undefined reference to <a href="mailto:%60png_read_info@PNG12_0'">`png_read_info@PNG12_0'</a><br>
./.libs/librrd.so: undefined reference to <a href="mailto:%60png_create_write_struct@PNG12_0'">`png_create_write_struct@PNG12_0'</a><br>./.libs/librrd.so: undefined reference to <a href="mailto:%60png_set_IHDR@PNG12_0'">`png_set_IHDR@PNG12_0'</a><br>
./.libs/librrd.so: undefined reference to <a href="mailto:%60png_set_text@PNG12_0'">`png_set_text@PNG12_0'</a><br>./.libs/librrd.so: undefined reference to <a href="mailto:%60png_set_filter@PNG12_0'">`png_set_filter@PNG12_0'</a><br>
./.libs/librrd.so: undefined reference to <a href="mailto:%60png_create_info_struct@PNG12_0'">`png_create_info_struct@PNG12_0'</a><br>./.libs/librrd.so: undefined reference to <a href="mailto:%60png_get_image_height@PNG12_0'">`png_get_image_height@PNG12_0'</a><br>
./.libs/librrd.so: undefined reference to <a href="mailto:%60png_init_io@PNG12_0'">`png_init_io@PNG12_0'</a><br>./.libs/librrd.so: undefined reference to <a href="mailto:%60png_write_info@PNG12_0'">`png_write_info@PNG12_0'</a><br>
./.libs/librrd.so: undefined reference to <a href="mailto:%60png_get_image_width@PNG12_0'">`png_get_image_width@PNG12_0'</a><br>./.libs/librrd.so: undefined reference to <a href="mailto:%60png_malloc@PNG12_0'">`png_malloc@PNG12_0'</a><br>
./.libs/librrd.so: undefined reference to <a href="mailto:%60png_write_image@PNG12_0'">`png_write_image@PNG12_0'</a><br>./.libs/librrd.so: undefined reference to <a href="mailto:%60png_free@PNG12_0'">`png_free@PNG12_0'</a><br>
collect2: ld returned 1 exit status<br>make[2]: *** [rrdtool] Error 1<br>make[2]: Leaving directory `/home/tiger/rrdtool-1.2.27/src'<br>make[1]: *** [all-recursive] Error 1<br>make[1]: Leaving directory `/home/tiger/rrdtool-1.2.27'<br>
make: *** [all] Error 2<br> </div>
<div>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. </div>
<div> </div>
<div>any idea about that? thanks in advance.<br> </div>
<div> </div>