|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2009-04-08 07:25 UTC] akononyhin at list dot ru
Description:
------------
I have libwbxml 0.10.5 installed.
When I try to install WBXML by PECL installer (pecl install WBXML) I receive an error while compiling wbxml.c
After some investigation I've found that HAVE_EXPAT is defined but expat.h haven't been included anywhere.
Reproduce code:
---------------
pecl install WBXML
Expected result:
----------------
Successfully installed
Actual result:
--------------
...
In file included from /usr/local/include/wbxml.h:388,
from /tmp/tmp6AnxJ9/wbxml-1.0.3/wbxml.c:31:
/usr/local/include/wbxml_tree.h:120: error: expected specifier-qualifier-list before 'XML_Parser'
In file included from /usr/local/include/wbxml.h:390,
from /tmp/tmp6AnxJ9/wbxml-1.0.3/wbxml.c:31:
/usr/local/include/wbxml_tree_clb_xml.h:57: error: expected ';', ',' or ')' before '*' token
/usr/local/include/wbxml_tree_clb_xml.h:68: error: expected ';', ',' or ')' before '*' token
/usr/local/include/wbxml_tree_clb_xml.h:78: error: expected ';', ',' or ')' before '*' token
/usr/local/include/wbxml_tree_clb_xml.h:85: error: expected ';', ',' or ')' before '*' token
/usr/local/include/wbxml_tree_clb_xml.h:105: error: expected ';', ',' or ')' before '*' token
/usr/local/include/wbxml_tree_clb_xml.h:114: error: expected ';', ',' or ')' before '*' token
make: *** [wbxml.lo] Error 1
ERROR: `make' failed
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 15:00:01 2025 UTC |
I can reproduce the problem right now. Version of my OS: ===================== [root@sip alex]# uname -a Linux ...... 2.6.21.7-5.fc8xen #1 SMP Thu Aug 7 12:44:49 EDT 2008 i686 athlon i386 GNU/Linux [root@sip alex]# cat /etc/redhat-release Fedora release 8 (Werewolf) Version of libwbxml - 0.10.1 Version of WBXML pecl package : 1.0.3 Result of 'pecl install WBXML': ============================== ... gcc -I. -I/tmp/pear/download/wbxml-1.0.3 -DPHP_ATOM_INC -I/var/tmp/pear-build-konon/wbxml-1.0.3/include -I/var/tmp/pear-build-konon/wbxml-1.0.3/main -I/tmp/pear/download/wbxml-1.0.3 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/download/wbxml-1.0.3/wbxml.c -fPIC -DPIC -o .libs/wbxml.o In file included from /usr/local/include/wbxml.h:387, from /tmp/pear/download/wbxml-1.0.3/wbxml.c:31: /usr/local/include/wbxml_tree.h:120: error: expected specifier-qualifier-list before 'XML_Parser' In file included from /usr/local/include/wbxml.h:389, from /tmp/pear/download/wbxml-1.0.3/wbxml.c:31: /usr/local/include/wbxml_tree_clb_xml.h:57: error: expected ';', ',' or ')' before '*' token /usr/local/include/wbxml_tree_clb_xml.h:68: error: expected ';', ',' or ')' before '*' token /usr/local/include/wbxml_tree_clb_xml.h:78: error: expected ';', ',' or ')' before '*' token /usr/local/include/wbxml_tree_clb_xml.h:85: error: expected ';', ',' or ')' before '*' token /usr/local/include/wbxml_tree_clb_xml.h:105: error: expected ';', ',' or ')' before '*' token /usr/local/include/wbxml_tree_clb_xml.h:114: error: expected ';', ',' or ')' before '*' token make: *** [wbxml.lo] Error 1 ERROR: `make' failedThe way I use to resolve this problem: 1) Download the package (instead of install) 2) ./configure 3) open config.h and add the next code after #define HAVE_EXPAT 1 #if defined(HAVE_EXPAT) #include <expat.h> #endif 4) make 5) make install