# php5 win build

- Thread: https://externals.io/message/15682
- Original archive: https://news-web.php.net/php.internals/15682
- Started by Arjun on 2005-03-30T07:02:33+00:00
- Messages: 7
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #15682 — Arjun — 2005-03-30T07:02:33+00:00

URL: https://externals.io/message/15682#15682

[Sorry for blanket mailing.. Guess the list does not pass attachments.. 
So, now the log is inline..]

Hi,

I want to build php-5.0.3 on WinXP using Visual Studio.NET.  I have read 
the instructions at php.net as well as in README.WIN32-BUILD-SYSTEM file.

Initially got an error regarding some function in nsap_addr.c at #if 
!defined(isxdigit) /* XXX */ which (after googling) I changed to:   #if 
!defined(isxdigit) && !defined(_CTYPE_DEFINED).

Then I guess that was fixed. Next, I got errors regarding 
libxml/parser.h and iconv.h. I then downloaded the respective files and 
placed the headers in their respective expected places.

Next I could compile a few parts but not the solution including the 
php5ts.lib and the dlls (which i need). Please find the html file 
generated by visual studio attached.

Any help will be appreciated.

Regards
aj

Arjun Jain
http://arjun.notlong.com

build log:	
-------------------------


Build Log

  	  	


      ------- Build started: Project: php5dllts, Configuration:
      Release_TS|Win32 -------


      

Command Lines

  	  	

Creating temporary file "c:\tmp\php-5.0.3\win32\Release_TS\RSP000041.rsp" with contents
[
/O2 /I ".." /I "..\main" /I "..\regex" /I "..\..\bindlib_w32" /I "..\..\zlib" /I "..\Zend" /I "..\TSRM" /I "..\..\libxml\include" /I "..\ext\sqlite\libsqlite\src" /D "NDEBUG" /D "ZEND_DEBUG=0" /D "_WINDOWS" /D "_USRDLL" /D "PHP5DLLTS_EXPORTS" /D "PHP_EXPORTS" /D "LIBZEND_EXPORTS" /D "TSRM_EXPORTS" /D "SAPI_EXPORTS" /D "MSVC5" /D "ZTS" /D "ZEND_WIN32" /D "PHP_WIN32" /D "WIN32" /D "_MBCS" /D "LIBXML_STATIC" /FD /EHsc /MD /YX"stdafx.h" /Fp".\Release_TS/php5dllts.pch" /Fo".\Release_TS/" /Fd".\Release_TS/" /FR".\Release_TS/" /W2 /c
"\tmp\php-5.0.3\ext\standard\var_unserializer.c"
"\tmp\php-5.0.3\ext\standard\url_scanner_ex.c"
]
Creating command line "cl.exe @"c:\tmp\php-5.0.3\win32\Release_TS\RSP000041.rsp" /nologo"
Creating temporary file "c:\tmp\php-5.0.3\win32\Release_TS\RSP000042.rsp" with contents
[
/O2 /I ".." /I "..\main" /I "..\regex" /I "..\..\bindlib_w32" /I "..\..\zlib" /I "..\Zend" /I "..\TSRM" /I "..\..\libxml\include" /I "..\ext\sqlite\libsqlite\src" /D "NDEBUG" /D "ZEND_DEBUG=0" /D "_WINDOWS" /D "_USRDLL" /D "PHP5DLLTS_EXPORTS" /D "PHP_EXPORTS" /D "LIBZEND_EXPORTS" /D "TSRM_EXPORTS" /D "SAPI_EXPORTS" /D "MSVC5" /D "ZTS" /D "ZEND_WIN32" /D "PHP_WIN32" /D "WIN32" /D "_MBCS" /D "LIBXML_STATIC" /D "STATIC" /FD /EHsc /MD /YX"stdafx.h" /Fp".\Release_TS/php5dllts.pch" /Fo".\Release_TS/" /Fd".\Release_TS/" /FR".\Release_TS/" /W3 /c
"\tmp\php-5.0.3\ext\pcre\php_pcre.c"
]
Creating command line "cl.exe @"c:\tmp\php-5.0.3\win32\Release_TS\RSP000042.rsp" /nologo"
Creating temporary file "c:\tmp\php-5.0.3\win32\Release_TS\RSP000043.rsp" with contents
[
/O2 /I ".." /I "..\main" /I "..\regex" /I "..\..\bindlib_w32" /I "..\..\zlib" /I "..\Zend" /I "..\TSRM" /I "..\..\libxml\include" /I "..\ext\sqlite\libsqlite\src" /D "NDEBUG" /D "ZEND_DEBUG=0" /D "_WINDOWS" /D "_USRDLL" /D "PHP5DLLTS_EXPORTS" /D "PHP_EXPORTS" /D "LIBZEND_EXPORTS" /D "TSRM_EXPORTS" /D "SAPI_EXPORTS" /D "MSVC5" /D "ZTS" /D "ZEND_WIN32" /D "PHP_WIN32" /D "WIN32" /D "_MBCS" /D "LIBXML_STATIC" /FD /EHsc /MD /YX"stdafx.h" /Fp".\Release_TS/php5dllts.pch" /Fo".\Release_TS/" /Fd".\Release_TS/" /FR".\Release_TS/" /W3 /c
"\tmp\php-5.0.3\ext\xml\xml.c"
"\tmp\php-5.0.3\ext\wddx\wddx.c"
"\tmp\php-5.0.3\main\internal_functions_win32.c"
]
Creating command line "cl.exe @"c:\tmp\php-5.0.3\win32\Release_TS\RSP000043.rsp" /nologo"
Creating temporary file "c:\tmp\php-5.0.3\win32\Release_TS\RSP000044.rsp" with contents
[
/O2 /I ".." /I "..\main" /I "..\regex" /I "..\..\bindlib_w32" /I "..\..\zlib" /I "..\Zend" /I "..\TSRM" /I "..\..\libxml\include" /I "..\ext\sqlite\libsqlite\src" /D "NDEBUG" /D "ZEND_DEBUG=0" /D "_WINDOWS" /D "_USRDLL" /D "PHP5DLLTS_EXPORTS" /D "PHP_EXPORTS" /D "LIBZEND_EXPORTS" /D "TSRM_EXPORTS" /D "SAPI_EXPORTS" /D "MSVC5" /D "ZTS" /D "ZEND_WIN32" /D "PHP_WIN32" /D "WIN32" /D "_MBCS" /D "LIBXML_STATIC" /D "STATIC" /D "SUPPORT_UTF8" /D "LINK_SIZE=2" /FD /EHsc /MD /YX"stdafx.h" /Fp".\Release_TS/php5dllts.pch" /Fo".\Release_TS/" /Fd".\Release_TS/" /FR".\Release_TS/" /W3 /c
"\tmp\php-5.0.3\ext\pcre\pcrelib\study.c"
"\tmp\php-5.0.3\ext\pcre\pcrelib\pcre.c"
"\tmp\php-5.0.3\ext\pcre\pcrelib\maketables.c"
"\tmp\php-5.0.3\ext\pcre\pcrelib\get.c"
]
Creating command line "cl.exe @"c:\tmp\php-5.0.3\win32\Release_TS\RSP000044.rsp" /nologo"
Creating temporary file "c:\tmp\php-5.0.3\win32\Release_TS\RSP000045.rsp" with contents
[
/O2 /I ".." /I "..\main" /I "..\regex" /I "..\..\bindlib_w32" /I "..\..\zlib" /I "..\Zend" /I "..\TSRM" /I "..\..\libxml\include" /I "..\ext\sqlite\libsqlite\src" /D "NDEBUG" /D "ZEND_DEBUG=0" /D "_WINDOWS" /D "_USRDLL" /D "PHP5DLLTS_EXPORTS" /D "PHP_EXPORTS" /D "LIBZEND_EXPORTS" /D "TSRM_EXPORTS" /D "SAPI_EXPORTS" /D "MSVC5" /D "ZTS" /D "ZEND_WIN32" /D "PHP_WIN32" /D "WIN32" /D "_MBCS" /D "LIBXML_STATIC" /D "STATIC" /D "SUPPORT_UTF8" /FD /EHsc /MD /YX"stdafx.h" /Fp".\Release_TS/php5dllts.pch" /Fo".\Release_TS/" /Fd".\Release_TS/" /FR".\Release_TS/" /W3 /c
"\tmp\php-5.0.3\ext\pcre\pcrelib\chartables.c"
]
Creating command line "cl.exe @"c:\tmp\php-5.0.3\win32\Release_TS\RSP000045.rsp" /nologo"
      

