Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13897 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92129 invoked by uid 1010); 20 Nov 2004 12:35:53 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 92104 invoked from network); 20 Nov 2004 12:35:52 -0000 Received: from unknown (HELO orion.naeberg.org) (195.137.249.185) by pb1.pair.com with SMTP; 20 Nov 2004 12:35:52 -0000 Received: from ip-228.net-81-220-166.nice.rev.numericable.fr ([81.220.166.228] helo=[192.168.230.101]) by orion.naeberg.org with esmtpa (Exim 4.43 (FreeBSD)) id 1CVUT1-0005dK-Ml; Sat, 20 Nov 2004 13:35:51 +0100 Message-ID: <419F3A27.8060102@naedev.org> Date: Sat, 20 Nov 2004 13:35:51 +0100 User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orion.naeberg.org X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [26 6] X-AntiAbuse: Sender Address Domain - naedev.org X-Source: X-Source-Args: X-Source-Dir: Subject: --enable-memory-limit, compilation errors From: fulax@naedev.org (Cyprien Nicolas) Hi, I've tried to compile PHP with --enable-memory-limit, and it works well with PHP 4.3.9, PHP_4_3 Branch, PHP 5.0.2, but not with PHP_5_1 branch, I've tried with freebsd and gentoo, it fails when making the cgi or cli executable. I get this error : On FreeBSD 5.1, gcc version 3.2.2 [FreeBSD] 20030205 (release) ext/standard/basic_functions.o: In function `zif_getopt': /usr/src/php/php-5.1-cgi/ext/standard/basic_functions.c:1700: undefined reference to `zif_memory_get_usage' *** Error code 1 Stop in /usr/src/php/php-5.1-cgi. And on Gentoo 2004.1, gcc version 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6) ext/standard/basic_functions.lo(.data.rel+0x11ac): In function `zif_ip2long': /home/cvs/php/PHP_5_1/ext/standard/basic_functions.c:1366: undefined reference to `zif_memory_get_usage' collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1 Can someone fix it ? Thanks in advance, Cyprien Fulax Nicolas fulax@naedev.org