show error when compling nagios-plugins

This forum is intended for the discussion of Nagios plugin development. Feature requests, patches, bug fixes, and all types of development-related discussions are welcome!

NOTE: The SourceForge.net nagiosplug-devel mailing list has been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

show error when compling nagios-plugins

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

Re: show error when compling nagios-plugins

Postby maronggang » Thu Nov 30, 2017 2:17 am

This problem is solved. It's happened because I can not set up correctly after updating openssl.
maronggang
 
Posts: 14
Joined: Tue May 19, 2015 6:10 am

Re: show error when compling nagios-plugins

Postby kyang » Thu Nov 30, 2017 11:38 am

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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
kyang
Support Tech
 
Posts: 1514
Joined: Tue Jul 25, 2017 3:35 pm


Return to Nagios Plugin Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron