From wtp@wtp3.org  Fri Jul 29 10:40:18 2005
Return-Path: <wtp@wtp3.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id E162116A41F
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 29 Jul 2005 10:40:18 +0000 (GMT)
	(envelope-from wtp@wtp3.org)
Received: from mx1.wtp3.org (201-moc-7.acn.waw.pl [212.76.58.201])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 680F543D48
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 29 Jul 2005 10:40:17 +0000 (GMT)
	(envelope-from wtp@wtp3.org)
Received: from localhost (localhost.lan.wtp3.org [127.0.0.1])
	by fw.wtp3.org (Postfix) with ESMTP id 79367262F6
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 29 Jul 2005 12:40:16 +0200 (CEST)
Received: from mx1.wtp3.org ([127.0.0.1])
 by localhost (fw.wtp3.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP
 id 55868-03 for <FreeBSD-gnats-submit@freebsd.org>;
 Fri, 29 Jul 2005 12:40:11 +0200 (CEST)
Received: by fw.wtp3.org (Postfix, from userid 1000)
	id 4314D262F4; Fri, 29 Jul 2005 12:40:11 +0200 (CEST)
Message-Id: <20050729104011.4314D262F4@fw.wtp3.org>
Date: Fri, 29 Jul 2005 12:40:11 +0200 (CEST)
From: Krzysztof Stryjek <wtp+cactid@bsdguru.org>
Reply-To: Krzysztof Stryjek <wtp+cactid@bsdguru.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: cactid port does not compile
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         84286
>Category:       ports
>Synopsis:       cactid port does not compile
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    clement
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 29 10:50:14 GMT 2005
>Closed-Date:    Sat Jul 30 21:40:30 GMT 2005
>Last-Modified:  Sat Jul 30 21:40:30 GMT 2005
>Originator:     Krzysztof Stryjek
>Release:        FreeBSD 4.10-STABLE i386
>Organization:
private person
>Environment:
System: FreeBSD fw.wtp3.org 4.10-STABLE FreeBSD 4.10-STABLE #5: Thu Apr 14 23:37:02 CEST 2005 toor@fw.wtp3.org:/usr/src/sys/compile/POOH i386

>Description:
	cactid is daemon for cacti to collect data. It's written in C, but it
seems that was only tested on Fedora Core (according to home page there is
info abnout compilation and instalationa only for FC disto). There is a call
to RLIMIT_AS constant which I have not found on FreeBSD, Debian and old
RedHat 9.0.

>How-To-Repeat:
	Just cd $PORTSDIR/net/cactid && make
>Fix:

	I've made a patch for php.c (source file). I've just commened out
lines, which are specific to Fedora Core :-)))

------------------- cut here ------------------------
--- php.c.orig	Thu Jun 23 04:31:11 2005
+++ php.c	Fri Jul 29 12:28:31 2005
@@ -163,13 +163,14 @@
 		}
     }
 
+/*
     if (getrlimit(RLIMIT_AS,&ResourceLimits) == 0) {
 		if (set.verbose == POLLER_VERBOSITY_DEBUG) {
 			printf("DEBUG: Current Address Space Allocation is '%i' bytes\n", ResourceLimits.rlim_cur);
 	        printf("DEBUG: Maximum Address Space Allocation is '%i' bytes\n", ResourceLimits.rlim_max);
 		}
     }
-
+*/
 	if (set.verbose == POLLER_VERBOSITY_DEBUG) {
 		snprintf(logmessage, LOGSIZE-1, "DEBUG: PHP Script Server Routine Starting\n");
 		cacti_log(logmessage);
------------------- cut here ------------------------

Greetings from Poland
--
Krzysztof Stryjek
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->clement 
Responsible-Changed-By: vs 
Responsible-Changed-When: Fri Jul 29 13:10:28 GMT 2005 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=84286 
State-Changed-From-To: open->closed 
State-Changed-By: clement 
State-Changed-When: Sat Jul 30 21:39:47 GMT 2005 
State-Changed-Why:  
I committed a fix from ports/83723. BTW, thanks for you contribution. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=84286 
>Unformatted:
