From:             colin at easydns dot com
Operating system: Darwin / Mac OS X 10.3.5
PHP version:      5.0.2
PHP Bug Type:     Compile Failure
Bug description:  fails compiling XSL

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 bug report at http://bugs.php.net/?id=30534&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=30534&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30534&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30534&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=30534&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=30534&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=30534&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=30534&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=30534&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=30534&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=30534&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=30534&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=30534&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=30534&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=30534&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=30534&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=30534&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=30534&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=30534&r=float
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=30534&r=mysqlcfg

Reply via email to