Compilation Errors in perfparse

Daniel Bimschas Bimschas at phase4.de
Thu Sep 22 10:09:37 CEST 2005


compiling with glib2 gives me the following make output:

/bin/sh ../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/lib' -lmysqlclient -lz -lcrypt -lnsl -lm  -L../libpp_common -lpp_common -lglib-2.0     -ldl -lm
gcc -g -O2 -Wall -o .libs/perfchart.png perfchart_png-perfchart.o perfchart_png-cgi.o  -L/home/watchdog/inst/src/perfparse-0.105.6/libpp_mysql /home/watchdog/inst/src/perfparse-0.105.6/libpp_mysql/.libs/libpp_mysql.so -L/usr/lib /usr/lib/libmysqlclient.so -lcrypt -lnsl -L/home/watchdog/inst/src/perfparse-0.105.6/libpp_common /home/watchdog/inst/src/perfparse-0.105.6/libpp_common/.libs/libpp_common.so -lz /usr/lib/libglib-2.0.so -ldl -lm -Wl,--rpath -Wl,/home/watchdog/perfparse/lib
perfchart_png-perfchart.o: In function `main':
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:277: undefined reference to `gdImageRectangle'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:278: undefined reference to `gdImageRectangle'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:281: undefined reference to `gdImageFilledRectangle'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:282: undefined reference to `gdImageFilledRectangle'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:295: undefined reference to `gdImagePng'
perfchart_png-perfchart.o: In function `initChartGraphics':
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:464: undefined reference to `gdImageCreate'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:468: undefined reference to `gdImageColorAllocate'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:469: undefined reference to `gdImageColorAllocate'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:470: undefined reference to `gdImageColorAllocate'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:471: undefined reference to `gdImageColorAllocate'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:472: undefined reference to `gdImageColorAllocate'
perfchart_png-perfchart.o:/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:473: more undefined references to `gdImageColorAllocate' follow
perfchart_png-perfchart.o: In function `drawHeadings':
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:571: undefined reference to `gdFontSmall'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:571: undefined reference to `gdImageString'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:572: undefined reference to `gdImageLine'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:573: undefined reference to `gdImageLine'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:577: undefined reference to `gdFontSmall'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:577: undefined reference to `gdImageString'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:578: undefined reference to `gdImageLine'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:579: undefined reference to `gdImageLine'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:583: undefined reference to `gdFontSmall'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:583: undefined reference to `gdImageString'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:584: undefined reference to `gdImageLine'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:585: undefined reference to `gdImageLine'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:589: undefined reference to `gdFontSmall'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:589: undefined reference to `gdImageString'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:590: undefined reference to `gdImageLine'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:591: undefined reference to `gdImageLine'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:595: undefined reference to `gdFontSmall'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:595: undefined reference to `gdImageString'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:596: undefined reference to `gdImageLine'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:597: undefined reference to `gdImageLine'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:600: undefined reference to `gdImageRectangle'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:605: undefined reference to `gdFontSmall'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:605: undefined reference to `gdImageString'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:621: undefined reference to `gdFontSmall'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:621: undefined reference to `gdImageString'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:632: undefined reference to `gdFontMediumBold'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:632: undefined reference to `gdImageString'
perfchart_png-perfchart.o: In function `drawAverage':
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:691: undefined reference to `gdImageLine'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:696: undefined reference to `gdImageLine'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:707: undefined reference to `gdImageLine'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:715: undefined reference to `gdImageLine'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:743: undefined reference to `gdImageLine'
perfchart_png-perfchart.o:/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:809: more undefined references to `gdImageLine' follow
perfchart_png-perfchart.o: In function `drawYScalePercent':
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:1002: undefined reference to `gdFontSmall'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:1002: undefined reference to `gdImageString'
perfchart_png-perfchart.o: In function `drawYScale':
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:1065: undefined reference to `gdFontSmall'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:1065: undefined reference to `gdImageString'
perfchart_png-perfchart.o: In function `drawXScale':
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:1087: undefined reference to `gdFontSmall'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:1087: undefined reference to `gdImageString'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:1123: undefined reference to `gdFontSmall'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:1123: undefined reference to `gdImageString'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:1129: undefined reference to `gdFontSmall'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:1129: undefined reference to `gdImageString'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:1131: undefined reference to `gdFontSmall'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:1131: undefined reference to `gdImageString'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:1182: undefined reference to `gdFontSmall'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:1182: undefined reference to `gdImageString'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:1236: undefined reference to `gdFontSmall'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:1236: undefined reference to `gdImageString'
perfchart_png-perfchart.o: In function `print_failure_html':
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:1606: undefined reference to `gdImageFilledRectangle'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:1608: undefined reference to `gdFontSmall'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:1608: undefined reference to `gdImageString'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:1609: undefined reference to `gdFontSmall'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:1609: undefined reference to `gdImageString'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:1612: undefined reference to `gdImagePng'
perfchart_png-perfchart.o: In function `print_sql_failure_image':
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:1738: undefined reference to `gdImageFilledRectangle'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:1740: undefined reference to `gdFontSmall'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:1740: undefined reference to `gdImageString'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:1741: undefined reference to `gdFontSmall'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:1741: undefined reference to `gdImageString'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:1743: undefined reference to `gdFontSmall'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:1743: undefined reference to `gdImageString'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:1744: undefined reference to `gdFontSmall'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:1744: undefined reference to `gdImageString'
/home/watchdog/inst/src/perfparse-0.105.6/cgi/perfchart.c:1751: undefined reference to `gdImagePng'
collect2: ld returned 1 exit status
make[2]: *** [perfchart.png] Fehler 1
make[2]: Leaving directory `/home/watchdog/inst/src/perfparse-0.105.6/cgi'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/home/watchdog/inst/src/perfparse-0.105.6'
make: *** [all] Fehler 2



maybe this could help?!








-----Ursprüngliche Nachricht-----
Von: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net]Im Auftrag von Daniel
Bimschas
Gesendet: Donnerstag, 22. September 2005 09:32
An: nagios-users at lists.sourceforge.net
Betreff: [Nagios-users] Compilation Errors in perfparse


Hi people!

i'm trying to compile the perfparse plugin on a debian 3.0 (woody) os
with glib12 installed.

i always get configure or compiling errors. if i try to compile with
glib2 theres even more compilation errors. here's the configure output,
below you'll find the make output:


  ./configure --prefix=/home/watchdog/perfparse --with-glib12=/usr/lib

gives me the following messages:

	*****************************************************
	Configuration options:
	
	Prefix:                       /home/watchdog/perfparse
	Perfparse:                    Selected
	DB tools:                     Selected
	CGI:                          Selected
	
	HTTP path for images:         /nagios/images
	Installation path for images: ${datadir}/perfparse/images
	Installation path for CGIs:   ${exec_prefix}/sbin
	Using glib1.2:                1.2.10
	Database support:             mysql

	*****************************************************

	WARNING WARNING WARNING WARNING WARNING WARNING WARNING
	Perfparse CGI is now perfparse.cgi.
	If you have upgrading, the development team suggests
	that you remove your old perfgraph.cgi to avoid
	any confusion.

	*****************************************************

	WARNING WARNING WARNING WARNING WARNING WARNING WARNING
	Be sure to install libpp_storage_*.so files in a directory
	that ld.so knows (/etc/ld.so.conf, run ldconfig if needed,
	or $LD_LIBRARY_PATH)

	*****************************************************

maybe the error is this output:

	configure: WARNING: Could not find gdlib-config.
	The compiler and linker assume that you specify the options
	manually in CFLAGS and LDFLAGS when running make


make then, does the following error output:

	gcc -g -O2 -Wall -o .libs/perfparsed perfparsed-perfparsed.o perfparsed-perfparse-common.o perfparsed-server_parser.o perfparsed-log_reader.o 	perfparsed-storage.o perfparsed-storage_history.o  -L/home/watchdog/inst/src/perfparse-0.105.6/libpp_common /home/watchdog/inst/src/perfparse-	0.105.6/libpp_common/.libs/libpp_common.so -lz -L/home/watchdog/inst/src/perfparse-0.105.6/libnagios_perfdata_parser /home/watchdog/inst/src/perfparse-	0.105.6/libnagios_perfdata_parser/.libs/libnagios_perfdata_parser.so -L/usr/lib /usr/lib/libglib.so -ldl -lm -Wl,--rpath -	Wl,/home/watchdog/perfparse/lib
	perfparsed-storage.o: In function `storage_periodic_cleanup':
	/home/watchdog/inst/src/perfparse-0.105.6/perfparse/storage.c:269: undefined reference to `g_path_get_basename'
	collect2: ld returned 1 exit status
	make[2]: *** [perfparsed] Fehler 1


I would really appreciate if somebody could help me by telling
where the problem is, or maybe if i'm missing some library.

p.s. if i do configure without "--with-glib12=" i'll get even
more make errors for drawing functions that are not found.


thanks!


--
Daniel Bimschas
Entwicklung

Phase 4
Communications GmbH

Bayerstraße 85 a
80335 München
Fon     +49.89.30 63 21-52
Fax     +49.89.30 63 21-21
ISDN   +49.89.30 72 93 33

München  |  Zürich  |  Berlin

www.phase4.de


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list