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

Andreas Ericsson ae at op5.se
Tue Sep 25 21:43:27 CEST 2007


Frost, Mark {PBG} wrote:
> 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.
> 

There's a patch that (mostly) solves this somewhere at altinity. Go check
that out before you rip your hair out. If you get it to compile but fail
to get it to run, send the output of 'ldd ndo-module.so' (or whatever
it's called) here and I'll help you further.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

-------------------------------------------------------------------------
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