--enable-memory-limit, compilation errors

From: Date: Sat, 20 Nov 2004 12:35:51 +0000
Subject: --enable-memory-limit, compilation errors
Groups: php.internals 
Request: Send a blank email to internals+get-13897@lists.php.net to get a copy of this message
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

« previous php.internals (#13897) next »