Prev: preg interpretation question
Next: nmake clean bug
From: Justin Dearing on 12 Jan 2010 16:22 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?
From: Pierre Joye on 12 Jan 2010 17:58 hi, On Tue, Jan 12, 2010 at 10:22 PM, Justin Dearing <zippy1981(a)gmail.com> wrote: > 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 > Any suggestions? openssl is missing. You have to fetch our binaries and put them in the deps directory (as described in the wiki, from my previous reply). See: http://wiki.php.net/internals/windows/libs for a list of deps and versions. Cheers, -- Pierre http://blog.thepimp.net | http://www.libgd.org
|
Pages: 1 Prev: preg interpretation question Next: nmake clean bug |