Output Window

  	  	

Compiling...
var_unserializer.c
url_scanner_ex.c
Compiling...
php_pcre.c
Compiling...
xml.c
c:\tmp\php-5.0.3\ext\xml\php_xml.h(49) : error C2061: syntax error : identifier 'XML_Char'
c:\tmp\php-5.0.3\ext\xml\php_xml.h(50) : error C2059: syntax error : '}'
c:\tmp\php-5.0.3\ext\xml\php_xml.h(55) : error C2061: syntax error : identifier 'XML_Parser'
c:\tmp\php-5.0.3\ext\xml\php_xml.h(56) : error C2143: syntax error : missing '{' before '*'
c:\tmp\php-5.0.3\ext\xml\php_xml.h(94) : error C2143: syntax error : missing '{' before '*'
c:\tmp\php-5.0.3\ext\xml\php_xml.h(95) : error C2059: syntax error : '}'
c:\tmp\php-5.0.3\ext\xml\php_xml.h(99) : error C2061: syntax error : identifier 'XML_Char'
c:\tmp\php-5.0.3\ext\xml\php_xml.h(102) : error C2059: syntax error : '}'
c:\tmp\php-5.0.3\ext\xml\php_xml.h(142) : error C2143: syntax error : missing ')' before '*'
c:\tmp\php-5.0.3\ext\xml\php_xml.h(142) : error C2143: syntax error : missing '{' before '*'
c:\tmp\php-5.0.3\ext\xml\php_xml.h(142) : error C2059: syntax error : ','
c:\tmp\php-5.0.3\ext\xml\php_xml.h(142) : error C2059: syntax error : ')'
\tmp\php-5.0.3\ext\xml\xml.c(88) : error C2143: syntax error : missing '{' before '*'
\tmp\php-5.0.3\ext\xml\xml.c(88) : error C2143: syntax error : missing ')' before '*'
\tmp\php-5.0.3\ext\xml\xml.c(88) : error C2143: syntax error : missing '{' before '*'
\tmp\php-5.0.3\ext\xml\xml.c(88) : error C2059: syntax error : ')'
\tmp\php-5.0.3\ext\xml\xml.c(88) : error C2059: syntax error : ';'
\tmp\php-5.0.3\ext\xml\xml.c(89) : error C2143: syntax error : missing ')' before '*'
\tmp\php-5.0.3\ext\xml\xml.c(89) : error C2143: syntax error : missing '{' before '*'
\tmp\php-5.0.3\ext\xml\xml.c(89) : error C2059: syntax error : ','
\tmp\php-5.0.3\ext\xml\xml.c(89) : error C2059: syntax error : ')'
\tmp\php-5.0.3\ext\xml\xml.c(90) : error C2143: syntax error : missing ')' before '*'
\tmp\php-5.0.3\ext\xml\xml.c(90) : error C2143: syntax error : missing '{' before '*'
\tmp\php-5.0.3\ext\xml\xml.c(90) : error C2059: syntax error : ','
\tmp\php-5.0.3\ext\xml\xml.c(90) : error C2059: syntax error : ')'
\tmp\php-5.0.3\ext\xml\xml.c(91) : error C2143: syntax error : missing ')' before '*'
\tmp\php-5.0.3\ext\xml\xml.c(91) : error C2143: syntax error : missing '{' before '*'
\tmp\php-5.0.3\ext\xml\xml.c(91) : error C2059: syntax error : ')'
\tmp\php-5.0.3\ext\xml\xml.c(91) : error C2059: syntax error : ';'
\tmp\php-5.0.3\ext\xml\xml.c(92) : error C2143: syntax error : missing ')' before '*'
\tmp\php-5.0.3\ext\xml\xml.c(92) : error C2143: syntax error : missing '{' before '*'
\tmp\php-5.0.3\ext\xml\xml.c(92) : error C2059: syntax error : 'type'
\tmp\php-5.0.3\ext\xml\xml.c(92) : error C2059: syntax error : ')'
\tmp\php-5.0.3\ext\xml\xml.c(93) : error C2143: syntax error : missing ')' before '*'
\tmp\php-5.0.3\ext\xml\xml.c(93) : error C2143: syntax error : missing '{' before '*'
\tmp\php-5.0.3\ext\xml\xml.c(93) : error C2059: syntax error : 'type'
\tmp\php-5.0.3\ext\xml\xml.c(93) : error C2059: syntax error : ')'
\tmp\php-5.0.3\ext\xml\xml.c(95) : error C2143: syntax error : missing ')' before '*'
\tmp\php-5.0.3\ext\xml\xml.c(95) : error C2143: syntax error : missing '{' before '*'
\tmp\php-5.0.3\ext\xml\xml.c(95) : error C2059: syntax error : ','
\tmp\php-5.0.3\ext\xml\xml.c(95) : error C2059: syntax error : ')'
\tmp\php-5.0.3\ext\xml\xml.c(96) : error C2143: syntax error : missing ')' before '*'
\tmp\php-5.0.3\ext\xml\xml.c(96) : error C2143: syntax error : missing '{' before '*'
\tmp\php-5.0.3\ext\xml\xml.c(96) : error C2059: syntax error : ')'
\tmp\php-5.0.3\ext\xml\xml.c(96) : error C2059: syntax error : ';'
\tmp\php-5.0.3\ext\xml\xml.c(97) : error C2143: syntax error : missing ')' before '*'
\tmp\php-5.0.3\ext\xml\xml.c(97) : error C2143: syntax error : missing '{' before '*'
\tmp\php-5.0.3\ext\xml\xml.c(97) : error C2059: syntax error : ','
\tmp\php-5.0.3\ext\xml\xml.c(97) : error C2059: syntax error : ')'
\tmp\php-5.0.3\ext\xml\xml.c(98) : error C2143: syntax error : missing ')' before '*'
\tmp\php-5.0.3\ext\xml\xml.c(98) : error C2143: syntax error : missing '{' before '*'
\tmp\php-5.0.3\ext\xml\xml.c(98) : error C2059: syntax error : ','
\tmp\php-5.0.3\ext\xml\xml.c(98) : error C2059: syntax error : ')'
\tmp\php-5.0.3\ext\xml\xml.c(99) : error C2143: syntax error : missing ')' before '*'
\tmp\php-5.0.3\ext\xml\xml.c(99) : error C2143: syntax error : missing '{' before '*'
\tmp\php-5.0.3\ext\xml\xml.c(99) : error C2059: syntax error : ','
\tmp\php-5.0.3\ext\xml\xml.c(99) : error C2059: syntax error : ')'
\tmp\php-5.0.3\ext\xml\xml.c(100) : error C2143: syntax error : missing ')' before '*'
\tmp\php-5.0.3\ext\xml\xml.c(100) : error C2143: syntax error : missing '{' before '*'
\tmp\php-5.0.3\ext\xml\xml.c(100) : error C2059: syntax error : ','
\tmp\php-5.0.3\ext\xml\xml.c(100) : error C2059: syntax error : ')'
\tmp\php-5.0.3\ext\xml\xml.c(101) : error C2143: syntax error : missing ')' before '*'
\tmp\php-5.0.3\ext\xml\xml.c(101) : error C2143: syntax error : missing '{' before '*'
\tmp\php-5.0.3\ext\xml\xml.c(101) : error C2059: syntax error : ','
\tmp\php-5.0.3\ext\xml\xml.c(101) : error C2059: syntax error : ')'
\tmp\php-5.0.3\ext\xml\xml.c(102) : error C2059: syntax error : ','
\tmp\php-5.0.3\ext\xml\xml.c(102) : error C2143: syntax error : missing ')' before 'const'
\tmp\php-5.0.3\ext\xml\xml.c(102) : error C2143: syntax error : missing '{' before 'const'
\tmp\php-5.0.3\ext\xml\xml.c(102) : error C2143: syntax error : missing '{' before '*'
\tmp\php-5.0.3\ext\xml\xml.c(102) : error C2059: syntax error : ','
\tmp\php-5.0.3\ext\xml\xml.c(102) : error C2059: syntax error : ')'
\tmp\php-5.0.3\ext\xml\xml.c(104) : error C2143: syntax error : missing ')' before '*'
\tmp\php-5.0.3\ext\xml\xml.c(104) : error C2143: syntax error : missing '{' before '*'
\tmp\php-5.0.3\ext\xml\xml.c(104) : error C2059: syntax error : ','
\tmp\php-5.0.3\ext\xml\xml.c(104) : error C2059: syntax error : ')'
\tmp\php-5.0.3\ext\xml\xml.c(105) : error C2143: syntax error : missing ')' before '*'
\tmp\php-5.0.3\ext\xml\xml.c(105) : error C2143: syntax error : missing '{' before '*'
\tmp\php-5.0.3\ext\xml\xml.c(105) : error C2059: syntax error : ')'
\tmp\php-5.0.3\ext\xml\xml.c(105) : error C2059: syntax error : ';'
\tmp\php-5.0.3\ext\xml\xml.c(161) : error C2061: syntax error : identifier 'xml_encodings'
\tmp\php-5.0.3\ext\xml\xml.c(161) : error C2059: syntax error : ';'
\tmp\php-5.0.3\ext\xml\xml.c(161) : error C2059: syntax error : '['
\tmp\php-5.0.3\ext\xml\xml.c(168) : error C2061: syntax error : identifier 'php_xml_mem_hdlrs'
\tmp\php-5.0.3\ext\xml\xml.c(168) : error C2059: syntax error : ';'
\tmp\php-5.0.3\ext\xml\xml.c(177) : error C2143: syntax error : missing ')' before '*'
\tmp\php-5.0.3\ext\xml\xml.c(177) : error C2143: syntax error : missing '{' before '*'
\tmp\php-5.0.3\ext\xml\xml.c(177) : error C2059: syntax error : 'type'
\tmp\php-5.0.3\ext\xml\xml.c(177) : error C2059: syntax error : ')'
\tmp\php-5.0.3\ext\xml\xml.c(205) : error C2065: 'php_xml_globals' : undeclared identifier
\tmp\php-5.0.3\ext\xml\xml.c(205) : error C2065: 'php_xml_init_globals' : undeclared identifier
\tmp\php-5.0.3\ext\xml\xml.c(210) : error C2065: 'XML_ERROR_NONE' : undeclared identifier
\tmp\php-5.0.3\ext\xml\xml.c(211) : error C2065: 'XML_ERROR_NO_MEMORY' : undeclared identifier
\tmp\php-5.0.3\ext\xml\xml.c(212) : error C2065: 'XML_ERROR_SYNTAX' : undeclared identifier
\tmp\php-5.0.3\ext\xml\xml.c(213) : error C2065: 'XML_ERROR_NO_ELEMENTS' : undeclared identifier
\tmp\php-5.0.3\ext\xml\xml.c(214) : error C2065: 'XML_ERROR_INVALID_TOKEN' : undeclared identifier
\tmp\php-5.0.3\ext\xml\xml.c(215) : error C2065: 'XML_ERROR_UNCLOSED_TOKEN' : undeclared identifier
\tmp\php-5.0.3\ext\xml\xml.c(216) : error C2065: 'XML_ERROR_PARTIAL_CHAR' : undeclared identifier
\tmp\php-5.0.3\ext\xml\xml.c(217) : error C2065: 'XML_ERROR_TAG_MISMATCH' : undeclared identifier
\tmp\php-5.0.3\ext\xml\xml.c(218) : error C2065: 'XML_ERROR_DUPLICATE_ATTRIBUTE' : undeclared identifier
\tmp\php-5.0.3\ext\xml\xml.c(219) : error C2065: 'XML_ERROR_JUNK_AFTER_DOC_ELEMENT' : undeclared identifier
\tmp\php-5.0.3\ext\xml\xml.c(220) : error C2065: 'XML_ERROR_PARAM_ENTITY_REF' : undeclared identifier
\tmp\php-5.0.3\ext\xml\xml.c(220) : fatal error C1003: error count exceeds 100; stopping compilation
wddx.c
..\ext\xml\php_xml.h(49) : error C2061: syntax error : identifier 'XML_Char'
..\ext\xml\php_xml.h(50) : error C2059: syntax error : '}'
..\ext\xml\php_xml.h(55) : error C2061: syntax error : identifier 'XML_Parser'
..\ext\xml\php_xml.h(56) : error C2143: syntax error : missing '{' before '*'
..\ext\xml\php_xml.h(94) : error C2143: syntax error : missing '{' before '*'
..\ext\xml\php_xml.h(95) : error C2059: syntax error : '}'
..\ext\xml\php_xml.h(99) : error C2061: syntax error : identifier 'XML_Char'
..\ext\xml\php_xml.h(102) : error C2059: syntax error : '}'
..\ext\xml\php_xml.h(142) : error C2143: syntax error : missing ')' before '*'
..\ext\xml\php_xml.h(142) : error C2143: syntax error : missing '{' before '*'
..\ext\xml\php_xml.h(142) : error C2059: syntax error : ','
..\ext\xml\php_xml.h(142) : error C2059: syntax error : ')'
\tmp\php-5.0.3\ext\wddx\wddx.c(98) : error C2143: syntax error : missing ')' before '*'
\tmp\php-5.0.3\ext\wddx\wddx.c(98) : error C2143: syntax error : missing '{' before '*'
\tmp\php-5.0.3\ext\wddx\wddx.c(98) : error C2059: syntax error : 'type'
\tmp\php-5.0.3\ext\wddx\wddx.c(98) : error C2059: syntax error : ')'
\tmp\php-5.0.3\ext\wddx\wddx.c(693) : error C2143: syntax error : missing ')' before '*'
\tmp\php-5.0.3\ext\wddx\wddx.c(693) : error C2143: syntax error : missing '{' before '*'
\tmp\php-5.0.3\ext\wddx\wddx.c(693) : warning C4228: nonstandard extension used : qualifiers after comma in declarator list are ignored
\tmp\php-5.0.3\ext\wddx\wddx.c(693) : error C2143: syntax error : missing ';' before '*'
\tmp\php-5.0.3\ext\wddx\wddx.c(693) : error C2059: syntax error : ')'
\tmp\php-5.0.3\ext\wddx\wddx.c(694) : error C2054: expected '(' to follow 'atts'
\tmp\php-5.0.3\ext\wddx\wddx.c(881) : error C2143: syntax error : missing ')' before '*'
\tmp\php-5.0.3\ext\wddx\wddx.c(881) : error C2143: syntax error : missing '{' before '*'
\tmp\php-5.0.3\ext\wddx\wddx.c(881) : error C2059: syntax error : ')'
\tmp\php-5.0.3\ext\wddx\wddx.c(882) : error C2054: expected '(' to follow 'name'
\tmp\php-5.0.3\ext\wddx\wddx.c(1002) : error C2143: syntax error : missing ')' before '*'
\tmp\php-5.0.3\ext\wddx\wddx.c(1002) : error C2143: syntax error : missing '{' before '*'
\tmp\php-5.0.3\ext\wddx\wddx.c(1002) : error C2059: syntax error : 'type'
\tmp\php-5.0.3\ext\wddx\wddx.c(1002) : error C2059: syntax error : ')'
\tmp\php-5.0.3\ext\wddx\wddx.c(1092) : error C2065: 'XML_Parser' : undeclared identifier
\tmp\php-5.0.3\ext\wddx\wddx.c(1092) : error C2146: syntax error : missing ';' before identifier 'parser'
\tmp\php-5.0.3\ext\wddx\wddx.c(1092) : error C2144: syntax error : '' should be preceded by ''
\tmp\php-5.0.3\ext\wddx\wddx.c(1092) : error C2144: syntax error : '' should be preceded by ''
\tmp\php-5.0.3\ext\wddx\wddx.c(1092) : error C2143: syntax error : missing ';' before 'identifier'
\tmp\php-5.0.3\ext\wddx\wddx.c(1092) : error C2065: 'parser' : undeclared identifier
\tmp\php-5.0.3\ext\wddx\wddx.c(1093) : error C2275: 'st_entry' : illegal use of this type as an expression
        \tmp\php-5.0.3\ext\wddx\wddx.c(88) : see declaration of 'st_entry'
