How do I:compile single plugin..check_smtp

doug.moore at ibill.com doug.moore at ibill.com
Mon Oct 21 21:27:02 CEST 2002


I need version 1.5 of check_smtp. I currently have version 1.1.1.1 can
someone give me the command-line to compile this single plugin. Got the code
from CVS.

Copied the check_smtp.c to the /nagiosplug-1.3-beta1/plugins directory Tried
a 

gcc check_smtp.c -o check_smtp15 

while in ../../plugins directory 
and got below errors. 

[root at nagios01 plugins]# gcc check_smtp.c -o check_smtp15
/tmp/ccNFU3bp.o: In function `main':
/tmp/ccNFU3bp.o(.text+0x166): undefined reference to
`socket_timeout_alarm_handler'
/tmp/ccNFU3bp.o(.text+0x1a9): undefined reference to `my_tcp_connect'
/tmp/ccNFU3bp.o(.text+0x1e8): undefined reference to `strip'
/tmp/ccNFU3bp.o: In function `process_arguments':
/tmp/ccNFU3bp.o(.text+0x630): undefined reference to `is_option'
/tmp/ccNFU3bp.o(.text+0x659): undefined reference to `is_host'
/tmp/ccNFU3bp.o(.text+0x6b0): undefined reference to `strscpy'
/tmp/ccNFU3bp.o(.text+0x6d2): undefined reference to `strscpy'
/tmp/ccNFU3bp.o: In function `call_getopt':
/tmp/ccNFU3bp.o(.text+0x78e): undefined reference to `is_host'
/tmp/ccNFU3bp.o(.text+0x7d6): undefined reference to `is_intpos'
/tmp/ccNFU3bp.o(.text+0x84e): undefined reference to `is_intnonneg'
/tmp/ccNFU3bp.o(.text+0x8ae): undefined reference to `is_intnonneg'
/tmp/ccNFU3bp.o(.text+0x91e): undefined reference to `is_intnonneg'
/tmp/ccNFU3bp.o(.text+0x97a): undefined reference to `print_revision'
/tmp/ccNFU3bp.o: In function `print_help':
/tmp/ccNFU3bp.o(.text+0x9e4): undefined reference to `print_revision'
/tmp/ccNFU3bp.o(.text+0xa17): undefined reference to `support'
collect2: ld returned 1 exit status
>>>>>>>

If someone has an already compiled version, could they email it to me?

thanks




**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************



-------------------------------------------------------
This sf.net emial is sponsored by: Influence the future of 
Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) 
program now. http://ad.doubleclick.net/clk;4699841;7576298;k?
http://www.sun.com/javavote




More information about the Users mailing list