Alt-PHP-Faq
Cheapest CO.UK domains in the UK! £1.88 per year!
And PHP/MySQL hosting 1p/1c for the first month, NO CATCH!


Question :

error: conflicting types for `XML_FEATURE_UNICODE'

Answer :
When installing PHP 4.4.0 on Slackware 10.2 using the following configure options

./configure --prefix=/usr/local/apache/php --with-config-file-path=/usr/local/lib --enable-xslt --with-xslt-sablot --with-mysql=/usr/local/mysql --enable-track-vars --enable-bcmath --enable-ftp --with-gd --enable-gd-native-tt --with-xpm-dir --with-png-dir --with-jpeg-dir --with-dom=/usr/local --with-zlib-dir --enable-trans-sid --with-mcrypt --with-mhash --with-curl --with-openssl --with-pspell --enable-wddx --enable-memory-limit --with-apxs=/usr/local/apache/bin/apxs

We got the following error
In file included from /usr/src/workspace/php-4.4.0/ext/wddx/php_wddx.h:26,
from main/internal_functions.c:50:
/usr/src/workspace/php-4.4.0/ext/xml/expat/expat.h:894: error: conflicting types for `XML_FEATURE_UNICODE'
/usr/include/libxml2/libxml/parser.h:1196: error: previous declaration of `XML_FEATURE_UNICODE'
make: *** [main/internal_functions.lo] Error 1

Using google it seemed a lot of people had the same problem, finally we tracked the problem down to libxml2 version libxml2-2.6.21.

This is the current version supplied with Slackware 10.2, so we built a new package based on libxml2-2.6.22.

Installed and re-ran the make for PHP and it compiled from source with no problems.

Make sure you un-install the previous version, the full package list from version 2.6.21 are listed below :-
PACKAGE NAME: libxml2-2.6.21-i486-1
COMPRESSED PACKAGE SIZE: 1927 K
UNCOMPRESSED PACKAGE SIZE: 7440 K
PACKAGE LOCATION: libxml2-2.6.21-i486-1.tgz
PACKAGE DESCRIPTION:
libxml2: libxml2 (XML parser library)
libxml2:
libxml2: XML parser library.
libxml2:
libxml2:
libxml2:
libxml2:
libxml2:
libxml2:
libxml2:
libxml2:
FILE LIST:
./
usr/
usr/bin/
usr/bin/xmllint
usr/bin/xml2-config
usr/bin/xmlcatalog
usr/doc/
usr/doc/libxml2-2.6.21/
usr/doc/libxml2-2.6.21/NEWS
usr/doc/libxml2-2.6.21/html/
usr/doc/libxml2-2.6.21/html/Libxml2-Logo-90x34.gif
usr/doc/libxml2-2.6.21/html/html/
usr/doc/libxml2-2.6.21/html/html/libxml-HTMLtree.html
usr/doc/libxml2-2.6.21/html/html/libxml-xmlwriter.html
usr/doc/libxml2-2.6.21/html/html/libxml-xpathInternals.html
usr/doc/libxml2-2.6.21/html/html/libxml-chvalid.html
usr/doc/libxml2-2.6.21/html/html/libxml-parser.html
usr/doc/libxml2-2.6.21/html/html/libxml-valid.html
usr/doc/libxml2-2.6.21/html/html/libxml-uri.html
usr/doc/libxml2-2.6.21/html/html/libxml-xmlautomata.html
usr/doc/libxml2-2.6.21/html/html/right.png
usr/doc/libxml2-2.6.21/html/html/libxml-hash.html
usr/doc/libxml2-2.6.21/html/html/libxml-nanoftp.html
usr/doc/libxml2-2.6.21/html/html/libxml-SAX2.html
usr/doc/libxml2-2.6.21/html/html/left.png
usr/doc/libxml2-2.6.21/html/html/libxml-xmlstring.html
usr/doc/libxml2-2.6.21/html/html/libxml-globals.html
usr/doc/libxml2-2.6.21/html/html/libxml-HTMLparser.html
usr/doc/libxml2-2.6.21/html/html/index.html
usr/doc/libxml2-2.6.21/html/html/libxml-tree.html
usr/doc/libxml2-2.6.21/html/html/libxml-xmlunicode.html
usr/doc/libxml2-2.6.21/html/html/libxml-xmlerror.html
usr/doc/libxml2-2.6.21/html/html/libxml-lib.html
usr/doc/libxml2-2.6.21/html/html/libxml-c14n.html
usr/doc/libxml2-2.6.21/html/html/libxml-catalog.html
usr/doc/libxml2-2.6.21/html/html/libxml-xmlexports.html
usr/doc/libxml2-2.6.21/html/html/libxml-SAX.html
usr/doc/libxml2-2.6.21/html/html/libxml-xpath.html
usr/doc/libxml2-2.6.21/html/html/libxml-parserInternals.html
usr/doc/libxml2-2.6.21/html/html/libxml-xinclude.html
usr/doc/libxml2-2.6.21/html/html/home.png
usr/doc/libxml2-2.6.21/html/html/libxml-xmlschemas.html
usr/doc/libxml2-2.6.21/html/html/libxml-xmlversion.html
usr/doc/libxml2-2.6.21/html/html/libxml-list.html
usr/doc/libxml2-2.6.21/html/html/libxml-schematron.html
usr/doc/libxml2-2.6.21/html/html/libxml-relaxng.html
usr/doc/libxml2-2.6.21/html/html/libxml-xmlIO.html
usr/doc/libxml2-2.6.21/html/html/libxml-pattern.html
usr/doc/libxml2-2.6.21/html/html/libxml-DOCBparser.html
usr/doc/libxml2-2.6.21/html/html/libxml-xmlmodule.html
usr/doc/libxml2-2.6.21/html/html/libxml-xmlregexp.html
usr/doc/libxml2-2.6.21/html/html/libxml-dict.html
usr/doc/libxml2-2.6.21/html/html/libxml-xmlmemory.html
usr/doc/libxml2-2.6.21/html/html/book1.html
usr/doc/libxml2-2.6.21/html/html/up.png
usr/doc/libxml2-2.6.21/html/html/libxml-threads.html
usr/doc/libxml2-2.6.21/html/html/libxml-nanohttp.html
usr/doc/libxml2-2.6.21/html/html/libxml-schemasInternals.html
usr/doc/libxml2-2.6.21/html/html/libxml-xpointer.html
usr/doc/libxml2-2.6.21/html/html/libxml-debugXML.html
usr/doc/libxml2-2.6.21/html/html/libxml-xmlsave.html
usr/doc/libxml2-2.6.21/html/html/libxml-xmlschemastypes.html
usr/doc/libxml2-2.6.21/html/html/libxml-entities.html
usr/doc/libxml2-2.6.21/html/html/libxml-xmlreader.html
usr/doc/libxml2-2.6.21/html/html/libxml-encoding.html
usr/doc/libxml2-2.6.21/html/html/libxml-xlink.html
usr/doc/libxml2-2.6.21/html/DOM.gif
usr/doc/libxml2-2.6.21/html/encoding.html
usr/doc/libxml2-2.6.21/html/xpath1.c
usr/doc/libxml2-2.6.21/html/xpath2.c
usr/doc/libxml2-2.6.21/html/io1.c
usr/doc/libxml2-2.6.21/html/io2.c
usr/doc/libxml2-2.6.21/html/w3c.png
usr/doc/libxml2-2.6.21/html/testWriter.c
usr/doc/libxml2-2.6.21/html/writer.xml
usr/doc/libxml2-2.6.21/html/parse1.c
usr/doc/libxml2-2.6.21/html/parse2.c
usr/doc/libxml2-2.6.21/html/parse3.c
usr/doc/libxml2-2.6.21/html/parse4.c
usr/doc/libxml2-2.6.21/html/structure.gif
usr/doc/libxml2-2.6.21/html/Libxml2-Logo-180x168.gif
usr/doc/libxml2-2.6.21/html/smallfootonly.gif
usr/doc/libxml2-2.6.21/html/tree1.res
usr/doc/libxml2-2.6.21/html/tree2.res
usr/doc/libxml2-2.6.21/html/tree1.c
usr/doc/libxml2-2.6.21/html/tree2.c
usr/doc/libxml2-2.6.21/html/examples.xml
usr/doc/libxml2-2.6.21/html/examples.xsl
usr/doc/libxml2-2.6.21/html/tst.xml
usr/doc/libxml2-2.6.21/html/xpath1.res
usr/doc/libxml2-2.6.21/html/xpath2.res
usr/doc/libxml2-2.6.21/html/tutorial/
usr/doc/libxml2-2.6.21/html/tutorial/ar01s02.html
usr/doc/libxml2-2.6.21/html/tutorial/ar01s03.html
usr/doc/libxml2-2.6.21/html/tutorial/apa.html
usr/doc/libxml2-2.6.21/html/tutorial/ar01s04.html
usr/doc/libxml2-2.6.21/html/tutorial/apb.html
usr/doc/libxml2-2.6.21/html/tutorial/includexpath.c
usr/doc/libxml2-2.6.21/html/tutorial/ar01s05.html
usr/doc/libxml2-2.6.21/html/tutorial/apc.html
usr/doc/libxml2-2.6.21/html/tutorial/ar01s06.html
usr/doc/libxml2-2.6.21/html/tutorial/apd.html
usr/doc/libxml2-2.6.21/html/tutorial/ar01s07.html
usr/doc/libxml2-2.6.21/html/tutorial/ape.html
usr/doc/libxml2-2.6.21/html/tutorial/ar01s08.html
usr/doc/libxml2-2.6.21/html/tutorial/apf.html
usr/doc/libxml2-2.6.21/html/tutorial/ar01s09.html
usr/doc/libxml2-2.6.21/html/tutorial/apg.html
usr/doc/libxml2-2.6.21/html/tutorial/aph.html
usr/doc/libxml2-2.6.21/html/tutorial/ix01.html
usr/doc/libxml2-2.6.21/html/tutorial/api.html
usr/doc/libxml2-2.6.21/html/tutorial/index.html
usr/doc/libxml2-2.6.21/html/tutorial/includeconvert.c
usr/doc/libxml2-2.6.21/html/tutorial/xmltutorial.pdf
usr/doc/libxml2-2.6.21/html/tutorial/images/
usr/doc/libxml2-2.6.21/html/tutorial/images/warning.png
usr/doc/libxml2-2.6.21/html/tutorial/images/toc-blank.png
usr/doc/libxml2-2.6.21/html/tutorial/images/blank.png
usr/doc/libxml2-2.6.21/html/tutorial/images/note.png
usr/doc/libxml2-2.6.21/html/tutorial/images/toc-plus.png
usr/doc/libxml2-2.6.21/html/tutorial/images/callouts/
usr/doc/libxml2-2.6.21/html/tutorial/images/callouts/1.png
usr/doc/libxml2-2.6.21/html/tutorial/images/callouts/2.png
usr/doc/libxml2-2.6.21/html/tutorial/images/callouts/3.png
usr/doc/libxml2-2.6.21/html/tutorial/images/callouts/4.png
usr/doc/libxml2-2.6.21/html/tutorial/images/callouts/5.png
usr/doc/libxml2-2.6.21/html/tutorial/images/callouts/6.png
usr/doc/libxml2-2.6.21/html/tutorial/images/callouts/7.png
usr/doc/libxml2-2.6.21/html/tutorial/images/callouts/8.png
usr/doc/libxml2-2.6.21/html/tutorial/images/callouts/9.png
usr/doc/libxml2-2.6.21/html/tutorial/images/callouts/10.png
usr/doc/libxml2-2.6.21/html/tutorial/images/important.png
usr/doc/libxml2-2.6.21/html/tutorial/images/tip.png
usr/doc/libxml2-2.6.21/html/tutorial/images/home.png
usr/doc/libxml2-2.6.21/html/tutorial/images/toc-minus.png
usr/doc/libxml2-2.6.21/html/tutorial/images/prev.png
usr/doc/libxml2-2.6.21/html/tutorial/images/up.png
usr/doc/libxml2-2.6.21/html/tutorial/images/next.png
usr/doc/libxml2-2.6.21/html/tutorial/images/draft.png
usr/doc/libxml2-2.6.21/html/tutorial/images/caution.png
usr/doc/libxml2-2.6.21/html/tutorial/includekeyword.c
usr/doc/libxml2-2.6.21/html/tutorial/includegetattribute.c
usr/doc/libxml2-2.6.21/html/tutorial/includeaddkeyword.c
usr/doc/libxml2-2.6.21/html/tutorial/includeaddattribute.c
usr/doc/libxml2-2.6.21/html/xml.html
usr/doc/libxml2-2.6.21/html/libxml.gif
usr/doc/libxml2-2.6.21/html/redhat.gif
usr/doc/libxml2-2.6.21/html/FAQ.html
usr/doc/libxml2-2.6.21/html/io1.res
usr/doc/libxml2-2.6.21/html/io2.res
usr/doc/libxml2-2.6.21/html/test1.xml
usr/doc/libxml2-2.6.21/html/test2.xml
usr/doc/libxml2-2.6.21/html/test3.xml
usr/doc/libxml2-2.6.21/html/reader1.c
usr/doc/libxml2-2.6.21/html/reader2.c
usr/doc/libxml2-2.6.21/html/reader3.c
usr/doc/libxml2-2.6.21/html/reader4.c
usr/doc/libxml2-2.6.21/html/reader1.res
usr/doc/libxml2-2.6.21/html/reader3.res
usr/doc/libxml2-2.6.21/html/reader4.res
usr/doc/libxml2-2.6.21/README
usr/doc/libxml2-2.6.21/Copyright
usr/doc/libxml2-2.6.21/libxml2-python-2.6.21/
usr/doc/libxml2-2.6.21/libxml2-python-2.6.21/TODO
usr/doc/libxml2-2.6.21/libxml2-python-2.6.21/examples/
usr/doc/libxml2-2.6.21/libxml2-python-2.6.21/examples/push.py
usr/doc/libxml2-2.6.21/libxml2-python-2.6.21/examples/resolver.py
usr/doc/libxml2-2.6.21/libxml2-python-2.6.21/examples/tstURI.py
usr/doc/libxml2-2.6.21/libxml2-python-2.6.21/examples/walker.py
usr/doc/libxml2-2.6.21/libxml2-python-2.6.21/examples/readernext.py
usr/doc/libxml2-2.6.21/libxml2-python-2.6.21/examples/cutnpaste.py
usr/doc/libxml2-2.6.21/libxml2-python-2.6.21/examples/xpath.py
usr/doc/libxml2-2.6.21/libxml2-python-2.6.21/examples/error.py
usr/doc/libxml2-2.6.21/libxml2-python-2.6.21/examples/xpathext.py
usr/doc/libxml2-2.6.21/libxml2-python-2.6.21/examples/pushSAX.py
usr/doc/libxml2-2.6.21/libxml2-python-2.6.21/examples/attribs.py
usr/doc/libxml2-2.6.21/libxml2-python-2.6.21/examples/pushSAXhtml.py
usr/doc/libxml2-2.6.21/libxml2-python-2.6.21/examples/test.dtd
usr/doc/libxml2-2.6.21/libxml2-python-2.6.21/examples/schema.py
usr/doc/libxml2-2.6.21/libxml2-python-2.6.21/examples/xpathret.py
usr/doc/libxml2-2.6.21/libxml2-python-2.6.21/examples/indexes.py
usr/doc/libxml2-2.6.21/libxml2-python-2.6.21/examples/tstmem.py
usr/doc/libxml2-2.6.21/libxml2-python-2.6.21/examples/tstxpath.py
usr/doc/libxml2-2.6.21/libxml2-python-2.6.21/examples/reader2.py
usr/doc/libxml2-2.6.21/libxml2-python-2.6.21/examples/reader3.py
usr/doc/libxml2-2.6.21/libxml2-python-2.6.21/examples/reader4.py
usr/doc/libxml2-2.6.21/libxml2-python-2.6.21/examples/reader5.py
usr/doc/libxml2-2.6.21/libxml2-python-2.6.21/examples/reader6.py
usr/doc/libxml2-2.6.21/libxml2-python-2.6.21/examples/reader7.py
usr/doc/libxml2-2.6.21/libxml2-python-2.6.21/examples/reader8.py
usr/doc/libxml2-2.6.21/libxml2-python-2.6.21/examples/validDTD.py
usr/doc/libxml2-2.6.21/libxml2-python-2.6.21/examples/valid.xml
usr/doc/libxml2-2.6.21/libxml2-python-2.6.21/examples/nsdel.py
usr/doc/libxml2-2.6.21/libxml2-python-2.6.21/examples/sync.py
usr/doc/libxml2-2.6.21/libxml2-python-2.6.21/examples/validSchemas.py
usr/doc/libxml2-2.6.21/libxml2-python-2.6.21/examples/outbuf.py
usr/doc/libxml2-2.6.21/libxml2-python-2.6.21/examples/tst.xml
usr/doc/libxml2-2.6.21/libxml2-python-2.6.21/examples/dtdvalid.py
usr/doc/libxml2-2.6.21/libxml2-python-2.6.21/examples/tstLastError.py
usr/doc/libxml2-2.6.21/libxml2-python-2.6.21/examples/validRNG.py
usr/doc/libxml2-2.6.21/libxml2-python-2.6.21/examples/ctxterror.py
usr/doc/libxml2-2.6.21/libxml2-python-2.6.21/examples/tst.py
usr/doc/libxml2-2.6.21/libxml2-python-2.6.21/examples/build.py
usr/doc/libxml2-2.6.21/libxml2-python-2.6.21/examples/readererr.py
usr/doc/libxml2-2.6.21/libxml2-python-2.6.21/examples/inbuf.py
usr/doc/libxml2-2.6.21/libxml2-python-2.6.21/examples/serialize.py
usr/doc/libxml2-2.6.21/libxml2-python-2.6.21/examples/relaxng.py
usr/doc/libxml2-2.6.21/libxml2-python-2.6.21/examples/regexp.py
usr/doc/libxml2-2.6.21/libxml2-python-2.6.21/examples/validate.py
usr/doc/libxml2-2.6.21/libxml2-python-2.6.21/examples/invalid.xml
usr/doc/libxml2-2.6.21/libxml2-python-2.6.21/examples/reader.py
usr/doc/libxml2-2.6.21/libxml2-python-2.6.21/examples/thread2.py
usr/doc/libxml2-2.6.21/AUTHORS
usr/doc/libxml2-2.6.21/INSTALL
usr/doc/libxml2-2.6.21/examples/
usr/doc/libxml2-2.6.21/examples/testXPath.c
usr/doc/libxml2-2.6.21/examples/testHTML.c
usr/doc/libxml2-2.6.21/examples/xmllint.c
usr/doc/libxml2-2.6.21/examples/testSAX.c
usr/lib/
usr/lib/libxml2.a
usr/lib/libxml2.so.2.6.21
usr/lib/pkgconfig/
usr/lib/pkgconfig/libxml-2.0.pc
usr/lib/xml2Conf.sh
usr/lib/python2.4/
usr/lib/python2.4/site-packages/
usr/lib/python2.4/site-packages/libxml2mod.la
usr/lib/python2.4/site-packages/libxml2mod.so
usr/lib/python2.4/site-packages/drv_libxml2.py
usr/lib/python2.4/site-packages/libxml2mod.a
usr/lib/python2.4/site-packages/libxml2.py
usr/lib/libxml2.la
usr/man/
usr/man/man1/
usr/man/man1/xmllint.1.gz
usr/man/man1/xml2-config.1.gz
usr/man/man1/xmlcatalog.1.gz
usr/man/man3/
usr/man/man3/libxml.3.gz
usr/share/
usr/share/aclocal/
usr/share/aclocal/libxml.m4
usr/include/
usr/include/libxml2/
usr/include/libxml2/libxml/
usr/include/libxml2/libxml/encoding.h
usr/include/libxml2/libxml/xmlregexp.h
usr/include/libxml2/libxml/xmlmemory.h
usr/include/libxml2/libxml/xlink.h
usr/include/libxml2/libxml/xmlIO.h
usr/include/libxml2/libxml/xpath.h
usr/include/libxml2/libxml/SAX.h
usr/include/libxml2/libxml/chvalid.h
usr/include/libxml2/libxml/uri.h
usr/include/libxml2/libxml/schematron.h
usr/include/libxml2/libxml/SAX2.h
usr/include/libxml2/libxml/nanoftp.h
usr/include/libxml2/libxml/schemasInternals.h
usr/include/libxml2/libxml/threads.h
usr/include/libxml2/libxml/parser.h
usr/include/libxml2/libxml/c14n.h
usr/include/libxml2/libxml/xmlerror.h
usr/include/libxml2/libxml/xmlmodule.h
usr/include/libxml2/libxml/pattern.h
usr/include/libxml2/libxml/DOCBparser.h
usr/include/libxml2/libxml/dict.h
usr/include/libxml2/libxml/xmlautomata.h
usr/include/libxml2/libxml/xmlschemastypes.h
usr/include/libxml2/libxml/xpointer.h
usr/include/libxml2/libxml/hash.h
usr/include/libxml2/libxml/nanohttp.h
usr/include/libxml2/libxml/relaxng.h
usr/include/libxml2/libxml/xpathInternals.h
usr/include/libxml2/libxml/xmlversion.h
usr/include/libxml2/libxml/list.h
usr/include/libxml2/libxml/HTMLtree.h
usr/include/libxml2/libxml/parserInternals.h
usr/include/libxml2/libxml/entities.h
usr/include/libxml2/libxml/HTMLparser.h
usr/include/libxml2/libxml/valid.h
usr/include/libxml2/libxml/catalog.h
usr/include/libxml2/libxml/tree.h
usr/include/libxml2/libxml/globals.h
usr/include/libxml2/libxml/xmlunicode.h
usr/include/libxml2/libxml/xmlexports.h
usr/include/libxml2/libxml/xmlsave.h
usr/include/libxml2/libxml/xinclude.h
usr/include/libxml2/libxml/xmlreader.h
usr/include/libxml2/libxml/debugXML.h
usr/include/libxml2/libxml/xmlwriter.h
usr/include/libxml2/libxml/xmlstring.h
usr/include/libxml2/libxml/xmlschemas.h
install/
install/doinst.sh
install/slack-desc

Categories Return to Main PHP Faq

Installation

 

Questions

Installation
How to install PHP on Apache?
How do I install Apache, MySQL, PHP on Linux?
I am trying to install GD + Truetype with PHP4, but all I get is libgd was not built with TrueType font support
How did you install PHP with --mcrypt and --mhash?
When using GD/PHP to create thumbnails using imagecopyresized the thumbnail quality is not very good.
Can I compile php with mysql without having mysql sources?
How do I install PHP as a CGI?
How do I stop spammers using header injection with my PHP Scripts? (Webmasters)
How can I get PWS (Microsoft Personal Webserver) to work?
I have errors trying to install libxml so I can use --with-dom for PHP (checking for DOM in default path... not found)?
How do I install Sablotron with PHP?
Is there a Windows version of MySQL?
Is there an archive that installs mysql,php4,apache and perl on a windows system?
I'm trying to compile PHP 4.1.1 on a SunOS 5.8 box as a DSO module with mcrypt 2.4.18 (i.e. libmcrypt.so.4.2.8), I get loads of errors.
What do I have to do to convert PHP3 pages to PHP4 pages? Are there any compatibility problems?
Installing MySQL Perl Modules DBI
How do I install Sablotron to work with PHP on Windows?
How do I install the PostGRESQL client librarys so PHP can talk to remote PGSQL servers?
What version should I install?
Use ereg_replace to replace only the first occurence of a string instead of all?
make install gives an error saying i need LoadModule line in httpd.conf but its already there
How do I stop spammers using header injection with my PHP Scripts? (Server Admin)
How do I install Curl?
Installing ioncobe with php5.2.3 gives the error Failed loading ioncube_loader_lin_5.2.so: ioncube_loader_lin_5.2.so: undefined symbol: zend_hash_destroy
 

Return to the main FAQ list



Free Forum    
Design & Layout Copyright © 2000- 2008 PHP MySQL Web Hosting Comments to Webmaster
Hosted by PHP 4 Hosting - PHP and MySQL Webhosting and Domain Names