\tmp\php-5.0.3\ext\wddx\wddx.c(1093) : error C2065: 'ent' : undeclared identifier
\tmp\php-5.0.3\ext\wddx\wddx.c(1094) : error C2143: syntax error : missing ';' before 'type'
\tmp\php-5.0.3\ext\wddx\wddx.c(1097) : warning C4013: 'XML_ParserCreate' undefined; assuming extern returning int
\tmp\php-5.0.3\ext\wddx\wddx.c(1099) : warning C4013: 'XML_SetUserData' undefined; assuming extern returning int
\tmp\php-5.0.3\ext\wddx\wddx.c(1100) : warning C4013: 'XML_SetElementHandler' undefined; assuming extern returning int
\tmp\php-5.0.3\ext\wddx\wddx.c(1100) : error C2065: 'php_wddx_push_element' : undeclared identifier
\tmp\php-5.0.3\ext\wddx\wddx.c(1100) : error C2065: 'php_wddx_pop_element' : undeclared identifier
\tmp\php-5.0.3\ext\wddx\wddx.c(1101) : warning C4013: 'XML_SetCharacterDataHandler' undefined; assuming extern returning int
\tmp\php-5.0.3\ext\wddx\wddx.c(1101) : error C2065: 'php_wddx_process_data' : undeclared identifier
\tmp\php-5.0.3\ext\wddx\wddx.c(1103) : warning C4013: 'XML_Parse' undefined; assuming extern returning int
\tmp\php-5.0.3\ext\wddx\wddx.c(1105) : warning C4013: 'XML_ParserFree' undefined; assuming extern returning int
\tmp\php-5.0.3\ext\wddx\wddx.c(1109) : error C2223: left of '->data' must point to struct/union
\tmp\php-5.0.3\ext\wddx\wddx.c(1111) : error C2065: 'retval' : undeclared identifier
internal_functions_win32.c
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WS2tcpip.h(647) : warning C4142: benign redefinition of type
..\ext\xml\php_xml.h(49) : error C2061: syntax error : identifier 'XML_Char'
..\ext\xml\php_xml.h(50) : error C2059: syntax error : '}'
..\ext\xml\php_xml.h(55) : error C2061: syntax error : identifier 'XML_Parser'
..\ext\xml\php_xml.h(56) : error C2143: syntax error : missing '{' before '*'
..\ext\xml\php_xml.h(94) : error C2143: syntax error : missing '{' before '*'
..\ext\xml\php_xml.h(95) : error C2059: syntax error : '}'
..\ext\xml\php_xml.h(99) : error C2061: syntax error : identifier 'XML_Char'
..\ext\xml\php_xml.h(102) : error C2059: syntax error : '}'
..\ext\xml\php_xml.h(142) : error C2143: syntax error : missing ')' before '*'
..\ext\xml\php_xml.h(142) : error C2143: syntax error : missing '{' before '*'
..\ext\xml\php_xml.h(142) : error C2059: syntax error : ','
..\ext\xml\php_xml.h(142) : error C2059: syntax error : ')'

