Can't get --enable-intl to work with 5.3.8

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



I'm trying to compile PHP 5.3.8 with the intl extension.
This extension requires icu, which requires --with-icu-dir=.

I was able to compile icu fine. I've tried version 3.8 to 4.8.
But when I tried to compile PHP it complained about UChar already
being defined in both libxml2 and icu.

After doing a little research it seemed the only way to fix it was
compile libxml2 myself with the --with-icu flag. But I ran into some
problems getting libxml2 to compile with --prefix. After patching its
configure.in I was able to get it to compile.

With the newly compiled libxml2 and --with-libxml-dir= pointing to
it's location PHP's ./configure fails complaining about libxml2 not
working. In the config.log it says something about conftest.c.
This file doesn't exist. But there is a conftest.cpp.

Here is the config.log: http://pastebin.com/qKezu2Z3
Here are the commands I'm running: http://pastebin.com/dYQwUCm0
And here is the patch file for libxml2: http://pastebin.com/ss0L6ZLw

All the versions I'm using are in the second link.


What am I doing wrong? Has anyone gotten this to compile successfully?

Luke




[Index of Archives]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [Postgresql]     [PHP Books]     [PHP Databases]     [PHP SOAP]
  Powered by Linux