Nagios Installation on Solaris 10 - netutils.o error

Hi all .

I am getting the following error on Solaris 10 while installing Nagios. I spent lot of time on it and I become clueless. Your help is appreciated .

xdowntime-base.o …/common/snprintf.o -L/usr/local/lib -lm -lpthread -lltdl -lrt
Undefined first referenced
symbol in file
recv netutils.o
send netutils.o
socket netutils.o
getsockopt netutils.o
connect netutils.o
getaddrinfo netutils.o
freeaddrinfo netutils.o
ld: fatal: Symbol referencing errors. No output written to nagios
collect2: ld returned 1 exit status
gmake[1]: *** [nagios] Error 1

Regards

i found solution to the problem. I just have to in profile

LIBS="-lsocket -lnsl"
export LIBS