ID: 32778 Updated by: [EMAIL PROTECTED] Reported By: jwagner at Princeton dot EDU -Status: Open +Status: Closed Bug Type: Compile Failure Operating System: Red Hat Enterprise AS rel 3 PHP Version: 5.0.4 Assigned To: sniper New Comment:
You can fix this with adding --enable-libxml to your configure line. (--disable-all really disables all :) I've added some checks into configure in CVS so if you try to configure any of the extensions that need libxml and you try to configure without --enable-libxml, you'll get an error. Previous Comments: ------------------------------------------------------------------------ [2005-04-27 00:12:54] jwagner at Princeton dot EDU The error has changed. A copy of the output: /bin/cc -Iext/xsl/ -I/openpkg/RPM/TMP/php5-STABLE-200504252035/ext/xsl/ -DPHP_ATOM_INC -I/openpkg/RPM/TMP/php5-STABLE-200504252035/include -I/openpkg/RPM/TMP/php5-STABLE-200504252035/main -I/openpkg/RPM/TMP/php5-STABLE-200504252035 -I/openpkg/include -I/openpkg/include/imap -I/openpkg/RPM/TMP/php5-STABLE-200504252035/ext/mbstring/oniguruma -I/openpkg/RPM/TMP/php5-STABLE-200504252035/ext/mbstring/libmbfl -I/openpkg/RPM/TMP/php5-STABLE-200504252035/ext/mbstring/libmbfl/mbfl -I/openpkg/include/mysql -I/openpkg/include/libxml2 -I/openpkg/RPM/TMP/php5-STABLE-200504252035/TSRM -I/openpkg/RPM/TMP/php5-STABLE-200504252035/Zend -I/openpkg/include -O2 -pipe -prefer-non-pic -c /openpkg/RPM/TMP/php5-STABLE-200504252035/ext/xsl/php_xsl.c -o ext/xsl/php_xsl.lo In file included from /openpkg/RPM/TMP/php5-STABLE-200504252035/ext/xsl/php_xsl.h:46, from /openpkg/RPM/TMP/php5-STABLE-200504252035/ext/xsl/php_xsl.c:28: /openpkg/RPM/TMP/php5-STABLE-200504252035/ext/xsl/../dom/xml_common.h:41: error: parse error before "php_libxml_ref_obj" /openpkg/RPM/TMP/php5-STABLE-200504252035/ext/xsl/../dom/xml_common.h:41: warning: no semicolon at end of struct or union /openpkg/RPM/TMP/php5-STABLE-200504252035/ext/xsl/../dom/xml_common.h:44: error: parse error before '}' token /openpkg/RPM/TMP/php5-STABLE-200504252035/ext/xsl/../dom/xml_common.h:44: warning: data definition has no type or storage class /openpkg/RPM/TMP/php5-STABLE-200504252035/ext/xsl/../dom/xml_common.h:60: error: parse error before '*' token /openpkg/RPM/TMP/php5-STABLE-200504252035/ext/xsl/../dom/xml_common.h:60: warning: data definition has no type or storage class /openpkg/RPM/TMP/php5-STABLE-200504252035/ext/xsl/../dom/xml_common.h:61: error: parse error before "dom_object" /openpkg/RPM/TMP/php5-STABLE-200504252035/ext/xsl/../dom/xml_common.h:62: error: parse error before '*' token /openpkg/RPM/TMP/php5-STABLE-200504252035/ext/xsl/php_xsl.c: In function `zm_activate_xsl': /openpkg/RPM/TMP/php5-STABLE-200504252035/ext/xsl/php_xsl.c:253: error: `php_libxml_error_handler' undeclared (first use in this function) /openpkg/RPM/TMP/php5-STABLE-200504252035/ext/xsl/php_xsl.c:253: error: (Each undeclared identifier is reported only once /openpkg/RPM/TMP/php5-STABLE-200504252035/ext/xsl/php_xsl.c:253: error: for each function it appears in.) make: *** [ext/xsl/php_xsl.lo] Error 1 error: Bad exit status from /openpkg/RPM/TMP/rpm-tmp.93722 (%build) ------------------------------------------------------------------------ [2005-04-26 00:54:02] jwagner at Princeton dot EDU May have spoken too soon. Parameter causing error was not set. Retrying. ------------------------------------------------------------------------ [2005-04-26 00:50:36] jwagner at Princeton dot EDU Tried php5-STABLE-200504252035. Problem is fixed. Thanks. ------------------------------------------------------------------------ [2005-04-23 12:36:22] php-prob at infoweb dot co dot nz In addition to my above comment, The "SERVER_SOFTWARE" is "Apache/2.0.50 (Fedora)" and PHP4 is also installed. Works when "--with-xsl" removed ------------------------------------------------------------------------ [2005-04-23 11:58:03] php-prob at infoweb dot co dot nz I seem to have the same problem with the same error message. After reading this bug report I tried the latest snapshot, and this is what error message the latest version (php5-STABLE-200504230833/) gave me... -------------------------------------------- -bash-2.05b$ make --quiet In file included from /home/webfool/php-inst/ext/xsl/php_xsl.h:46, from /home/webfool/php-inst/ext/xsl/php_xsl.c:28: /home/webfool/php-inst/ext/dom/xml_common.h:41: error: syntax error before "php_libxml_ref_obj" /home/webfool/php-inst/ext/dom/xml_common.h:41: warning: no semicolon at end of struct or union /home/webfool/php-inst/ext/dom/xml_common.h:44: error: syntax error before '}' token /home/webfool/php-inst/ext/dom/xml_common.h:44: warning: data definition has no type or storage class /home/webfool/php-inst/ext/dom/xml_common.h:60: error: syntax error before '*' token /home/webfool/php-inst/ext/dom/xml_common.h:60: warning: data definition has no type or storage class /home/webfool/php-inst/ext/dom/xml_common.h:61: error: syntax error before "dom_object" /home/webfool/php-inst/ext/dom/xml_common.h:62: error: syntax error before '*' token /home/webfool/php-inst/ext/xsl/php_xsl.c: In function `zm_activate_xsl': /home/webfool/php-inst/ext/xsl/php_xsl.c:253: error: `php_libxml_error_handler' undeclared (first use in this function) /home/webfool/php-inst/ext/xsl/php_xsl.c:253: error: (Each undeclared identifier is reported only once /home/webfool/php-inst/ext/xsl/php_xsl.c:253: error: for each function it appears in.) make: *** [ext/xsl/php_xsl.lo] Error 1 ------------Configure script------------ ./configure --quiet --prefix=/home/webfool/php5 --exec-prefix=/home/webfool/php5 --enable-discard-path --enable-force-cgi-redirect -disable-all --disable-path-info-check --enable-dom --with-xsl ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/32778 -- Edit this bug report at http://bugs.php.net/?id=32778&edit=1