Nagios 3.4.0 complilation error (and trivial fix)

Randal, Phil phil.randal at hoopleltd.co.uk
Tue May 8 16:03:55 CEST 2012


Hi folks,

Trying to compile nagios 3.4.0 gave me this error:

checks.c: In function 'run_async_service_check':
checks.c:714:5: error: 'temp_buffer' undeclared (first use in this function)

Patch to fix the compilation error is:

--- nagios/base/checks.c        2012-05-08 14:36:02.000000000 +0100
+++ nagios/base/checks.c        2012-05-08 14:35:45.000000000 +0100
@@ -469,6 +469,7 @@
        double old_latency = 0.0;
        dbuf checkresult_dbuf;
        int dbuf_chunk = 1024;
+       char *temp_buffer;
#ifdef USE_EVENT_BROKER
        int neb_result = OK;
#endif


Cheers,

Phil

--
Phil Randal
Infrastructure Engineer
Hoople Ltd | Thorn Office Centre | Hereford HR2 6JT
Tel: 01432 260415 | Email: phil.randal at hoopleltd.co.uk

"Any opinion expressed in this e-mail or any attached files are those of the individual and not necessarily those of Hoople Ltd. You should be aware that Hoople Ltd. monitors its email service. This e-mail and any attached files are confidential and intended solely for the use of the addressee. This communication may contain material protected by law from being passed on. If you are not the intended recipient and have received this e-mail in error, you are advised that any use, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited. If you have received this e-mail in error please contact the sender immediately and destroy all copies of it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20120508/8616ecbd/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
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/
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list