show error when compling nagios-plugins

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
maronggang
Posts: 14
Joined: Tue May 19, 2015 6:10 am

show error when compling nagios-plugins

Post by maronggang »

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]#
maronggang
Posts: 14
Joined: Tue May 19, 2015 6:10 am

Re: show error when compling nagios-plugins

Post by maronggang »

This problem is solved. It's happened because I can not set up correctly after updating openssl.
kyang

Re: show error when compling nagios-plugins

Post by kyang »

Sounds good! I'll be closing this thread!

If you have any more questions, feel free to create another thread.

Thanks for using the Nagios Support Forum!
Locked