NRPE compilation error

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
mutts
Posts: 5
Joined: Wed Sep 21, 2011 4:09 pm

NRPE compilation error

Post by mutts »

Can't seem to find a dedicated NRPE support forum, so I hope posting here isn't inappropriate.

I'm trying to compile NRPE 2.15 on CentOS 6.4 with ./configure --disable-ssl. This works without errors.

But:

Code: Select all

[root@nagios nrpe-2.15]# make all
cd ./src/; make ; cd ..
make[1]: Entering directory `/home/tim/scratch/nrpe-2.15/src'
gcc -g -O2 -DHAVE_CONFIG_H -I ../include -I ./../include -o nrpe ./nrpe.c ./utils.c ./acl.c  -lnsl -lwrap  
./nrpe.c:103: error: expected ‘)’ before ‘*’ token
./nrpe.c:1799: error: expected ‘)’ before ‘*’ token
make[1]: *** [nrpe] Error 1
make[1]: Leaving directory `/home/tim/scratch/nrpe-2.15/src'

*** Compile finished ***

If the NRPE daemon and client compiled without any errors, you
can continue with the installation or upgrade process.

Read the PDF documentation (NRPE.pdf) for information on the next
steps you should take to complete the installation or upgrade.
Line 103 of nrpe.c:

Code: Select all

void complete_SSL_shutdown( SSL *);
and 1799:

Code: Select all

void complete_SSL_shutdown( SSL *ssl) {
NRPE compiles just fine if I leave the --disable-ssl flag off, but that's not an option I want to get into right now.

Does anyone have any suggestions?

Thanks
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: NRPE compilation error

Post by abrist »

mutts wrote:Can't seem to find a dedicated NRPE support forum, so I hope posting here isn't inappropriate.
Nope, here is fine :)
mutts wrote:NRPE compiles just fine if I leave the --disable-ssl flag off, but that's not an option I want to get into right now.

Does anyone have any suggestions?
SSL really is easy to implement for what it is worth. This may be a bug with 2.15. I have a 6.4 test box I will try it out on shortly. Do you even have openssl installed?

Code: Select all

yum list installed | grep openssl
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
mutts
Posts: 5
Joined: Wed Sep 21, 2011 4:09 pm

Re: NRPE compilation error

Post by mutts »

Thanks for the reply.

I do have openssl installed:

Code: Select all

[root@nagios var]# yum list installed | grep openssl
openssl.x86_64                       1.0.0-27.el6_4.2                 @update   
openssl-devel.x86_64                 1.0.0-27.el6_4.2                 @update 
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: NRPE compilation error

Post by abrist »

Bug confirmed. Please open a bug report at: http://tracker.nagios.org. Post the link to the bug here and I will make sure to assign it to our nrpe dev.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
mutts
Posts: 5
Joined: Wed Sep 21, 2011 4:09 pm

Re: NRPE compilation error

Post by mutts »

Cool, first time I've ever discovered a bug.

My report is http://tracker.nagios.org/view.php?id=505

Thanks
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: NRPE compilation error

Post by abrist »

Great! I assigned Eric to the task. For now, either compile with ssl, or roll back to a previous version of nrpe.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: NRPE compilation error

Post by Box293 »

I had the same error with 2.14.

Code: Select all

sudo make all
cd ./src/; make ; cd ..
make[1]: Entering directory `/var/tmp/nagios/nrpe-2.14/src'
gcc -g -O2 -DHAVE_CONFIG_H -I ../include -I ./../include -o nrpe ./nrpe.c ./utils.c ./acl.c  -lnsl
./nrpe.c:92:33: error: expected ')' before '*' token
./nrpe.c:1676:33: error: expected ')' before '*' token
make[1]: *** [nrpe] Error 1
make[1]: Leaving directory `/var/tmp/nagios/nrpe-2.14/src'

*** Compile finished ***
2.13 seemed to compile fine for me.

Code: Select all

sudo make all
cd ./src/; make ; cd ..
make[1]: Entering directory `/var/tmp/nagios/nrpe-2.13/src'
gcc -g -O2 -DHAVE_CONFIG_H -o nrpe nrpe.c utils.c acl.c  -lnsl
gcc -g -O2 -DHAVE_CONFIG_H -o check_nrpe check_nrpe.c utils.c  -lnsl
make[1]: Leaving directory `/var/tmp/nagios/nrpe-2.13/src'

*** Compile finished ***
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: NRPE compilation error

Post by slansing »

Thanks for the information, I would tack on to the tracker ticket as well as updates should come through there.
Locked