PHP Build problems on windows

[email protected] (Justin Dearing)
Newsgroups php.windows
Message-ID <[email protected]>
Hello,

I've been trying to build PHP on WIndows 7 with the windows platform SDK. In
my first attempt I ran configure.js like this:

C:\src\php-5.3.1>configure --enable-debug --enable-crt-debug
--enable-cli-win32 --with-openssl --enable-soap --with-xsl

I ran make and it ended like this:

stream.c
tar.c
util.c
c:\src\php-5.3.1\ext\phar\util.c(30) : fatal error C1083: Cannot open
include file: 'openssl/evp.h': No such file or director
y
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
9.0\VC\Bin\cl.exe"' : return code '0x2'
Stop.

Now I think the fact configure didn't fail or disable openssl support should
be configured a bug, but I thought I would confirm that here. Relevant
configure output:

Checking for library ssleay32.lib ... <not found>
Enabling extension ext\pcre
<snip/>
Enabling extension ext\phar
        Native OpenSSL support in Phar enabled

Meanwhile I installed the open ssl MSI, updated my envirorment and retried a
build. This lead to some errors that seem to be zlib related. My new
configure line

configure --disable-zts --enable-debug --enable-crt-debug --enable-cli-win32
--with-openssl --enable-soap --with-xsl
--with-extra-includes=c:\src\win32build\include;c:\OpenSSL\include
--with-extra-libs=c:\src\win32build\lib;c:\OpenSS
L\lib

I reran nmake and got the following complaints related to zlib:

php_xsl.c
xsltprocessor.c
        rc /fo Debug\php5_debug.dll.res /d FILE_DESCRIPTION="\"PHP Script
Interpreter\""  /d FILE_NAME="\"php5_debug.dll\"" /
d PRODUCT_NAME="\"PHP Script Interpreter\""  /IDebug /d
MC_INCLUDE="\"Debug\wsyslog.rc\""  win32\build\template.rc
Microsoft (R) Windows (R) Resource Compiler Version 6.1.7600.16385
Copyright (C) Microsoft Corporation.  All rights reserved.

php5_debug.dll.def : error LNK2001: unresolved external symbol compressBound
php5_debug.dll.def : error LNK2001: unresolved external symbol deflateBound
php5_debug.dll.def : error LNK2001: unresolved external symbol deflatePrime
php5_debug.dll.def : error LNK2001: unresolved external symbol gzclearerr
php5_debug.dll.def : error LNK2001: unresolved external symbol gzungetc
php5_debug.dll.def : error LNK2001: unresolved external symbol inflateBack
php5_debug.dll.def : error LNK2001: unresolved external symbol
inflateBackEnd
php5_debug.dll.def : error LNK2001: unresolved external symbol
inflateBackInit_
php5_debug.dll.def : error LNK2001: unresolved external symbol inflateCopy
php5_debug.dll.def : error LNK2001: unresolved external symbol
zlibCompileFlags
Debug\php5_debug.lib : fatal error LNK1120: 10 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
9.0\VC\Bin\cl.exe"' : return code '0x2'
Stop.

Any suggestions?
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.