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



Hi!

For testing I have been installing the following libxml libraries:
        - libxml2-2.7.8
        - libxml2-2.8.0
        - libxml2-2.9.0
        
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
compile.
        
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 
type
        /usr/local/src/php_sources/php-5.4.5/ext/dom/node.c:1900: error: dereferencing pointer to incomplete 
type
        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.

I am not very familiar with libxml2, but its seems to be a bug or misconfiguration
in libxml2-2.9.0 as PHP compiles fine with both libxml2-2.7.8 and libxml2-2.8.0,
but not libxml2-2.9.0.

Can someone confirm this, or is this something that should be posted to the PHP list instead?

Thanks for your time!

Best regards,
Richard Taubo


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