‘checkresult_file’ undeclared

Ingo Lantschner ingo.lists at vum.at
Fri May 18 14:51:24 CEST 2007


Hi Hendrik,
thanks for your reply and suggestion!

Am 18.05.2007 um 10:53 schrieb Hendrik Baecker:

> as Jörg wrote in the other post, this is just a behavior when using  
> ePN.
 >[...]
> 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.

Ok, I tried it and the situation has changed, but still some error  
with ePN:

$ ./configure --with-command-group=nagcmd --enable-embedded-perl -- 
with-perlcache
[...]
*** Configuration summary for nagios 3.0a4 05-08-2007 ***:

General Options:
-------------------------
         Nagios executable:  nagios
         Nagios user/group:  nagios,nagios
        Command user/group:  nagios,nagcmd
             Embedded Perl:  yes, with caching
              Event Broker:  yes
         Install ${prefix}:  /usr/local/nagios
                 Lock file:  ${prefix}/var/nagios.lock
    Check result directory:  ${prefix}/var/spool/checkresults
            Init directory:  /etc/init.d
   Apache conf.d directory:  /etc/apache2/conf.d
              Mail program:  /usr/bin/mail
                   Host OS:  linux-gnu


$ 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 checks.o checks.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 perlxsi.o perlxsi.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 -o nagios nagios.c broker.o nebmods.o checks.o config.o  
commands.o events.o flapping.o logging.o notifications.o sehandlers.o  
utils.o retention-base.o xretention-base.o comments-base.o xcomments- 
base.o objects-base.o xobjects-base.o statusdata-base.o xstatusdata- 
base.o perfdata-base.o xperfdata-base.o downtime-base.o xdowntime- 
base.o   perlxsi.o -Wl,-export-dynamic   -Wl,-E  -L/usr/local/lib / 
usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl/5.8/ 
CORE -lperl -ldl -lm -lpthread -lc -lcrypt -lm  -lpthread -ldl
/usr/bin/ld: cannot find -lperl
collect2: ld returned 1 exit status
make[1]: *** [nagios] Error 1
make[1]: Leaving directory `/home/ingo/tmp/nagios-3.0a4/base'
make: *** [all] Error 2

Seems as if something else is not as it should be ...

-- 
Ingo Lantschner
Vienna/Austria
Mob (+43-664) 143 84 18



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