[Nagios-devel] patch to CVS version so embedded perl will compile

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

[Nagios-devel] patch to CVS version so embedded perl will compile

Post by Guest »

--EVF5PPMfhYS0aIcm
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

The enclosed patch fixes the "my_perl undeclared" errors when
compiling nagios with the embedded perl interpreter (at least on
Debian/Unstable with gcc-2.9.5 and perl 5.8.0)

The patch is very short, and I'm not sure whether this list allows
attachments, so I'm going to both attach and embed it.

--- nagios/base/nagios.c~ 2002-09-15 22:25:36.000000000 -0400
+++ nagios/base/nagios.c 2002-11-09 11:48:10.000000000 -0500
@@ -56,6 +56,7 @@
#ifdef EMBEDDEDPERL
#include
#include
+static PerlInterpreter *my_perl;
#include

/* include PERL xs_init code for module and C library support */
--- nagios/base/utils.c~ 2002-11-09 11:44:20.000000000 -0500
+++ nagios/base/utils.c 2002-11-09 11:45:44.000000000 -0500
@@ -45,6 +45,7 @@
#ifdef EMBEDDEDPERL
#include
#include
+static PerlInterpreter *my_perl;
#include
/* In perl.h (or friends) there is a macro that defines sighandler as Perl_sighandler, so we must #undef it so we can use our sighandler() function */
#undef sighandler


--
Robert August Vincent, II (pronounced "bob" or "bob-vee")
bobvin@pillars.net, geek@large, computerwhiz@bobvincent.org
--EVF5PPMfhYS0aIcm
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="nagios-embedded-perl-fix.diff"

--- nagios/base/nagios.c~ 2002-09-15 22:25:36.000000000 -0400
+++ nagios/base/nagios.c 2002-11-09 11:48:10.000000000 -0500
@@ -56,6 +56,7 @@
#ifdef EMBEDDEDPERL
#include
#include
+static PerlInterpreter *my_perl;
#include

/* include PERL xs_init code for module and C library support */
--- nagios/base/utils.c~ 2002-11-09 11:44:20.000000000 -0500
+++ nagios/base/utils.c 2002-11-09 11:45:44.000000000 -0500
@@ -45,6 +45,7 @@
#ifdef EMBEDDEDPERL
#include
#include
+static PerlInterpreter *my_perl;
#include
/* In perl.h (or friends) there is a macro that defines sighandler as Perl_sighandler, so we must #undef it so we can use our sighandler() function */
#undef sighandler

--EVF5PPMfhYS0aIcm--





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: bobvin@pillars.net
Locked