After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 316053 - Compile failure because of double defined constant XML_FEATURE_UNICODE
Compile failure because of double defined constant XML_FEATURE_UNICODE
Status: RESOLVED FIXED
Product: libxml2
Classification: Platform
Component: general
2.6.21
Other All
: Normal blocker
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2005-09-12 07:03 UTC by Derick Rethans
Modified: 2005-09-12 09:14 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Derick Rethans 2005-09-12 07:03:31 UTC
Please describe the problem:
While compiling PHP 4(.4.1-dev) with the following configure line:
'./configure' \
'--with-apache=/dat/dev/php/apache_1.3.31' '--with-mysql=/usr'
'--with-config-file-path=/etc/httpd' '--enable-track-vars'
'--enable-memory-limit' '--with-mcrypt' '--with-dom' '--enable-debug' 
'--with-gd' '--with-jpeg-dir=/usr' '--with-xpm-dir=/usr'
'--with-freetype-dir=/user' '--with-ctype' '--with-iconv' '--enable-iconv'
'--with-xmlrpc' '--with-pgsql=/usr/lib/postgresql/7.4/bin' '--enable-shmop'
'--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-wddx'
'--with-zlib' '--enable-exif' '--enable-cli' '--with-crack' '--enable-mbstring' 
'--with-mbstring' '--disable-zend-memory-manager'

The compile fails with:
In file included from /dat/dev/php/php-4.4dev/ext/wddx/php_wddx.h:26,
                 from main/internal_functions.c:53:
/dat/dev/php/php-4.4dev/ext/xml/expat/expat.h:894: error: redeclaration of
enumerator 'XML_FEATURE_UNICODE'
/usr/include/libxml2/libxml/parser.h:1196: error: previous definition of
'XML_FEATURE_UNICODE' was here
make: *** [main/internal_functions.lo] Error 1

This was working fine in versions previous to 2.6.21.


Steps to reproduce:
1. Comfigure with configure line above
2. Type "make"


Actual results:
The compile fails with:
In file included from /dat/dev/php/php-4.4dev/ext/wddx/php_wddx.h:26,
                 from main/internal_functions.c:53:
/dat/dev/php/php-4.4dev/ext/xml/expat/expat.h:894: error: redeclaration of
enumerator 'XML_FEATURE_UNICODE'
/usr/include/libxml2/libxml/parser.h:1196: error: previous definition of
'XML_FEATURE_UNICODE' was here

Expected results:
No compile error.

Does this happen every time?
Yes.

Other information:
No, except "good luck" ;-)
Comment 1 Daniel Veillard 2005-09-12 09:14:04 UTC
Crap ... Unfortunately there is no other way than rename the enum values.
Seems 2.6.22 will be out shortly, since I want to minimize the impact of
this :-(

  thanks for the heads-up !

Daniel