#24402 [Com]: Compile Failure using --with-gettext (v. 0.12.x)

From: Date: Wed, 02 Jul 2003 17:13:10 +0000
Subject: #24402 [Com]: Compile Failure using --with-gettext (v. 0.12.x)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-43096@lists.php.net to get a copy of this message
ID: 24402 Comment by: page at sca dot uqam dot ca Reported By: beckett at beckettmw dot com Status: Open Bug Type: Gettext related Operating System: Mac OS X/Darwin PHP Version: 5.0.0b1 (beta1) New Comment: I have the same problem using php 4.3.2 with gettext 0.11.5 (from freeware.sgi.com). I am on SGI IRIX64 6.5.14m. Compilation fails with: /bin/sh /io/httpd/httpd-2.0.46/php-4.3.2/libtool -- silent --preserve-dup-deps --mode=compile cc -Iext/ gettext/ -I/io/httpd/httpd-2.0.46/php-4.3.2/ext/ gettext/ -DPHP_ATOM_INC -I/io/httpd/httpd-2.0.46/php- 4.3.2/include -I/io/httpd/httpd-2.0.46/php-4.3.2/main - I/io/httpd/httpd-2.0.46/php-4.3.2 -I/io/httpd/ apache_2.0.46/include -I/io/httpd/httpd-2.0.46/php- 4.3.2/Zend -I/usr/freeware/include -I/usr/freeware/ include/libxml2 -I/usr/local/mysql/include -I/io/httpd/ httpd-2.0.46/php-4.3.2/ext/xml/expat -D_XPG_IV -I/io/ httpd/httpd-2.0.46/php-4.3.2/TSRM -O2 -prefer-pic -c /io/httpd/httpd-2.0.46/php-4.3.2/ext/gettext/gettext.c -o ext/gettext/gettext.lo cc-1020 cc: ERROR File = /io/httpd/httpd-2.0.46/php- 4.3.2/ext/gettext/gettext.c, Line = 37 The identifier "zif_libintl_textdomain" is undefined. PHP_FE(textdomain, NULL) ^ cc-1020 cc: ERROR File = /io/httpd/httpd-2.0.46/php- 4.3.2/ext/gettext/gettext.c, Line = 38 The identifier "zif_libintl_gettext" is undefined. PHP_FE(gettext, NULL) ^ cc-1020 cc: ERROR File = /io/httpd/httpd-2.0.46/php- 4.3.2/ext/gettext/gettext.c, Line = 40 The identifier "zif_libintl_dgettext" is undefined. PHP_FE(dgettext, NULL) ^ cc-1020 cc: ERROR File = /io/httpd/httpd-2.0.46/php- 4.3.2/ext/gettext/gettext.c, Line = 41 The identifier "zif_libintl_dcgettext" is undefined. PHP_FE(dcgettext, NULL) ^ cc-1020 cc: ERROR File = /io/httpd/httpd-2.0.46/php- 4.3.2/ext/gettext/gettext.c, Line = 42 The identifier "zif_libintl_bindtextdomain" is undefined. PHP_FE(bindtextdomain, NULL) ^ cc-1020 cc: ERROR File = /io/httpd/httpd-2.0.46/php- 4.3.2/ext/gettext/gettext.c, Line = 44 The identifier "zif_libintl_ngettext" is undefined. PHP_FE(ngettext, NULL) ^ cc-1020 cc: ERROR File = /io/httpd/httpd-2.0.46/php- 4.3.2/ext/gettext/gettext.c, Line = 47 The identifier "zif_libintl_dngettext" is undefined. PHP_FE(dngettext, NULL) ^ cc-1020 cc: ERROR File = /io/httpd/httpd-2.0.46/php- 4.3.2/ext/gettext/gettext.c, Line = 50 The identifier "zif_libintl_dcngettext" is undefined. PHP_FE(dcngettext, NULL) ^ cc-1020 cc: ERROR File = /io/httpd/httpd-2.0.46/php- 4.3.2/ext/gettext/gettext.c, Line = 53 The identifier "zif_libintl_bind_textdomain_codeset" is undefined. PHP_FE(bind_textdomain_codeset, NULL) ^ 9 errors detected in the compilation of "/io/httpd/ httpd-2.0.46/php-4.3.2/ext/gettext/gettext.c". gnumake: *** [ext/gettext/gettext.lo] Error 1 Previous Comments: ------------------------------------------------------------------------ [2003-06-30 10:15:35] beckett at beckettmw dot com Update: ------- I have now tested PHP 4.3.1, 4.3.2, 5.0.0b1, as well as snaps dated 200306301330 of PHP4-STABLE, PHP4-CVS, and PHP5-CVS. In every case, PHP compiles with no errors if I use gettext 0.11.2. However, if I use gettext 0.12 or 0.12.1, the error listed occurs in every case of PHP. So my guess would be that something critical has changed in gettext between 0.11.2 and 0.12 that's preventing PHP from compiling. I have not yet had time to test this on platforms other than Mac OS X, but I will try on a Linux and a FreeBSD box later on today if possible. ------------------------------------------------------------------------ [2003-06-30 07:14:22] sniper@php.net 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

« previous php.bugs (#43096) next »