openresty / openresty/headers-more-nginx-module
在tengine编译模块失败
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 1.8k
- Forks
- 236
- Avg merge
- 1h 34m
- Merged PRs (30d)
- 2
Description
春哥,用最新的这个模块编译进tengine 2.1.1时,报如下错误:
/root/source/tengine/headers-more-nginx-module/src/ngx_http_headers_more_headers_in.c
/root/source/tengine/headers-more-nginx-module/src/ngx_http_headers_more_headers_in.c:142:18: error: ‘ngx_http_process_header_line’ undeclared here (not in a function)
ngx_http_process_header_line },
^
/root/source/tengine/headers-more-nginx-module/src/ngx_http_headers_more_headers_in.c:142:18: error: missing initializer for field ‘handler’ of ‘ngx_http_headers_more_set_header_t’ [-Werror=missing-field-initializers]
In file included from /root/source/tengine/headers-more-nginx-module/src/ngx_http_headers_more_headers_in.h:11:0,
from /root/source/tengine/headers-more-nginx-module/src/ngx_http_headers_more_headers_in.c:13:
/root/source/tengine/headers-more-nginx-module/src/ngx_http_headers_more_filter_module.h:53:45: note: handler’ declared here
ngx_http_headers_more_set_header_pt handler;
^
cc1: all warnings being treated as errors
make[1]: *** [objs/addon/src/ngx_http_headers_more_headers_in.o] 错误 1
make[1]: Leaving directory `/root/source/tengine/src/tengine-2.1.1'
make: *** [build] 错误 2
编译器为4.8.2,请春哥指点
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with src/ngx_http_headers_more_headers_in.c at line 142 and the included src/ngx_http_headers_more_headers_in.h and src/ngx_http_headers_more_filter_module.h. Reproduce the build against tengine 2.1.1 with compiler 4.8.2, then trace the reported undeclared ngx_http_process_header_line and missing handler initializer; done means the module compiles successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- backend, build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100