josegonzalez/homebrew-php — Issue #9: issue with system libxml on snow leopard when using --with-intl
Author: lotia
Created: 2012-02-29 11:36:43+00:00
State: open

There is an issue with the system libxml2 clashing with icu4c (4.8.1.1 installed via Homebrew) when using the --with-intl formula option.

The error returned is as follows:

In file included from /usr/local/Cellar/icu4c/4.8.1.1/include/unicode/utypes.h:36,
from /private/tmp/homebrew-php-5.3.10-8IqT/php-5.3.10/ext/intl/grapheme/grapheme.h:21,
from /private/tmp/homebrew-php-5.3.10-8IqT/php-5.3.10/ext/intl/php_intl.h:26,
from main/internal_functions.c:53:
/usr/local/Cellar/icu4c/4.8.1.1/include/unicode/umachine.h:325: 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....

It may be worth considering using the brew libxml2 for snow leopard when using the --with-intl option since. Any other thoughts on a fix/workaround?