show error when compling nagios-plugins
Posted: Thu Nov 30, 2017 12:23 am
Show error when installing nagios-plugins.
nagios-plugins version: nagios-plugins-2.0.3
openssl version: OpenSSL 1.1.0e
OS: CentOS6.5 x64
Please offer me your help. Thanks!
You can see the details as show:
ssl -lcrypto -lpthread -ldl
libnpcommon.a(sslutils.o): In function `np_net_ssl_check_cert':
/home/nmonitor/nagios-plugins-2.0.3/plugins/sslutils.c:175: undefined reference to `X509_getm_notAfter'
libnpcommon.a(sslutils.o): In function `np_net_ssl_init_with_hostname_version_and_cert':
/home/nmonitor/nagios-plugins-2.0.3/plugins/sslutils.c:95: undefined reference to `SSL_CTX_set_options'
/home/nmonitor/nagios-plugins-2.0.3/plugins/sslutils.c:77: undefined reference to `OPENSSL_init_ssl'
/home/nmonitor/nagios-plugins-2.0.3/plugins/sslutils.c:78: undefined reference to `OPENSSL_init_ssl'
/home/nmonitor/nagios-plugins-2.0.3/plugins/sslutils.c:79: undefined reference to `OPENSSL_init_crypto'
/home/nmonitor/nagios-plugins-2.0.3/plugins/sslutils.c:55: undefined reference to `TLS_client_method'
collect2: ld returned 1 exit status
make[2]: *** [check_http] Error 1
make[2]: Leaving directory `/home/nmonitor/nagios-plugins-2.0.3/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/nmonitor/nagios-plugins-2.0.3'
make: *** [all] Error 2
[root@centos6 nagios-plugins-2.0.3]#
nagios-plugins version: nagios-plugins-2.0.3
openssl version: OpenSSL 1.1.0e
OS: CentOS6.5 x64
Please offer me your help. Thanks!
You can see the details as show:
ssl -lcrypto -lpthread -ldl
libnpcommon.a(sslutils.o): In function `np_net_ssl_check_cert':
/home/nmonitor/nagios-plugins-2.0.3/plugins/sslutils.c:175: undefined reference to `X509_getm_notAfter'
libnpcommon.a(sslutils.o): In function `np_net_ssl_init_with_hostname_version_and_cert':
/home/nmonitor/nagios-plugins-2.0.3/plugins/sslutils.c:95: undefined reference to `SSL_CTX_set_options'
/home/nmonitor/nagios-plugins-2.0.3/plugins/sslutils.c:77: undefined reference to `OPENSSL_init_ssl'
/home/nmonitor/nagios-plugins-2.0.3/plugins/sslutils.c:78: undefined reference to `OPENSSL_init_ssl'
/home/nmonitor/nagios-plugins-2.0.3/plugins/sslutils.c:79: undefined reference to `OPENSSL_init_crypto'
/home/nmonitor/nagios-plugins-2.0.3/plugins/sslutils.c:55: undefined reference to `TLS_client_method'
collect2: ld returned 1 exit status
make[2]: *** [check_http] Error 1
make[2]: Leaving directory `/home/nmonitor/nagios-plugins-2.0.3/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/nmonitor/nagios-plugins-2.0.3'
make: *** [all] Error 2
[root@centos6 nagios-plugins-2.0.3]#