ID: 24402 Updated by: [EMAIL PROTECTED] Reported By: beckett at beckettmw dot com Status: Feedback Bug Type: Gettext related Operating System: Mac OS X/Darwin PHP Version: 5.0.0b1 (beta1) New Comment:
.. Previous Comments: ------------------------------------------------------------------------ [2003-06-30 07:14:22] [EMAIL PROTECTED] Do you get the same errors with latest PHP 4 (stable) snapshot? (from http://snaps.php.net) ------------------------------------------------------------------------ [2003-06-30 05:58:50] beckett at beckettmw dot com Description: ------------ On Mac OS X 10.2.6, I compiled PHP 4.3.1 with gettext 0.12 and GCC 3.1 (Apple v1151) just fine--no problems. But with 4.3.2 and now again with 5.0.0b1, I get the following compile error when reaching gettext.c: Compiler command that generates the error: gcc -Iext/gettext/ -I/dl/php-5.0.0b1/ext/gettext/ - DPHP_ATOM_INC -I/dl/php-5.0.0b1/include -I/dl/php- 5.0.0b1/main -I/dl/php-5.0.0b1 -I/dl/php-5.0.0b1/Zend - I/usr/local/include/libxml2 -I/usr/local/include -I/ usr/local/mysql/include -no-cpp-precomp -I/dl/php- 5.0.0b1/TSRM -g -O2 -c /dl/php-5.0.0b1/ext/gettext/ gettext.c -o ext/gettext/gettext.o && echo > ext/ gettext/gettext.lo Errors: /dl/php-5.0.0b1/ext/gettext/gettext.c:37: `zif_libintl_textdomain' undeclared here (not in a function) /dl/php-5.0.0b1/ext/gettext/gettext.c:37: initializer element is not constant /dl/php-5.0.0b1/ext/gettext/gettext.c:37: (near initialization for `php_gettext_functions[0].handler') /dl/php-5.0.0b1/ext/gettext/gettext.c:37: initializer element is not constant /dl/php-5.0.0b1/ext/gettext/gettext.c:37: (near initialization for `php_gettext_functions[0]') /dl/php-5.0.0b1/ext/gettext/gettext.c:38: `zif_libintl_gettext' undeclared here (not in a function) /dl/php-5.0.0b1/ext/gettext/gettext.c:38: initializer element is not constant /dl/php-5.0.0b1/ext/gettext/gettext.c:38: (near initialization for `php_gettext_functions[1].handler') /dl/php-5.0.0b1/ext/gettext/gettext.c:38: initializer element is not constant /dl/php-5.0.0b1/ext/gettext/gettext.c:38: (near initialization for `php_gettext_functions[1]') (...and so on, one set of errors for each of the gettext functions). ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=24402&edit=1