Results

  	  	

Build log was saved at "file://c:\tmp\php-5.0.3\win32\Release_TS\BuildLog.htm"
php5dllts - 157 error(s), 8 warning(s)

---

## #15685 — Dan Scott — 2005-03-30T13:36:28+00:00

URL: https://externals.io/message/15682#15685 · In reply to: #15682

Try grabbing the latest CVS version of PHP or the latest 5.0.x
snapshots from http://snaps.php.net/ -- there were a number of patches
since 5.0.3 that helped me get further on my attempt to compile on
Windows using the Microsoft Visual C++ Toolkit 2003 (for C compiler) +
Platform SDK for Windows (for most of the required header files) +
Microsoft .NET SDK (for nmake).

However, my build is now dying because it can't find winres.h :(

Dan


> [Sorry for blanket mailing.. Guess the list does not pass attachments..
> So, now the log is inline..]
> 
> Hi,
> 
> I want to build php-5.0.3 on WinXP using Visual Studio.NET.  I have read
> the instructions at php.net as well as in README.WIN32-BUILD-SYSTEM file.
> 
> Initially got an error regarding some function in nsap_addr.c at #if
> !defined(isxdigit) /* XXX */ which (after googling) I changed to:   #if
> !defined(isxdigit) && !defined(_CTYPE_DEFINED).
> 
> Then I guess that was fixed. Next, I got errors regarding
> libxml/parser.h and iconv.h. I then downloaded the respective files and
> placed the headers in their respective expected places.
> 
> Next I could compile a few parts but not the solution including the
> php5ts.lib and the dlls (which i need). Please find the html file
> generated by visual studio attached.
> 
> Any help will be appreciated.
> 
> Regards
> aj
> 
> Arjun Jain
> http://arjun.notlong.com
> 
> build log:
> -------------------------
> 
> Build Log
> 
>       ------- Build started: Project: php5dllts, Configuration:
>       Release_TS|Win32 -------
> 
> Command Lines
> 
> Creating temporary file "c:\tmp\php-5.0.3\win32\Release_TS\RSP000041.rsp" with contents
> [
> /O2 /I ".." /I "..\main" /I "..\regex" /I "..\..\bindlib_w32" /I "..\..\zlib" /I "..\Zend" /I "..\TSRM" /I "..\..\libxml\include" /I "..\ext\sqlite\libsqlite\src" /D "NDEBUG" /D "ZEND_DEBUG=0" /D "_WINDOWS" /D "_USRDLL" /D "PHP5DLLTS_EXPORTS" /D "PHP_EXPORTS" /D "LIBZEND_EXPORTS" /D "TSRM_EXPORTS" /D "SAPI_EXPORTS" /D "MSVC5" /D "ZTS" /D "ZEND_WIN32" /D "PHP_WIN32" /D "WIN32" /D "_MBCS" /D "LIBXML_STATIC" /FD /EHsc /MD /YX"stdafx.h" /Fp".\Release_TS/php5dllts.pch" /Fo".\Release_TS/" /Fd".\Release_TS/" /FR".\Release_TS/" /W2 /c
> "\tmp\php-5.0.3\ext\standard\var_unserializer.c"
> "\tmp\php-5.0.3\ext\standard\url_scanner_ex.c"
> ]
> Creating command line "cl.exe @"c:\tmp\php-5.0.3\win32\Release_TS\RSP000041.rsp" /nologo"
> Creating temporary file "c:\tmp\php-5.0.3\win32\Release_TS\RSP000042.rsp" with contents
> [
> /O2 /I ".." /I "..\main" /I "..\regex" /I "..\..\bindlib_w32" /I "..\..\zlib" /I "..\Zend" /I "..\TSRM" /I "..\..\libxml\include" /I "..\ext\sqlite\libsqlite\src" /D "NDEBUG" /D "ZEND_DEBUG=0" /D "_WINDOWS" /D "_USRDLL" /D "PHP5DLLTS_EXPORTS" /D "PHP_EXPORTS" /D "LIBZEND_EXPORTS" /D "TSRM_EXPORTS" /D "SAPI_EXPORTS" /D "MSVC5" /D "ZTS" /D "ZEND_WIN32" /D "PHP_WIN32" /D "WIN32" /D "_MBCS" /D "LIBXML_STATIC" /D "STATIC" /FD /EHsc /MD /YX"stdafx.h" /Fp".\Release_TS/php5dllts.pch" /Fo".\Release_TS/" /Fd".\Release_TS/" /FR".\Release_TS/" /W3 /c
> "\tmp\php-5.0.3\ext\pcre\php_pcre.c"
> ]
> Creating command line "cl.exe @"c:\tmp\php-5.0.3\win32\Release_TS\RSP000042.rsp" /nologo"
> Creating temporary file "c:\tmp\php-5.0.3\win32\Release_TS\RSP000043.rsp" with contents
> [
> /O2 /I ".." /I "..\main" /I "..\regex" /I "..\..\bindlib_w32" /I "..\..\zlib" /I "..\Zend" /I "..\TSRM" /I "..\..\libxml\include" /I "..\ext\sqlite\libsqlite\src" /D "NDEBUG" /D "ZEND_DEBUG=0" /D "_WINDOWS" /D "_USRDLL" /D "PHP5DLLTS_EXPORTS" /D "PHP_EXPORTS" /D "LIBZEND_EXPORTS" /D "TSRM_EXPORTS" /D "SAPI_EXPORTS" /D "MSVC5" /D "ZTS" /D "ZEND_WIN32" /D "PHP_WIN32" /D "WIN32" /D "_MBCS" /D "LIBXML_STATIC" /FD /EHsc /MD /YX"stdafx.h" /Fp".\Release_TS/php5dllts.pch" /Fo".\Release_TS/" /Fd".\Release_TS/" /FR".\Release_TS/" /W3 /c
> "\tmp\php-5.0.3\ext\xml\xml.c"
> "\tmp\php-5.0.3\ext\wddx\wddx.c"
> "\tmp\php-5.0.3\main\internal_functions_win32.c"
> ]
> Creating command line "cl.exe @"c:\tmp\php-5.0.3\win32\Release_TS\RSP000043.rsp" /nologo"
> Creating temporary file "c:\tmp\php-5.0.3\win32\Release_TS\RSP000044.rsp" with contents
> [
> /O2 /I ".." /I "..\main" /I "..\regex" /I "..\..\bindlib_w32" /I "..\..\zlib" /I "..\Zend" /I "..\TSRM" /I "..\..\libxml\include" /I "..\ext\sqlite\libsqlite\src" /D "NDEBUG" /D "ZEND_DEBUG=0" /D "_WINDOWS" /D "_USRDLL" /D "PHP5DLLTS_EXPORTS" /D "PHP_EXPORTS" /D "LIBZEND_EXPORTS" /D "TSRM_EXPORTS" /D "SAPI_EXPORTS" /D "MSVC5" /D "ZTS" /D "ZEND_WIN32" /D "PHP_WIN32" /D "WIN32" /D "_MBCS" /D "LIBXML_STATIC" /D "STATIC" /D "SUPPORT_UTF8" /D "LINK_SIZE=2" /FD /EHsc /MD /YX"stdafx.h" /Fp".\Release_TS/php5dllts.pch" /Fo".\Release_TS/" /Fd".\Release_TS/" /FR".\Release_TS/" /W3 /c
> "\tmp\php-5.0.3\ext\pcre\pcrelib\study.c"
> "\tmp\php-5.0.3\ext\pcre\pcrelib\pcre.c"
> "\tmp\php-5.0.3\ext\pcre\pcrelib\maketables.c"
> "\tmp\php-5.0.3\ext\pcre\pcrelib\get.c"
> ]
> Creating command line "cl.exe @"c:\tmp\php-5.0.3\win32\Release_TS\RSP000044.rsp" /nologo"
> Creating temporary file "c:\tmp\php-5.0.3\win32\Release_TS\RSP000045.rsp" with contents
> [
> /O2 /I ".." /I "..\main" /I "..\regex" /I "..\..\bindlib_w32" /I "..\..\zlib" /I "..\Zend" /I "..\TSRM" /I "..\..\libxml\include" /I "..\ext\sqlite\libsqlite\src" /D "NDEBUG" /D "ZEND_DEBUG=0" /D "_WINDOWS" /D "_USRDLL" /D "PHP5DLLTS_EXPORTS" /D "PHP_EXPORTS" /D "LIBZEND_EXPORTS" /D "TSRM_EXPORTS" /D "SAPI_EXPORTS" /D "MSVC5" /D "ZTS" /D "ZEND_WIN32" /D "PHP_WIN32" /D "WIN32" /D "_MBCS" /D "LIBXML_STATIC" /D "STATIC" /D "SUPPORT_UTF8" /FD /EHsc /MD /YX"stdafx.h" /Fp".\Release_TS/php5dllts.pch" /Fo".\Release_TS/" /Fd".\Release_TS/" /FR".\Release_TS/" /W3 /c
> "\tmp\php-5.0.3\ext\pcre\pcrelib\chartables.c"
> ]
> Creating command line "cl.exe @"c:\tmp\php-5.0.3\win32\Release_TS\RSP000045.rsp" /nologo"
> 
> Output Window
> 
> Compiling...
> var_unserializer.c
> url_scanner_ex.c
> Compiling...
> php_pcre.c
> Compiling...
> xml.c
> c:\tmp\php-5.0.3\ext\xml\php_xml.h(49) : error C2061: syntax error : identifier 'XML_Char'
> c:\tmp\php-5.0.3\ext\xml\php_xml.h(50) : error C2059: syntax error : '}'
> c:\tmp\php-5.0.3\ext\xml\php_xml.h(55) : error C2061: syntax error : identifier 'XML_Parser'
> c:\tmp\php-5.0.3\ext\xml\php_xml.h(56) : error C2143: syntax error : missing '{' before '*'
> c:\tmp\php-5.0.3\ext\xml\php_xml.h(94) : error C2143: syntax error : missing '{' before '*'
> c:\tmp\php-5.0.3\ext\xml\php_xml.h(95) : error C2059: syntax error : '}'
> c:\tmp\php-5.0.3\ext\xml\php_xml.h(99) : error C2061: syntax error : identifier 'XML_Char'
> c:\tmp\php-5.0.3\ext\xml\php_xml.h(102) : error C2059: syntax error : '}'
> c:\tmp\php-5.0.3\ext\xml\php_xml.h(142) : error C2143: syntax error : missing ')' before '*'
> c:\tmp\php-5.0.3\ext\xml\php_xml.h(142) : error C2143: syntax error : missing '{' before '*'
> c:\tmp\php-5.0.3\ext\xml\php_xml.h(142) : error C2059: syntax error : ','
> c:\tmp\php-5.0.3\ext\xml\php_xml.h(142) : error C2059: syntax error : ')'
> \tmp\php-5.0.3\ext\xml\xml.c(88) : error C2143: syntax error : missing '{' before '*'
> \tmp\php-5.0.3\ext\xml\xml.c(88) : error C2143: syntax error : missing ')' before '*'
> \tmp\php-5.0.3\ext\xml\xml.c(88) : error C2143: syntax error : missing '{' before '*'
> \tmp\php-5.0.3\ext\xml\xml.c(88) : error C2059: syntax error : ')'
> \tmp\php-5.0.3\ext\xml\xml.c(88) : error C2059: syntax error : ';'
> \tmp\php-5.0.3\ext\xml\xml.c(89) : error C2143: syntax error : missing ')' before '*'
> \tmp\php-5.0.3\ext\xml\xml.c(89) : error C2143: syntax error : missing '{' before '*'
> \tmp\php-5.0.3\ext\xml\xml.c(89) : error C2059: syntax error : ','
> \tmp\php-5.0.3\ext\xml\xml.c(89) : error C2059: syntax error : ')'
> \tmp\php-5.0.3\ext\xml\xml.c(90) : error C2143: syntax error : missing ')' before '*'
> \tmp\php-5.0.3\ext\xml\xml.c(90) : error C2143: syntax error : missing '{' before '*'
> \tmp\php-5.0.3\ext\xml\xml.c(90) : error C2059: syntax error : ','
> \tmp\php-5.0.3\ext\xml\xml.c(90) : error C2059: syntax error : ')'
> \tmp\php-5.0.3\ext\xml\xml.c(91) : error C2143: syntax error : missing ')' before '*'
> \tmp\php-5.0.3\ext\xml\xml.c(91) : error C2143: syntax error : missing '{' before '*'
> \tmp\php-5.0.3\ext\xml\xml.c(91) : error C2059: syntax error : ')'
> \tmp\php-5.0.3\ext\xml\xml.c(91) : error C2059: syntax error : ';'
> \tmp\php-5.0.3\ext\xml\xml.c(92) : error C2143: syntax error : missing ')' before '*'
> \tmp\php-5.0.3\ext\xml\xml.c(92) : error C2143: syntax error : missing '{' before '*'
> \tmp\php-5.0.3\ext\xml\xml.c(92) : error C2059: syntax error : 'type'
> \tmp\php-5.0.3\ext\xml\xml.c(92) : error C2059: syntax error : ')'
> \tmp\php-5.0.3\ext\xml\xml.c(93) : error C2143: syntax error : missing ')' before '*'
> \tmp\php-5.0.3\ext\xml\xml.c(93) : error C2143: syntax error : missing '{' before '*'
> \tmp\php-5.0.3\ext\xml\xml.c(93) : error C2059: syntax error : 'type'
> \tmp\php-5.0.3\ext\xml\xml.c(93) : error C2059: syntax error : ')'
> \tmp\php-5.0.3\ext\xml\xml.c(95) : error C2143: syntax error : missing ')' before '*'
> \tmp\php-5.0.3\ext\xml\xml.c(95) : error C2143: syntax error : missing '{' before '*'
> \tmp\php-5.0.3\ext\xml\xml.c(95) : error C2059: syntax error : ','
> \tmp\php-5.0.3\ext\xml\xml.c(95) : error C2059: syntax error : ')'
> \tmp\php-5.0.3\ext\xml\xml.c(96) : error C2143: syntax error : missing ')' before '*'
> \tmp\php-5.0.3\ext\xml\xml.c(96) : error C2143: syntax error : missing '{' before '*'
> \tmp\php-5.0.3\ext\xml\xml.c(96) : error C2059: syntax error : ')'
> \tmp\php-5.0.3\ext\xml\xml.c(96) : error C2059: syntax error : ';'
> \tmp\php-5.0.3\ext\xml\xml.c(97) : error C2143: syntax error : missing ')' before '*'
> \tmp\php-5.0.3\ext\xml\xml.c(97) : error C2143: syntax error : missing '{' before '*'
> \tmp\php-5.0.3\ext\xml\xml.c(97) : error C2059: syntax error : ','
> \tmp\php-5.0.3\ext\xml\xml.c(97) : error C2059: syntax error : ')'
> \tmp\php-5.0.3\ext\xml\xml.c(98) : error C2143: syntax error : missing ')' before '*'
> \tmp\php-5.0.3\ext\xml\xml.c(98) : error C2143: syntax error : missing '{' before '*'
> \tmp\php-5.0.3\ext\xml\xml.c(98) : error C2059: syntax error : ','
> \tmp\php-5.0.3\ext\xml\xml.c(98) : error C2059: syntax error : ')'
> \tmp\php-5.0.3\ext\xml\xml.c(99) : error C2143: syntax error : missing ')' before '*'
> \tmp\php-5.0.3\ext\xml\xml.c(99) : error C2143: syntax error : missing '{' before '*'
> \tmp\php-5.0.3\ext\xml\xml.c(99) : error C2059: syntax error : ','
> \tmp\php-5.0.3\ext\xml\xml.c(99) : error C2059: syntax error : ')'
> \tmp\php-5.0.3\ext\xml\xml.c(100) : error C2143: syntax error : missing ')' before '*'
> \tmp\php-5.0.3\ext\xml\xml.c(100) : error C2143: syntax error : missing '{' before '*'
> \tmp\php-5.0.3\ext\xml\xml.c(100) : error C2059: syntax error : ','
> \tmp\php-5.0.3\ext\xml\xml.c(100) : error C2059: syntax error : ')'
> \tmp\php-5.0.3\ext\xml\xml.c(101) : error C2143: syntax error : missing ')' before '*'
> \tmp\php-5.0.3\ext\xml\xml.c(101) : error C2143: syntax error : missing '{' before '*'
> \tmp\php-5.0.3\ext\xml\xml.c(101) : error C2059: syntax error : ','
> \tmp\php-5.0.3\ext\xml\xml.c(101) : error C2059: syntax error : ')'
> \tmp\php-5.0.3\ext\xml\xml.c(102) : error C2059: syntax error : ','
> \tmp\php-5.0.3\ext\xml\xml.c(102) : error C2143: syntax error : missing ')' before 'const'
> \tmp\php-5.0.3\ext\xml\xml.c(102) : error C2143: syntax error : missing '{' before 'const'
> \tmp\php-5.0.3\ext\xml\xml.c(102) : error C2143: syntax error : missing '{' before '*'
> \tmp\php-5.0.3\ext\xml\xml.c(102) : error C2059: syntax error : ','
> \tmp\php-5.0.3\ext\xml\xml.c(102) : error C2059: syntax error : ')'
> \tmp\php-5.0.3\ext\xml\xml.c(104) : error C2143: syntax error : missing ')' before '*'
> \tmp\php-5.0.3\ext\xml\xml.c(104) : error C2143: syntax error : missing '{' before '*'
> \tmp\php-5.0.3\ext\xml\xml.c(104) : error C2059: syntax error : ','
> \tmp\php-5.0.3\ext\xml\xml.c(104) : error C2059: syntax error : ')'
> \tmp\php-5.0.3\ext\xml\xml.c(105) : error C2143: syntax error : missing ')' before '*'
> \tmp\php-5.0.3\ext\xml\xml.c(105) : error C2143: syntax error : missing '{' before '*'
> \tmp\php-5.0.3\ext\xml\xml.c(105) : error C2059: syntax error : ')'
> \tmp\php-5.0.3\ext\xml\xml.c(105) : error C2059: syntax error : ';'
> \tmp\php-5.0.3\ext\xml\xml.c(161) : error C2061: syntax error : identifier 'xml_encodings'
> \tmp\php-5.0.3\ext\xml\xml.c(161) : error C2059: syntax error : ';'
> \tmp\php-5.0.3\ext\xml\xml.c(161) : error C2059: syntax error : '['
> \tmp\php-5.0.3\ext\xml\xml.c(168) : error C2061: syntax error : identifier 'php_xml_mem_hdlrs'
> \tmp\php-5.0.3\ext\xml\xml.c(168) : error C2059: syntax error : ';'
> \tmp\php-5.0.3\ext\xml\xml.c(177) : error C2143: syntax error : missing ')' before '*'
> \tmp\php-5.0.3\ext\xml\xml.c(177) : error C2143: syntax error : missing '{' before '*'
> \tmp\php-5.0.3\ext\xml\xml.c(177) : error C2059: syntax error : 'type'
> \tmp\php-5.0.3\ext\xml\xml.c(177) : error C2059: syntax error : ')'
> \tmp\php-5.0.3\ext\xml\xml.c(205) : error C2065: 'php_xml_globals' : undeclared identifier
> \tmp\php-5.0.3\ext\xml\xml.c(205) : error C2065: 'php_xml_init_globals' : undeclared identifier
> \tmp\php-5.0.3\ext\xml\xml.c(210) : error C2065: 'XML_ERROR_NONE' : undeclared identifier
> \tmp\php-5.0.3\ext\xml\xml.c(211) : error C2065: 'XML_ERROR_NO_MEMORY' : undeclared identifier
> \tmp\php-5.0.3\ext\xml\xml.c(212) : error C2065: 'XML_ERROR_SYNTAX' : undeclared identifier
> \tmp\php-5.0.3\ext\xml\xml.c(213) : error C2065: 'XML_ERROR_NO_ELEMENTS' : undeclared identifier
> \tmp\php-5.0.3\ext\xml\xml.c(214) : error C2065: 'XML_ERROR_INVALID_TOKEN' : undeclared identifier
> \tmp\php-5.0.3\ext\xml\xml.c(215) : error C2065: 'XML_ERROR_UNCLOSED_TOKEN' : undeclared identifier
> \tmp\php-5.0.3\ext\xml\xml.c(216) : error C2065: 'XML_ERROR_PARTIAL_CHAR' : undeclared identifier
> \tmp\php-5.0.3\ext\xml\xml.c(217) : error C2065: 'XML_ERROR_TAG_MISMATCH' : undeclared identifier
> \tmp\php-5.0.3\ext\xml\xml.c(218) : error C2065: 'XML_ERROR_DUPLICATE_ATTRIBUTE' : undeclared identifier
> \tmp\php-5.0.3\ext\xml\xml.c(219) : error C2065: 'XML_ERROR_JUNK_AFTER_DOC_ELEMENT' : undeclared identifier
> \tmp\php-5.0.3\ext\xml\xml.c(220) : error C2065: 'XML_ERROR_PARAM_ENTITY_REF' : undeclared identifier
> \tmp\php-5.0.3\ext\xml\xml.c(220) : fatal error C1003: error count exceeds 100; stopping compilation
> wddx.c
> ..\ext\xml\php_xml.h(49) : error C2061: syntax error : identifier 'XML_Char'
> ..\ext\xml\php_xml.h(50) : error C2059: syntax error : '}'
> ..\ext\xml\php_xml.h(55) : error C2061: syntax error : identifier 'XML_Parser'
> ..\ext\xml\php_xml.h(56) : error C2143: syntax error : missing '{' before '*'
> ..\ext\xml\php_xml.h(94) : error C2143: syntax error : missing '{' before '*'
> ..\ext\xml\php_xml.h(95) : error C2059: syntax error : '}'
> ..\ext\xml\php_xml.h(99) : error C2061: syntax error : identifier 'XML_Char'
> ..\ext\xml\php_xml.h(102) : error C2059: syntax error : '}'
> ..\ext\xml\php_xml.h(142) : error C2143: syntax error : missing ')' before '*'
> ..\ext\xml\php_xml.h(142) : error C2143: syntax error : missing '{' before '*'
> ..\ext\xml\php_xml.h(142) : error C2059: syntax error : ','
> ..\ext\xml\php_xml.h(142) : error C2059: syntax error : ')'
> \tmp\php-5.0.3\ext\wddx\wddx.c(98) : error C2143: syntax error : missing ')' before '*'
> \tmp\php-5.0.3\ext\wddx\wddx.c(98) : error C2143: syntax error : missing '{' before '*'
> \tmp\php-5.0.3\ext\wddx\wddx.c(98) : error C2059: syntax error : 'type'
> \tmp\php-5.0.3\ext\wddx\wddx.c(98) : error C2059: syntax error : ')'
> \tmp\php-5.0.3\ext\wddx\wddx.c(693) : error C2143: syntax error : missing ')' before '*'
> \tmp\php-5.0.3\ext\wddx\wddx.c(693) : error C2143: syntax error : missing '{' before '*'
> \tmp\php-5.0.3\ext\wddx\wddx.c(693) : warning C4228: nonstandard extension used : qualifiers after comma in declarator list are ignored
> \tmp\php-5.0.3\ext\wddx\wddx.c(693) : error C2143: syntax error : missing ';' before '*'
> \tmp\php-5.0.3\ext\wddx\wddx.c(693) : error C2059: syntax error : ')'
> \tmp\php-5.0.3\ext\wddx\wddx.c(694) : error C2054: expected '(' to follow 'atts'
> \tmp\php-5.0.3\ext\wddx\wddx.c(881) : error C2143: syntax error : missing ')' before '*'
> \tmp\php-5.0.3\ext\wddx\wddx.c(881) : error C2143: syntax error : missing '{' before '*'
> \tmp\php-5.0.3\ext\wddx\wddx.c(881) : error C2059: syntax error : ')'
> \tmp\php-5.0.3\ext\wddx\wddx.c(882) : error C2054: expected '(' to follow 'name'
> \tmp\php-5.0.3\ext\wddx\wddx.c(1002) : error C2143: syntax error : missing ')' before '*'
> \tmp\php-5.0.3\ext\wddx\wddx.c(1002) : error C2143: syntax error : missing '{' before '*'
> \tmp\php-5.0.3\ext\wddx\wddx.c(1002) : error C2059: syntax error : 'type'
> \tmp\php-5.0.3\ext\wddx\wddx.c(1002) : error C2059: syntax error : ')'
> \tmp\php-5.0.3\ext\wddx\wddx.c(1092) : error C2065: 'XML_Parser' : undeclared identifier
> \tmp\php-5.0.3\ext\wddx\wddx.c(1092) : error C2146: syntax error : missing ';' before identifier 'parser'
> \tmp\php-5.0.3\ext\wddx\wddx.c(1092) : error C2144: syntax error : '' should be preceded by ''
> \tmp\php-5.0.3\ext\wddx\wddx.c(1092) : error C2144: syntax error : '' should be preceded by ''
> \tmp\php-5.0.3\ext\wddx\wddx.c(1092) : error C2143: syntax error : missing ';' before 'identifier'
> \tmp\php-5.0.3\ext\wddx\wddx.c(1092) : error C2065: 'parser' : undeclared identifier
> \tmp\php-5.0.3\ext\wddx\wddx.c(1093) : error C2275: 'st_entry' : illegal use of this type as an expression
>         \tmp\php-5.0.3\ext\wddx\wddx.c(88) : see declaration of 'st_entry'
> \tmp\php-5.0.3\ext\wddx\wddx.c(1093) : error C2065: 'ent' : undeclared identifier
> \tmp\php-5.0.3\ext\wddx\wddx.c(1094) : error C2143: syntax error : missing ';' before 'type'
> \tmp\php-5.0.3\ext\wddx\wddx.c(1097) : warning C4013: 'XML_ParserCreate' undefined; assuming extern returning int
> \tmp\php-5.0.3\ext\wddx\wddx.c(1099) : warning C4013: 'XML_SetUserData' undefined; assuming extern returning int
> \tmp\php-5.0.3\ext\wddx\wddx.c(1100) : warning C4013: 'XML_SetElementHandler' undefined; assuming extern returning int
> \tmp\php-5.0.3\ext\wddx\wddx.c(1100) : error C2065: 'php_wddx_push_element' : undeclared identifier
> \tmp\php-5.0.3\ext\wddx\wddx.c(1100) : error C2065: 'php_wddx_pop_element' : undeclared identifier
> \tmp\php-5.0.3\ext\wddx\wddx.c(1101) : warning C4013: 'XML_SetCharacterDataHandler' undefined; assuming extern returning int
> \tmp\php-5.0.3\ext\wddx\wddx.c(1101) : error C2065: 'php_wddx_process_data' : undeclared identifier
> \tmp\php-5.0.3\ext\wddx\wddx.c(1103) : warning C4013: 'XML_Parse' undefined; assuming extern returning int
> \tmp\php-5.0.3\ext\wddx\wddx.c(1105) : warning C4013: 'XML_ParserFree' undefined; assuming extern returning int
> \tmp\php-5.0.3\ext\wddx\wddx.c(1109) : error C2223: left of '->data' must point to struct/union
> \tmp\php-5.0.3\ext\wddx\wddx.c(1111) : error C2065: 'retval' : undeclared identifier
> internal_functions_win32.c
> C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WS2tcpip.h(647) : warning C4142: benign redefinition of type
> ..\ext\xml\php_xml.h(49) : error C2061: syntax error : identifier 'XML_Char'
> ..\ext\xml\php_xml.h(50) : error C2059: syntax error : '}'
> ..\ext\xml\php_xml.h(55) : error C2061: syntax error : identifier 'XML_Parser'
> ..\ext\xml\php_xml.h(56) : error C2143: syntax error : missing '{' before '*'
> ..\ext\xml\php_xml.h(94) : error C2143: syntax error : missing '{' before '*'
> ..\ext\xml\php_xml.h(95) : error C2059: syntax error : '}'
> ..\ext\xml\php_xml.h(99) : error C2061: syntax error : identifier 'XML_Char'
> ..\ext\xml\php_xml.h(102) : error C2059: syntax error : '}'
> ..\ext\xml\php_xml.h(142) : error C2143: syntax error : missing ')' before '*'
> ..\ext\xml\php_xml.h(142) : error C2143: syntax error : missing '{' before '*'
> ..\ext\xml\php_xml.h(142) : error C2059: syntax error : ','
> ..\ext\xml\php_xml.h(142) : error C2059: syntax error : ')'
> 
> Results
> 
> Build log was saved at "file://c:\tmp\php-5.0.3\win32\Release_TS\BuildLog.htm"
> php5dllts - 157 error(s), 8 warning(s)

