From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Feb 24 13:00:11 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9A1BA1065672 for ; Tue, 24 Feb 2009 13:00:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 84C298FC14 for ; Tue, 24 Feb 2009 13:00:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n1OD0BV3080269 for ; Tue, 24 Feb 2009 13:00:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n1OD0BNN080268; Tue, 24 Feb 2009 13:00:11 GMT (envelope-from gnats) Date: Tue, 24 Feb 2009 13:00:11 GMT Message-Id: <200902241300.n1OD0BNN080268@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: =?ISO-8859-1?Q?Sebasti=E1n_Guarino?= Cc: Subject: Re: ports/131993: net-mgmt/nagios: Bus error on nagios 3.0.x with perl 5.8.9 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: =?ISO-8859-1?Q?Sebasti=E1n_Guarino?= List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Feb 2009 13:00:12 -0000 The following reply was made to PR ports/131993; it has been noted by GNATS. From: =?ISO-8859-1?Q?Sebasti=E1n_Guarino?= To: bug-followup@FreeBSD.org Cc: jarrod@netleader.com.au Subject: Re: ports/131993: net-mgmt/nagios: Bus error on nagios 3.0.x with perl 5.8.9 Date: Tue, 24 Feb 2009 10:28:21 -0200 This is a multi-part message in MIME format. --------------070504000804050006040806 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Here is a patch to the files directory on the nagios ports that makes nagios work properly. And here is a link to my post on nagios-devel. http://article.gmane.org/gmane.network.nagios.devel/6059). It was a problem of not using a dynamic variable when using embedded perl. Maybe it can be included first in the port to get 3.0.x work instead of waiting a new release. Sebastian Guarino --------------070504000804050006040806 Content-Type: text/x-csrc; name="patch-utils.c" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch-utils.c" --- base/utils.c-old 2009-02-23 15:36:28.000000000 -0200 +++ base/utils.c 2009-02-23 16:00:51.000000000 -0200 @@ -3597,7 +3597,7 @@ /* initializes embedded perl interpreter */ int init_embedded_perl(char **env){ #ifdef EMBEDDEDPERL - char *embedding[]={ "", "" }; + void **embedding; int exitstatus=0; char *temp_buffer=NULL; int argc=2; @@ -3612,8 +3612,11 @@ } else{ - - embedding[1]=p1_file; + embedding = (void **)malloc(2*sizeof(char *)); + if(embedding==NULL) + return ERROR; + *embedding=strdup(""); + *(embedding+1)=strdup(p1_file); use_embedded_perl=TRUE; --------------070504000804050006040806--