[Nagios-devel] problems building nagios 3.0rc3

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] problems building nagios 3.0rc3

Post by Guest »

I have had two problems building both 3.0rc2 and 3.0rc3. Both problems
seem to be related to glib libraries and include files. They may be
caused by our non-standard systems (redhat enterprise 4, but using
openpkg packages to replace many standard redhat packages. Not
something I have control over.)

First, at configure.in line 525, there are the following lines:

GLIB_LIBS=`pkg-config --libs glib-2.0`
AC_SUBST(GLIB_LIBS)
if test x$GLIB_LIBS != x; then


If pkg-config returns more than one entry, the test fails. Enclosing it
in quotes as follows will fix it:


if test "x$GLIB_LIBS" != x; then


I apologize if there is a better way to fix it.

The other problem is probably related, but I don't really understand how
to fix it. On our non-standard systems, running:

pkg-config --cflags glib-2.0

Returns "-I/usr/local/include/glib2 -I/usr/local/lib/glib2/include".
Unfortunately, we need to also have "-I/usr/local/include" for other
things like libGD. Even if I run:

configure --includedir=/usr/local/include

The -I/usr/local/include does not get passed to cgi/Makefile. As a
result, building the cgi programs fails. It kind of seems like using
--includedir should cause it to be passed to various Makefiles?

Please let me know if I can explain these problems better.

Adrian







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