Compiling nrpe for AIX 7.1
Posted: Thu Jun 01, 2017 8:46 pm
Hello there
For AIX Version 7.1
Has anyone had success to compile the latest version of nrpe for AIX 7.1
I am having problems/errors
1. # ./configure --configure --enable-command-args
Goes thorough the motions and all looks good.
The problem is when I running "make all"
I get this:
*** Configuration summary for nrpe 3.1.1 2017-05-24 ***:
General Options:
-------------------------
NRPE port: 5666
NRPE user: nagios
NRPE group: nagios
Nagios user: nagios
Nagios group: nagios
Review the options above for accuracy. If they look okay,
type 'make all' to compile the NRPE daemon and client
or type 'make' to get a list of make options.
zzzzzzzzz:/export/stage/nagios/src/nrpe/nrpe-master# make all
cd ./src/; make
gcc -g -O2 -I/usr/include/openssl -DHAVE_CONFIG_H -I ../include -I ./../include -c ./snprintf.c
gcc -g -O2 -I/usr/include/openssl -DHAVE_CONFIG_H -I ../include -I ./../include -o nrpe ./nrpe.c ./utils.c ./acl.c -L/usr/lib -lssl -lcrypto -lnsl ./snprintf.o
./nrpe.c: In function 'init_ssl':
./nrpe.c:267: warning: assignment discards qualifiers from pointer target type
./nrpe.c:296: warning: assignment discards qualifiers from pointer target type
./nrpe.c:300: warning: assignment discards qualifiers from pointer target type
./nrpe.c:303: warning: assignment discards qualifiers from pointer target type
./nrpe.c:306: warning: assignment discards qualifiers from pointer target type
./nrpe.c:309: warning: assignment discards qualifiers from pointer target type
./nrpe.c: In function 'run_inetd':
./nrpe.c:569: error: 'O_WRONLY' undeclared (first use in this function)
./nrpe.c:569: error: (Each undeclared identifier is reported only once
./nrpe.c:569: error: for each function it appears in.)
./nrpe.c: In function 'set_stdio_sigs':
./nrpe.c:627: error: 'O_RDONLY' undeclared (first use in this function)
./nrpe.c:628: error: 'O_WRONLY' undeclared (first use in this function)
./nrpe.c: In function 'create_listener':
./nrpe.c
error: 'F_SETFL' undeclared (first use in this function)
./nrpe.c
error: 'O_NONBLOCK' undeclared (first use in this function)
./nrpe.c: In function 'handle_conn_ssl':
./nrpe.c
warning: assignment discards qualifiers from pointer target type
./nrpe.c: In function 'my_system':
./nrpe.c
error: 'F_SETFL' undeclared (first use in this function)
./nrpe.c
error: 'O_NONBLOCK' undeclared (first use in this function)
./nrpe.c: In function 'write_pid_file':
./nrpe.c
error: 'O_RDONLY' undeclared (first use in this function)
./nrpe.c
error: 'O_WRONLY' undeclared (first use in this function)
./nrpe.c
error: 'O_CREAT' undeclared (first use in this function)
./utils.c: In function 'open_log_file':
./utils.c:473: error: 'O_RDWR' undeclared (first use in this function)
./utils.c:473: error: (Each undeclared identifier is reported only once
./utils.c:473: error: for each function it appears in.)
./utils.c:473: error: 'O_APPEND' undeclared (first use in this function)
./utils.c:473: error: 'O_CREAT' undeclared (first use in this function)
./utils.c:511: error: 'F_SETFD' undeclared (first use in this function)
./utils.c:511: error: 'FD_CLOEXEC' undeclared (first use in this function)
make: 1254-004 The error code from the last command is 1.
Stop.
make: 1254-004 The error code from the last command is 2.
Stop.
szzzzzzz:/export/stage/nagios/src/nrpe/nrpe-master#
For AIX Version 7.1
Has anyone had success to compile the latest version of nrpe for AIX 7.1
I am having problems/errors
1. # ./configure --configure --enable-command-args
Goes thorough the motions and all looks good.
The problem is when I running "make all"
I get this:
*** Configuration summary for nrpe 3.1.1 2017-05-24 ***:
General Options:
-------------------------
NRPE port: 5666
NRPE user: nagios
NRPE group: nagios
Nagios user: nagios
Nagios group: nagios
Review the options above for accuracy. If they look okay,
type 'make all' to compile the NRPE daemon and client
or type 'make' to get a list of make options.
zzzzzzzzz:/export/stage/nagios/src/nrpe/nrpe-master# make all
cd ./src/; make
gcc -g -O2 -I/usr/include/openssl -DHAVE_CONFIG_H -I ../include -I ./../include -c ./snprintf.c
gcc -g -O2 -I/usr/include/openssl -DHAVE_CONFIG_H -I ../include -I ./../include -o nrpe ./nrpe.c ./utils.c ./acl.c -L/usr/lib -lssl -lcrypto -lnsl ./snprintf.o
./nrpe.c: In function 'init_ssl':
./nrpe.c:267: warning: assignment discards qualifiers from pointer target type
./nrpe.c:296: warning: assignment discards qualifiers from pointer target type
./nrpe.c:300: warning: assignment discards qualifiers from pointer target type
./nrpe.c:303: warning: assignment discards qualifiers from pointer target type
./nrpe.c:306: warning: assignment discards qualifiers from pointer target type
./nrpe.c:309: warning: assignment discards qualifiers from pointer target type
./nrpe.c: In function 'run_inetd':
./nrpe.c:569: error: 'O_WRONLY' undeclared (first use in this function)
./nrpe.c:569: error: (Each undeclared identifier is reported only once
./nrpe.c:569: error: for each function it appears in.)
./nrpe.c: In function 'set_stdio_sigs':
./nrpe.c:627: error: 'O_RDONLY' undeclared (first use in this function)
./nrpe.c:628: error: 'O_WRONLY' undeclared (first use in this function)
./nrpe.c: In function 'create_listener':
./nrpe.c
./nrpe.c
./nrpe.c: In function 'handle_conn_ssl':
./nrpe.c
./nrpe.c: In function 'my_system':
./nrpe.c
./nrpe.c
./nrpe.c: In function 'write_pid_file':
./nrpe.c
./nrpe.c
./nrpe.c
./utils.c: In function 'open_log_file':
./utils.c:473: error: 'O_RDWR' undeclared (first use in this function)
./utils.c:473: error: (Each undeclared identifier is reported only once
./utils.c:473: error: for each function it appears in.)
./utils.c:473: error: 'O_APPEND' undeclared (first use in this function)
./utils.c:473: error: 'O_CREAT' undeclared (first use in this function)
./utils.c:511: error: 'F_SETFD' undeclared (first use in this function)
./utils.c:511: error: 'FD_CLOEXEC' undeclared (first use in this function)
make: 1254-004 The error code from the last command is 1.
Stop.
make: 1254-004 The error code from the last command is 2.
Stop.
szzzzzzz:/export/stage/nagios/src/nrpe/nrpe-master#