Hi Ethan et al,
I'm unsure what the process is for commenting on bugs found in CVS
releases of Nagios. Please excuse me if I'm out of bounds here. Anyway,
I d'l the CVS of Nagios today and attempted to make the package with
MySQL support. However, the Makefile, while including -L/usr/lib/mysql,
is not including the "-lmysqlclient" bit. Here is the relevant Makefile
from 1.0b1:
Makefile (1.01b):
.
CC=3Dgcc
CFLAGS=3D-g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H
LDFLAGS=3D -L/usr/lib/mysql -lmysqlclient=20
=20
prefix=3D/usr/local/nagios
.
Makefile (CVS):
CC=3Dgcc
CFLAGS=3D-g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H
LDFLAGS=3D -L/usr/lib/mysql=20
Both of these were created with the following ./configure line (and both
source trees are on the same system):
./configure --with-mysql-lib=3D/usr/lib/mysql
--with-mysql-inc=3D/usr/include/mysql=20
--with-mysql-xdata --with-template-objects --with-template-extinfo
One possible error I did find was in configure, on line 424. The test is
for postgresql, but the variable is $MYSQLFOUND. Changing this to
$PGSQLFOUND made no difference.
I'm not strong on the usage of ./configure, so debugging this is prolly
beyond me. Hope this helps determine where the error is.
Cheers,
--- Gavin Adams
--- Gavin Adams
Promisant (USA) Inc.
O: +1.404.262.7321 M: +1.404.213.5539
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: gadams@promisant.com