On Wed, Aug 08, 2012 at 02:08:01AM +0200, Richard Taubo wrote:
Hi! 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 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.
The attached patch fixes your problem, Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel veillard com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/
Attachment:
php-5.4.5-libxm2-2.9.0.patch
Description: Text document