Fwd: [Nagios-users] ?checkresult_file? undeclared

Ethan Galstad nagios at nagios.org
Sun May 20 18:07:57 CEST 2007


Looks like I forgot to remove some of the old code.  I'll get this fixed 
in CVS shortly...

John Ferlito wrote:
> 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
>>
-- 


Ethan Galstad,
Nagios Developer
---
Email: nagios at nagios.org
Website: http://www.nagios.org

-------------------------------------------------------------------------
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/




More information about the Developers mailing list