ngx_http_proxy_connect_module icon indicating copy to clipboard operation
ngx_http_proxy_connect_module copied to clipboard

Failed to compile with nginx 1.19.2, patch error

Open notariuss opened this issue 4 years ago • 2 comments

user@pc: patch -p1 < ./ngx_http_proxy_connect_module/patch/proxy_connect_rewrite_1018.patch
patching file src/http/ngx_http_core_module.c
Hunk #1 succeeded at 922 (offset -28 lines).
patching file src/http/ngx_http_parse.c
patching file src/http/ngx_http_request.c
Hunk #1 FAILED at 1092.
Hunk #2 succeeded at 1526 (offset -145 lines).
1 out of 2 hunks FAILED -- saving rejects to file src/http/ngx_http_request.c.rej
patching file src/http/ngx_http_request.h
Hunk #2 succeeded at 404 with fuzz 1 (offset -10 lines).
patching file src/http/ngx_http_variables.c
Hunk #1 succeeded at 152 (offset -9 lines).

notariuss avatar Apr 01 '21 22:04 notariuss

I'm running into the same exact problem when trying to patch the module

VEDA95 avatar Jun 15 '21 08:06 VEDA95

hi @notariuss Can you post ur rej file:src/http/ngx_http_request.c.rej, let me check it .

I cannot reproduce this issue from nginx-1.19.2 and proxy_connect_rewrite_1018.patch

WINDOWS-V0HQ9PG nginx-1.19.2 $ pwd
/home/xiaochen/pc/nginx-1.19.2
WINDOWS-V0HQ9PG nginx-1.19.2 $ patch -p1 < ../ngx_http_proxy_connect_module/patch/proxy_connect_rewrite_1018.patch
patching file src/http/ngx_http_core_module.c
patching file src/http/ngx_http_parse.c
patching file src/http/ngx_http_request.c
Hunk #2 succeeded at 1724 (offset 6 lines).
patching file src/http/ngx_http_request.h
patching file src/http/ngx_http_variables.c
WINDOWS-V0HQ9PG nginx-1.19.2 $ echo $?
0

chobits avatar Jul 03 '21 03:07 chobits

think it resolved. feel free to reopen if u still have the same problem

chobits avatar Aug 18 '22 09:08 chobits