Problems compiling with status/map MYSQl functionality

Browett, Darren dbrowett at coquitlam.ca
Thu Oct 30 17:18:50 CET 2003


I am trying to add statusmap and mysql funcitionality and I am unable to
successfully compile
a new object on Suse Linux Enterrprise 8.0.

My config statement is as follows :

 ./configure --prefix=/usr/local/nagios \
             --with-cgiurl=/nagios/cgi \
             --with-htmurl=/nagios \
             --with-nagios-user=nagios \
             --with-nagios-grp=nagios \
             --with-mysql-xdata \
             --with-mysql-inc=/usr/local/mysql/include \
             --with-mysql-lib=/usr/local/mysql/lib \
             --enable-statusmap \
             --with-gd-lib=/usr/local/lib  \
             --with-gd-inc=/usr/local/include

When I run this statement, everything look good, but when I run the make
all ...

the last couple of lines looks like this 

../xdata/xdddb.c: In function `xdddb_read_service_downtime':
../xdata/xdddb.c:1210: `MYSQL_RES' undeclared (first use in this
function)
../xdata/xdddb.c:1210: `query_result' undeclared (first use in this
function)
../xdata/xdddb.c:1211: `MYSQL_ROW' undeclared (first use in this
function)
../xdata/xdddb.c:1211: parse error before "result_row"
../xdata/xdddb.c:1242: `result_row' undeclared (first use in this
function)
make[1]: *** [nagios] Error 1
make[1]: Leaving directory `/usr/local/src/nagios-1.1/base'
make: *** [all] Error 2

and looking further back  ....

cc1: warning: changing search order for system directory
"/usr/local/include"
cc1: warning:   as it has already been specified as a non-system
directory
cc1: warning: changing search order for system directory
"/usr/local/include"
cc1: warning:   as it has already been specified as a non-system
directory
../xdata/xrddb.c:41:25: mysql/mysql.h: No such file or directory
../xdata/xrddb.c:42:26: mysql/errmsg.h: No such file or directory
../xdata/xrddb.c:59: parse error before "xrddb_mysql"

Am I missing something ??

Should I try postgresql instead ???

Any help and/or direction would be much appreciated.

Thanks

Darren


------------------------------------------------------------------------
--------------------------------------------------
Darren Browett P.Eng 						This
message was transmitted
Data Administrator		 				using
100% recycled electrons 
Information and Communication Technology
City of Coquitlam 
P:(604)927 - 3614 
E:dbrowett at coquitlam.ca 
------------------------------------------------------------------------
--------------------------------------------------- 





-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
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