#24402 [Fbk->Opn]: Compile Failure using --with-gettext (v. 0.12.x)
| From: | beckett at beckettmw dot com | Date: | Mon, 30 Jun 2003 15:15:36 +0000 |
| Subject: | #24402 [Fbk->Opn]: Compile Failure using --with-gettext (v. 0.12.x) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-42865@lists.php.net to get a copy of this message | ||
ID: 24402
User updated by: beckett at beckettmw dot com
-Summary: Compile Failure using --with-gettext
Reported By: beckett at beckettmw dot com
-Status: Feedback
+Status: Open
Bug Type: Gettext related
Operating System: Mac OS X/Darwin
PHP Version: 5.0.0b1 (beta1)
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[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