ndoutil 1.4b5 doesn't honor --with-mysql-inc=DIR

Frost, Mark {PBG} mark.frost1 at pepsi.com
Tue Sep 25 20:59:29 CEST 2007


I'm finding that ndoutil 1.4b5 does not seem to honor the
--with-mysql-inc=DIR configure directive.  My configure runs as:

	./configure \
	        --enable-mysql \
	        --disable-pgsql \
	        --with-mysql-inc=/usr/local/mysql5/include \
	        --with-mysql-lib=/usr/local/mysql5/lib/mysql

configure seems happy about this as it purports the following:

	MySQL library and include file(s) were found!

but as soon as I type 'make', I get:

	$ make
	cd ./src/; make ; cd ..
	make[1]: Entering directory `/usr/local/src/ndoutils-1.4b5/src'
	gcc -fPIC -O0 -g -DHAVE_CONFIG_H -c -o io.o io.c
	In file included from io.c:10:
	../include/config.h:250:25: mysql/mysql.h: No such file or
directory
	../include/config.h:251:26: mysql/errmsg.h: No such file or
directory
	make[1]: *** [io.o] Error 1
	make[1]: Leaving directory `/usr/local/src/ndoutils-1.4b5/src'

I can see that the following is defined in the src/Makefile:

	DBCFLAGS= -I/usr/local/mysql5/include
	DBLDFLAGS=-L/usr/local/mysql5/lib/mysql

but it's not pulled in in most places.  It looks like a whole lot of
lines in the Makefile need to have $(DBCFLAGS) included in them.

I believe this happened with 1.4b3 as well, but I stupidly deleted that
tree before I could see what I did to work around this :-\.  I believe I
hand edited a Makefile.  I think I'm going to have to figure that out
again.

Mark

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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