Issue with compiling php 5.2.8 on windows xp using VC6

[email protected] (Sriram Natarajan)
Newsgroups php.internals.win
Message-ID <[email protected]>
HI
 I am trying to compile PHP 5.2.8 on windows and running into some issues. I was wondering, if some one can kindly point me as to what am I missing here. 

 I am running on Windows XP SP3, VC6 (SP5) and Windows 2003 Microsoft SDK (feb 2003 update)

- downloaded php dependent libaries from the below url and unpacked to say c:\release
http://pecl2.php.net/downloads/php-windows-builds/php-libs/VC6/x86/
- downloaded php-binary tools from 
http://pecl2.php.net/downloads/php-windows-builds/php-libs/

Now, when I try to compile PHP 5.2.8, using some thing like

cscript configure.js --with-php-build=.. --with-extra-includes=... --with-extra-libs=..

I run into the following error

.\ext\dom/xml_common.h(27) : error C2143: syntax error : missing '{' before '*'
.\ext\dom/xml_common.h(32) : error C2061: syntax error : identifier 'php_libxml_ref_obj'
.\ext\dom/xml_common.h(35) : error C2059: syntax error : '}'
.\ext\dom/xml_common.h(51) : error C2143: syntax error : missing '{' before '*'
.\ext\dom/xml_common.h(52) : error C2143: syntax error : missing ')' before '*'
.\ext\dom/xml_common.h(52) : error C2081: 'dom_object' : name in formal parameter list illegal
.\ext\dom/xml_common.h(52) : error C2143: syntax error : missing '{' before '*'
.\ext\dom/xml_common.h(52) : error C2059: syntax error : 'type'
.\ext\dom/xml_common.h(52) : error C2059: syntax error : ')'
.\ext\dom/xml_common.h(53) : error C2143: syntax error : missing ')' before '*'
.\ext\dom/xml_common.h(53) : error C2143: syntax error : missing '{' before '*'
.\ext\dom/xml_common.h(53) : error C2059: syntax error : ')'
.\ext\dom/php_dom.h(71) : error C2061: syntax error : identifier 'dom_object'
.\ext\dom/php_dom.h(77) : error C2059: syntax error : '}'
.\ext\dom/php_dom.h(86) : error C2143: syntax error : missing '{' before '*'
.\ext\dom/php_dom.h(87) : error C2061: syntax error : identifier 'dom_get_doc_props'


Here is a snippet of configure.js output (say first 100 lines..)

Rebuilding configure.js
Now run 'cscript /nologo configure.js --help'
Microsoft (R) Windows Script Host Version 5.7
Copyright (C) Microsoft Corporation. All rights reserved.

Saving configure options to config.nice.bat
Checking for cl.exe ...  <in default path>
Checking for cl.exe ...  <in default path>
Detected MS compiler version 12
Detected 32-bit compiler
Checking for link.exe ...  C:\VISUAL~1\VC98\BIN
Checking for nmake.exe ...  <in default path>
Checking for lib.exe ...  <in default path>
Checking for bison.exe ...  <in default path>
Checking for flex.exe ...  <in default path>
Checking for re2c.exe ...  <in default path>
Checking for zip.exe ...  <in default path>
Checking for lemon.exe ...  <not found>
Checking for mc.exe ...  C:\MicrosoftSDK\Bin
Checking for mt.exe ...  C:\MicrosoftSDK\Bin\WinNT
Checking for arpa\nameser.h ...  C:\work\release\include
Checking for library resolv.lib ... ..\release\lib\resolv.lib
..
Enabling extension ext\xml
Enabling extension ext\xmlreader
Checking for libxml/xmlwriter.h ...  C:\work\release\include
Enabling extension ext\xmlwriter
Checking for library libxslt_a.lib ... ..\release\lib\libxslt_a.lib
Checking for library libexslt_a.lib ... ..\release\lib\libexslt_a.lib
Checking for libxslt\xslt.h ...  C:\work\release\include
Checking for libexslt\exslt.h ...  C:\work\release\include
Enabling extension ext\xsl

Thanks in advance for your valuable insights...

Sriram
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.