[Nagios-devel] Ndoutil confiture script failed to set mysql include

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

[Nagios-devel] Ndoutil confiture script failed to set mysql include

Post by Guest »

Hi,

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= --with-mysql-lib=
--with-mysql-inc=
-------------------
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 "/mysql/mysql.h"
251 #include "/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.

An init script for ndo2db included in the tgz would be great (found one here
:
http://nagios-portal.de/forum/print.php ... 46621ddd01
ffbc5ee89bdf949e311d6, but I had to modify path & user)

Regards,

Patrick
http://nagios.manubulon.com






This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked