Compling Nagios with MySQL on RH 8.0 issues

James Turnbull james at lovedthanlost.net
Wed Jun 11 06:19:24 CEST 2003


Whilst compiling Nagios 1.1 under Redhat 8 (MySQL 4.0.13 Standard) with the
following configure:

./configure --with-cgiurl=/nagios/cgi-bin --with-htmurl=/nagios --with-nagio
s-user=nagios --with-nagios-grp=nagios --with-mysql-xdata --with-mysql-lib=/
usr/local/mysql/lib/ --with-mysql-inc=/usr/local/mysql/include/

The configure works fine but when I run make all I get the errors below
(note I have confimed mysql.h and errmsg.h are both present in
/usr/local/mysql/include/) - I am presuming the xrddb.c code is looking in
the wrong place for these?  Of course I could be totally wrong.

Thanks in advance

James Turnbull

gcc -g -O2 -I/usr/local/mysql/include/ -DHAVE_CONFIG_H -DNSCORE -L/usr/local
/mysql/lib/ -lmysqlclient  nagios.c checks.o config.o commands.o flapping.o
logging.o notifications.o sehandlers.o utils.o sretention.o ../xdata/xrddb.c
../common/comments.c ../xdata/xcddb.c ../common/objects.c
../xdata/xodtemplate.c ../common/statusdata.c ../xdata/xsddb.c perfdata.o
../xdata/xpddefault.c ../common/downtime.c ../xdata/xdddb.c    -lm -o nagios
../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"
../xdata/xrddb.c:59: warning: data definition has no type or storage class
../xdata/xrddb.c: In function `xrddb_read_program_information':
../xdata/xrddb.c:823: `MYSQL_RES' undeclared (first use in this function)
../xdata/xrddb.c:823: (Each undeclared identifier is reported only once
../xdata/xrddb.c:823: for each function it appears in.)
../xdata/xrddb.c:823: `query_result' undeclared (first use in this function)
../xdata/xrddb.c:824: `MYSQL_ROW' undeclared (first use in this function)
../xdata/xrddb.c:824: parse error before "result_row"
../xdata/xrddb.c:854: `result_row' undeclared (first use in this function)
../xdata/xrddb.c: In function `xrddb_read_host_information':
../xdata/xrddb.c:921: `MYSQL_RES' undeclared (first use in this function)
../xdata/xrddb.c:921: `query_result' undeclared (first use in this function)
../xdata/xrddb.c:922: `MYSQL_ROW' undeclared (first use in this function)
../xdata/xrddb.c:922: parse error before "result_row"
../xdata/xrddb.c:955: `result_row' undeclared (first use in this function)
../xdata/xrddb.c: In function `xrddb_read_service_information':
../xdata/xrddb.c:1098: `MYSQL_RES' undeclared (first use in this function)
../xdata/xrddb.c:1098: `query_result' undeclared (first use in this
function)
../xdata/xrddb.c:1099: `MYSQL_ROW' undeclared (first use in this function)
../xdata/xrddb.c:1099: parse error before "result_row"
../xdata/xrddb.c:1133: `result_row' undeclared (first use in this function)
../xdata/xcddb.c:49:25: mysql/mysql.h: No such file or directory
../xdata/xcddb.c:50:26: mysql/errmsg.h: No such file or directory
../xdata/xcddb.c:66: parse error before "xcddb_mysql"
../xdata/xcddb.c:66: warning: data definition has no type or storage class
../xdata/xcddb.c: In function `xcddb_validate_host_comments':
../xdata/xcddb.c:449: `MYSQL_RES' undeclared (first use in this function)
../xdata/xcddb.c:449: (Each undeclared identifier is reported only once
../xdata/xcddb.c:449: for each function it appears in.)
../xdata/xcddb.c:449: `query_result' undeclared (first use in this function)
../xdata/xcddb.c:450: `MYSQL_ROW' undeclared (first use in this function)
../xdata/xcddb.c:450: parse error before "result_row"
../xdata/xcddb.c:481: `result_row' undeclared (first use in this function)
../xdata/xcddb.c: In function `xcddb_validate_service_comments':
../xdata/xcddb.c:539: `MYSQL_RES' undeclared (first use in this function)
../xdata/xcddb.c:539: `query_result' undeclared (first use in this function)
../xdata/xcddb.c:540: `MYSQL_ROW' undeclared (first use in this function)
../xdata/xcddb.c:540: parse error before "result_row"
../xdata/xcddb.c:570: `result_row' undeclared (first use in this function)
../xdata/xsddb.c:46:25: mysql/mysql.h: No such file or directory
../xdata/xsddb.c:47:26: mysql/errmsg.h: No such file or directory
../xdata/xsddb.c:62: parse error before "xsddb_mysql"
../xdata/xsddb.c:62: warning: data definition has no type or storage class
../xdata/xsddb.c: In function `xsddb_check_connection':
../xdata/xsddb.c:366: `CR_SERVER_LOST' undeclared (first use in this
function)
../xdata/xsddb.c:366: (Each undeclared identifier is reported only once
../xdata/xsddb.c:366: for each function it appears in.)
../xdata/xsddb.c:366: `CR_SERVER_GONE_ERROR' undeclared (first use in this
function)
../xdata/xdddb.c:49:25: mysql/mysql.h: No such file or directory
../xdata/xdddb.c:50:26: mysql/errmsg.h: No such file or directory
../xdata/xdddb.c:66: parse error before "xdddb_mysql"
../xdata/xdddb.c:66: warning: data definition has no type or storage class
../xdata/xdddb.c: In function `xdddb_validate_host_downtime':
../xdata/xdddb.c:440: `MYSQL_RES' undeclared (first use in this function)
../xdata/xdddb.c:440: (Each undeclared identifier is reported only once
../xdata/xdddb.c:440: for each function it appears in.)
../xdata/xdddb.c:440: `query_result' undeclared (first use in this function)
../xdata/xdddb.c:441: `MYSQL_ROW' undeclared (first use in this function)
../xdata/xdddb.c:441: parse error before "result_row"
../xdata/xdddb.c:477: `result_row' undeclared (first use in this function)
../xdata/xdddb.c: In function `xdddb_validate_service_downtime':
../xdata/xdddb.c:554: `MYSQL_RES' undeclared (first use in this function)
../xdata/xdddb.c:554: `query_result' undeclared (first use in this function)
../xdata/xdddb.c:555: `MYSQL_ROW' undeclared (first use in this function)
../xdata/xdddb.c:555: parse error before "result_row"
../xdata/xdddb.c:591: `result_row' undeclared (first use in this function)
../xdata/xdddb.c: In function `xdddb_read_host_downtime':
../xdata/xdddb.c:1079: `MYSQL_RES' undeclared (first use in this function)
../xdata/xdddb.c:1079: `query_result' undeclared (first use in this
function)
../xdata/xdddb.c:1080: `MYSQL_ROW' undeclared (first use in this function)
../xdata/xdddb.c:1080: parse error before "result_row"
../xdata/xdddb.c:1111: `result_row' undeclared (first use in this function)
../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 `/downloads/nagios-1.1/base'
make: *** [all] Error 2



-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
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