Forum: NGINX upload module (2.2.0) compile errors on windows

Posted by radhav (Guest)
on 2012-12-04 05:39
(Received via mailing list)
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
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.