Nagios-plugins-1.4 build fails in check_icmp on Solaris 8

…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

There is a standalone check_icmp you need to compile and then copy over and compile the plugins.

I ran into the same error with compiling on Solaris 10x86

i posted something about compiling the plugins in solaris 8 some time ago. have a search in the forum… it was a missing library if i remember right.

Luca