#32778 [NEW]: php_libxml.h:97: error: syntax error before "void"

From: Date: Wed, 20 Apr 2005 16:43:33 +0000
Subject: #32778 [NEW]: php_libxml.h:97: error: syntax error before "void"
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-77957@lists.php.net to get a copy of this message
From: jwagner at Princeton dot EDU Operating system: Red Hat Enterprise AS rel 3 PHP version: 5.0.4 PHP Bug Type: Compile Failure Bug description: php_libxml.h:97: error: syntax error before "void" 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 bug report at http://bugs.php.net/?id=32778&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32778&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32778&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32778&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=32778&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=32778&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32778&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32778&r=needscript Try newer version: http://bugs.php.net/fix.php?id=32778&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32778&r=support Expected behavior: http://bugs.php.net/fix.php?id=32778&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32778&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32778&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=32778&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32778&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=32778&r=dst IIS Stability: http://bugs.php.net/fix.php?id=32778&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32778&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32778&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32778&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32778&r=mysqlcfg

« previous php.bugs (#77957) next »