Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Jul 2005 12:40:11 +0200 (CEST)
From:      Krzysztof Stryjek <wtp+cactid@bsdguru.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/84286: cactid port does not compile
Message-ID:  <20050729104011.4314D262F4@fw.wtp3.org>
Resent-Message-ID: <200507291050.j6TAoEPb080988@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         84286
>Category:       ports
>Synopsis:       cactid port does not compile
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 29 10:50:14 GMT 2005
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050729104011.4314D262F4>