couldn't build Nginx with spdy support on Windows XP

三浦大佑 daisuke.miura at
Fri Mar 8 10:16:36 UTC 2013

I have a problem about spdy support.

I tried building Nginx with SPDY according to the page.

but, make command was stopped when making ngx_http_spdy.obj.

Nginx: 1.3.14(from svn source)
uname -a: MINGW32_NT-5.1 EBB007K 1.0.18(0.48/3/2) 2012-11-21 22:34 i686 Msys

$ export LIB="C:\\Program Files\\Microsoft Visual Studio
10.0\\VC\\lib;C:\\Program Files\\Microsoft SDKs\\Windows\\v7.1\\Lib"
$ export INCLUDE="C:\\Program Files\\Microsoft Visual Studio
10.0\\VC\\include;C:\\Program Files\\Microsoft
$ export PATH="$PATH:/c/strawberryperl/perl/bin:/c/Program Files/Microsoft
Visual Studio 10.0/VC/bin:/c/Program Files/Microsoft Visual Studio
10.0/Common7/IDE:/c/Program Files/Microsoft SDKs/Windows/v7.1/Bin"

configure command
$auto/configure --with-cc=cl --builddir=obj --prefix=
--conf-path=conf/nginx.conf --pid-path=logs/ngi --http-log-path=logs/access.log --error-log-path=logs/error.log
--sbin-path=nginx.exe --http-
--http-proxy-temp-path=temp/proxy_temp --http-fastcgi-te
mp-path=temp/fastcgi_temp --with-cc-opt=-DFD_SETSIZE=1024
--with-pcre=obj/lib/pcre-8.32 --with-zlib=
obj/lib/zlib-1.2.7 --with-openssl=obj/lib/openssl-1.0.1e
--with-select_module --with-http_ssl_module
 --with-http_spdy_module --with-http_perl_module --with-http_dav_module

make command
$ nmake -f obj/Makefile

        cl -c -O2  -W4 -WX -nologo -MT -Zi -DFD_SETSIZE=1024
-DNO_SYS_TYPES_H -Yungx_config.h -Fpobj
/ngx_config.pch -I src/core  -I src/event  -I src/event/modules  -I
src/os/win32  -I obj/lib/pcre-8.
32  -I obj/lib/openssl-1.0.1e/openssl/include  -I obj/lib/zlib-1.2.7  -I
obj  -I src/http  -I src/ht
tp/modules  -I src/http/modules/perl  -I src/mail
 -Foobj/src/http/ngx_http_spdy.obj  src/http/ngx_h
src/http/ngx_http_spdy.c(1264) : error C2220: warning treated as error - no
'object' file generated
src/http/ngx_http_spdy.c(1264) : warning C4244: 'function' : conversion
from 'off_t' to 'size_t', po
ssible loss of data
src/http/ngx_http_spdy.c(1642) : warning C4310: cast truncates constant
NMAKE : fatal error U1077: '"\Program Files\Microsoft Visual Studio
10.0\VC\bin\cl.EXE"' : return co
de '0x2'

No one try to build Nginx with SPDY on Windows XP?
This problem is happened only on Windows?
Please help me.

BTW, why configure command adds "--prefix=openssl"  to openssl directory?
I extended zip file to obj/lib/openssl-1.0.1e directory that include
"Configure" file and "include" directory.
But, configure command said "obj/lib/openssl-1.0.1e/openssl/include".
It's prrety strange. So, I create "obj/lib/openssl-1.0.1e/openssl"
directory and copy include directory to that.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx-devel mailing list