Ndoutil confiture script failed to set mysqlinclude path

Patrick Proy nagios at proy.org
Wed May 9 23:06:45 CEST 2007


Hi Ton,

I saw the patch when doing some Google, but it didn't seem to apply to my
case - and anyway I had resolved the issue -, but I will give the patch a
try and give you the result when I will be working again for this customer
(in two weeks from now).

Patrick

-----Message d'origine-----
De : nagios-devel-bounces at lists.sourceforge.net
[mailto:nagios-devel-bounces at lists.sourceforge.net] De la part de Ton Voon
Envoyé : mercredi 9 mai 2007 22:09
À : Nagios Developers List
Objet : Re: [Nagios-devel] Ndoutil confiture script failed to set
mysqlinclude path

Patrick,

On 9 May 2007, at 19:34, Patrick Proy wrote:

> I had a problem when compiling Ndoutil 1.4b3 on a RHEL4 with MySQL in 
> a special directory :
>
> I run the configure script :
>
> -------------------
> ./configure --prefix=<prefix> --with-mysql-lib=<path1> 
> --with-mysql-inc=<path2>
> -------------------
> MySQL detection by configure was OK (lib + include files).
>
> Then :
>
> -------------------
> # make
> cd ./src/; make ; cd ..
> make[1]: Entering directory `/usr/local/src/Nagios/ndoutils-1.4b3/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/Nagios/ndoutils-1.4b3/src'
> -------------------
>
> I had to change manually the include/config.h file, lines 250 & 251 to 
> :
>
>     246 #define USE_MYSQL 1
>     247 /* #undef HAVE_MYSQL */
>     248 #ifdef USE_MYSQL
>     249 #define HAVE_MYSQL 1
>     250 #include "<path2>/mysql/mysql.h"
>     251 #include "<path2>/mysql/errmsg.h"
>     252 #endif
>
> Then it would compile OK.
>
> Maybe it's something I did wrong (found nothing on Google about it), 
> but probably the configure script should modify this path too.
>

Can you try the patch at http://altinity.blogs.com/dotorg/2007/04/
better_mysqlcli.html ?

This uses the same mysql detection as the plugins. I think it is a better
test for mysql - can you confirm if it helps with your setup.

Ton

http://www.altinity.com
T: +44 (0)870 787 9243
F: +44 (0)845 280 1725
Skype: tonvoon



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express Download DB2 Express C - the
FREE version of DB2 express and take control of your XML. No limits. Just
data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/




More information about the Developers mailing list