[Nagiosplug-help] (no subject)
Andreas Ericsson
ae at op5.se
Tue Mar 29 15:58:36 CEST 2005
shoemake at ispalliance.net wrote:
> Ok... I have downloaded and ran make against the new file, however... it
> reported an error(though not the same as before).
>
> Any sugestions on where to go from here?
>
Alter the macros INADDR_ANY and INADDR_NONE to read
#define INADDR_ANY 0x0
#define INADDR_NONE 0xffffffffU
or
Download check_icmp-2005-03-30 which contains the above fix
(unconditionally so even obviously broken build environments should work).
> # make
> gcc -O2 -funroll-loops -fomit-frame-pointer -c -o check_icmp.o check_icmp.c
> check_icmp.c: In function `add_target_ip':
> check_icmp.c:1077: error: conversion to non-scalar type requested
> check_icmp.c: In function `add_target':
> check_icmp.c:1128: error: conversion to non-scalar type requested
> make: *** [check_icmp.o] Error 1
>
>
>
> Michael Shoemaker wrote:
>
>><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)
>>
>
>
> Indeed, and you 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
>
>
> These errors are from the first compilation attempt and won't go away.
>
>
>>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
>>
>
>
> These are from the second attempt. hstrerror() is obsolete, but I would
> have thought solaris had the inet_aton function somewhere.
>
> Not to worry though. I worked around solaris' shortcomings in the
> library department. I uploaded a new release today, so you might want to
> give it a shake and see if it works better.
>
>
>>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
>>
>>
>>
>>-------------------------------------------------------
>>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
>>
>
>
--
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Lead Developer
More information about the Help
mailing list