error when "make all"

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
fretagi
Posts: 14
Joined: Thu Apr 26, 2012 1:47 am

error when "make all"

Post by fretagi »

Hi I am new to nagios, please I need some assistance:

I am trying to install nagios on a solaris 10, so I downloaded the tarball, setup the pre-requisits for installing nagios, them extract nagios, and managed to run "./configure" with no errors at all.
But when running "make all" I have the following error at the very end of it:

Code: Select all

gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o xdowntime-base.o ../xdata/xdddefault.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE  -c  ../common/snprintf.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -o nagios nagios.c broker.o nebmods.o ../common/shared.o checks.o config.o commands.o events.o flapping.o logging.o macros-base.o netutils.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 -lsocket -lpthread -ldl -lrt -lsocket
gcc: ../common/snprintf.o: No such file or directory
nagios.c: In function `main':
nagios.c:651: warning: implicit declaration of function `asprintf'
*** Error code 1
make: Fatal error: Command failed for target `nagios'
Current working directory /usr/local/nagios/base
*** Error code 1
make: Fatal error: Command failed for target `all'
#
Please can you help?

FR
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: error when "make all"

Post by jsmurphy »

I've never seen that particular error before but I did find this:

http://www.mail-archive.com/nagios-user ... 20629.html

Basically the snprintf.o is in the base directory rather than the common directory and the solution suggested was to create a soft link in the common dir to the actual file in the base dir.
Locked