nginx编译
src/os/unix/ngx_user.c: In function ‘ngx_libc_crypt’:
src/os/unix/ngx_user.c:26:7: error: ‘struct crypt_data’ has no member named ‘current_salt’
cd.current_salt[0] = ~salt[0];
注意这里的nginx目录是编译目录:
执行重新编译:make
又出现报错:
error: ‘struct crypt_data’ has no member named ‘current_salt’
编辑:vi objs/Makefile
去掉:-werror
继续执行编译:make 完成