php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32778 php_libxml.h:97: error: syntax error before "void"
Submitted: 2005-04-20 18:43 UTC Modified: 2005-04-27 15:19 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: jwagner at Princeton dot EDU Assigned: sniper (profile)
Status: Closed Package: Compile Failure
PHP Version: 5.0.4 OS: Red Hat Enterprise AS rel 3
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jwagner at Princeton dot EDU
New email:
PHP Version: OS:

 

 [2005-04-20 18:43 UTC] 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-04-27 15:19 UTC] sniper@php.net
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.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 19 12:01:30 2024 UTC