Page 1 of 1

nagios-plugins 1.4.16 has problem with make

Posted: Mon May 20, 2013 2:56 pm
by jssingh
I was trying to install nagios-plugins-1.4.16 on my machine and when I did a make it gave this error:
check_http.c: In function 'process_arguments':
check_http.c:312: error: 'ssl_version' undeclared (first use in this function)
check_http.c:312: error: (Each undeclared identifier is reported only once
check_http.c:312: error: for each function it appears in.)
make[2]: *** [check_http.o] Error 1
make[2]: Leaving directory `~/nagios-plugins-1.4.16/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `~/nagios-plugins-1.4.16'
make: *** [all] Error 2
I then tried installing version 1.4.15 and had no problems. I didn't get this error on the last machine I installed 1.4.16 on.

The one that got the error is:
Red Hat Enterprise Linux Workstation release 6.4 (Santiago)

and the machine didn't give an error is:
SUSE Linux Enterprise Server 11 (x86_64)

is there an issue with redhat? Should configure have caught the problem?

Re: nagios-plugins 1.4.16 has problem with make

Posted: Mon May 20, 2013 3:47 pm
by abrist
Do you have openssl and openssl-devel?
Is openssl installed:

Code: Select all

which openssl
Do you have the headers (for Redhat/CentOS):

Code: Select all

yum list installed | grep openssl

Re: nagios-plugins 1.4.16 has problem with make

Posted: Mon May 20, 2013 4:22 pm
by jssingh
ah, thanks. openssl is installed, but openssl-devel is not. I'm pretty sure that's the issue, since I was doing a configure for nrpe and got this error:
checking for SSL headers... configure: error: Cannot find ssl headers
Shouldn't configure for the nagios plugins have caught that error as well?

Re: nagios-plugins 1.4.16 has problem with make

Posted: Tue May 21, 2013 12:59 am
by ruffsense
SUSE does not use yum :?

Re: nagios-plugins 1.4.16 has problem with make

Posted: Tue May 21, 2013 10:22 am
by abrist
ruffsense wrote:SUSE does not use yum :?
Missed that you were using SUSE. The package you are looking for is:

Code: Select all

libssl-dev
If you use zypper:

Code: Select all

zypper install libssl-dev
Or just grab it with yast. Once the package is installed, rebuild nrpe/nagios plugins.

Re: nagios-plugins 1.4.16 has problem with make

Posted: Tue May 21, 2013 2:55 pm
by jssingh
no worries. It worked on SUSE, I was having the issues on Redhat. Once I installed openssl-devel everything worked!

Re: nagios-plugins 1.4.16 has problem with make

Posted: Tue May 21, 2013 3:04 pm
by abrist
great! lockin' 'er up!