nrpe 2.0b3 failes to compile on SGI IRIX 6.5.19

Garrett, Matt M SITI-ITDIEEE matt.garrett at shell.com
Tue May 13 14:43:15 CEST 2003


Folks

I am trying to compile nrpe 2.0b3 on SGI IRIX 6.5.19

I get the following error's

# make
        cd ./src/; make ; cd ..
        gcc -g -O2 -DHAVE_CONFIG_H  -o nrpe -lnsl -lsocket nrpe.c utils.c
nrpe.c: In function `process_macros':
nrpe.c:1378: warning: assignment makes pointer from integer without a cast
nrpe.c:1378: warning: assignment makes pointer from integer without a cast
nrpe.c: In function `process_arguments':
nrpe.c:1439: elements of array `long_options' have incomplete type
nrpe.c:1440: warning: excess elements in struct initializer
nrpe.c:1440: warning: (near initialization for `long_options[0]')
nrpe.c:1440: `required_argument' undeclared (first use in this function)
nrpe.c:1440: (Each undeclared identifier is reported only once
nrpe.c:1440: for each function it appears in.)
nrpe.c:1440: warning: excess elements in struct initializer
nrpe.c:1440: warning: (near initialization for `long_options[0]')
nrpe.c:1440: warning: excess elements in struct initializer
nrpe.c:1440: warning: (near initialization for `long_options[0]')
SNIP SNIP SNIP

nrpe.c:1446: warning: excess elements in struct initializer
nrpe.c:1446: warning: (near initialization for `long_options[6]')
nrpe.c:1447: invalid use of undefined type `struct option'
nrpe.c:1439: storage size of `long_options' isn't known
*** Error code 1 (bu21)
*** Error code 1 (bu21)
# 

gcc -v 2.95.3

In fact nrpe does not seem to compile on most things e.g Solaris , HPUX 11 , IRIX
The only thing it seems to compile on is AIX 4.3.3 which is normally the one that has all the problems on compiling
Just a small observation.

Matt

Matthew Garrett
Unix System Support
Shell Information Technology International Limited
Seafield House, North Anderson Drive, Aberdeen AB15 6GZ, United Kingdom

Tel: +44 (0)1224 81 8373 Other Tel: Internal 630 8373
Email: Matt.M.Garrett at is.shell.com
Internet: http://www.shell.com


-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com

_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list