Compilation error for nagios core 3.0.6 on IBM Aix5.3
Posted: Wed Aug 31, 2011 10:46 am
Hi,
I am trying to compile nagios core 3.0.6 on IBM Aix5.3 operating system. But getting below error :
# make all
cd ./base && make
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c broker.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c nebmods.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c checks.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c config.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c commands.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c events.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c flapping.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c logging.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o macros-base.o ../common/macros.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c notifications.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c sehandlers.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o skiplist.o ../common/skiplist.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c utils.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o retention-base.o sretention.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o xretention-base.o ../xdata/xrddefault.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o comments-base.o ../common/comments.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o xcomments-base.o ../xdata/xcddefault.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o objects-base.o ../common/objects.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o xobjects-base.o ../xdata/xodtemplate.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o statusdata-base.o ../common/statusdata.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o xstatusdata-base.o ../xdata/xsddefault.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o perfdata-base.o perfdata.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o xperfdata-base.o ../xdata/xpddefault.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o downtime-base.o ../common/downtime.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o xdowntime-base.o ../xdata/xdddefault.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c ../common/snprintf.c
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 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 -Wl,-bexpall,-brtl -lm -lpthread -ldl
gcc: ../common/snprintf.o: A file or directory in the path name does not exist.
make: 1254-004 The error code from the last command is 1.
Stop.
make: 1254-004 The error code from the last command is 2.
Before that I did :
./configure --with-command-group=nagcmd
*** Configuration summary for nagios 3.0.6 12-01-2008 ***:
General Options:
-------------------------
Nagios executable: nagios
Nagios user/group: nagios,nagios
Command user/group: nagios,nagcmd
Embedded Perl: no
Event Broker: yes
Install ${prefix}: /usr/local/nagios
Lock file: ${prefix}/var/nagios.lock
Check result directory: ${prefix}/var/spool/checkresults
Init directory: /etc/rc.d/init.d
Apache conf.d directory: /etc/httpd/conf.d
Mail program: /usr/bin/mail
Host OS: aix5.3.0.0
Web Interface Options:
------------------------
HTML URL: http://localhost/nagios/
CGI URL: http://localhost/nagios/cgi-bin/
Traceroute (used by WAP): /usr/bin/traceroute
Review the options above for accuracy. If they look okay,
type 'make all' to compile the main program and CGIs.
I have installed all the prerequired rpm's, below is the list :
# rpm -qa
cdrecord-1.9-7
mkisofs-1.13-4
AIX-rpm-5.3.0.60-1
openssl-0.9.7l-1
unzip-5.51-1
vnc-3.3.3r2-3
gcc-4.2.0-3
zlib-1.2.3-5
freetype2-2.3.5-1
expat-2.0.1-3
expat-devel-2.0.1-3
fontconfig-2.5.0-1
libjpeg-6b-7
libpng-1.2.33-1
libXpm-3.5.7-1
gd-2.0.35-5
apache-1.3.27-2ssl
apache-devel-1.3.27-2ssl
apache-manual-1.3.27-2ssl
php-4.0.6-5ssl
php-devel-4.0.6-5
php-manual-4.0.6-5
bash-4.2-5
apr-1.4.5-1
apr-util-1.3.12-1
httpd-2.2.6-1
httpd-devel-2.2.6-1
httpd-manual-2.2.6-1
php-common-5.2.6-1
bzip2-1.0.4-1
info-4.12-1
wget-1.8.1-1
glib2-2.28.6-1
gettext-0.17-1
libidn-1.3-1
curl-7.17.1-1
t1lib-5.1.1-1
pcre-7.4-2
libxml2-2.6.31-1
php-5.2.6-1
php-cli-5.2.6-1
libgcc-4.2.0-3
libstdc++-4.2.0-3
libstdc++-devel-4.2.0-3
gcc-c++-4.2.0-3
#
Could you please suugest what's the issue is.
I am trying it from past 10 days but no use, please help me out.
Thanks & Regards
Rajesh
I am trying to compile nagios core 3.0.6 on IBM Aix5.3 operating system. But getting below error :
# make all
cd ./base && make
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c broker.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c nebmods.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c checks.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c config.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c commands.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c events.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c flapping.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c logging.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o macros-base.o ../common/macros.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c notifications.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c sehandlers.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o skiplist.o ../common/skiplist.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c utils.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o retention-base.o sretention.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o xretention-base.o ../xdata/xrddefault.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o comments-base.o ../common/comments.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o xcomments-base.o ../xdata/xcddefault.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o objects-base.o ../common/objects.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o xobjects-base.o ../xdata/xodtemplate.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o statusdata-base.o ../common/statusdata.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o xstatusdata-base.o ../xdata/xsddefault.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o perfdata-base.o perfdata.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o xperfdata-base.o ../xdata/xpddefault.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o downtime-base.o ../common/downtime.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o xdowntime-base.o ../xdata/xdddefault.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c ../common/snprintf.c
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 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 -Wl,-bexpall,-brtl -lm -lpthread -ldl
gcc: ../common/snprintf.o: A file or directory in the path name does not exist.
make: 1254-004 The error code from the last command is 1.
Stop.
make: 1254-004 The error code from the last command is 2.
Before that I did :
./configure --with-command-group=nagcmd
*** Configuration summary for nagios 3.0.6 12-01-2008 ***:
General Options:
-------------------------
Nagios executable: nagios
Nagios user/group: nagios,nagios
Command user/group: nagios,nagcmd
Embedded Perl: no
Event Broker: yes
Install ${prefix}: /usr/local/nagios
Lock file: ${prefix}/var/nagios.lock
Check result directory: ${prefix}/var/spool/checkresults
Init directory: /etc/rc.d/init.d
Apache conf.d directory: /etc/httpd/conf.d
Mail program: /usr/bin/mail
Host OS: aix5.3.0.0
Web Interface Options:
------------------------
HTML URL: http://localhost/nagios/
CGI URL: http://localhost/nagios/cgi-bin/
Traceroute (used by WAP): /usr/bin/traceroute
Review the options above for accuracy. If they look okay,
type 'make all' to compile the main program and CGIs.
I have installed all the prerequired rpm's, below is the list :
# rpm -qa
cdrecord-1.9-7
mkisofs-1.13-4
AIX-rpm-5.3.0.60-1
openssl-0.9.7l-1
unzip-5.51-1
vnc-3.3.3r2-3
gcc-4.2.0-3
zlib-1.2.3-5
freetype2-2.3.5-1
expat-2.0.1-3
expat-devel-2.0.1-3
fontconfig-2.5.0-1
libjpeg-6b-7
libpng-1.2.33-1
libXpm-3.5.7-1
gd-2.0.35-5
apache-1.3.27-2ssl
apache-devel-1.3.27-2ssl
apache-manual-1.3.27-2ssl
php-4.0.6-5ssl
php-devel-4.0.6-5
php-manual-4.0.6-5
bash-4.2-5
apr-1.4.5-1
apr-util-1.3.12-1
httpd-2.2.6-1
httpd-devel-2.2.6-1
httpd-manual-2.2.6-1
php-common-5.2.6-1
bzip2-1.0.4-1
info-4.12-1
wget-1.8.1-1
glib2-2.28.6-1
gettext-0.17-1
libidn-1.3-1
curl-7.17.1-1
t1lib-5.1.1-1
pcre-7.4-2
libxml2-2.6.31-1
php-5.2.6-1
php-cli-5.2.6-1
libgcc-4.2.0-3
libstdc++-4.2.0-3
libstdc++-devel-4.2.0-3
gcc-c++-4.2.0-3
#
Could you please suugest what's the issue is.
I am trying it from past 10 days but no use, please help me out.
Thanks & Regards
Rajesh