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 got:
% grep LIBINTL main/php_config.h
#define HAVE_LIBINTL 1
So everything seems fine for that variable in my
case...
Christian Pag�
Previous Comments:
------------------------------------------------------------------------
[2003-07-02 20:32:50] beckett at beckettmw dot com
> Can you please post the output of
>
> grep LIBINTL main/php_config.h
#define HAVE_LIBINTL 1
> If it does not say "#define HAVE_LIBINTL 1", can you
> please try:
>
> export LDFLAGS="$LDFLAGS -lintl"
> make distclean
> ./config.nice
Well, grep *did* return that line as expected, but
trying this altenative didn't work. Configure gets this
far:
| checking host system type... powerpc-apple-darwin6.6
| checking for gcc... gcc
| checking whether the C compiler (gcc -lintl)
works... no
| configure: error: installation or configuration
problem: C compiler cannot create executables.
Please let me know if I can run any further tests, or
if you can suggest a way to narrow down the problem.
Thanks for your time!!
------------------------------------------------------------------------
[2003-07-02 15:20:48] [EMAIL PROTECTED]
Can you please post the output of
grep LIBINTL main/php_config.h
(in the php directory). If it does not say "#define HAVE_LIBINTL 1",
can you please try:
export LDFLAGS="$LDFLAGS -lintl"
make distclean
./config.nice
------------------------------------------------------------------------
[2003-07-02 12:13:09] page at sca dot uqam dot ca
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
------------------------------------------------------------------------
[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] [EMAIL PROTECTED]
Do you get the same errors with latest PHP 4 (stable) snapshot? (from
http://snaps.php.net)
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/24402
--
Edit this bug report at http://bugs.php.net/?id=24402&edit=1