ID: 30534
Updated by: [EMAIL PROTECTED]
Reported By: colin at easydns dot com
-Status: Open
+Status: Bogus
Bug Type: Compile Failure
Operating System: Darwin / Mac OS X 10.3.5
PHP Version: 5.0.2
New Comment:
You have multiple headers on your system, and specifying a directory
for libxml worked for you. Bogus! ;)
Derick
Previous Comments:
------------------------------------------------------------------------
[2004-10-22 21:06:12] colin at easydns dot com
Description:
------------
Building PHP 5.0.2 fails on xsl. libxslt (1.1.4-3) is
installed using the binary from Fink.
Reproduce code:
---------------
./configure \
--prefix=/usr/local/php5 \
--with-config-file-path=/usr/local/php5/lib \
--with-apxs \
--enable-cli \
--with-iconv \
--with-openssl=/usr \
--with-zlib=/usr \
--with-mysql=/usr/local/mysql \
--with-mysqli=/usr/local/mysql/bin/mysql_config \
--with-xsl=/sw \
--with-pdflib=/sw \
--with-gd \
--with-jpeg-dir=/sw \
--with-tiff-dir=/sw \
--with-png-dir=/sw \
--with-ming-dir=/sw \
--with-zlib-dir=/usr \
--with-freetype-dir=/sw/lib/freetype2 \
--with-t1lib=/sw \
--with-imap=/sw/share/c-client \
--with-imap-ssl=/sw \
--with-gettext=/sw \
--with-ldap \
--with-mime-magic=/usr/share/file/magic \
--with-iodbc=/usr \
--with-xmlrpc \
--with-expat-dir=/sw \
--with-iconv-dir=/usr \
--with-curl=/sw \
--enable-exif \
--enable-wddx \
--enable-soap \
--enable-sqlite-utf8 \
--enable-ftp \
--enable-sockets \
--enable-dbx \
--enable-dbase \
--enable-mbstring \
--enable-calendar \
--with-bz2=/usr \
--with-mcrypt=/sw \
--with-mhash=/sw
Expected result:
----------------
Compile should work. :)
Actual result:
--------------
gcc -Iext/xsl/ -I/Users/cviebrock/Documents/Source/php
-5.0.2/ext/xsl/ -DPHP_ATOM_INC -I/Users/cviebrock/
Documents/Source/php-5.0.2/include -I/Users/cviebrock/
Documents/Source/php-5.0.2/main -I/Users/cviebrock/
Documents/Source/php-5.0.2 -I/Users/cviebrock/Documents/
Source/php-5.0.2/Zend -I/usr/include/libxml2 -I/sw/
include -I/sw/lib/freetype2/include -I/sw/lib/freetype2/
include/freetype2 -I/sw/share/c-client/include -I/Users/
cviebrock/Documents/Source/php-5.0.2/ext/mbstring/
oniguruma -I/Users/cviebrock/Documents/Source/php-5.0.2/
ext/mbstring/libmbfl -I/Users/cviebrock/Documents/
Source/php-5.0.2/ext/mbstring/libmbfl/mbfl -I/usr/local/
mysql/include -I/sw/include/libxml2 -no-cpp-precomp -I/
Users/cviebrock/Documents/Source/php-5.0.2/TSRM -g -O2
-c /Users/cviebrock/Documents/Source/php-5.0.2/ext/xsl/
php_xsl.c -o ext/xsl/php_xsl.o && echo > ext/xsl/
php_xsl.lo
In file included from /sw/include/libxslt/
xsltInternals.h:20,
from /Users/cviebrock/Documents/Source/
php-5.0.2/ext/xsl/php_xsl.h:38,
from /Users/cviebrock/Documents/Source/
php-5.0.2/ext/xsl/php_xsl.c:28:
/sw/include/libxml2/libxml/dict.h:30: error: syntax
error before "xmlDictPtr"
/sw/include/libxml2/libxml/dict.h:31: warning: data
definition has no type or storage class
/sw/include/libxml2/libxml/dict.h:32: error: syntax
error before "xmlDictPtr"
/sw/include/libxml2/libxml/dict.h:33: warning: data
definition has no type or storage class
/sw/include/libxml2/libxml/dict.h:34: error: syntax
error before "int"
/sw/include/libxml2/libxml/dict.h:35: warning: data
definition has no type or storage class
/sw/include/libxml2/libxml/dict.h:36: error: syntax
error before "void"
/sw/include/libxml2/libxml/dict.h:37: warning: data
definition has no type or storage class
/sw/include/libxml2/libxml/dict.h:42: error: syntax
error before "const"
/sw/include/libxml2/libxml/dict.h:43: error: parse error
before "xmlDictLookup"
/sw/include/libxml2/libxml/dict.h:45: warning: data
definition has no type or storage class
/sw/include/libxml2/libxml/dict.h:46: error: syntax
error before "const"
/sw/include/libxml2/libxml/dict.h:47: error: parse error
before "xmlDictQLookup"
/sw/include/libxml2/libxml/dict.h:49: warning: data
definition has no type or storage class
/sw/include/libxml2/libxml/dict.h:50: error: syntax
error before "int"
/sw/include/libxml2/libxml/dict.h:52: warning: data
definition has no type or storage class
/sw/include/libxml2/libxml/dict.h:53: error: syntax
error before "int"
/sw/include/libxml2/libxml/dict.h:54: warning: data
definition has no type or storage class
make: *** [ext/xsl/php_xsl.lo] Error 1
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30534&edit=1