Problem compiling plugin

Garrett Anestos GANESTOS at fisinc.com
Fri Dec 6 21:32:50 CET 2002


Hello!

Subhendu has been a huge help, but I think I have drove him crazy.  :)

I'm trying to compile the check_nt plugin on a FreeBSD 4.6.2 machine.

I have run the following command successfully:

gcc -g -O2 -I/path/to/nagiosplug/plugins -L/path/to/nagiosplug/plugins -c
check_nt.c

This creates the check_nt.o file.

I then run:

gcc -g -O2 -I/path/to/nagiosplug/plugins -L/path/to/nagiosplug/plugins
check_nt.o -o check_nt utils.o

This fails....


check_nt.o: In function `main':
/tmp/nagios-plugins-200211131100/plugins/check_nt.c(.text+0x17c): undefined
reference to `socket_timeout_alarm_handler'
/tmp/nagios-plugins-200211131100/plugins/check_nt.c(.text+0x1e7): undefined
reference to `process_tcp_request'
/tmp/nagios-plugins-200211131100/plugins/check_nt.c(.text+0x2f4): undefined
reference to `process_tcp_request'
/tmp/nagios-plugins-200211131100/plugins/check_nt.c(.text+0x497): undefined
reference to `process_tcp_request'
/tmp/nagios-plugins-200211131100/plugins/check_nt.c(.text+0x627): undefined
reference to `process_tcp_request'
/tmp/nagios-plugins-200211131100/plugins/check_nt.c(.text+0x8aa): undefined
reference to `process_tcp_request'
check_nt.o(.text+0x989):/tmp/nagios-plugins-200211131100/plugins/check_nt.c:
more undefined references to `process_tcp_request' follow
check_nt.o: In function `process_arguments':
/tmp/nagios-plugins-200211131100/plugins/check_nt.c(.text+0x11a0): undefined
reference to `getopt_long'

I have also tried:

gcc -g -O2 -I/path/to/nagiosplug/plugins -L/path/to/nagiosplug/plugins -o
check_nt utils.o -lutils

This fails as well.

Any help wuould be appreciated!

Thanks!

Garrett



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20021206/c610f190/attachment.html>


More information about the Users mailing list