Page 1 of 1

AIX ver 7.1

Posted: Fri Apr 21, 2017 10:49 am
by cmontalvo80
Moderator Edit: This thread has been split from another - https://support.nagios.com/forum/viewto ... f=6&t=8979
In the future, please create a new thread and link to the old one instead of adding on.


Hi Everyone, not sure if anyone here is still available to maybe help me out with and issue I'm coming across in trying to compile and install NRPE version: nrpe-3.1.0. Here are the steps I have followed so far, my environment and the issues I'm coming across:

Environment:
AIX 7.1

Code: Select all

 oslevel -s
7100-04-03-1642
Accomplished so far:
So far I successfully installed Nagios Plugin version 2.2.0. The next step in the documentation I'm following is to install the NRPE (https://github.com/NagiosEnterprises/nr ... s/NRPE.pdf)

Issue:
I've attempted to run the ./configure command with different parameters. The latest I tried was the following:

Code: Select all

./configure --enable-command-args
I'm including a document of the output from this command
Once that runs successfully, I am attempting to either run:

Code: Select all

make all
OR

Code: Select all

make nrpe
This is where I come across an issue. I am including the output from the make call, it has the same problem with both make calls I've attempted, the main source of the problem seems to happen within the utils.c code:
./utils.c:479:51: error: 'O_NOFOLLOW' undeclared (first use in this function)
if ((fh = open(log_file, O_RDWR|O_APPEND|O_CREAT|O_NOFOLLOW, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH)) == -1) {
^
./utils.c:479:51: note: each undeclared identifier is reported only once for each function it appears in
make: The error code from the last command is 1.


Stop.
make: The error code from the last command is 2.


Stop.

Re: AIX ver 7.1

Posted: Fri Apr 21, 2017 10:55 am
by jfrickson
The problem with O_NOFOLLOW has been fixed in the "maint" branch. Try https://github.com/NagiosEnterprises/nr ... int.tar.gz and see if that works.

Re: AIX ver 7.1

Posted: Fri Apr 21, 2017 12:15 pm
by cmontalvo80
Post by jfrickson » Fri Apr 21, 2017 8:55 am

The problem with O_NOFOLLOW has been fixed in the "maint" branch. Try https://github.com/NagiosEnterprises/nr ... int.tar.gz and see if that works.
Thanks so much for your help! That allowed me to get past this issue.

Re: AIX ver 7.1

Posted: Fri Apr 21, 2017 1:09 pm
by cdienger
Glad to hear. Did you have any additional questions?

Re: AIX ver 7.1

Posted: Fri Apr 21, 2017 2:28 pm
by cmontalvo80
Post by cdienger » Fri Apr 21, 2017 11:09 am

Glad to hear. Did you have any additional questions?
I do but I've created a new thread for it: https://support.nagios.com/forum/viewto ... =6&t=43577