[Nagiosplug-help] Compiling "check_http-with-client-certificate.c"

Hrisheekesh Kale hrisheekesh_kale at persistent.co.in
Thu May 13 07:08:19 CEST 2010


Hi,

I am trying to compile “check_http-with-client-certificate.c” with Nagios Plugins 1.4.13 package and am running into some compilation errors –

utils.h:137:1: warning: "COPYRIGHT" redefined
check_http.c:42:1: warning: this is the location of the previous definition
check_http.c: In function ‘process_arguments’:
check_http.c:792: error: ‘check_content_regex’ undeclared (first use in this function)
check_http.c:792: error: (Each undeclared identifier is reported only once
check_http.c:792: error: for each function it appears in.)

I was able to get around these by changing the macro “COPYRIGHT” and by enabling compilation flag “HAVE_REGEX_H”.
Is that a correct solution?

After these changes I ran into another compilation error –
check_http.o: In function `check_http_response':
…nagios-plugins-1.4.13/plugins/check_http.c:1026: undefined reference to `terminate'
…nagios-plugins-1.4.13/plugins/check_http.c:1054: undefined reference to `terminate'
…nagios-plugins-1.4.13/plugins/check_http.c:1076: undefined reference to `terminate'
…nagios-plugins-1.4.13/plugins/check_http.c:997: undefined reference to `terminate'
…nagios-plugins-1.4.13/plugins/check_http.c:979: undefined reference to `terminate'

I have renamed “check_http-with-client-certificate.c” to “check_http.c” in my packge.
The plugin calls a function terminate(), that is not defined anywhere in the package.
Does the plugin expect to be linked to some library?
Any suggestions are appreciated.

Regards,
Hrisheekesh.


DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20100513/d421ba66/attachment.html>


More information about the Help mailing list