[Nagiosplug-devel] 1.4.16: Error in check_http.c when compiling without SSL

Michael LaCorte mlacorte365 at gmail.com
Mon Jul 23 07:20:32 CEST 2012


Thanks for the response. I later did install SSL since I wanted to install NRPE anyway. Declaring 'ssl_version' outside the HAVE_SSL was just a workaround that I used to get the Makefile to build. Ideally you shouldn't need to check the SSL version if it won't be compiling with SSL, but that would have been more work for me, and I just wanted to get the plugins to install.

On Jul 22, 2012, at 10:04 PM, Dave Bonnell wrote:

> Michael LaCorte <mlacorte365 at ...> writes:
> 
>> 
>> Hello,
>> I was compiling the latest release of Nagios Plugins when I ran into a 
> compilation issue. Make was returning the following error when trying to compile 
> check_http.c (v1.4.16):
>> 
>>    check_http.c:312:9: error: ‘ssl_version’ undeclared (first use in this 
> function)
>> 
>> 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.
>> 
>> Thanks,
>> Michael LaCorte
> 
> Defining the variable only when HAVE_SSL is declared sounds correct.  The real 
> issue is appears to be the reference to ssl_version at line# 312.  I believe the 
> #endif at line# 309 should be #else and the #endif should be moved to just 
> before the break at line# 320.
> 
> BTW, if you want SSL support, install libssl-dev and re-run configure.  Make 
> will then succeed ;-)
> 
> 
> Regards,
> 
> Dave
> 
> 
> 
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and 
> threat landscape has changed and how IT managers can respond. Discussions 
> will include endpoint security, mobile security and the latest in malware 
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________________
> Nagios Plugin Development Mailing List Nagiosplug-devel at lists.sourceforge.net
> Unsubscribe at https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel
> ::: Please include plugins version (-v) and OS when reporting any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null





More information about the Devel mailing list