|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2008-08-03 12:23 UTC] Keisial at gmail dot com
Description: ------------ 5.3 doesn't compile with VC6. When including winsock2.h at zend_config.w32.h it includes windows.h which in turn includes winsock stuff before a SOCKET is defined. Compilation fails with error on mswsock.h (This doesn't happen including only those two headers, so some defines are modifying the defualt behaviour) Changing the order to include windows.h before winsock2.h fixes it: --- zend_config.w32.h 2008-07-17 20:33:46.000000000 +0200 +++ zend_config.w32.h 2008-08-03 14:19:56.593750000 +0200 @@ -35,8 +35,8 @@ #ifndef ZEND_INCLUDE_FULL_WINDOWS_HEADERS #define WIN32_LEAN_AND_MEAN #endif -#include <winsock2.h> #include <windows.h> +#include <winsock2.h> #include <float.h> PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 21 03:00:01 2025 UTC |
Thanks for your attention. I had solved it by doing: set INCLUDE=C:\PROGRA~1\Microsoft Platform SDK\Include;%INCLUDE% Just doing configure.bat "--with-extra-includes=C:\PROGRA~1\Microsoft Platform SDK\Include" "--with-extra-libs=C:\PROGRA~1\Microsoft Platf orm SDK\lib" as you mention doesn't work, you still need the VC includes, or you get "fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory" Some includes only have the platform sdk (windows.h, winsock2.h...) but don't provide standard headers. The newest use a deprecated attribute which is not recognised, mingw32 headers fail for gcc specific code... Here are the different results i got when looking for a working combination: C:\PROGRA~1\Microsoft Visual Studio 9.0\VC\include\crtdefs.h(548) : error C2485: 'deprecated' : unrecognized extended attribute C:\PROGRA~1\Microsoft Visual Studio 8\VC\include\crtdefs.h(556) : error C2485: ' deprecated' : unrecognized extended attribute Zend\zend.h(37) : fatal error C1083: Cannot open include file: 'stdio.h': No suc C:\PROGRA~1\Microsoft SDKs\Windows\v6.1\Include No stdio.h C:\PROGRA~1\Microsoft SDKs\Windows\v6.1\Include + VC6 C:\PROGRA~1\Microsoft SDKs\Windows\v6.1\Include\specstrings.h(9) : fatal error C 1083: Cannot open include file: 'sal.h': No such file or directory C:\PROGRA~1\Microsoft Platform SDK\Include No stdio C:\PROGRA~1\Microsoft Platform SDK\Include + VC Works Mingw32 headers -> Fail for GCCisms w32api headers + VC6 include\stdio.h(217) : error C2054: expected '(' to follow ' __inline__'