Re: [Nagios-devel] Fwd: [Nagios-users] ?checkresult_file? undeclared
Posted: Fri May 18, 2007 3:12 am
--uZ3hkaAS1mZxFaxD
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
I came across this problem yesterday but my post got held for
moderation.
Looks like a cut and paste mixup. Patch attached.
Patch attached
On Fri, May 18, 2007 at 10:53:24AM +0200, Hendrik Baecker wrote:
> Hi Ingo,
>
> as Jörg wrote in the other post, this is just a behavior when using ePN.
>
> Ingo Lantschner schrieb:
> >> $ make all
> >> cd ./base && make
> >> make[1]: Entering directory `/home/ingo/tmp/nagios-3.0a4/base'
> >> gcc -g -O2 -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -
> >> fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -
> >> D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.8/CORE -DHAVE_CONFIG_H -
> >> DNSCORE -c -o broker.o broker.c
> >> gcc -g -O2 -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -
> >> fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -
> >> D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.8/CORE -DHAVE_CONFIG_H -
> >> DNSCORE -c -o nebmods.o nebmods.c
> >> gcc -g -O2 -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -
> >> fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -
> >> D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.8/CORE -DHAVE_CONFIG_H -
> >> DNSCORE -c -o checks.o checks.c
> >> checks.c: In function ?run_async_service_check?:
> >> checks.c:688: error: (first use in this function)
> >> checks.c:688: error: (Each undeclared identifier is reported only once
> >> checks.c:688: error: for each function it appears in.)
> >> make[1]: *** [checks.o] Error 1
> >> make[1]: Leaving directory `/home/ingo/tmp/nagios-3.0a4/base'
> >> make: *** [all] Error 2
> >>
> >> ----------------------
> >>
> >> Compiling 3.0a3 just worked on this machine - so I guess all
> >> dependencies are met.
> >>
> Since the variable on line 688 "checkresult_file" is only used once in
> checks.c and there only for a call to free() I think this is a line of
> garbage forgotten after dealing with the new IPC methods.
>
> So I would say: Just comment this line out with two slashes at the
> beginning and try to compile.
>
> @List: Correct me if I'm wrong.
>
> Regards
> Hendrik
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Nagios-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/lis ... gios-devel
>
--
John
http://www.inodes.org/
--uZ3hkaAS1mZxFaxD
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=diff
diff -rU 3 nagios.orig/base/checks.c nagios/base/checks.c
--- nagios.orig/base/checks.c 2007-05-17 15:40:55.000000000 +1000
+++ nagios/base/checks.c 2007-05-17 15:33:55.000000000 +1000
@@ -681,7 +681,7 @@
}
/* free memory */
- my_free((void **)&checkresult_file);
+ my_free((void **)&(check_result_info.output_file));
/* free memory */
dbuf_free(&checkresult_dbuf);
--uZ3hkaAS1mZxFaxD--
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]