Page 1 of 1

NRPE compilation error

Posted: Tue Oct 15, 2013 11:03 am
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

Re: NRPE compilation error

Posted: Tue Oct 15, 2013 12:01 pm
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

Re: NRPE compilation error

Posted: Tue Oct 15, 2013 12:04 pm
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 

Re: NRPE compilation error

Posted: Tue Oct 15, 2013 12:21 pm
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.

Re: NRPE compilation error

Posted: Tue Oct 15, 2013 1:37 pm
by mutts
Cool, first time I've ever discovered a bug.

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

Thanks

Re: NRPE compilation error

Posted: Tue Oct 15, 2013 1:56 pm
by abrist
Great! I assigned Eric to the task. For now, either compile with ssl, or roll back to a previous version of nrpe.

Re: NRPE compilation error

Posted: Sat Nov 30, 2013 6:54 pm
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 ***

Re: NRPE compilation error

Posted: Mon Dec 02, 2013 11:27 am
by slansing
Thanks for the information, I would tack on to the tracker ticket as well as updates should come through there.