[Nagiosplug-help] /lib/libnsl.so.1 issue w/ check_icmp.o

Michael Shoemaker shoemake at ispalliance.net
Mon Mar 28 12:53:08 CEST 2005


<chuckle> not sure if this is a good thing, but I have found a solaris install 
that it doesn't work on, the output follows. (providing I have done 
everything right)

# make
gcc -O2 -funroll-loops -fomit-frame-pointer     -c -o check_icmp.o 
check_icmp.c
gcc check_icmp.o -o check_icmp || gcc -lnsl -lsocket check_icmp.o -o 
check_icmp
Undefined                       first referenced
 symbol                             in file
socket                              check_icmp.o
gethostbyname                       check_icmp.o
setsockopt                          check_icmp.o
h_errno                             check_icmp.o
inet_aton                           check_icmp.o
hstrerror                           check_icmp.o
sendto                              check_icmp.o
inet_ntoa                           check_icmp.o
recvfrom                            check_icmp.o
ld: fatal: Symbol referencing errors. No output written to check_icmp
collect2: ld returned 1 exit status
Undefined                       first referenced
 symbol                             in file
inet_aton                           check_icmp.o
hstrerror                           check_icmp.o
ld: fatal: Symbol referencing errors. No output written to check_icmp
collect2: ld returned 1 exit status
make: *** [check_icmp] Error 1


On Monday 28 March 2005 02:32 pm, Andreas Ericsson wrote:
> Michael Shoemaker wrote:
> > sorry to be such a newb on this, but which of the files at the indicated
> > location do I need? This is my first solaris nagios install (done tons of
> > linux installs).
>
> check_icmp-<something>. They should be listed with date, so just get the
> latest.
>
> > Thanks for the help
> >
> > Michael
> >
> > On Thursday 24 March 2005 06:46 pm, Andreas Ericsson wrote:
> >>Michael Shoemaker wrote:
> >>>Here is the info I think is needed. If more is needed, PLEASE ask and I
> >>>will provide. Is there an easy way to fix this?
> >>
> >>Yes. Sorry for the singularly unenlightening response. ;)
> >>
> >>Download the latest at http://oss.op5.se/nagios and just run make. It
> >>builds nicely on all solaris boxen I've seen so far (by linking
> >>libsocket and libnsl).
> >>
> >>>if /usr/local/bin/gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\"
> >>>-DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../intl  -g -O2 -MT
> >>>check_icmp.o -MD -MP -MF ".deps/check_icmp.Tpo" -c -o check_icmp.o
> >>>check_icmp.c; \ then mv -f ".deps/check_icmp.Tpo" ".deps/check_icmp.Po";
> >>>else rm -f ".deps/check_icmp.Tpo"; exit 1; fi
> >>>/usr/local/bin/gcc  -g -O2  -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 /lib/libnsl.so.1)
> >>>inet_addr                           check_icmp.o  (symbol belongs to
> >>>implicit dependency /lib/libnsl.so.1)
> >>>inet_ntoa                           check_icmp.o  (symbol belongs to
> >>>implicit dependency /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/root/nagios-plugins-1.4/plugins'
> >>>make[1]: *** [all-recursive] Error 1
> >>>make[1]: Leaving directory `/home/root/nagios-plugins-1.4'
> >>>make: *** [all] Error 2
> >>>
> >>>
> >>>-------------------------------------------------------
> >>>SF email is sponsored by - The IT Product Guide
> >>>Read honest & candid reviews on hundreds of IT Products from real users.
> >>>Discover which products truly live up to the hype. Start reading now.
> >>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> >>>_______________________________________________
> >>>Nagiosplug-help mailing list
> >>>Nagiosplug-help at lists.sourceforge.net
> >>>https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> >>>
> >>>::: Please include plugins version (-v) and OS when reporting any issue.
> >>>::: Messages without supporting info will risk being sent to /dev/null
> >
> > -------------------------------------------------------
> > SF email is sponsored by - The IT Product Guide
> > Read honest & candid reviews on hundreds of IT Products from real users.
> > Discover which products truly live up to the hype. Start reading now.
> > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> > _______________________________________________
> > Nagiosplug-help mailing list
> > Nagiosplug-help at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> >
> > ::: Please include plugins version (-v) and OS when reporting any issue.
> > ::: Messages without supporting info will risk being sent to /dev/null




More information about the Help mailing list