Page 1 of 1

nagios-plugins won't compile (ssl_version undeclared)

Posted: Mon May 13, 2013 11:30 am
by GaWd
Hello All,

I am installing a nagios system in a remote network and all is well with it. I am trying to compile the plugins on a remote server for NRPE, however, and I've run into an issue:

check_http.c:312: error: ssl_version undeclared

Normally, I would just load openssl-devel, and it would compile. I've had to do this every time I have installed or configured for nagios. Only this time, after loading openssl_devel, it didn't work!

Any ideas?

This is RHEL 6.4, Nagios 3.5, Nagios tools 1.4.16.

I'm perplexed.

Re: nagios-plugins won't compile (ssl_version undeclared)

Posted: Mon May 13, 2013 11:32 am
by GaWd
Here are the open ssl packages installed:

[root@xyz123 nagios-plugins-1.4.16]# rpm -qa |grep ssl
openssl-devel-0.9.8e-26.el5_9.1
openssl-0.9.8e-26.el5_9.1

Re: nagios-plugins won't compile (ssl_version undeclared)

Posted: Mon May 13, 2013 11:34 am
by lmiltchev
Try installing libssl-dev and reconfiguring.

Re: nagios-plugins won't compile (ssl_version undeclared)

Posted: Mon May 13, 2013 12:10 pm
by GaWd
I believe openssl-devel is the RH equivalent of libssl-dev.

And a minor correction: this box is running RHEL 5.9. THe main Nagios server is on RHEL 6.4.

Re: nagios-plugins won't compile (ssl_version undeclared)

Posted: Mon May 13, 2013 4:37 pm
by abrist
This could be a known bug (that apparently?) never got fixed. See: http://sourceforge.net/mailarchive/mess ... d=29560342
After looking at the file, I noticed that 'ssl_version' variable was declared within an '#ifdef HAVE_SSL'. After moving the 'ssl_version' declaration outside of the '#ifdef', it compiled fine. I couldn't find anything about this on Google, so I'm sending you this email to make sure you are aware of the issue.
You could try to update openssl and openssl-devel beforehand, and then try to build the package. If it does not work, then you could move to the "fix" above.

Code: Select all

yum update openssl openssl-devel