---

## #15688 — Dan Scott — 2005-03-30T16:23:37+00:00

URL: https://externals.io/message/15682#15688 · In reply to: #15685

> Try grabbing the latest CVS version of PHP or the latest 5.0.x
> snapshots from http://snaps.php.net/ -- there were a number of patches
> since 5.0.3 that helped me get further on my attempt to compile on
> Windows using the Microsoft Visual C++ Toolkit 2003 (for C compiler) +
> Platform SDK for Windows (for most of the required header files) +
> Microsoft .NET SDK (for nmake).
> 
> However, my build is now dying because it can't find winres.h :(
> 
> Dan
> 

Okay, so I copied the Microsoft Platform SDK for Windows XP
SP2\include\WinResrc.h to winres.h and that got the compile all the
way to the linking point. But now it dies (so close!) with:

   Creating library Release_TS\php5ts.lib and object Release_TS\php5ts.exp
resolv.lib(inet_addr.obj) : error LNK2019: unresolved external symbol
__pctype referenced in function _inet_aton
resolv.lib(inet_addr.obj) : error LNK2019: unresolved external symbol
___mb_cur_max referenced in function _inet_aton
Release_TS\php5ts.dll : fatal error LNK1120: 2 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio .NET 2003\
Vc7\bin\link.exe"' : return code '0x460'

