标签归档:may conflict with libssl.so.1.1

Zabbix: libssl.so.10: error adding symbols: DSO missing from command line

configure前置任务成功

 [root@renwole.com zabbix-5.0.1]# ./configure --prefix=/apps/server/zabbix \
 --sysconfdir=/apps/server/zabbix/etc --enable-server --enable-agent \
 --with-mysql=/apps/server/mysql/bin/mysql_config --with-openssl \
 --with-net-snmp --with-libcurl --with-libxml2 --enable-proxy --enable-ipv6 \
 --enable-java --with-ssh2 --with-iconv --with-openipmi --with-ldap

***********************************************************
*            Now run 'make install'                       *
*                                                         *
*            Thank you for using Zabbix!                  *
*              <http://www.zabbix.com>                    *
***********************************************************

安装Zabbix时失败

make install
...
ssh2  -lOpenIPMI -lOpenIPMIposix -lz -lpthread -levent -lssl -lcrypto -lldap -llber   -lcurl -lm -ldl  -lresolv -lpcre -liconv
/usr/bin/ld: warning: libssl.so.10, needed by /usr/lib64/libnetsnmp.so, may conflict with libssl.so.1.1
/usr/bin/ld: warning: libssl.so.10, needed by /usr/lib64/libnetsnmp.so, may conflict with libssl.so.1.1
/usr/bin/ld: ../../src/libs/zbxcrypto/libzbxcrypto.a(libzbxcrypto_a-tls.o): undefined reference to symbol 'SSL_library_init@@libssl.so.10'
//usr/lib64/libssl.so.10: error adding symbols: DSO missing from command line
collect2: 错误:ld 返回 1
make[3]: *** [zabbix_server] 错误 1
make[3]: 离开目录“/opt/zabbix-5.0.1/src/zabbix_server”
make[2]: *** [install-recursive] 错误 1
make[2]: 离开目录“/opt/zabbix-5.0.1/src/zabbix_server”
make[1]: *** [install-recursive] 错误 1
make[1]: 离开目录“/opt/zabbix-5.0.1/src”
make: *** [install-recursive] 错误 1

分析原因

[root@renwole.com zabbix-5.0.1]# find / -name libssl.so.*
/usr/lib64/libssl.so.1.0.2k
/usr/lib64/libssl.so.10
/apps/server/mysql/lib/private/libssl.so.1.1

MySQL 8 是依赖Openssl 1.1,而CentOS 7 默认安装的是Openssl 1.0,所以需要升级openssl 1.1.1,请参阅《如何升级OpenSSL》,之后再安装Zabbix即可成功。