ID: 32778 User updated by: jwagner at Princeton dot EDU Reported By: jwagner at Princeton dot EDU -Status: Feedback +Status: Closed Bug Type: Compile Failure Operating System: Red Hat Enterprise AS rel 3 PHP Version: 5.0.4 Assigned To: sniper New Comment:
Tried php5-STABLE-200504252035. Problem is fixed. Thanks. Previous Comments: ------------------------------------------------------------------------ [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 ------------------------------------------------------------------------ [2005-04-21 13:50:20] [EMAIL PROTECTED] Can you please try the latest snapshot from http://snaps.php.net/ in about one hour from now? I have committed possible fix but as I can't reproduce this I'd like to see it really works for you before I close this bug. ------------------------------------------------------------------------ [2005-04-20 18:43:31] jwagner at Princeton dot EDU Description: ------------ Building php5.0.4 in openpkg environment using php5-STABLE-200504201430 gcc 3.4.3 (OpenPKG-2.3) configure/make fails with syntax error php5-STABLE-200504201432/ext/libxml/php_libxml.h:97: error: syntax error before "void" Removing --with-xsl=/openpkg allows make to run to completion but PEAR is not built. This error also occurs with 5.0.3 (haven't tried earlier). Reproduce code: --------------- ./configure --prefix=/openpkg --sysconfdir=/openpkg/etc/php5 --with-config-file-path=/openpkg/etc/php5 --libdir=/openpkg/lib/php5 --disable-all --enable-calendar --with-mysql=/openpkg --without-pgsql --with-gd=/openpkg --with-jpeg-dir=/openpkg --with-png-dir=/openpkg --enable-gd-native-ttf --with-freetype-dir=/openpkg --with-zlib=/openpkg --with-zlib-dir=/openpkg --with-bz2=/openpkg --with-openssl=/openpkg --with-ldap=/openpkg --with-mm=/openpkg --enable-session --with-pcre-regex=/openpkg --enable-ftp --with-gettext=/openpkg --with-imap=/openpkg --with-imap-ssl=/openpkg --enable-xml --with-libxml-dir=/openpkg --with-xsl=/openpkg --enable-dom --with-libxml-dir=/openpkg --enable-bcmath --with-mhash=/openpkg --with-curl=/openpkg --with-gdbm=/openpkg --with-pear=/openpkg/lib/php --enable-mbregex --enable-mbstring --with-exif --with-iconv=/openpkg --enable-cli --enable-cgi --enable-force-cgi-redirect --enable-discard-path --enable-memory-limit /openpkg/bin/make --no-print-directory Expected result: ---------------- successful make Actual result: -------------- In file included from /openpkg/RPM/TMP/php5-STABLE-200504201432/ext/xsl/../dom/xml_common.h:25, from /openpkg/RPM/TMP/php5-STABLE-200504201432/ext/xsl/php_xsl.h:46, from /openpkg/RPM/TMP/php5-STABLE-200504201432/ext/xsl/php_xsl.c:28: /openpkg/RPM/TMP/php5-STABLE-200504201432/ext/libxml/php_libxml.h:97: error: syntax error before "void" /openpkg/RPM/TMP/php5-STABLE-200504201432/ext/libxml/php_libxml.h:98: error: syntax error before "void" In file included from /openpkg/RPM/TMP/php5-STABLE-200504201432/ext/xsl/php_xsl.h:46, from /openpkg/RPM/TMP/php5-STABLE-200504201432/ext/xsl/php_xsl.c:28: /openpkg/RPM/TMP/php5-STABLE-200504201432/ext/xsl/../dom/xml_common.h:41: error: parse error before "php_libxml_ref_obj" /openpkg/RPM/TMP/php5-STABLE-200504201432/ext/xsl/../dom/xml_common.h:41: warning: no semicolon at end of struct or union /openpkg/RPM/TMP/php5-STABLE-200504201432/ext/xsl/../dom/xml_common.h:44: error: parse error before '}' token /openpkg/RPM/TMP/php5-STABLE-200504201432/ext/xsl/../dom/xml_common.h:44: warning: data definition has no type or storage class /openpkg/RPM/TMP/php5-STABLE-200504201432/ext/xsl/../dom/xml_common.h:60: error: parse error before '*' token /openpkg/RPM/TMP/php5-STABLE-200504201432/ext/xsl/../dom/xml_common.h:60: warning: data definition has no type or storage class /openpkg/RPM/TMP/php5-STABLE-200504201432/ext/xsl/../dom/xml_common.h:61: error: parse error before "dom_object" /openpkg/RPM/TMP/php5-STABLE-200504201432/ext/xsl/../dom/xml_common.h:62: error: parse error before '*' token /openpkg/RPM/TMP/php5-STABLE-200504201432/ext/xsl/php_xsl.c: In function `zm_activate_xsl': /openpkg/RPM/TMP/php5-STABLE-200504201432/ext/xsl/php_xsl.c:253: error: `php_libxml_error_handler' undeclared (first use in this function) /openpkg/RPM/TMP/php5-STABLE-200504201432/ext/xsl/php_xsl.c:253: error: (Each undeclared identifier is reported only once /openpkg/RPM/TMP/php5-STABLE-200504201432/ext/xsl/php_xsl.c:253: error: for each function it appears in.) make: *** [ext/xsl/php_xsl.lo] Error 1 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=32778&edit=1