Reading http://www.zend.com/manual/install.windows.building.php
suggests that to fix this problem I need to rebuild resolv.lib -- but
using the bindlib.dsp file requires msdev, which requires a full MS
Visual Studio environment. That's a showstopper for those of us trying
to do this with just the free-beer tools available from Microsoft.

However, it is apparently possible to export a DSP file as a Makefile
from MS Visual Studio. If someone with a full MS Visual Studio
environment would be willing to make that exported makefile available,
I think it might help close this final loop and would be a worthwhile
addition to the bindlib_w32.zip archive.

Dan

---

## #15691 — Jon Parise — 2005-03-30T17:08:22+00:00

URL: https://externals.io/message/15682#15691 · In reply to: #15688

> Reading http://www.zend.com/manual/install.windows.building.php
> suggests that to fix this problem I need to rebuild resolv.lib -- but
> using the bindlib.dsp file requires msdev, which requires a full MS
> Visual Studio environment. That's a showstopper for those of us trying
> to do this with just the free-beer tools available from Microsoft.
> 
> However, it is apparently possible to export a DSP file as a Makefile
> from MS Visual Studio. If someone with a full MS Visual Studio
> environment would be willing to make that exported makefile available,
> I think it might help close this final loop and would be a worthwhile
> addition to the bindlib_w32.zip archive.

