Bug #54213 [Opn->Bgs]: intl support is broken (OS X)
Edit report at http://bugs.php.net/bug.php?id=54213&edit=1
ID: 54213
Updated by: scottmac@php.net
Reported by: atiware at gmx dot net
Summary: intl support is broken (OS X)
-Status: Open
+Status: Bogus
Type: Bug
Package: Compile Failure
Operating System: osx 10.6
PHP Version: 5.3.5
Block user comment: N
Private report: N
New Comment:
OSX is broken here.
libxml forward declares UChar* so by including both libxml and intl you
get an
error. We can't fix this, other than not including one or the other.
Previous Comments:
------------------------------------------------------------------------
[2011-03-10 17:41:00] atiware at gmx dot net
Description:
------------
On OS X is not possible to install php with intl support. both, the
internal and pecl versions are broken
i tried with php 5.3.3, php 5.3.5
icu version: 3.6 and 4.6
for the pecl bug see: http://pecl.php.net/bugs/bug.php?id=18656
Test script:
---------------
./configure --with-apxs2=/usr/local/apache/bin/apxs --enable-intl
make
Expected result:
----------------
compile with intl support
Actual result:
--------------
/bin/sh /Users/xy/install_2/packages-extracted/php/php-5.3.5/libtool
--silent --preserve-dup-deps --mode=compile gcc -Imain/
-I/Users/xy/install_2/packages-extracted/php/php-5.3.5/main/
-DPHP_ATOM_INC
-I/Users/xy/install_2/packages-extracted/php/php-5.3.5/include
-I/Users/xy/install_2/packages-extracted/php/php-5.3.5/main
-I/Users/xy/install_2/packages-extracted/php/php-5.3.5
-I/Users/xy/install_2/packages-extracted/php/php-5.3.5/ext/date/lib
-I/Users/xy/install_2/packages-extracted/php/php-5.3.5/ext/ereg/regex
-I/usr/include/libxml2 -I/usr/local/icu/include
-I/Users/xy/install_2/packages-extracted/php/php-5.3.5/ext/sqlite3/libsqlite
-I/Users/xy/install_2/packages-extracted/php/php-5.3.5/TSRM
-I/Users/xy/install_2/packages-extracted/php/php-5.3.5/Zend
-no-cpp-precomp -I/usr/include -arch x86_64 -O2 -fvisibility=hidden -c
main/internal_functions.c -o main/internal_functions.lo
In file included from /usr/local/icu/include/unicode/utypes.h:36,
from
/Users/xy/install_2/packages-extracted/php/php-5.3.5/ext/intl/grapheme/grapheme.h:21,
from
/Users/xy/install_2/packages-extracted/php/php-5.3.5/ext/intl/php_intl.h:26,
from main/internal_functions.c:41:
/usr/local/icu/include/unicode/umachine.h:328: error: redefinition of
typedef âUCharâ
/usr/include/libxml2/libxml/encoding.h:41: error: previous declaration
of âUCharâ was here
make: *** [main/internal_functions.lo] Error 1
make: *** Waiting for unfinished jobs....
ERROR: can't build php, custom builder exited with errorcode: 2
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=54213&edit=1
Thread (3 messages)