Compiling Nagios/NetSaint

From: Alam, Sim (sim.alam@education.tas.gov.au)
Date: Fri Nov 01 2002 - 05:23:59 EST


Hi all,

I have been trying to compile Nagios and keep getting the following
errors - tried NetSaint first and got a similar error. Has anyone
managed to get this to work? I'm trying on Tru64 5.1A with gcc 3.0.4.

Cheers,
Sim Alam

# make all
cd ./base; make ; cd ..
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c checks.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c config.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c commands.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c flapping.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c logging.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c notifications.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c sehandlers.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c utils.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c sretention.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c perfdata.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE nagios.c checks.o config.o
commands.o flapping.o logging.o notifications.o sehandlers.o utils.o
sretention.o ../xdata/xrddefault.c ../common/comments.c
../xdata/xcddefault.c ../common/objects.c ../xdata/xodtemplate.c
../common/statusdata.c ../xdata/xsddefault.c perfdata.o
../xdata/xpddefault.c ../common/downtime.c ../xdata/xdddefault.c -lm
-o nagios
nagios.c: In function `main':
nagios.c:294: elements of array `long_options' have incomplete type
nagios.c:296: warning: excess elements in struct initializer
nagios.c:296: warning: (near initialization for `long_options[0]')
nagios.c:296: `no_argument' undeclared (first use in this function)
nagios.c:296: (Each undeclared identifier is reported only once
nagios.c:296: for each function it appears in.)
nagios.c:296: warning: excess elements in struct initializer
nagios.c:296: warning: (near initialization for `long_options[0]')
nagios.c:296: warning: excess elements in struct initializer
nagios.c:296: warning: (near initialization for `long_options[0]')
...
[snip]
...
nagios.c:302: warning: (near initialization for `long_options[6]')
nagios.c:302: warning: excess elements in struct initializer
nagios.c:302: warning: (near initialization for `long_options[6]')
nagios.c:294: storage size of `long_options' isn't known
*** Exit 1
Stop.
*** Exit 1
Stop.
#



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:48:58 EDT