I've been meaning to attempt a Win32 PHP build using the free
toolchain[1].  I also have the "full" tools, so I'll take a crack at
getting everything running some time soon (probably this weekend).

[1] http://msdn.microsoft.com/visualc/vctoolkit2003/

-- 
Jon Parise (jon of php.net) :: The PHP Project (http://www.php.net/)

---

## #15690 — Edin Kadribasic — 2005-03-30T17:20:11+00:00

URL: https://externals.io/message/15682#15690 · In reply to: #15688

You can download the lib from:

http://ftp.emini.dk/pub/php/win32/dev/php_build/lib/resolv.lib

headers are in:

http://ftp.emini.dk/pub/php/win32/dev/php_build/include/

Edin

----- Original Message ----- 
From: "Dan Scott" <denials@gmail.com>
To: <internals@lists.php.net>
Sent: Wednesday, March 30, 2005 6:23 PM
Subject: Re: [PHP-DEV] php5 win build


> 
> > […]
>
> Okay, so I copied the Microsoft Platform SDK for Windows XP
> SP2\include\WinResrc.h to winres.h and that got the compile all the
> way to the linking point. But now it dies (so close!) with:
>
>    Creating library Release_TS\php5ts.lib and object Release_TS\php5ts.exp
> resolv.lib(inet_addr.obj) : error LNK2019: unresolved external symbol
> __pctype referenced in function _inet_aton
> resolv.lib(inet_addr.obj) : error LNK2019: unresolved external symbol
> ___mb_cur_max referenced in function _inet_aton
> Release_TS\php5ts.dll : fatal error LNK1120: 2 unresolved externals
> NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio .NET
2003\
> Vc7\bin\link.exe"' : return code '0x460'
>
> Reading http://www.zend.com/manual/install.windows.building.php
> suggests that to fix this problem I need to rebuild resolv.lib -- but
> using the bindlib.dsp file requires msdev, which requires a full MS
> Visual Studio environment. That's a showstopper for those of us trying
> to do this with just the free-beer tools available from Microsoft.
>
> However, it is apparently possible to export a DSP file as a Makefile
> from MS Visual Studio. If someone with a full MS Visual Studio
> environment would be willing to make that exported makefile available,
> I think it might help close this final loop and would be a worthwhile
> addition to the bindlib_w32.zip archive.
>
> Dan

---

## #15692 — Dan Scott — 2005-03-30T17:35:29+00:00

URL: https://externals.io/message/15682#15692 · In reply to: #15690

Thanks Edin, grabbing your updated resolv.lib and dropping it into the
win32build directory got me over the last hurdle!

Dan


> You can download the lib from:
> 
> http://ftp.emini.dk/pub/php/win32/dev/php_build/lib/resolv.lib
> 
> headers are in:
> 
> http://ftp.emini.dk/pub/php/win32/dev/php_build/include/
> 
> Edin
> 
> ----- Original Message -----
> From: "Dan Scott" <denials@gmail.com>
> To: <internals@lists.php.net>
> Sent: Wednesday, March 30, 2005 6:23 PM
> Subject: Re: [PHP-DEV] php5 win build
> 
> > […]
> 2003\
> > […]

---

## #15694 — M. Sokolewicz — 2005-03-30T19:03:21+00:00

URL: https://externals.io/message/15682#15694 · In reply to: #15691

Jon Parise wrote:
> 
> 
> 
> > […]
> 
> 
> I've been meaning to attempt a Win32 PHP build using the free
> toolchain[1].  I also have the "full" tools, so I'll take a crack at
> getting everything running some time soon (probably this weekend).
> 
> [1] http://msdn.microsoft.com/visualc/vctoolkit2003/
> 
well, with a (slight) bit of modding, eventually you can get it all to 
work (it works for me). The only problem I'm running into is that php 
seems to segfault quite often, but only on the first load of a certain 
pages (huh?). Unfortunately it appears to be pretty hard to get a 
backtrace of what is going on on windows systems (no, I'm *not* using 
cygwin).

Might I also add that is pretty darn hard to get the GD lib compiled so 
I can compile the extension into PHP? (iow, I haven't found a way yet).
