tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: "Alam, Sim" <sim.alam@education.tas.gov.au>
Subject: Compiling Nagios/NetSaint
Date: Fri, 01 Nov 2002 21:23:59 +1100	[thread overview]
Message-ID: <AFAC9B2BF1A8BF4886F5C0FDE428E90E0649F326@edumail2.education.tas.gov.au> (raw)

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.
# 


                 reply	other threads:[~2002-11-01 10:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox