nagios-plugins-1.4.0-alpha3 problem on Solaris 8 box

William Wang williamw at xeye.com
Fri Dec 24 00:01:10 CET 2004


thanks a lot, Luc I. Suryo

where I can get it?

BTW, I have another issue when I try to "make all" nagios2.0b1 on a Solaris 8 box

Here is my command:
-----
./configure --prefix=/usr/local/nagios --with-cgiurl=/nagios/cgi-bin --with-htmurl=/nagios/ --with-nagios-user=nagios --with-nagios-grp=nagios --with-command-grp=www

make all
-------

error:
----
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -o nagios nagios.c broker.o nebmods.o checks.o config.o commands.o events.o flapping.o lo
gging.o notifications.o sehandlers.o utils.o retention-base.o xretention-base.o comments-base.o xcomments-base.o objects-base
.o xobjects-base.o statusdata-base.o xstatusdata-base.o perfdata-base.o xperfdata-base.o downtime-base.o xdowntime-base.o
   -lm -lnsl -lsocket -lpthread -ldl -lrt
Undefined                       first referenced
 symbol                             in file
setenv                              utils.o
unsetenv                            utils.o
ld: fatal: Symbol referencing errors. No output written to nagios
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `nagios'
Current working directory /export/home/nagios/nagios-2.0b1/base
*** Error code 1
make: Fatal error: Command failed for target `all'
---------

Someone from the mail list said I can comment out "setenv and unsetenv in utils.c 
I did that and got the following error when I try to "make inatll-confire

error
--------
[335]:root at xeyenis01:/export/home/nagios/nagios-2.0b1->make install-config
./install-sh -c -m 775 -o nagios -g nagios -d /usr/local/nagios/etc
./install-sh -c -m 664 -o nagios -g nagios sample-config/nagios.cfg /usr/local/nagios/etc/nagios.cfg-sample
./install-sh -c -m 664 -o nagios -g nagios sample-config/cgi.cfg /usr/local/nagios/etc/cgi.cfg-sample
./install-sh -c -m 660 -o nagios -g nagios sample-config/resource.cfg /usr/local/nagios/etc/resource.cfg-sample
./install-sh -c -m 664 -o nagios -g nagios sample-config/template-object/checkcommands.cfg /usr/local/nagios/etc/checkcommand
s.cfg-sample
./install-sh -c -m 664 -o nagios -g nagios sample-config/template-object/contactgroups.cfg /usr/local/nagios/etc/contactgroup
s.cfg-sample
install:  sample-config/template-object/contactgroups.cfg does not exist
*** Error code 1
make: Fatal error: Command failed for target `install-config'
-------

Can someone give me a hand?

Thanks,
William

-----Original Message-----
From: Luc I. Suryo [mailto:luc at suryo.com]
Sent: December 23, 2004 5:30 PM
To: William Wang
Cc: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] nagios-plugins-1.4.0-alpha3 problem on
Solaris 8 box



> 
> I donwloaded  nagios-plugins-1.4.0-alpha3 and tried to install it. The following are the errors I got when I "make" it.
> 
> -------------
> Undefined                       first referenced
>  symbol                             in file
> gethostbyname                       check_icmp.o  (symbol belongs to implicit dependency /usr/lib/libnsl.so.1)
> h_errno                             check_icmp.o  (symbol belongs to implicit dependency /usr/lib/libnsl.so.1)
> gethostbyaddr                       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
> *** Error code 1
> make: Fatal error: Command failed for target `check_icmp'
> Current working directory /export/home/nagios/nagios-plugins-1.4.0-alpha3/plugins
> *** Error code 1
> make: Fatal error: Command failed for target `all-recursive'
> Current working directory /export/home/nagios/nagios-plugins-1.4.0-alpha3
> *** Error code 1
> make: Fatal error: Command failed for target `all'
> -------------
> 
it's missing the network libs..
	-lnsl -lsocket

-ls


-------------------------------------------------------
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://productguide.itmanagersjournal.com/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list