|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-05-26 01:01 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 02 10:00:01 2025 UTC |
Description: ------------ PHP 5.0.4 fails to compile against LibXML2 2.6.19/LibXSLT 1.1.14. It also fails against LibXSLT 1.1.13 in a second test to see if it was a bad release of LibXSLT. It compiles successfully without LibXSLT in --configure. It compiles successfully against Redhat-supplied LibXML 2.5.10 /LibXSLT 1.0.33 Looks similiar to #30534, but I explicitly specified a path to my LibXML2 and LibXSLT installation (both libraries have two installed versions -- RedHat's, and mine.) Reproduce code: --------------- # './configure' '--prefix=/usr/local/php-5.0.4' '--with-apxs=/usr/local/apache/bin/apxs' '--enable-inline-optimization' '--enable-force-cgi-redirect' '--enable-discard-path' '--disable-ipv6' '--with-openssl' '--enable-calendar' '--with-mysql=/usr/local/mysql' '--enable-pcntl' '--with-spell' '--with-curl=/usr/local/curl' '--with-zlib' '--with-bz2' '--with-libxml=/usr/libxml2' '--with-xsl=/usr/libxslt' # make Expected result: ---------------- I expect to end up with a shiny new PHP binary ;) Actual result: -------------- [...] /bin/sh /usr/local/src/php-5.0.4/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/xsl/ -I/usr/local/src/php-5.0.4/ext/xsl/ -DPHP_ATOM_INC -I/usr/local/src/php-5.0.4/include -I/usr/local/src/php-5.0.4/main -I/usr/local/src/php-5.0.4 -I/usr/include/libxml2 -I/usr/local/mysql/include -I/usr/libxslt/include -I/usr/libxml2/include/libxml2 -I/usr/local/src/php-5.0.4/TSRM -I/usr/local/src/php-5.0.4/Zend -g -O2 -prefer-non-pic -c /usr/local/src/php-5.0.4/ext/xsl/php_xsl.c -o ext/xsl/php_xsl.lo In file included from /usr/libxslt/include/libxslt/xsltInternals.h:20, from /usr/local/src/php-5.0.4/ext/xsl/php_xsl.h:38, from /usr/local/src/php-5.0.4/ext/xsl/php_xsl.c:28: /usr/libxml2/include/libxml2/libxml/dict.h:30: syntax error before "xmlDictPtr" /usr/libxml2/include/libxml2/libxml/dict.h:31: warning: data definition has no type or storage class /usr/libxml2/include/libxml2/libxml/dict.h:32: syntax error before "xmlDictPtr" /usr/libxml2/include/libxml2/libxml/dict.h:33: warning: data definition has no type or storage class /usr/libxml2/include/libxml2/libxml/dict.h:34: syntax error before "int" /usr/libxml2/include/libxml2/libxml/dict.h:35: warning: data definition has no type or storage class /usr/libxml2/include/libxml2/libxml/dict.h:36: syntax error before "void" /usr/libxml2/include/libxml2/libxml/dict.h:37: warning: data definition has no type or storage class /usr/libxml2/include/libxml2/libxml/dict.h:42: syntax error before "const" /usr/libxml2/include/libxml2/libxml/dict.h:43: syntax error before "xmlDictLookup" /usr/libxml2/include/libxml2/libxml/dict.h:45: warning: data definition has no type or storage class /usr/libxml2/include/libxml2/libxml/dict.h:46: syntax error before "const" /usr/libxml2/include/libxml2/libxml/dict.h:47: syntax error before "xmlDictExists" /usr/libxml2/include/libxml2/libxml/dict.h:49: warning: data definition has no type or storage class /usr/libxml2/include/libxml2/libxml/dict.h:50: syntax error before "const" /usr/libxml2/include/libxml2/libxml/dict.h:51: syntax error before "xmlDictQLookup" /usr/libxml2/include/libxml2/libxml/dict.h:53: warning: data definition has no type or storage class /usr/libxml2/include/libxml2/libxml/dict.h:54: syntax error before "int" /usr/libxml2/include/libxml2/libxml/dict.h:56: warning: data definition has no type or storage class /usr/libxml2/include/libxml2/libxml/dict.h:57: syntax error before "int" /usr/libxml2/include/libxml2/libxml/dict.h:58: warning: data definition has no type or storage class /usr/libxml2/include/libxml2/libxml/dict.h:63: syntax error before "void" /usr/libxml2/include/libxml2/libxml/dict.h:64: warning: data definition has no type or storage class make: *** [ext/xsl/php_xsl.lo] Error 1