…looks like a problem with the Makefile? Please tell me how I can fix
the Makefile or at least skip building
check_icmp altogether.
Originally I tried it out of the box and it failed with the following:
gcc -DLOCALEDIR="/usr/local/home/nagios/plugins/share/locale"
-DHAVE_CONFIG_H -I. -I. -I… -I… -I…/lib -I…/intl
-g -O2 -c check_icmp.c
gcc -g -O2 -L. -o check_icmp check_icmp.o …/intl/libintl.a -lgen
-lsocket
Undefined first referenced
symbol in file
inet_addr check_icmp.o (symbol belongs to
implicit dependency /usr/lib/libnsl.so.1)
gethostbyname check_icmp.o (symbol belongs to
implicit dependency /usr/lib/libnsl.so.1)
inet_ntoa check_icmp.o (symbol belongs to
implicit dependency /usr/lib/libnsl.so.1)
ld: fatal: Symbol referencing errors. No output written to check_icmp
I then added $(NETLIBS) to line 419 of ./plugins/Makefile.in and it
still fails with:
gcc -g -O2 -L. -o check_icmp check_icmp.o netutils.o utils.o
…/lib/libnagiosplug.a …/lib/libcoreutils.a -lnsl
-lsocket -lresolv …/intl/libintl.a -lgen -lsocket
Undefined first referenced
symbol in file
progname utils.o
print_usage utils.o
timeout_interval utils.o
ld: fatal: Symbol referencing errors. No output written to check_icmp