Re: [Nagios-devel] Nagios 3 (CVS 10282006) compile error if EPN is

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] Nagios 3 (CVS 10282006) compile error if EPN is

Post by Guest »

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





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked