报错信息:cc1:所有的警告都被当作是错误 make[1]: *** [objs/Makefile:886:objs/src/
1.在执行完./configure解压后,在objs目录下找到makefile文件使用vim命令编辑该文件将werror去掉,导致该错误的问题主要是因为将警告转为报错导致。
js -I src/http -I src/http/modules \
-o objs/src/http/modules/ngx_http_proxy_module.o \
src/http/modules/ngx_http_proxy_module.c
src/http/modules/ngx_http_proxy_module.c: 在函数‘ngx_http_proxy_init_headers’中:
src/http/modules/ngx_http_proxy_module.c:3528:22: 警告:cast between incompatible function types from ‘size_t (*)(ngx_http_script_engine_t *)’ {或称 ‘long unsigned int (*)(struct <匿名> *)’} to ‘void (*)(ngx_http_script_engine_t *)’ {或称 ‘void (*)(struct <匿名> *)’} [-Wcast-function-type]
copy->code = (ngx_http_script_code_pt) ngx_http_script_copy_len_code;
^
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
-o objs/src/http/modules