From: Yves M. <yme...@li...> - 2004-10-25 13:17:44
|
Hi Nick, Well, sorry for answering so late... Yes, this is a bug. In fact, gd provides some gdlib-config script to get the flags and libs t= o use to link against gdlib. But 0.100.7 and previous version, and 0.101.1 too, don't u= se that but do it "by hand". This is why some may have to specify something about iconv = and why you have problems with png. In 0.102 versions (starting at 0.102.0ym7 on my unofficial web page http://pagesperso.laposte.net/ymettier/perfparse-devel/), this is fixed, = and perfparse uses gdlib-config. This was tested with libgd 2.0. If you have an older version of libgd, please upgrade. If not possible, y= ou will have to specify the options yourself when running make : make CFLAGS=3D"-I/path/to/gd/lib" LDFLAGS=3D"-L/path/to/libraries -lpng -= liconv ..." Thanks Nick for reporting this bug, and again, sorry to answer so late Yves > > I am new to Nagios and Perfparse, but though this might be useful to so= meone: > > I was having trouble installing PP on RH FC 2, although I had all the > prerequisite packages installed, I was getting lots of compile errors l= ike: > > gcc -g -O2 -Wall -o .libs/perfchart.png perfchart.o cgi.o -L/usr/lib/m= ysql > /usr/lib/mysql/libmysqlclient.a -lcrypt -lnsl -lm -lz -lc -lnss_files -= lnss_dns -lresolv > -lglib-2.0 -L/lib -lgd -L/opt/perfparse-0.100.7/libperfparse > /opt/perfparse-0.100.7/libperfparse/.libs/libperfparse.so -Wl,--rpath > -Wl,/opt/nagios/lib > /usr/lib/gcc-lib/i386-redhat-linux/3.3.3/../../../libgd.a(gd_png.o)(.te= xt+0x37): In > function `gdPngErrorHandler': > : undefined reference to `png_get_error_ptr' > /usr/lib/gcc-lib/i386-redhat-linux/3.3.3/../../../libgd.a(gd_png.o)(.te= xt+0xa9): In > function `gdPngReadData': > : undefined reference to `png_get_io_ptr' > /usr/lib/gcc-lib/i386-redhat-linux/3.3.3/../../../libgd.a(gd_png.o)(.te= xt+0xe9): In > function `gdPngWriteData': > > After adding -lpng to the line starting MYSQL_LIBS in cgi/Makefile (bef= ore -lz) > compilation proceeded sucessfully! > > Perhaps someone else knows if there is a bug in the configure script? > > Cheers > > =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D= -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-= =3D-=3D > Nick P G Smith --=20 - Homepage - http://ymettier.free.fr - http://www.logicacmg.com - - GPG key - http://ymettier.free.fr/gpg.txt - - Maitretarot - http://www.nongnu.org/maitretarot/ - - Perfparse - http://perfparse.sf.net/ - |