Upload module (2.2.0) compile errors on windows

I am trying to compile nginx on windows following the instructions at
http://nginx.org/en/docs/howto_build_on_win32.html.
I am using the nginx sources from release-1.2.5 and including
nginx_upload_module-2.2.0. I am getting the following errors:

./nginx_upload_module-2.2.0/ngx_http_upload_module.c(1200) : warning
C4047:
‘=’ : ‘ngx_fd_t’ differs in levels of indirection from ‘int’
./nginx_upload_module-2.2.0/ngx_http_upload_module.c(1321) : warning
C4047:
‘=’ : ‘ngx_fd_t’ differs in levels of indirection from ‘int’
./nginx_upload_module-2.2.0/ngx_http_upload_module.c(1363) : warning
C4244:
‘=’ : conversion from ‘off_t’ to ‘size_t’, possible loss of data
./nginx_upload_module-2.2.0/ngx_http_upload_module.c(1455) : warning
C4204:
nonstandard extension used : non-constant aggregate initializer
./nginx_upload_module-2.2.0/ngx_http_upload_module.c(1456) : warning
C4204:
nonstandard extension used : non-constant aggregate initializer
./nginx_upload_module-2.2.0/ngx_http_upload_module.c(1696) : warning
C4013:
‘ngx_lock_fd’ undefined; assuming extern returning int
./nginx_upload_module-2.2.0/ngx_http_upload_module.c(1729) : error
C2039:
‘st_size’ : is not a member of ‘_BY_HANDLE_FILE_INFORMATION’
c:\Program Files (x86)\Microsoft
SDKs\Windows\v7.0A\include\winbase.h(4831) : see declaration of
‘_BY_HANDLE_FILE_INFORMATION’
./nginx_upload_module-2.2.0/ngx_http_upload_module.c(1730) : error
C2039:
‘st_size’ : is not a member of ‘_BY_HANDLE_FILE_INFORMATION’
c:\Program Files (x86)\Microsoft
SDKs\Windows\v7.0A\include\winbase.h(4831) : see declaration of
‘_BY_HANDLE_FILE_INFORMATION’
./nginx_upload_module-2.2.0/ngx_http_upload_module.c(1731) : error
C2039:
‘st_size’ : is not a member of ‘_BY_HANDLE_FILE_INFORMATION’
c:\Program Files (x86)\Microsoft
SDKs\Windows\v7.0A\include\winbase.h(4831) : see declaration of
‘_BY_HANDLE_FILE_INFORMATION’
./nginx_upload_module-2.2.0/ngx_http_upload_module.c(1731) : fatal error
C1903: unable to recover from previous error(s); stopping compilation
NMAKE : fatal error U1077: ‘“C:\Program Files (x86)\Microsoft Visual
Studio
10.0\VC\BIN\cl.EXE”’ : return code ‘0x2’

I would appreciate any help in resolving this.

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,233537,233537#msg-233537

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs