PP 1.000.7 would not build initiall on my RedHat Fedora
Core 2 installation.
and used configure:
./configure --prefix=/opt/nagios
--with-imagedir=/opt/nagios/share/images/ \
--with-cgidir=/opt/nagios/sbin \
--with-http_image_path=/nagios/images
But ended up with errors like:
gcc -g -O2 -Wall -o .libs/perfchart.png perfchart.o
cgi.o -L/usr/lib/mysql /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)(.text+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)(.text+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)(.text+0xe9):
In function `gdPngWriteData':
: undefined reference to `png_get_io_ptr'
/usr/lib/gcc-lib/i386-redhat-linux/3.3.3/../../../libgd.a(gd_png.o)(.text+0x20d):
In function `gdImageCreateFromPngCtx':
and so on.
Fixed by adding "-lpng" in cgi/Makefile: the line becomes:
MYSQL_LIBS = -L/usr/lib/mysql -lmysqlclient -lcrypt
-lnsl -lm -lpng -lz -lc -lnss_files -lnss_dns -lresolv
-lc -lnss_files -lnss_dns -lresolv
Problem with configure script?
Cheers
Logged In: YES
user_id=157178
If you still have this problem, can you re-submit to the
news group perfparse-users@lists.sf.net or on wiki.perfparse.org
I am removing this posting as this is really a support request.
Regards, Ben