From: graced at monroe dot wednet dot edu
Operating system: Linux 2.4.21 (RHAS 3)
PHP version: 5.0.4
PHP Bug Type: Compile Failure
Bug description: PHP+LibXML 2.6.19+LibXSLT 1.1.14 compile error
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
--
Edit bug report at http://bugs.php.net/?id=33145&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33145&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=33145&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=33145&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=33145&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=33145&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=33145&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=33145&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=33145&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=33145&r=support
Expected behavior: http://bugs.php.net/fix.php?id=33145&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=33145&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=33145&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=33145&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33145&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=33145&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=33145&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=33145&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=33145&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=33145&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=33145&r=mysqlcfg