Welcome! Log In Create A New Profile

Advanced

upload module (2.2.0) compile errors on windows

December 03, 2012 11:38PM
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.
SubjectAuthorPosted

upload module (2.2.0) compile errors on windows

radhavDecember 03, 2012 11:38PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 90
Record Number of Users: 5 on December 17, 2014
Record Number of Guests: 154 on December 17, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready