Re: [xml] Bug when installing PHP with libxml2-2.9.0?

On Wed, Aug 08, 2012 at 02:08:01AM +0200, Richard Taubo wrote:

For testing I have been installing the following libxml libraries:
      - libxml2-2.7.8
      - libxml2-2.8.0
      - libxml2-2.9.0

  First thing libxml2-2.9.0 is not available, I just ade an rc0 snapshot
it's not a supported release :-)

These have been installed separately using:
[#] ./configure --prefix=/usr/local/LIBXML2
[#] make
[#] make install

When installing php 5.4.5 from source, I don't have any problems
compiling php 5.4.5 as long as I use either libxml2-2.7.8 or libxml2-2.8.0
BUT when i compile php 5.4.5. with libxml2-2.9.0, I get an error and PHP 5.4.5 won't
PHP 5.4.5 is compiled like this:
[#] ./configure --prefix=/usr/local/php --with-libxml-dir=/usr/local/LIBXML2
      (for clarity skipping other libraries that I also use).

[#] make

Then I get the following error message before the make command exits:
      /usr/local/src/php_sources/php-5.4.5/ext/dom/node.c: In function âdom_canonicalizationâ:
      /usr/local/src/php_sources/php-5.4.5/ext/dom/node.c:1898: error: dereferencing pointer to incomplete 
      /usr/local/src/php_sources/php-5.4.5/ext/dom/node.c:1900: error: dereferencing pointer to incomplete 
      make: *** [ext/dom/node.lo] Error 1

When the version in /usr/local/LIBXML2 is either libxml2-2.7.8 or libxml2-2.8.0
I don't get this error.

  The attached patch fixes your problem,


Daniel Veillard      | libxml Gnome XML XSLT toolkit
daniel veillard com  | Rpmfind RPM search engine | virtualization library

Attachment: php-5.4.5-libxm2-2.9.0.patch
Description: Text document

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