[Nagiosplug-help] Compilation errors

Thomas Guyot-Sionnest dermoth at aei.ca
Thu Feb 7 13:55:46 CET 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/02/08 05:15 AM, Foster, David wrote:
> Hi Thomas,
> 
> Thanks for the prompt reply, I have tried using the "--without-mysql"
> directive but the mysql information is still in the makefile and it

It really shouldn't. Are you sure you typed it correctly?

Here's the exact line I'm using on Solaris:

$ ./configure --without-mysql && make

You could also try "make distclean" or remove and re-extract the source
tree...

> still fails in the same way. I have looked at the make file but am
> concerned about removing areas without understanding what I am doing.

just removing the parameters everywhere they appear is all you need.

You can also run this:
$ cd plugins
$ mv Makefile Makefile.orig
$ cat Makefile.orig | \
sed 's/-xstrconst//g' | \
sed 's/-mt//g' >Makefile

(that last line is split to avoid line-wrapping; make sure theses no
space before the backslashes (\) or join the part together by removing
them.)

Then return to the root directory of the source tree and build it again
(no need to "make clean"):

$ cd ..
$ make

> You are correct that we using Solaris 10 do you have any idea why this
> compile is failing with mysql do we require missing libraries ?? or is
> GCC incompatible.

Simply because we use "mysql_config --cflags" to get the C flags, and on
Solaris it contains options that only Sun CC understands (because MySQL
is compiled with Sun CC). On most systems MySQL is compiled with GCC
(this is also the case of the official MySQL binaries) so this isn't a
problem in over 99% or the cases.


Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHqv/S6dZ+Kt5BchYRAs82AJ9CVHGrRH2/7VGB/qpZrmqB1pw6ywCgl0zN
g0/VrX0xFkt8XTeMceboIjE=
=o6GQ
-----END PGP SIGNATURE-----




More information about the Help mailing list