Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:30206 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60565 invoked by uid 1010); 17 Jun 2007 09:56:52 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 60546 invoked from network); 17 Jun 2007 09:56:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Jun 2007 09:56:52 -0000 Authentication-Results: pb1.pair.com smtp.mail=johannes@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=johannes@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 88.217.1.206 as permitted sender) X-PHP-List-Original-Sender: johannes@php.net X-Host-Fingerprint: 88.217.1.206 ppp-88-217-1-206.dynamic.mnet-online.de Received: from [88.217.1.206] ([88.217.1.206:55078] helo=johannes.nop) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CA/C3-27149-16505764 for ; Sun, 17 Jun 2007 05:56:50 -0400 Received: from johannes.nop (localhost [127.0.0.1]) by johannes.nop (8.14.1/8.14.1) with ESMTP id l5EAxTtv028067; Thu, 14 Jun 2007 12:59:30 +0200 Received: (from johannes@localhost) by johannes.nop (8.14.1/8.14.1/Submit) id l5EAxTsM028066; Thu, 14 Jun 2007 12:59:29 +0200 X-Authentication-Warning: johannes.nop: johannes set sender to johannes@php.net using -f To: Marco Cc: internals@lists.php.net In-Reply-To: <2fd662a00706140332w3902034as3335972ef096412@mail.gmail.com> References: <2fd662a00706140332w3902034as3335972ef096412@mail.gmail.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Thu, 14 Jun 2007 12:59:27 +0200 Message-ID: <1181818767.3895.893.camel@johannes.nop> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 (2.10.1-4.fc7) Subject: Re: [PHP-DEV] PHP 5.2.3 and libxml compile failure on Win32 From: johannes@php.net (Johannes =?ISO-8859-1?Q?Schl=FCter?=) Hi, I don't really know that windows stuff but did you try building PHP using Edins zip.zip file or your own libxml2? Maybe the libs have some compatibility issues. And about the other question: All XML extensions in PHP 5 are based on libxml2. If you disable building libxml2 support you can't have any of these compiled in. johannes On Thu, 2007-06-14 at 12:32 +0200, Marco wrote: > Hi All > > We are having a problem compiling PHP 5.2.3 under win32. > > Building PHP on Win32 using VS2005 following the instructions at > http://hu2.php.net/manual/en/install.windows.building.php the build fails > unless libxml support is disabled. > > If it is configured as > > cscript /nologo configure.js --enable-embed --enable-debug --without-libxml > > then the build is ok. But in this case calls to xml_parser_create() results > fatal error in the PHP scripts BTW should disabling libxml also disables > simplexml?. > > When it is built with libxml support as > > cscript /nologo configure.js --enable-embed --enable-debug > > then the compiler fails with errors like > > w:\1\php-5.2.3\ext\dom\xml_common.h(27) : error C2143: syntax error : > missing '{' before '*' > w:\1\php-5.2.3\ext\dom\xml_common.h(32) : error C2061: syntax error : > identifier 'php_libxml_ref_obj' > w:\1\php-5.2.3\ext\dom\xml_common.h(35) : error C2059: syntax error : '}' > w:\1\php-5.2.3\ext\dom\xml_common.h(51) : error C2143: syntax error : > missing '{' before '*' > w:\1\php-5.2.3\ext\dom\xml_common.h(52) : error C2143: syntax error : > missing ')' before '*' > w:\1\php-5.2.3\ext\dom\xml_common.h(52) : error C2081: 'dom_object' : name > in formal parameter list illegal > w:\1\php-5.2.3\ext\dom\xml_common.h(52) : error C2143: syntax error : > missing '{' before '*' > w:\1\php-5.2.3\ext\dom\xml_common.h(52) : error C2059: syntax error : 'type' > w:\1\php-5.2.3\ext\dom\xml_common.h(52) : error C2059: syntax error : ')' > w:\1\php-5.2.3\ext\dom\xml_common.h(53) : error C2143: syntax error : > missing ')' before '*' > w:\1\php-5.2.3\ext\dom\xml_common.h(53) : error C2143: syntax error : > missing '{' before '*' > w:\1\php-5.2.3\ext\dom\xml_common.h(53) : error C2059: syntax error : ')' > w:\1\php-5.2.3\ext\dom\php_dom.h(71) : error C2061: syntax error : > identifier 'dom_object' > w:\1\php-5.2.3\ext\dom\php_dom.h(77) : error C2059: syntax error : '}' > w:\1\php-5.2.3\ext\dom\php_dom.h(86) : error C2143: syntax error : missing > '{' before '*' > w:\1\php-5.2.3\ext\dom\php_dom.h(87) : error C2061: syntax error : > identifier 'dom_get_doc_props' > w:\1\php-5.2.3\ext\dom\php_dom.h(87) : error C2059: syntax error : ';' > w:\1\php-5.2.3\ext\dom\php_dom.h(87) : error C2143: syntax error : missing > ')' before '*' > w:\1\php-5.2.3\ext\dom\php_dom.h(87) : error C2143: syntax error : missing > '{' before '*' > w:\1\php-5.2.3\ext\dom\php_dom.h(87) : error C2059: syntax error : ')' > w:\1\php-5.2.3\ext\dom\php_dom.h(93) : error C2143: syntax error : missing > ')' before '*' > w:\1\php-5.2.3\ext\dom\php_dom.h(93) : error C2143: syntax error : missing > '{' before '*' > w:\1\php-5.2.3\ext\dom\php_dom.h(93) : error C2059: syntax error : ')' > > Libxml is built and the headers and the libs are placed to the win32build > folder, we are currently trying to build against libxml 2.6.2.26 > > Can anyone point us in the right direction to get this resolved? > > Thanks in advance > > Marco