Error while compiling Nagios Plugins


#1

HI,

i get this error message while i compilied (make) the plugins. The configure command was ok.

Undefined first referenced symbol in file inet_ntoa 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) gethostbyname 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 `/home/USER1/nagios-plugins-1.4/plugins' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/USER1/nagios-plugins-1.4' make: *** [all] Error 2

What’s wrong??

Best regards,
Navigator


#2

i use SUN SOLARIS 5.8 :slight_smile:


#3

I think the solution is to compile manually check_icmp with the argunment -lnsl
Take the line with gcc and add argument -lnsl


#4

yes !! :frowning:

i found it too in the www article.gmane.org/gmane.network. … devel/2491

THX
Navigator


#5

it is on this forum too… :smiley:

Luca