New clean compile of the 5.3.3 snapshot fails.

New clean compile of the 5.3.3 snapshot fails.

am 29.10.2010 22:01:15 von Steven Scott

I have created a new, bare, clean, VM Image of 2003 Server, with all
the up to date patches.
Installed Visual Studio 2008 Express SP1
Set the include paths for include and libs to include the SDK paths
for Include and Lib
Installed Windows SDK 6.1

Created directories as specified in
http://wiki.php.net/internals/windows/stepbystepbuild

Start the Windows SDK CMD Shell
C:\Program Files\Microsoft SDKs\Windows\v1.0>setenv /x86 /2003 /release

Attempting to detect a Microsoft Visual Studio installation
Setting SDK environment relative to C:\Program Files\Microsoft SDKs\Windows\v1.0
..
Targeting Windows Server 2003 x86 RELEASE

C:\Program Files\Microsoft SDKs\Windows\v1.0>

Changed to C:\php-sdk
C:\php-sdk>bin\phpsdk_setvars.bat

returns:
C:\php-sdk>REM phpsdk.bat
C:\php-sdk>

Change to C:\php-sdk\php53dev\vc9\x86\php5.3-201010291830
buildconf

configure --disable-all --enable-cli --enable-calendar --with-gettext

Saving configure options to config.nice.bat
Checking for cl.exe ...
Detected compiler MSVC8 (Visual C++ 2005)
Detected 32-bit compiler
Checking for link.exe ... C:\Program Files\Microsoft SDKs\Windows\v1.0\VC\Bin
Checking for nmake.exe ...
Checking for lib.exe ...
Checking for bison.exe ...
Checking for re2c.exe ...
Detected re2c version 0.13.5
Checking for zip.exe ...
Checking for lemon.exe ...
Checking for mc.exe ... C:\Program Files\Microsoft SDKs\Windows\v1.0\Bin
Checking for mt.exe ... C:\Program Files\Microsoft SDKs\Windows\v1.0\Bin

Build dir: Release_TS
PHP Core: php5ts.dll and php5ts.lib

Checking for wspiapi.h ...
Enabling IPv6 support
Enabling SAPI sapi\cli
Enabling extension ext\calendar
Enabling extension ext\date
Enabling extension ext\ereg
Checking for library libintl_a.lib;libintl.lib ... ..\deps\lib\libintl_a.lib
Checking for libintl.h ... C:\php-sdk\php53dev\vc9\x86\deps\include
Enabling extension ext\gettext
Enabling extension ext\pcre
Enabling extension ext\reflection
Enabling extension ext\spl
Checking for timelib_config.h ... ext/date/lib
Enabling extension ext\standard

Creating build dirs...
Generating files...
Generating Makefile
Generating main/internal_functions.c
[content unchanged; skipping]
Generating main/config.w32.h
Done.

Enabled extensions:
-----------------------
| Extension | Mode |
-----------------------
| calendar | static |
| date | static |
| ereg | static |
| gettext | static |
| pcre | static |
| reflection | static |
| spl | static |
| standard | static |
-----------------------


Enabled SAPI:
-------------
| Sapi Name |
-------------
| cli |
-------------

-------------------------------------------
| | |
-------------------------------------------
| Build type | Release |
| Thread Safety | Yes |
| Compiler | MSVC8 (Visual C++ 2005) |
| Architecture | x86 |
-------------------------------------------


Type 'nmake' to build PHP

C:\php-sdk\php53dev\vc9\x86\php5.3-201010291830>

nmake begins to compile, returns a bunch of warnings concerning
Zend\zend_execute.c(615) : warning C4018: '>=' : signed/unsigned mismatch
c:\php-sdk\php53dev\vc9\x86\php5.3-201010291830\zend\zend_vm _execute.h(644) : wa
rning C4018: '>' : signed/unsigned mismatch
c:\php-sdk\php53dev\vc9\x86\php5.3-201010291830\zend\zend_vm _execute.h(647) : wa
rning C4018: '<' : signed/unsigned mismatch
c:\php-sdk\php53dev\vc9\x86\php5.3-201010291830\zend\zend_vm _execute.h(649) : wa
rning C4018: '>=' : signed/unsigned mismatch
c:\php-sdk\php53dev\vc9\x86\php5.3-201010291830\zend\zend_vm _execute.h(1323) : w
arning C4101: 'free_op1' : unreferenced local variable
c:\php-sdk\php53dev\vc9\x86\php5.3-201010291830\zend\zend_vm _execute.h(30028) :
warning C4716: 'ZEND_NULL_HANDLER' : must return a value
zend_execute_API.c
Zend\zend_execute_API.c(855) : warning C4018: '>' : signed/unsigned mismatch
Zend\zend_execute_API.c(1711) : warning C4018: '<' : signed/unsigned mismatch

....
main\rfc1867.c(1086) : warning C4018: '>' : signed/unsigned mismatch
main\rfc1867.c(1168) : warning C4018: '<' : signed/unsigned mismatch
safe_mode.c
snprintf.c
main\snprintf.c(1229) : warning C4018: '>=' : signed/unsigned mismatch
main\snprintf.c(1242) : warning C4018: '>=' : signed/unsigned mismatch
spprintf.c
strlcat.c
strlcpy.c
fnmatch.c
inet.c
sockets.c
cast.c
filter.c
glob_wrapper.c
main\streams\glob_wrapper.c(148) : warning C4018: '<' : signed/unsigned mismatch

