I am trying to install Nagios 3.0.5 on Solaris 10 sparc server. The first command I use is “./configure --prefix=/usr/local/nagios --with-nagios-user=nagios --with-nagios-grp=nagios --with-command-group=nagcmd --with-htmurl=nagios_prod --with-cgiurl=nagios_prod/cgi-bin” from the directory “/export/home/nagios/installation/nagios-3.0.5” as user “root”.
When the above command is completed I do a “make all” from the directory “/export/home/nagios/installation/nagios-3.0.5” as user “root”.
Everything is going well till I get the next fatal error:
gcc -g -O2 -DHAVE_CONFIG_H -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DNSCORE -c …/common/snprintf.c
gcc -g -O2 -DHAVE_CONFIG_H -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DNSCORE -o nagios nagios.c broker.o nebmods.o checks.o config.o commands.o events.o flapping.o logging.o macros-base.o notifications.o sehandlers.o skiplist.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 …/common/snprintf.o -lm -lpthread -ldl -lrt -lglib-2.0
gcc: …/common/snprintf.o: No such file or directory
*** Error code 1
make: Fatal error: Command failed for target
nagios' Current working directory /export/home/nagios/installation/nagios-3.0.5/base *** Error code 1 make: Fatal error: Command failed for targetall’
If I take a look in the directory “/export/home/nagios/installation/nagios-3.0.5/common” I see the snprintf.c, but not the snprintf.o. When I take a look in the “/export/home/nagios/installation/nagios-3.0.5/base” directory I see the snprintf.o. I now changed the Makefile in the “/export/home/nagios/installation/nagios-3.0.5/base” directory to look for the snprintf.o in his own directory and not in the common directory and the “make all” command goes well. I also had to change this in the cgi directory.
Has anybody had this problem before and how did you fixed this??? Or is this a bug???
Thanks in advantage, Tinus.