nagios-plugins won't compile (ssl_version undeclared)

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
GaWd
Posts: 51
Joined: Wed Dec 15, 2010 1:45 pm

nagios-plugins won't compile (ssl_version undeclared)

Post 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.
GaWd
Posts: 51
Joined: Wed Dec 15, 2010 1:45 pm

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

Post 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
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

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

Post by lmiltchev »

Try installing libssl-dev and reconfiguring.
Be sure to check out our Knowledgebase for helpful articles and solutions!
GaWd
Posts: 51
Joined: Wed Dec 15, 2010 1:45 pm

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

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

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

Post 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
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.
Locked