[icinga-devel] icinga-0.8.3 OpenSUSE 10.2

Matthew Alton matthew.alton at gmail.com
Wed Sep 2 22:22:59 CEST 2009


Developers,

Here's me after running "CPPFLAGS=-I/opt/include LDFLAGS=-L/opt/lib
./configure --prefix=/opt":

:~/icinga-0.8.3> make all
cd ./base && make
make[1]: Entering directory `/home/nagios/icinga-0.8.3/base'
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -I/opt/include  -c -o broker.o broker.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -I/opt/include  -c -o nebmods.o
nebmods.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -I/opt/include  -c -o checks.o checks.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -I/opt/include  -c -o config.o config.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -I/opt/include  -c -o commands.o
commands.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -I/opt/include  -c -o events.o events.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -I/opt/include  -c -o flapping.o
flapping.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -I/opt/include  -c -o logging.o
logging.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o macros-base.o ../common/macros.c
In file included from ../common/../include/macros.h:26,
                 from ../common/macros.c:25:
../common/../include/config.h:338:21: error: dbi/dbi.h: No such file or
directory
make[1]: *** [macros-base.o] Error 1
make[1]: Leaving directory `/home/nagios/icinga-0.8.3/base'
make: *** [all] Error 2

Long story short, I add "-I/opt/include" (to pick up dbi/dbi.h) to every
occurrence
of "CFLAGS" in every Makefile in the build directory and we're off to the
races.

The problem was solved by:

"CFLAGS=-I/opt/include LDFLAGS=-L/opt/lib ./configure --prefix=/opt"

CPPFLAGS is the right place for -I/foo, though.  Thoughts?

Here's the script that works:

#!/bin/bash

export CC=gcc
export LDFLAGS=-L/opt/lib
export CFLAGS=-I/opt/include

./configure --enable-idoutils          \
            --prefix=/opt              \
            --with-icinga-user=icinga  \
            --with-icinga-group=icinga \
            --with-command-user=icinga \
            --with-command-group=iciadm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.icinga.org/pipermail/icinga-devel/attachments/20090902/0e18b3d4/attachment.html>


More information about the icinga-devel mailing list