cantonbolo 发表于 2019-1-9 15:57:36

4.18 内核安装php报错

CentOS 7:Linux server-status 4.18.1-1.el7.elrepo.x86_64 #1 SMP Wed Aug 15 16:28:40 EDT 2018 x86_64 x86_64 x86_64 GNU/Linux

licess 发表于 2019-1-9 18:56:21

/root/lnmp/src/php-7.3.0/ext/iconv/iconv.c:993: undefined reference to `libiconv_open'
/root/lnmp/src/php-7.3.0/ext/iconv/iconv.c:1021: undefined reference to `libiconv'
/root/lnmp/src/php-7.3.0/ext/iconv/iconv.c:1135: undefined reference to `libiconv_close'
ext/phar/.libs/util.o: In function `phar_verify_signature':
/root/lnmp/src/php-7.3.0/ext/phar/util.c:1561: undefined reference to `EVP_MD_CTX_new'
/root/lnmp/src/php-7.3.0/ext/phar/util.c:1593: undefined reference to `EVP_MD_CTX_free'
/root/lnmp/src/php-7.3.0/ext/phar/util.c:1584: undefined reference to `EVP_MD_CTX_free'
ext/phar/.libs/util.o: In function `phar_create_signature':
/root/lnmp/src/php-7.3.0/ext/phar/util.c:1858: undefined reference to `EVP_MD_CTX_new'
/root/lnmp/src/php-7.3.0/ext/phar/util.c:1890: undefined reference to `EVP_MD_CTX_free'
ext/xmlrpc/libxmlrpc/.libs/encodings.o: In function `convert':
/root/lnmp/src/php-7.3.0/ext/xmlrpc/libxmlrpc/encodings.c:65: undefined reference to `libiconv_open'
/root/lnmp/src/php-7.3.0/ext/xmlrpc/libxmlrpc/encodings.c:72: undefined reference to `libiconv'
/root/lnmp/src/php-7.3.0/ext/xmlrpc/libxmlrpc/encodings.c:88: undefined reference to `libiconv_close'
/root/lnmp/src/php-7.3.0/ext/xmlrpc/libxmlrpc/encodings.c:88: undefined reference to `libiconv_close'
collect2: error: ld returned 1 exit status
lnmp都有针对这个的修复,还报错就只能换其他版本或发行版试试
也有可能与自己升级过openssl版本有关

cantonbolo 发表于 2019-1-9 19:26:37

回复 2# 的帖子

用yum安装/卸载了openssl和openssl-devel都无法编译,内核降到3.10也不行,在另外的机器却可以编译出来
页: [1]
查看完整版本: 4.18 内核安装php报错