赞
踩
1.checking for C compiler ... found but is not working
修改auto/feature
找到 if [ -x $NGX_AUTOTEST ]; then
在前面赋值 ngx_feature_run=no
2./configure: 1: auto/types/sizeof: objs/autotest: Exec format error
修改auto/types/sizeof
找到ngx_test="$CC $CC_TEST_FLAGS $CC_AUX_FLAGS \
-o $NGX_AUTOTEST $NGX_AUTOTEST.c $NGX_LD_OPT $ngx_feature_libs"
将$CC 改成gcc
3.objs/src/os/unix/ngx_user.o: In function `ngx_libc_crypt': ngx_user.c:(.text+0x20): undefined reference to `crypt'
找到src/os/unix/ngx_user.c下的 ngx_libc_crypt 函数
将 value = crypt((char *) key, (char *) salt);
改成
value = DES_crypt((char *) key, (char *) salt);
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。