当前位置:   article > 正文

nginx 交叉编译报错问题解决_checking for c compiler ... found but is not worki

checking for c compiler ... found but is not working

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);

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/IT小白/article/detail/662156
推荐阅读
相关标签
  

闽ICP备14008679号