From: Daniele C. <dan...@ti...> - 2005-03-15 08:19:57
|
Hi Ben, I use nagios and perfparse on FreeBSD, too; my FreeBSD is 5.3 I had no problem in compiling appending this flag to the configure command: LDFLAGS="-L/usr/local/lib -lgd" Perhaps it's not so elegant, but it works ;) Let me know... Bye Daniele > Hi all, > First time trying to get perfparse compiled and run into a problem! > > Im running a FreeBSD 4.10 box, nagios is compiled and working fine. > > gd and libpng are installed and nagios picks them up fine for the > statusmap.cgi pages. > > bash-2.05b# pkg_info |grep gd > gd-2.0.33_1,1 A graphics library for fast creation of images > bash-2.05b# pkg_info |grep png > png-1.2.8_1 Library for manipulating PNG images > > Configure works fine and picks up gd in its correct place > > ./configure --prefix=/apps/nagios > --with-imagedir=/apps/nagios/share/images/ > --with-cgidir=/apps/nagios/sbin/ --with-http_image_path=/nagios/images > --with-libintl-prefix=/usr/local --with-libdir=/usr/local > --with-includedir=/usr/local > > However, when making perfparse it runs into errors > > bash-2.05b# cd /apps/src/perfparse-0.105.6 > bash-2.05b# make > make all-recursive > Making all in intl > Making all in m4 > Making all in libnagios_perfdata_parser > Making all in libpp_common > Making all in libpp_mysql > Making all in modules > Making all in perfparse > Making all in db_tools > Making all in cgi > /usr/local/bin/bash ../libtool --tag=CC --mode=link gcc -g -O2 -Wall > -o perfchart.png perfchart_png-perfchart.o perfchart_png-cgi.o > -L../libpp_mysql -lpp_mysql -L/usr/local/lib/mysql -lmysqlclient > -lcrypt -lm -lz -L../libpp_common -lpp_common -L/usr/local/lib > -lglib-2.0 -liconv -L/usr/local/lib -lintl -R/usr/local/lib -lm > gcc -g -O2 -Wall -o .libs/perfchart.png perfchart_png-perfchart.o > perfchart_png-cgi.o -L/usr/apps/src/perfparse-0.105.6/libpp_mysql > /usr/apps/src/perfparse-0.105.6/libpp_mysql/.libs/libpp_mysql.so > -L/usr/local/lib/mysql -lmysqlclient -lcrypt > -L/usr/apps/src/perfparse-0.105.6/libpp_common > /usr/apps/src/perfparse-0.105.6/libpp_common/.libs/libpp_common.so -lz > -L/usr/local/lib -lglib-2.0 -liconv -lintl -lm -Wl,--rpath > -Wl,/apps/nagios/lib -Wl,--rpath -Wl,/usr/local/lib > perfchart_png-perfchart.o: In function `main': > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:278: undefined > reference to `gdImageRectangle' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:281: undefined > reference to `gdImageRectangle' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:282: undefined > reference to `gdImageFilledRectangle' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:285: undefined > reference to `gdImageFilledRectangle' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:297: undefined > reference to `gdImagePng' > perfchart_png-perfchart.o: In function `initChartGraphics': > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:465: undefined > reference to `gdImageCreate' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:469: undefined > reference to `gdImageColorAllocate' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:470: undefined > reference to `gdImageColorAllocate' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:471: undefined > reference to `gdImageColorAllocate' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:472: undefined > reference to `gdImageColorAllocate' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:473: undefined > reference to `gdImageColorAllocate' > perfchart_png-perfchart.o:/usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:474: > more undefined references to `gdImageColorAllocate' follow > perfchart_png-perfchart.o: In function `drawHeadings': > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:572: undefined > reference to `gdFontSmall' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:572: undefined > reference to `gdImageString' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:573: undefined > reference to `gdImageLine' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:574: undefined > reference to `gdImageLine' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:578: undefined > reference to `gdFontSmall' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:578: undefined > reference to `gdImageString' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:579: undefined > reference to `gdImageLine' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:580: undefined > reference to `gdImageLine' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:584: undefined > reference to `gdFontSmall' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:584: undefined > reference to `gdImageString' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:585: undefined > reference to `gdImageLine' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:586: undefined > reference to `gdImageLine' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:590: undefined > reference to `gdFontSmall' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:590: undefined > reference to `gdImageString' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:591: undefined > reference to `gdImageLine' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:592: undefined > reference to `gdImageLine' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:596: undefined > reference to `gdFontSmall' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:596: undefined > reference to `gdImageString' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:597: undefined > reference to `gdImageLine' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:599: undefined > reference to `gdImageLine' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:604: undefined > reference to `gdImageRectangle' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:608: undefined > reference to `gdFontSmall' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:608: undefined > reference to `gdImageString' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:622: undefined > reference to `gdFontSmall' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:622: undefined > reference to `gdImageString' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:634: undefined > reference to `gdFontMediumBold' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:634: undefined > reference to `gdImageString' > perfchart_png-perfchart.o: In function `drawAverage': > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:693: undefined > reference to `gdImageLine' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:697: undefined > reference to `gdImageLine' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:708: undefined > reference to `gdImageLine' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:716: undefined > reference to `gdImageLine' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:723: undefined > reference to `gdImageLine' > perfchart_png-perfchart.o:/usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:810: > more undefined references to `gdImageLine' follow > perfchart_png-perfchart.o: In function `drawYScalePercent': > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:996: undefined > reference to `gdFontSmall' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:996: undefined > reference to `gdImageString' > perfchart_png-perfchart.o: In function `drawYScale': > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:1067: undefined > reference to `gdFontSmall' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:1067: undefined > reference to `gdImageString' > perfchart_png-perfchart.o: In function `drawXScale': > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:1084: undefined > reference to `gdFontSmall' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:1084: undefined > reference to `gdImageString' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:1125: undefined > reference to `gdFontSmall' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:1125: undefined > reference to `gdImageString' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:1130: undefined > reference to `gdFontSmall' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:1130: undefined > reference to `gdImageString' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:1133: undefined > reference to `gdFontSmall' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:1133: undefined > reference to `gdImageString' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:1178: undefined > reference to `gdFontSmall' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:1178: undefined > reference to `gdImageString' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:1231: undefined > reference to `gdFontSmall' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:1231: undefined > reference to `gdImageString' > perfchart_png-perfchart.o: In function `print_failure_html': > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:1608: undefined > reference to `gdImageFilledRectangle' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:1609: undefined > reference to `gdFontSmall' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:1609: undefined > reference to `gdImageString' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:1612: undefined > reference to `gdFontSmall' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:1612: undefined > reference to `gdImageString' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:1614: undefined > reference to `gdImagePng' > perfchart_png-perfchart.o: In function `print_sql_failure_image': > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:1740: undefined > reference to `gdImageFilledRectangle' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:1741: undefined > reference to `gdFontSmall' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:1741: undefined > reference to `gdImageString' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:1743: undefined > reference to `gdFontSmall' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:1743: undefined > reference to `gdImageString' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:1744: undefined > reference to `gdFontSmall' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:1744: undefined > reference to `gdImageString' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:1746: undefined > reference to `gdFontSmall' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:1746: undefined > reference to `gdImageString' > /usr/apps/src/perfparse-0.105.6/cgi/perfchart.c:1753: undefined > reference to `gdImagePng' > *** Error code 1 > > Stop in /usr/apps/src/perfparse-0.105.6/cgi. > *** Error code 1 > > Stop in /usr/apps/src/perfparse-0.105.6. > *** Error code 1 > > Stop in /usr/apps/src/perfparse-0.105.6. > > > Now it looks like its a problem with the GD install, although > everything else that requires gd works fine. > > Anybody got any ideas? seen this before? > > Cheers > > Ben > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Perfparse-users mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perfparse-users > |