src/os/unix/ngx_user.c: In function 'ngx_libc_crypt':
src/os/unix/ngx_user.c:26:6: error: 'struct crypt_data' has no member named 'current_salt'
cd.current_salt[0] = ~salt[0];
注释掉
/* cd.current_salt[0] = ~salt[0];*/
这行以后
src/http/ngx_http_script.c: In function 'ngx_http_script_add_full_name_code':
src/http/ngx_http_script.c:1296:18: error: cast between incompatible function types from 'size_t (*)(ngx_http_script_engine_t *)' {aka 'long unsigned int (*)(struct <anonymous> *)'} to 'void (*)(ngx_http_script_engine_t *)' {aka 'void (*)(struct <anonymous> *)'} [-Werror=cast-function-type]
code->code = (ngx_http_script_code_pt) ngx_http_scri
又出现了新的错误只需要将objs下面的Makefile中的第一行- werror删去即可