nginx_tcp_proxy_module icon indicating copy to clipboard operation
nginx_tcp_proxy_module copied to clipboard

Support for Windows platform

Open andrealbinop opened this issue 10 years ago • 2 comments

Hello,

I really appreciate nginx modules you develop/mantain, I'm learning a lot with your code! However, regarding Windows support, when building using nginx instructions there are some issues when compiling http parser files (http_request_parser.c contains specifc gcc instruction like attribute((packed))). I could "overcome" this issue by doing this, but other compilation problems arose on http_request_parser.rl file. Is this module intended to work only on unix based platforms?

andrealbinop avatar May 24 '14 02:05 andrealbinop

See the README:

The http_response_parse.rl and smtp_response_parse.rl are ragel (http://www.complang.org/ragel/ http://www.complang.org/ragel/%3E) scripts , you can edit the script and compile it like this:

     $ ragel -G2 http_response_parse.rl
     $ ragel -G2 smtp_response_parse.rl

You may need recompile it in your Windows platform.

On 2014/5/24 10:00, André Albino Pereira wrote:

Hello,

I really appreciate nginx modules you develop/mantain, I'm learning a lot with your code! However, regarding Windows support, when building using nginx instructions there are some issues when compiling http parser files (http_request_parser.c contains specifc gcc instruction like attribute((packed))). I could "overcome" this issue by doing this, but other compilation problems arose on http_request_parser.rl file. Is this module intended to work only on unix based platforms?

— Reply to this email directly or view it on GitHub https://github.com/yaoweibin/nginx_tcp_proxy_module/issues/95.

Weibin Yao Thanks.

yaoweibin avatar May 24 '14 06:05 yaoweibin

Understood,

I could recompile the *.rl files, but now I'm getting another compilation error that left me clueless:

http_request_parser.c ../nginx_tcp_proxy_module/parsers/http_request_parser.c(1232) : fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "ngx_config.h"' to your source? NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\BIN\cl.EXE"' : return code '0x2' Stop.

andrealbinop avatar May 25 '14 02:05 andrealbinop