php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30534 fails compiling XSL
Submitted: 2004-10-22 21:06 UTC Modified: 2004-10-22 21:59 UTC
From: colin at easydns dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.0.2 OS: Darwin / Mac OS X 10.3.5
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: colin at easydns dot com
New email:
PHP Version: OS:

 

 [2004-10-22 21:06 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-10-22 21:59 UTC] derick@php.net
You have multiple headers on your system, and specifying a directory for libxml worked for you. Bogus! ;)

Derick
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 11 06:01:30 2024 UTC