Problem with compiling on solaris 9 SPARC

Hallo, I’m running Solaris 9 4/04 on SunBlade 1500 machine. I’ve installed packages:

bash 3.0, fileutils 4.1, gcc 3.4.2 (tried also gcc 3.3.2), gd 2.0.28, grep 2.5, libiconv 1.8, jpeg 6b, libpng 1.2.8, make 3.80, mktemp 1.4, netsnmp 5.1.1, openssl 0.9.7e, pcre 4.5, sed 4.1.1, shutils 2.0.15, zlib 1.2.2

system is also patched with recommended patch cluster.

My problem is:
I try to compile plugins and have problems. Make shows something like this:

gcc -g -02 -L. -o check_icmp check_icmp.o …/intl/libintl.a -liconv -lgen -lsocket
Undefined first referenced
symbol in file
gethostbyname check_icmp.o (symbol belongs to implicit dependency /usr/lib/libnsl.so.1)
inet_addr 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
collect2: ld returned 1 exit status
make[2]: *** [check_icmp] Error 1
make[2]: Leaving directory /work/nagios/nagios-plugins-1.4/plugins' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory/work/nagios/nagios-plugins-1.4’
make: *** [all] Error 2

Pls help.
It would be also great if someone has successfully compiled it under Solaris 9 on SPARC and share it.

Thanx,
Stanley.

try this:
meulie.net/forum_viewtopic.php?21.354

Luca