Nagios 3 (CVS 10282006) compile error if EPN is enabled

Joerg Linge pitchfork at ederdrom.de
Sat Oct 28 20:04:37 CEST 2006


Am Samstag, 28. Oktober 2006 19:43 schrieb Joerg Linge:
> Hi Ethan, hi List
>
> the latest CVS HEAD does not compile with --enable-embedded-perl
[...]

Here is a possible Patch

"make all" returns no errors. I will check the function tomorrow ;-)

diff -u nagios-cvs/base/utils.c nagios-cvs-fixed/base/utils.c
--- nagios-cvs/base/utils.c     2006-10-28 00:51:26.000000000 +0200
+++ nagios-cvs-fixed/base/utils.c       2006-10-28 19:49:11.000000000 +0200
@@ -2401,6 +2401,7 @@
        STRLEN n_a ;
        char *perl_output;
        int count;
+       int is_perl=FALSE;
        int use_epn=FALSE;
 #ifdef aTHX
        dTHX;
@@ -4942,8 +4943,8 @@
        FILE *fp=NULL;
        char line1[80]="";
        char line2[80]="";
+       char *buffer;
        int is_perl=FALSE;
-       int use_epn=FALSE;
        int found_epn_directive=FALSE;

        if(enable_embedded_perl==TRUE){
@@ -4958,7 +4959,7 @@
                        /* yep, its a Perl script... */
                        if(strstr(line1,"/bin/perl")!=NULL){

-                               isperl=TRUE;
+                               is_perl=TRUE;

                                /* second line MAY tell us explicity whether 
or not to use embedded Perl */
                                if(fgets(line2,80,fp)){

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642




More information about the Developers mailing list