php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #54213 intl support is broken (OS X)
Submitted: 2011-03-10 17:41 UTC Modified: 2011-06-08 01:32 UTC
From: atiware at gmx dot net Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.3.5 OS: osx 10.6
Private report: No CVE-ID: None
 [2011-03-10 17:41 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-03-10 17:51 UTC] scottmac@php.net
-Status: Open +Status: Bogus
 [2011-03-10 17:51 UTC] scottmac@php.net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 21 15:01:34 2024 UTC