memory.c

Then the following Error:
info.c
ext\standard\info.c(315) : error C2065: 'PRODUCT_ENTERPRISE' : undeclared identi
fier
ext\standard\info.c(315) : error C2051: case expression not constant
ext\standard\info.c(318) : error C2065: 'PRODUCT_BUSINESS' : undeclared identifi
er
ext\standard\info.c(318) : error C2051: case expression not constant
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft SDKs\Windows\v1.0\VC\Bin
\cl.exe"' : return code '0x2'
Stop.


Environment:
ALLUSERSPROFILE=C:\Documents and Settings\All Users
APPDATA=C:\Documents and Settings\Administrator\Application Data
APPVER=5.02
BISON_SIMPLE=C:\php-sdk\bin\\..\bin\bison.simple
ClusterLog=C:\WINDOWS\Cluster\cluster.log
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=SS-VM-PHP-5-3-3
ComSpec=C:\WINDOWS\system32\cmd.exe
CPU=i386
DEBUGMSG=
FP_NO_HOST_CHECK=NO
FxTools=C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\Administrator
Include=C:\Program Files\Microsoft
SDKs\Windows\v1.0\VC\Include;C:\Program Files\Microsoft
SDKs\Windows\v1.0\VC\Include\Sys;C:\Program Files\Microsoft
SDKs\Windows\v1.0\Include;C:\Program Files\Microsoft
SDKs\Windows\v1.0\Include\gl;
J2D_D3D=false
Lib=C:\Program Files\Microsoft SDKs\Windows\v1.0\VC\Lib;C:\Program
Files\Microsoft SDKs\Windows\v1.0\Lib;
LOGONSERVER=\\SS-VM-PHP-5-3-3
MSSdk=C:\Program Files\Microsoft SDKs\Windows\v1.0
NODEBUG=1
NUMBER_OF_PROCESSORS=2
ORIGINALPATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\Syste m32\Wbem;C:\Program
Files\Microsoft Command Shell\;C:\Program Files\Microsoft Command
Shell\v1.0\;C:\Program Files\IDM Computer Solutions\UltraEdit\
OS=Windows_NT
Path=C:\Program Files\Microsoft SDKs\Windows\v1.0\VC\Bin;C:\Program
Files\Microsoft
SDKs\Windows\v1.0\Bin;C:\WINDOWS\Microsoft.NET\Framework\v2. 0.50727;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\W bem;C:\Program
Files\Microsoft Command Shell\;C:\Program Files\Microsoft Command
Shell\v1.0\;C:\Program Files\IDM Computer
Solutions\UltraEdit\;C:\php-sdk\bin\\..\bin;C:\php-sdk\bin\
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PHP_BUILDCONF_PATH=C:\php-sdk\php53dev\vc9\x86\php5.3-201010 291830\
PHP_SDK_BIN_PATH=C:\php-sdk\bin\\..\bin
PHP_SDK_PATH=C:\php-sdk\bin\\..
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 37 Stepping 2, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=2502
ProgramFiles=C:\Program Files
PROMPT=$P$G
ReferenceAssemblies=C:\Program Files\Reference Assemblies\Microsoft\WinFX\v3.0
SdkTools=C:\Program Files\Microsoft SDKs\Windows\v1.0\Bin
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TARGETOS=WINNT
TEMP=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
TMP=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
USERDOMAIN=SS-VM-PHP-5-3-3
USERNAME=Administrator
USERPROFILE=C:\Documents and Settings\Administrator
VS90COMNTOOLS=C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\
windir=C:\WINDOWS

From what I can see, the WinNT.h file is not included in the ext\standard\info.c

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: New clean compile of the 5.3.3 snapshot fails.

am 30.10.2010 12:57:46 von Pierre Joye

hi,

On Fri, Oct 29, 2010 at 10:01 PM, Steven Scott wrote:

> From what I can see, the WinNT.h file is not included in the ext\standard\info.c

It is using windows.h which is always included.

Something is definitively wrong in your setup, I cannot say what or
why, maybe the SDK broke the VS Express setup, no idea yet...

Cheers,
--
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: New clean compile of the 5.3.3 snapshot fails.

am 01.11.2010 13:19:49 von Steven Scott

Thanks. Not sure how to validate the install then as I did follow it
step by step. The biggest problem is that I am not so much trying to
compile PHP, but our DLL for PHP which requires the basics as well to
ensure the build is successful.

I guess I will have to try a small test file myself and ensure things
are getting loaded.

On Sat, Oct 30, 2010 at 6:57 AM, Pierre Joye wrote:
> hi,
>
> On Fri, Oct 29, 2010 at 10:01 PM, Steven Scott wrote:
>
>> From what I can see, the WinNT.h file is not included in the ext\standard\info.c
>
> It is using windows.h which is always included.
>
> Something is definitively wrong in your setup, I cannot say what or
> why, maybe the SDK broke the VS Express setup, no idea yet...
>
> Cheers,
> --
> Pierre
>
> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org
>

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php