RedHat 7.3 - Nagios 1.2 - MySQL

Tom Brown tom.brown at goodtechnology.com
Wed Nov 10 22:09:44 CET 2004


Hi,

I'm trying to compile from source and have hit a wall - My configure (below) 
runs fine and seems to find all packages however when i run tha make all i 
end up with.....

-- snip of lots of this --

/home/tom/nagios-1.2/base/../xdata/xdddb.c:1107: undefined reference to 
`mysql_store_result'
/home/tom/nagios-1.2/base/../xdata/xdddb.c:1116: undefined reference to 
`mysql_free_result'
/home/tom/nagios-1.2/base/../xdata/xdddb.c:1146: undefined reference to 
`mysql_fetch_row'
/home/tom/nagios-1.2/base/../xdata/xdddb.c:1149: undefined reference to 
`mysql_free_result'
/tmp/cclaHXUI.o: In function `xdddb_read_service_downtime':
/home/tom/nagios-1.2/base/../xdata/xdddb.c:1238: undefined reference to 
`mysql_store_result'
/home/tom/nagios-1.2/base/../xdata/xdddb.c:1247: undefined reference to 
`mysql_free_result'
/home/tom/nagios-1.2/base/../xdata/xdddb.c:1277: undefined reference to 
`mysql_fetch_row'
/home/tom/nagios-1.2/base/../xdata/xdddb.c:1280: undefined reference to 
`mysql_free_result'
collect2: ld returned 1 exit status
make[1]: *** [nagios] Error 1
make[1]: Leaving directory `/home/tom/nagios-1.2/base'
make: *** [all] Error 2

my configure is fine with......

./configure  --prefix=/opt/nagios-1.2 --with-nagios-user=nagios --with-nagios-grp=nagios 
 --with-command-user=nagios --with-command-grp=nagios --with-init-dir=/etc/rc.d/init.d 
 --with-mysql-xdata --with-mysql-status --with-mysql-comments --with-mysql-extinfo 
 --with-mysql-retention--with-mysql-downtime --with-mysql-lib=/opt/mysql/lib 
 --with-mysql-inc=/opt/mysql/include --with-gd-lib=/opt/gd/lib --with-gd-inc=/opt/gd/include 
 --with-cgiurl=/cgi-bin --with-htmurl=/docroot --enable-embedded-perl

can anyone help me here as i can't seem to figure this one out and google is 
not helping me - I can compile if i choose to not use MySQL but i don't want 
to do that - I do not want to rely on an RPM for this.

thanks

Tom




-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
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