/usr/local/include/expat.h:971: error: conflicting types for 'XML_FEATURE_UNICODE'
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

/usr/local/include/expat.h:971: error: conflicting types for 'XML_FEATURE_UNICODE'

From: Jan <jbaggen@freemail.nl>
Date: Wed Sep 07 2005 - 18:32:01 CEST

While building PHP 4.4.0 on a fresh installed FreeBSD 5.4 I get the
following error:

www# /bin/sh
/usr/home/c/console/toolscon/web/2/php-4.4.0/libtool --silent --preserve-dup-deps
 --mode=compile
gcc -Imain/ -I/usr/home/c/console/toolscon/web/2/php-4.4.0/main/ -DPHP_ATOM_INC
 -I/usr/home/c/console/toolscon/web/2/php-4.4.0/include -I/usr/home/c/console/toolscon/web/2/php-4.4.0/main
 -I/usr/home/c/console/toolscon/web/2/php-4.4.0 -I/usr/local/include -I/usr/local/include/libxml2
 -I/usr/local/include/freetype2 -I/usr/local/include/mysql -I/usr/home/c/console/toolscon/web/2/php-4.4.0/ext/xml/expat
 -I/usr/home/c/console/toolscon/web/2/php-4.4.0/TSRM -I/usr/home/c/console/toolscon/web/2/php-4.4.0/Zend
    -g -O2 -c main/internal_functions.c -o main/internal_functions.lo
In file included from
/usr/home/c/console/toolscon/web/2/php-4.4.0/ext/wddx/php_wddx.h:26,
                 from main/internal_functions.c:53:
/usr/local/include/expat.h:971: error: conflicting types for
'XML_FEATURE_UNICODE'
/usr/local/include/libxml2/libxml/parser.h:1196: error: previous definition
of 'XML_FEATURE_UNICODE' was here'\

How to solve this? Any ideas? what is causing the problem?

The configure line:

'./configure' '--with-apxs2=/usr/local/apache/bin/apxs'
'--with-mysql=/usr/local' '--with-ttf' '--enable-memory-limit'
'--enable-track-vars' '--with-gd' '--with-jpeg-dir=/usr/local'
'--with-tiff-dir=/usr/local' '--with-png-dir=/usr/local' '--enable-bcmath'
'--enable-versioning' '--enable-trans-sid' '--with-zlib' '--with-xml'
'--enable-gd-imgstrttf' '--with-mcrypt' '--enable-calendar' '--with-mhash'
'--enable-ftp' '--with-curl=/usr/local/include/curl' '--with-xml'
'--with-dom=/usr/local' '--enable-wddx' '--with-sablot=/usr/local'
'--with-expat=/usr/local' '--enable-xslt' '--with-xslt-sablot'
'--with-dom-xslt=/usr/local' '--with-openssl=/usr/local' '--disable-cgi'
'--with-freetype-dir=/usr/local' '--enable-exif' '--with-gettext'
'--with-bz2'
Received on Tue Oct 18 02:19:49 2005