Fwd: [Nagios-users] ‘checkresult_file’ undeclared

Hendrik Baecker andurin at process-zero.de
Fri May 18 10:53:24 CEST 2007


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/




More information about the Developers mailing list