Mock Version: 1.2.15 Mock Version: 1.2.15 ENTER do(['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/nagios.spec'], chrootPath='/var/lib/mock/cloud7-openstack-common-el7-build-14671-20488/root'shell=FalseprintOutput=Falseenv={'LANG': 'en_GB', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=86400logger=uid=497) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/nagios.spec'] with env {'LANG': 'en_GB', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/nagios-4.0.8-2.el7.src.rpm Child return code was: 0 LEAVE do --> ENTER do(['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/nagios.spec '], chrootPath='/var/lib/mock/cloud7-openstack-common-el7-build-14671-20488/root'shell=Falseuid=497env={'LANG': 'en_GB', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=86400private_network=Truelogger=printOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/nagios.spec '] with env {'LANG': 'en_GB', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.lOoo9e + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf nagios-4.0.8 + /usr/bin/gzip -dc /builddir/build/SOURCES/nagios-4.0.8.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd nagios-4.0.8 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . Patch #1 (nagios-0001-daemon-init.patch): + echo 'Patch #1 (nagios-0001-daemon-init.patch):' + /usr/bin/cat /builddir/build/SOURCES/nagios-0001-daemon-init.patch + /usr/bin/patch -p1 -b --suffix .fedora --fuzz=0 patching file daemon-init.in + echo 'Patch #2 (nagios-0002-Fix-installation-of-httpd-conf.d-config-file.patch):' Patch #2 (nagios-0002-Fix-installation-of-httpd-conf.d-config-file.patch): + /usr/bin/cat /builddir/build/SOURCES/nagios-0002-Fix-installation-of-httpd-conf.d-config-file.patch + /usr/bin/patch -p1 -b --suffix .fix_httpd_conf_d --fuzz=0 patching file Makefile.in Hunk #1 succeeded at 293 (offset 9 lines). Patch #3 (nagios-0003-Install-config-files-too.patch): + echo 'Patch #3 (nagios-0003-Install-config-files-too.patch):' + /usr/bin/cat /builddir/build/SOURCES/nagios-0003-Install-config-files-too.patch + /usr/bin/patch -p0 -b --suffix .install_config --fuzz=0 patching file Makefile.in Patch #4 (nagios-0004-Fix-path-to-CGI-executables.patch): + echo 'Patch #4 (nagios-0004-Fix-path-to-CGI-executables.patch):' + /usr/bin/cat /builddir/build/SOURCES/nagios-0004-Fix-path-to-CGI-executables.patch + /usr/bin/patch -p1 -b --suffix .fix_path_to_cgi --fuzz=0 patching file sample-config/httpd.conf.in patching file subst.in + echo 'Patch #5 (nagios-0005-Fixed-path-to-passwd-file-in-Apache-s-config-file.patch):' Patch #5 (nagios-0005-Fixed-path-to-passwd-file-in-Apache-s-config-file.patch): + /usr/bin/cat /builddir/build/SOURCES/nagios-0005-Fixed-path-to-passwd-file-in-Apache-s-config-file.patch + /usr/bin/patch -p1 -b --suffix .fix_path_to_passwd --fuzz=0 patching file sample-config/httpd.conf.in Hunk #2 succeeded at 35 (offset -1 lines). + echo 'Patch #6 (nagios-0006-Added-several-images-to-the-sample-config-revb.patch):' Patch #6 (nagios-0006-Added-several-images-to-the-sample-config-revb.patch): + /usr/bin/cat /builddir/build/SOURCES/nagios-0006-Added-several-images-to-the-sample-config-revb.patch + /usr/bin/patch -p1 -b --suffix .more_images --fuzz=0 patching file sample-config/template-object/templates.cfg.in Hunk #1 succeeded at 115 (offset -2 lines). Hunk #2 succeeded at 133 (offset -2 lines). Patch #7 (nagios-0007-Apache-2.4-configuration-fix-for-Fedora-18.patch): + echo 'Patch #7 (nagios-0007-Apache-2.4-configuration-fix-for-Fedora-18.patch):' + /usr/bin/cat /builddir/build/SOURCES/nagios-0007-Apache-2.4-configuration-fix-for-Fedora-18.patch + /usr/bin/patch -p1 -b --suffix .httpd_conf --fuzz=0 patching file sample-config/httpd.conf.in Hunk #1 succeeded at 11 (offset -1 lines). Hunk #2 succeeded at 41 (offset -1 lines). Patch #8 (nagios-0008-Add-cfg_dir-etc-nagios-conf.d-to-the-main-nagios-con.patch): + echo 'Patch #8 (nagios-0008-Add-cfg_dir-etc-nagios-conf.d-to-the-main-nagios-con.patch):' + /usr/bin/cat /builddir/build/SOURCES/nagios-0008-Add-cfg_dir-etc-nagios-conf.d-to-the-main-nagios-con.patch + /usr/bin/patch -p1 -b --suffix .conf_d --fuzz=0 patching file sample-config/nagios.cfg.in Hunk #1 succeeded at 53 (offset -1 lines). + install -p -m 0644 /builddir/build/SOURCES/printer.png /builddir/build/SOURCES/router.png /builddir/build/SOURCES/switch.png html/images/logos/ + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Q2kzVA + umask 022 + cd /builddir/build/BUILD + cd nagios-4.0.8 + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + '[' 1 == 1 ']' + '[' x86_64 == ppc64le ']' ++ find . -name config.guess -o -name config.sub + for i in '$(find . -name config.guess -o -name config.sub)' ++ basename ./config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./config.guess ++ basename ./config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config.guess '/usr/lib/rpm/redhat/config.guess' -> './config.guess' + for i in '$(find . -name config.guess -o -name config.sub)' ++ basename ./tap/config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./tap/config.guess ++ basename ./tap/config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./tap/config.guess '/usr/lib/rpm/redhat/config.guess' -> './tap/config.guess' + for i in '$(find . -name config.guess -o -name config.sub)' ++ basename ./tap/config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./tap/config.sub ++ basename ./tap/config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./tap/config.sub '/usr/lib/rpm/redhat/config.sub' -> './tap/config.sub' + for i in '$(find . -name config.guess -o -name config.sub)' ++ basename ./config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./config.sub ++ basename ./config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub '/usr/lib/rpm/redhat/config.sub' -> './config.sub' + ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --prefix=/usr/share/nagios --exec-prefix=/var/lib/nagios --with-init-dir=/etc/rc.d/init.d --with-cgiurl=/nagios/cgi-bin/ --with-htmlurl=/nagios --with-lockfile=/var/run/nagios/nagios.pid --libdir=/usr/lib64/nagios --with-nagios-user=nagios --with-nagios-grp=nagios --bindir=/usr/sbin --libexecdir=/usr/lib64/nagios/plugins --sysconfdir=/etc/nagios --localstatedir=/var/log/nagios --datadir=/usr/share/nagios/html --with-gd-lib=/usr/lib64 --with-gd-inc=/usr/include --with-template-objects --with-template-extinfo STRIP=/bin/true checking for a BSD-compatible install... /usr/bin/install -c checking build system type... x86_64-redhat-linux-gnu checking host system type... x86_64-redhat-linux-gnu checking for x86_64-redhat-linux-gnu-gcc... no checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether make sets $(MAKE)... yes checking for strip... /bin/true checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking whether time.h and sys/time.h may both be included... yes checking for sys/wait.h that is POSIX.1 compatible... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking ctype.h usability... yes checking ctype.h presence... yes checking for ctype.h... yes checking dirent.h usability... yes checking dirent.h presence... yes checking for dirent.h... yes checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking getopt.h usability... yes checking getopt.h presence... yes checking for getopt.h... yes checking grp.h usability... yes checking grp.h presence... yes checking for grp.h... yes checking libgen.h usability... yes checking libgen.h presence... yes checking for libgen.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking math.h usability... yes checking math.h presence... yes checking for math.h... yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking pwd.h usability... yes checking pwd.h presence... yes checking for pwd.h... yes checking regex.h usability... yes checking regex.h presence... yes checking for regex.h... yes checking signal.h usability... yes checking signal.h presence... yes checking for signal.h... yes checking socket.h usability... no checking socket.h presence... no checking for socket.h... no checking stdarg.h usability... yes checking stdarg.h presence... yes checking for stdarg.h... yes checking for string.h... (cached) yes checking for strings.h... (cached) yes checking sys/mman.h usability... yes checking sys/mman.h presence... yes checking for sys/mman.h... yes checking for sys/types.h... (cached) yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking sys/resource.h usability... yes checking sys/resource.h presence... yes checking for sys/resource.h... yes checking for sys/wait.h... (cached) yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking for sys/stat.h... (cached) yes checking sys/timeb.h usability... yes checking sys/timeb.h presence... yes checking for sys/timeb.h... yes checking sys/un.h usability... yes checking sys/un.h presence... yes checking for sys/un.h... yes checking sys/ipc.h usability... yes checking sys/ipc.h presence... yes checking for sys/ipc.h... yes checking sys/msg.h usability... yes checking sys/msg.h presence... yes checking for sys/msg.h... yes checking sys/poll.h usability... yes checking sys/poll.h presence... yes checking for sys/poll.h... yes checking syslog.h usability... yes checking syslog.h presence... yes checking for syslog.h... yes checking uio.h usability... no checking uio.h presence... no checking for uio.h... no checking for unistd.h... (cached) yes checking locale.h usability... yes checking locale.h presence... yes checking for locale.h... yes checking wchar.h usability... yes checking wchar.h presence... yes checking for wchar.h... yes checking for an ANSI C-conforming const... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for struct tm.tm_zone... yes checking for mode_t... yes checking for pid_t... yes checking for size_t... yes checking return type of signal handlers... void checking for uid_t in sys/types.h... yes checking type of array argument to getgroups... gid_t checking for va_copy... yes checking for vsnprintf... yes checking for snprintf... yes checking for asprintf... yes checking for vasprintf... yes checking for C99 vsnprintf... yes checking for library containing getservbyname... none required checking for library containing connect... none required checking for initgroups... yes checking for setenv... yes checking for strdup... yes checking for strstr... yes checking for strtoul... yes checking for unsetenv... yes checking for type of socket size... size_t checking for library containing nanosleep... none required checking for mail... /usr/bin/mail checking for glibc at least version 2.4... yes checking sys/epoll.h usability... yes checking sys/epoll.h presence... yes checking for sys/epoll.h... yes checking sys/select.h usability... yes checking sys/select.h presence... yes checking for sys/select.h... yes checking for main in -liconv... no checking for gdImagePng in -lgd (order 1)... no checking for gdImagePng in -lgd (order 2)... yes GD library was found! checking for gdImageCreateTrueColor in -lgd... yes checking ltdl.h usability... no checking ltdl.h presence... no checking for ltdl.h... no checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for dlopen in -ldl... yes checking for extra flags needed to export symbols... -Wl,-export-dynamic checking for linker flags for loadable modules... -shared checking for traceroute... no checking for type va_list... yes checking for perl... /usr/bin/perl configure: creating ./config.status config.status: creating Makefile config.status: creating lib/Makefile config.status: creating subst config.status: creating pkginfo config.status: creating base/Makefile config.status: creating common/Makefile config.status: creating contrib/Makefile config.status: creating cgi/Makefile config.status: creating html/Makefile config.status: creating module/Makefile config.status: creating worker/Makefile config.status: creating worker/ping/Makefile config.status: creating xdata/Makefile config.status: creating daemon-init config.status: creating t/Makefile config.status: creating t-tap/Makefile config.status: creating include/config.h config.status: creating lib/snprintf.h config.status: creating lib/iobroker.h Creating sample config files in sample-config/ ... *** Configuration summary for nagios 4.0.8 08-12-2014 ***: General Options: ------------------------- Nagios executable: nagios Nagios user/group: nagios,nagios Command user/group: nagios,nagios Event Broker: yes Install ${prefix}: /usr/share/nagios Install ${includedir}: /usr/include Lock file: /var/run/nagios/nagios.pid Check result directory: /var/log/nagios/spool/checkresults Init directory: /etc/rc.d/init.d Apache conf.d directory: /etc/httpd/conf.d Mail program: /usr/bin/mail Host OS: linux-gnu IOBroker Method: epoll Web Interface Options: ------------------------ HTML URL: http://localhost/nagios/ CGI URL: http://localhost/nagios/cgi-bin// Traceroute (used by WAP): Review the options above for accuracy. If they look okay, type 'make all' to compile the main program and CGIs. + make -j16 all cd ./base && make make[1]: Entering directory `/builddir/build/BUILD/nagios-4.0.8/base' gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCORE -c -o nagios.o nagios.c gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCORE -c -o broker.o broker.c gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCORE -c -o nebmods.o nebmods.c gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCORE -c -o ../common/shared.o ../common/shared.c gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCORE -c -o nerd.o nerd.c gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCORE -c -o query-handler.o query-handler.c gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCORE -c -o workers.o workers.c gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCORE -c -o checks.o checks.c gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCORE -c -o config.o config.c gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCORE -c -o commands.o commands.c gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCORE -c -o events.o events.c gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCORE -c -o flapping.o flapping.c gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCORE -c -o logging.o logging.c gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCORE -c -o macros-base.o ../common/macros.c gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCORE -c -o netutils.o netutils.c gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCORE -c -o notifications.o notifications.c nagios.c: In function 'main': nagios.c:583:12: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&mac->x[MACRO_PROCESSSTARTTIME], "%lu", (unsigned long)program_start); ^ nagios.c:798:12: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&mac->x[MACRO_EVENTSTARTTIME], "%lu", (unsigned long)event_start); ^ nagios.c: In function 'nagios_core_worker': nagios.c:176:7: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read(sd, response + 3, sizeof(response) - 4); ^ nagios.c: In function 'test_path_access': nagios.c:122:11: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&path, "%s/%s", p, program); ^ flapping.c: In function 'set_service_flap': flapping.c:312:10: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "Notifications for this service are being suppressed because it was detected as having been flapping between different states (%2.1f%% change >= %2.1f%% threshold). When the service state stabilizes and the flapping stops, notifications will be re-enabled.", percent_change, high_threshold); ^ query-handler.c: In function 'qh_echo': query-handler.c:32:2: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] (void)write(sd, buf, len); ^ logging.c: In function 'log_service_event': logging.c:248:10: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "SERVICE ALERT: %s;%s;%s;%s;%d;%s\n", ^ flapping.c: In function 'set_host_flap': flapping.c:393:10: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "Notifications for this host are being suppressed because it was detected as having been flapping between different states (%2.1f%% change > %2.1f%% threshold). When the host state stabilizes and the flapping stops, notifications will be re-enabled.", percent_change, high_threshold); ^ nerd.c: In function 'chan_opath_checks': logging.c: In function 'log_host_event': logging.c:275:10: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "HOST ALERT: %s;%s;%s;%d;%s\n", ^ nerd.c:340:10: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&buf, "%lu|%s|M|%s/%s|%06X\n", cr->finish_time.tv_sec, ^ logging.c: In function 'log_host_states': logging.c:301:11: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "%s HOST STATE: %s;%s;%s;%d;%s\n", (type == INITIAL_STATES) ? "INITIAL" : "CURRENT", ^ logging.c: In function 'log_service_states': logging.c:333:11: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "%s SERVICE STATE: %s;%s;%s;%s;%d;%s\n", ^ logging.c: In function 'rotate_log_file': logging.c:387:10: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&log_archive, "%s%snagios-%02d-%02d-%d-%02d.log", log_archive_path, (log_archive_path[strlen(log_archive_path) - 1] == '/') ? "" : "/", t->tm_mon + 1, t->tm_mday, t->tm_year + 1900, t->tm_hour); ^ logging.c:411:10: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "LOG ROTATION: %s\n", method_string); ^ logging.c:420:8: warning: ignoring return value of 'chown', declared with attribute warn_unused_result [-Wunused-result] chown(log_file, log_file_stat.st_uid, log_file_stat.st_gid); ^ logging.c: In function 'write_log_file_info': logging.c:441:10: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "LOG VERSION: %s\n", LOG_VERSION_2); ^ logging.c: In function 'log_debug_info': logging.c:515:11: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&tmppath, "%s.old", debug_file); ^ notifications.c: In function 'service_notification': notifications.c:214:11: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&mac.x[MACRO_SERVICENOTIFICATIONNUMBER], "%d", svc->current_notification_number); ^ notifications.c:220:11: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&mac.x[MACRO_SERVICENOTIFICATIONID], "%lu", svc->current_notification_id); ^ notifications.c: In function 'notify_contact_of_service': notifications.c:769:14: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "SERVICE NOTIFICATION: %s;%s;%s;CUSTOM ($SERVICESTATE$);%s;$SERVICEOUTPUT$;$NOTIFICATIONAUTHOR$;$NOTIFICATIONCOMMENT$\n", cntct->name, svc->host_name, svc->description, command_name_ptr); ^ notifications.c:772:14: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "SERVICE NOTIFICATION: %s;%s;%s;ACKNOWLEDGEMENT ($SERVICESTATE$);%s;$SERVICEOUTPUT$;$NOTIFICATIONAUTHOR$;$NOTIFICATIONCOMMENT$\n", cntct->name, svc->host_name, svc->description, command_name_ptr); ^ notifications.c:775:14: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "SERVICE NOTIFICATION: %s;%s;%s;FLAPPINGSTART ($SERVICESTATE$);%s;$SERVICEOUTPUT$\n", cntct->name, svc->host_name, svc->description, command_name_ptr); ^ notifications.c:778:14: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "SERVICE NOTIFICATION: %s;%s;%s;FLAPPINGSTOP ($SERVICESTATE$);%s;$SERVICEOUTPUT$\n", cntct->name, svc->host_name, svc->description, command_name_ptr); ^ notifications.c:781:14: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "SERVICE NOTIFICATION: %s;%s;%s;FLAPPINGDISABLED ($SERVICESTATE$);%s;$SERVICEOUTPUT$\n", cntct->name, svc->host_name, svc->description, command_name_ptr); ^ notifications.c:784:14: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "SERVICE NOTIFICATION: %s;%s;%s;DOWNTIMESTART ($SERVICESTATE$);%s;$SERVICEOUTPUT$\n", cntct->name, svc->host_name, svc->description, command_name_ptr); ^ notifications.c:787:14: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "SERVICE NOTIFICATION: %s;%s;%s;DOWNTIMEEND ($SERVICESTATE$);%s;$SERVICEOUTPUT$\n", cntct->name, svc->host_name, svc->description, command_name_ptr); ^ notifications.c:790:14: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "SERVICE NOTIFICATION: %s;%s;%s;DOWNTIMECANCELLED ($SERVICESTATE$);%s;$SERVICEOUTPUT$\n", cntct->name, svc->host_name, svc->description, command_name_ptr); ^ notifications.c:793:14: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "SERVICE NOTIFICATION: %s;%s;%s;$SERVICESTATE$;%s;$SERVICEOUTPUT$\n", cntct->name, svc->host_name, svc->description, command_name_ptr); ^ workers.c: In function 'handle_worker_result': workers.c:675:12: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_reason, "timed out after %.2fs", tv_delta_f(&wpres.start, &wpres.stop)); ^ workers.c:678:12: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_reason, "died by signal %d%s after %.2f seconds", ^ checks.c: In function 'get_service_check_return_code': workers.c:684:12: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_reason, "is a non-check helper but exited with return code %d", ^ checks.c:347:12: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_service->plugin_output, "(Service check timed out after %.2lf seconds)", temp_service->execution_time); ^ notifications.c: In function 'host_notification': checks.c:373:12: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_plugin_output, "\x73\x6f\x69\x67\x61\x6e\x20\x74\x68\x67\x69\x72\x79\x70\x6f\x63\x20\x6e\x61\x68\x74\x65\x20\x64\x61\x74\x73\x6c\x61\x67"); ^ checks.c:375:12: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_service->plugin_output, "(Return code of %d is out of bounds%s)", queued_check_result->return_code, (queued_check_result->return_code == 126 ? " - plugin may not be executable" : (queued_check_result->return_code == 127 ? " - plugin may be missing" : ""))); ^ notifications.c:1159:11: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&mac.x[MACRO_HOSTNOTIFICATIONNUMBER], "%d", hst->current_notification_number); ^ notifications.c:1165:11: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&mac.x[MACRO_HOSTNOTIFICATIONID], "%lu", hst->current_notification_id); ^ notifications.c: In function 'notify_contact_of_host': notifications.c:1666:14: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "HOST NOTIFICATION: %s;%s;CUSTOM ($HOSTSTATE$);%s;$HOSTOUTPUT$;$NOTIFICATIONAUTHOR$;$NOTIFICATIONCOMMENT$\n", cntct->name, hst->name, command_name_ptr); ^ workers.c: In function 'handle_worker_check': workers.c:461:11: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&cr->output, "(No output on stdout) stderr: %s", wpres->outerr); ^ notifications.c:1669:14: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "HOST NOTIFICATION: %s;%s;ACKNOWLEDGEMENT ($HOSTSTATE$);%s;$HOSTOUTPUT$;$NOTIFICATIONAUTHOR$;$NOTIFICATIONCOMMENT$\n", cntct->name, hst->name, command_name_ptr); ^ notifications.c:1672:14: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "HOST NOTIFICATION: %s;%s;FLAPPINGSTART ($HOSTSTATE$);%s;$HOSTOUTPUT$\n", cntct->name, hst->name, command_name_ptr); ^ notifications.c:1675:14: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "HOST NOTIFICATION: %s;%s;FLAPPINGSTOP ($HOSTSTATE$);%s;$HOSTOUTPUT$\n", cntct->name, hst->name, command_name_ptr); ^ notifications.c:1678:14: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "HOST NOTIFICATION: %s;%s;FLAPPINGDISABLED ($HOSTSTATE$);%s;$HOSTOUTPUT$\n", cntct->name, hst->name, command_name_ptr); ^ notifications.c:1681:14: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "HOST NOTIFICATION: %s;%s;DOWNTIMESTART ($HOSTSTATE$);%s;$HOSTOUTPUT$\n", cntct->name, hst->name, command_name_ptr); ^ notifications.c:1684:14: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "HOST NOTIFICATION: %s;%s;DOWNTIMEEND ($HOSTSTATE$);%s;$HOSTOUTPUT$\n", cntct->name, hst->name, command_name_ptr); ^ notifications.c:1687:14: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "HOST NOTIFICATION: %s;%s;DOWNTIMECANCELLED ($HOSTSTATE$);%s;$HOSTOUTPUT$\n", cntct->name, hst->name, command_name_ptr); ^ notifications.c:1690:14: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "HOST NOTIFICATION: %s;%s;$HOSTSTATE$;%s;$HOSTOUTPUT$\n", cntct->name, hst->name, command_name_ptr); ^ checks.c: In function 'get_host_check_return_code': checks.c:2178:12: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_host->plugin_output, "(Host check timed out after %.2lf seconds)", temp_host->execution_time); ^ checks.c:2205:12: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_host->plugin_output, "(Return code of %d is out of bounds%s)", queued_check_result->return_code, (queued_check_result->return_code == 126 || queued_check_result->return_code == 127) ? " - plugin may be missing" : ""); ^ gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCORE -c -o sehandlers.o sehandlers.c gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCORE -c -o utils.o utils.c commands.c: In function 'process_passive_service_check': commands.c:2247:12: warning: assignment discards 'const' qualifier from pointer target type [enabled by default] cr.source = command_worker.source_name; ^ commands.c: In function 'process_passive_host_check': commands.c:2339:12: warning: assignment discards 'const' qualifier from pointer target type [enabled by default] cr.source = command_worker.source_name; ^ commands.c: In function 'launch_command_file_worker': commands.c:285:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] (void)chdir("/tmp"); ^ commands.c:286:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] (void)chdir("nagios-cfw"); ^ commands.c: In function 'process_external_command1': commands.c:873:10: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "EXTERNAL COMMAND: %s;%s\n", command_id, args); ^ ../common/macros.c: In function 'grab_macrox_value_r': ../common/macros.c:1181:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&mac->x[MACRO_TOTALHOSTSUP], "%d", hosts_up); ^ ../common/macros.c:1182:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&mac->x[MACRO_TOTALHOSTSDOWN], "%d", hosts_down); ^ ../common/macros.c:1183:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&mac->x[MACRO_TOTALHOSTSUNREACHABLE], "%d", hosts_unreachable); ^ ../common/macros.c:1184:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&mac->x[MACRO_TOTALHOSTSDOWNUNHANDLED], "%d", hosts_down_unhandled); ^ ../common/macros.c:1185:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&mac->x[MACRO_TOTALHOSTSUNREACHABLEUNHANDLED], "%d", hosts_unreachable_unhandled); ^ ../common/macros.c:1186:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&mac->x[MACRO_TOTALHOSTPROBLEMS], "%d", host_problems); ^ ../common/macros.c:1187:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&mac->x[MACRO_TOTALHOSTPROBLEMSUNHANDLED], "%d", host_problems_unhandled); ^ ../common/macros.c:1188:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&mac->x[MACRO_TOTALSERVICESOK], "%d", services_ok); ^ ../common/macros.c:1189:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&mac->x[MACRO_TOTALSERVICESWARNING], "%d", services_warning); ^ ../common/macros.c:1190:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&mac->x[MACRO_TOTALSERVICESCRITICAL], "%d", services_critical); ^ ../common/macros.c:1191:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&mac->x[MACRO_TOTALSERVICESUNKNOWN], "%d", services_unknown); ^ ../common/macros.c:1192:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&mac->x[MACRO_TOTALSERVICESWARNINGUNHANDLED], "%d", services_warning_unhandled); ^ ../common/macros.c:1193:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&mac->x[MACRO_TOTALSERVICESCRITICALUNHANDLED], "%d", services_critical_unhandled); ^ ../common/macros.c:1194:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&mac->x[MACRO_TOTALSERVICESUNKNOWNUNHANDLED], "%d", services_unknown_unhandled); ^ ../common/macros.c:1195:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&mac->x[MACRO_TOTALSERVICEPROBLEMS], "%d", service_problems); ^ ../common/macros.c:1196:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&mac->x[MACRO_TOTALSERVICEPROBLEMSUNHANDLED], "%d", service_problems_unhandled); ^ ../common/macros.c: In function 'grab_standard_host_macro_r': ../common/macros.c:1686:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&buf1, "%s%s%s", (buf2) ? buf2 : "", (buf2) ? "," : "", temp_hostgroup->group_name); ^ ../common/macros.c: In function 'grab_standard_service_macro_r': ../common/macros.c:2066:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&buf1, "%s%s%s", (buf2) ? buf2 : "", (buf2) ? "," : "", temp_servicegroup->group_name); ^ ../common/macros.c: In function 'grab_standard_contact_macro_r': ../common/macros.c:2259:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&buf1, "%s%s%s", (buf2) ? buf2 : "", (buf2) ? "," : "", temp_contactgroup->group_name); ^ ../common/macros.c: In function 'set_argv_macro_environment_vars_r': ../common/macros.c:3045:11: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(¯o_name, "ARG%d", x + 1); ^ ../common/macros.c: In function 'set_custom_macro_environment_vars_r': ../common/macros.c:3070:12: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&customvarname, "_HOST%s", temp_customvariablesmember->variable_name); ^ ../common/macros.c:3084:12: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&customvarname, "_SERVICE%s", temp_customvariablesmember->variable_name); ^ ../common/macros.c:3097:12: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&customvarname, "_CONTACT%s", temp_customvariablesmember->variable_name); ^ ../common/macros.c: In function 'set_contact_address_environment_vars_r': ../common/macros.c:3124:11: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&varname, "CONTACTADDRESS%d", x); ^ ../common/macros.c: In function 'set_macro_environment_var': ../common/macros.c:3146:10: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&env_macro_name, "%s%s", MACRO_ENV_VAR_PREFIX, name); ^ ../common/macros.c: In function 'add_macrox_environment_vars_r': ../common/macros.c:3230:11: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&envname, "%s%s", MACRO_ENV_VAR_PREFIX, macro_x_names[x]); ^ ../common/macros.c: In function 'add_argv_macro_environment_vars_r': config.c: In function 'read_main_config_file': ../common/macros.c:3251:11: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(¯o_name, "%sARG%d", MACRO_ENV_VAR_PREFIX, x + 1); ^ config.c:140:12: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "NULL variable"); ^ config.c:145:12: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "malloc() error"); ^ config.c:152:12: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "NULL value"); ^ config.c:157:12: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "malloc() error"); ^ config.c:189:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Log file is too long"); ^ config.c:208:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Debug log file is too long"); ^ config.c:223:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Command file is too long"); ^ ../common/macros.c: In function 'add_custom_macro_environment_vars_r': config.c:248:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Check result path is too long"); ^ config.c:260:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Check result path '%s' is not a valid directory", check_result_path); ^ config.c:274:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Lock file is too long"); ^ config.c:330:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for use_syslog"); ^ config.c:341:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for log_notifications"); ^ config.c:352:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for log_service_retries"); ^ config.c:363:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for log_host_retries"); ^ config.c:374:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for log_event_handlers"); ^ ../common/macros.c:3278:12: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&customvarname, "%s_HOST%s", MACRO_ENV_VAR_PREFIX, ^ config.c:385:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for log_external_commands"); ^ config.c:396:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for log_passive_checks"); ^ config.c:407:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for log_initial_states"); ^ config.c:418:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for log_current_states"); ^ config.c:429:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for retain_state_information"); ^ config.c:441:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for retention_update_interval"); ^ config.c:450:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for use_retained_program_state"); ^ ../common/macros.c:3310:12: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&customvarname, "%s_SERVICE%s", MACRO_ENV_VAR_PREFIX, ^ config.c:461:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for use_retained_scheduling_info"); ^ config.c:474:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for retention_scheduling_horizon"); ^ config.c:504:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for obsess_over_services"); ^ config.c:515:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for obsess_over_hosts"); ^ config.c:526:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for translate_passive_host_checks"); ^ config.c:542:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for service_check_timeout"); ^ ../common/macros.c:3342:12: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&customvarname, "%s_CONTACT%s", MACRO_ENV_VAR_PREFIX, ^ config.c:560:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message,"Illegal value for service_check_timeout_state"); ^ config.c:571:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for host_check_timeout"); ^ config.c:582:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for event_handler_timeout"); ^ ../common/macros.c: In function 'add_contact_address_environment_vars_r': config.c:593:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for notification_timeout"); ^ config.c:604:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for ocsp_timeout"); ^ config.c:615:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for ochp_timeout"); ^ config.c:624:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for use_aggressive_host_checking"); ^ config.c:646:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for soft_state_dependencies"); ^ ../common/macros.c:3387:11: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&varname, "%sCONTACTADDRESS%d", MACRO_ENV_VAR_PREFIX, x); ^ config.c:666:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for log_rotation_method"); ^ config.c:675:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Log archive path too long"); ^ config.c:713:14: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for service_inter_check_delay_method"); ^ gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCORE -c -o retention-base.o sretention.c gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCORE -c -o xretention-base.o ../xdata/xrddefault.c gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCORE -c -o comments-base.o ../common/comments.c gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCORE -c -o xcomments-base.o ../xdata/xcddefault.c gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCORE -c -o objects-base.o ../common/objects.c gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCORE -c -o xobjects-base.o ../xdata/xodtemplate.c config.c:724:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for max_service_check_spread"); ^ config.c:742:14: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for host_inter_check_delay_method"); ^ config.c:753:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for max_host_check_spread"); ^ config.c:774:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for max_concurrent_checks"); ^ config.c:784:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for check_result_reaper_frequency"); ^ config.c:794:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for max_check_result_reaper_time"); ^ config.c:808:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for interval_length"); ^ config.c:817:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for check_external_commands"); ^ config.c:833:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for check_for_orphaned_services"); ^ config.c:844:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for check_for_orphaned_hosts"); ^ config.c:855:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for check_service_freshness"); ^ config.c:866:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for check_host_freshness"); ^ config.c:878:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for service_freshness_check_interval"); ^ config.c:888:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for host_freshness_check_interval"); ^ config.c:896:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for auto_reschedule_checks"); ^ config.c:908:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for auto_rescheduling_interval"); ^ config.c:918:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for auto_rescheduling_window"); ^ config.c:928:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for status_update_interval"); ^ config.c:939:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for time_change_threshold"); ^ config.c:958:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for low_service_flap_threshold"); ^ config.c:968:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for high_service_flap_threshold"); ^ config.c:978:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for low_host_flap_threshold"); ^ config.c:988:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for high_host_flap_threshold"); ^ config.c:1050:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for daemon_dumps_core"); ^ config.c:1061:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "Illegal value for use_large_installation_tweaks "); ^ config.c:1174:12: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&error_message, "UNKNOWN VARIABLE"); ^ config.c: In function 'obsoleted_warning': config.c:81:10: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&buf, "Warning: %s is deprecated and will be removed.%s%s\n", ^ config.c: In function 'pre_flight_check': config.c:1454:10: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&buf, "%s/nagiosXXXXXX", temp_path); ^ config.c:1466:10: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&buf, "%s/nagiosXXXXXX", check_result_path); ^ sehandlers.c: In function 'run_global_service_event_handler': sehandlers.c:263:11: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&raw_logentry, "GLOBAL SERVICE EVENT HANDLER: %s;%s;$SERVICESTATE$;$SERVICESTATETYPE$;$SERVICEATTEMPT$;%s\n", svc->host_name, svc->description, global_service_event_handler); ^ sehandlers.c: In function 'run_service_event_handler': sehandlers.c:363:11: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&raw_logentry, "SERVICE EVENT HANDLER: %s;%s;$SERVICESTATE$;$SERVICESTATETYPE$;$SERVICEATTEMPT$;%s\n", svc->host_name, svc->description, svc->event_handler); ^ sehandlers.c: In function 'run_global_host_event_handler': sehandlers.c:507:11: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&raw_logentry, "GLOBAL HOST EVENT HANDLER: %s;$HOSTSTATE$;$HOSTSTATETYPE$;$HOSTATTEMPT$;%s\n", hst->name, global_host_event_handler); ^ sehandlers.c: In function 'run_host_event_handler': sehandlers.c:605:11: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&raw_logentry, "HOST EVENT HANDLER: %s;$HOSTSTATE$;$HOSTSTATETYPE$;$HOSTATTEMPT$;%s\n", hst->name, hst->event_handler); ^ gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCORE -c -o statusdata-base.o ../common/statusdata.c gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCORE -c -o xstatusdata-base.o ../xdata/xsddefault.c utils.c: In function 'my_system_r': utils.c:531:6: warning: ignoring return value of 'pipe', declared with attribute warn_unused_result [-Wunused-result] pipe(fd); ^ utils.c:599:9: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fd[1], buffer, strlen(buffer) + 1); ^ utils.c:607:10: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fd[1], buffer, strlen(buffer)); ^ gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCORE -c -o perfdata-base.o perfdata.c utils.c: In function 'daemon_init': utils.c:1796:8: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(homedir); ^ utils.c:1798:8: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir("/"); ^ utils.c:1886:11: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate(lockfile, 0); ^ utils.c:1888:7: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(lockfile, buf, strlen(buf)); ^ utils.c: In function 'process_check_result_queue': utils.c:2063:12: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "%s.ok", file); ^ utils.c: In function 'delete_check_result_file': utils.c:2289:10: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "%s.ok", fname); ^ utils.c: In function 'query_update_api': utils.c:3104:11: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&api_query_opts, "&firstcheck=1"); ^ utils.c:3107:12: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&qopts2, "%s&last_version=%s", api_query_opts, last_program_version); ^ utils.c:3114:10: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&api_query, "v=1&product=nagios&tinycheck=1&stableonly=1&uid=%lu", update_uid); ^ utils.c:3117:11: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&api_query2, "%s&version=%s%s", api_query, PROGRAM_VERSION, (api_query_opts == NULL) ? "" : api_query_opts); ^ utils.c:3123:10: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&buf, ^ ../xdata/xrddefault.c: In function 'xrddefault_save_state_information': ../xdata/xrddefault.c:112:10: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&tmp_file, "%sXXXXXX", temp_file); ^ ../xdata/xsddefault.c: In function 'xsddefault_save_status_data': ../xdata/xsddefault.c:134:10: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&tmp_log, "%sXXXXXX", temp_file); ^ gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCORE -c -o xperfdata-base.o ../xdata/xpddefault.c gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCORE -c -o downtime-base.o ../common/downtime.c make -C ../lib make[2]: Entering directory `/builddir/build/BUILD/nagios-4.0.8/lib' gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCORE -DHAVE_CONFIG_H -c squeue.c -o squeue.o gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCORE -DHAVE_CONFIG_H -c kvvec.c -o kvvec.o gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCORE -DHAVE_CONFIG_H -c iocache.c -o iocache.o gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCORE -DHAVE_CONFIG_H -c iobroker.c -o iobroker.o gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCORE -DHAVE_CONFIG_H -c bitmap.c -o bitmap.o ../common/downtime.c: In function 'register_downtime': ../common/downtime.c:439:11: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "This %s has been scheduled for fixed downtime from %s to %s. Notifications for the %s will not be sent out during that time period.", type_string, start_time_string, end_time_string, type_string); ^ ../common/downtime.c:441:11: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp_buffer, "This %s has been scheduled for flexible downtime starting between %s and %s and lasting for a period of %d hours and %d minutes. Notifications for the %s will not be sent out during that time period.", type_string, start_time_string, end_time_string, hours, minutes, type_string); ^ utils.c: In function '_get_matching_timerange': utils.c:1117:6: warning: assuming signed overflow does not occur when assuming that (X + c) >= X is always true [-Wstrict-overflow] if((midnight + 84800 >= start_time && (midnight <= end_time || start_time > end_time)) || (midnight <= end_time && start_time > end_time)) { ^ gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCORE -DHAVE_CONFIG_H -c dkhash.c -o dkhash.o gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCORE -DHAVE_CONFIG_H -c runcmd.c -o runcmd.o gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCORE -DHAVE_CONFIG_H -c nsutils.c -o nsutils.o gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCORE -DHAVE_CONFIG_H -c fanout.c -o fanout.o gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCORE -DHAVE_CONFIG_H -c pqueue.c -o pqueue.o gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCORE -DHAVE_CONFIG_H -c worker.c -o worker.o gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCORE -DHAVE_CONFIG_H -c skiplist.c -o skiplist.o gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCORE -DHAVE_CONFIG_H -c nsock.c -o nsock.o gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCORE -DHAVE_CONFIG_H -c nspath.c -o nspath.o worker.c: In function 'enter_worker': worker.c:732:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] (void)chdir("/tmp"); ^ worker.c:733:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] (void)chdir("nagios-workers"); ^ ../xdata/xodtemplate.c: In function 'xodtemplate_read_config_data': ../xdata/xodtemplate.c:303:14: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&cfgfile, "%s/%s", config_base_dir, val); ^ ../xdata/xodtemplate.c:322:14: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&cfgfile, "%s/%s", config_base_dir, val); ^ ar cr libnagios.a squeue.o kvvec.o iocache.o iobroker.o bitmap.o dkhash.o runcmd.o nsutils.o fanout.o pqueue.o worker.o skiplist.o nsock.o nspath.o make[2]: Leaving directory `/builddir/build/BUILD/nagios-4.0.8/lib' gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCORE -o nagiostats nagiostats.c -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L/usr/lib64 -lm ../lib/libnagios.a gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCORE -o nagios nagios.o broker.o nebmods.o ../common/shared.o nerd.o query-handler.o workers.o checks.o config.o commands.o events.o flapping.o logging.o macros-base.o netutils.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 -Wl,-export-dynamic -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L/usr/lib64 -lm -ldl ../lib/libnagios.a make[1]: Leaving directory `/builddir/build/BUILD/nagios-4.0.8/base' cd ./cgi && make make[1]: Entering directory `/builddir/build/BUILD/nagios-4.0.8/cgi' gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCGI -c -o getcgi.o getcgi.c gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCGI -c -o cgiutils.o cgiutils.c gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCGI -c -o cgiauth.o cgiauth.c gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCGI -c -o macros-cgi.o ../common/macros.c gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCGI -c -o objects-cgi.o ../common/objects.c gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCGI -c -o xobjects-cgi.o ../xdata/xodtemplate.c gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCGI -c -o statusdata-cgi.o ../common/statusdata.c gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCGI -c -o xstatusdata-cgi.o ../xdata/xsddefault.c gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCGI -c -o comments-cgi.o ../common/comments.c gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCGI -c -o downtime-cgi.o ../common/downtime.c gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCGI -DJSON_NAGIOS_4X -c -o archiveutils.o archiveutils.c gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCGI -DJSON_NAGIOS_4X -c -o jsonutils.o jsonutils.c gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCGI -c -o extcmd_list.o extcmd_list.c ../common/statusdata.c: In function 'add_host_status': ../common/statusdata.c:287:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&new_hoststatus->plugin_output, "Host check scheduled for %s", date_string); ^ ../common/statusdata.c:293:14: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&new_hoststatus->plugin_output, "Forced host check scheduled for %s", date_string); ^ ../common/statusdata.c: In function 'add_service_status': ../common/statusdata.c:359:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&new_svcstatus->plugin_output, "Service check scheduled for %s", date_string); ^ ../common/statusdata.c:365:14: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&new_svcstatus->plugin_output, "Forced service check scheduled for %s", date_string); ^ ../common/downtime.c:194:13: warning: 'downtime_remove' defined but not used [-Wunused-function] static void downtime_remove(scheduled_downtime *dt) ^ jsonutils.c: In function 'json_object_append_string': jsonutils.c:525:3: warning: second parameter of 'va_start' not last named argument [-Wvarargs] va_start(a_list, escaped_format); ^ gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCGI -DJSON_NAGIOS_4X -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L/usr/lib64 -o archivejson.cgi archivejson.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o ../lib/libnagios.a archiveutils.o jsonutils.o gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCGI -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L/usr/lib64 -o avail.cgi avail.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o ../lib/libnagios.a gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCGI -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L/usr/lib64 -o cmd.cgi cmd.c extcmd_list.o ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o ../lib/libnagios.a gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCGI -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L/usr/lib64 -o config.cgi config.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o ../lib/libnagios.a gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCGI -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L/usr/lib64 -o extinfo.cgi extinfo.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o ../lib/libnagios.a gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCGI -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L/usr/lib64 -o history.cgi history.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o ../lib/libnagios.a gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCGI -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L/usr/lib64 -o notifications.cgi notifications.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o ../lib/libnagios.a gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCGI -DJSON_NAGIOS_4X -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L/usr/lib64 -o objectjson.cgi objectjson.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o ../lib/libnagios.a jsonutils.o gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCGI -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L/usr/lib64 -o outages.cgi outages.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o ../lib/libnagios.a gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCGI -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L/usr/lib64 -o showlog.cgi showlog.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o ../lib/libnagios.a gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCGI -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L/usr/lib64 -o status.cgi status.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o ../lib/libnagios.a gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCGI -DJSON_NAGIOS_4X -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L/usr/lib64 -o statusjson.cgi statusjson.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o ../lib/libnagios.a jsonutils.o gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCGI -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L/usr/lib64 -o statuswml.cgi statuswml.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o ../lib/libnagios.a gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCGI -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L/usr/lib64 -o summary.cgi summary.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o ../lib/libnagios.a gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCGI -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L/usr/lib64 -o tac.cgi tac.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o ../lib/libnagios.a gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCGI -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L/usr/lib64 -o statuswrl.cgi statuswrl.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o ../lib/libnagios.a -lm statusjson.c: In function 'main': statusjson.c:734:6: warning: variable 'whitespace' set but not used [-Wunused-but-set-variable] int whitespace; ^ objectjson.c: In function 'main': objectjson.c:605:6: warning: variable 'whitespace' set but not used [-Wunused-but-set-variable] int whitespace; ^ archivejson.c: In function 'main': archivejson.c:603:6: warning: variable 'whitespace' set but not used [-Wunused-but-set-variable] int whitespace; ^ objectjson.c: In function 'process_cgivars': objectjson.c:1294:6: warning: variable 'whitespace' set but not used [-Wunused-but-set-variable] int whitespace; ^ statusjson.c: In function 'process_cgivars': statusjson.c:1278:6: warning: variable 'whitespace' set but not used [-Wunused-but-set-variable] int whitespace; ^ statuswml.c: In function 'display_ping': statuswml.c:1294:11: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets(buffer, sizeof(buffer) - 1, fp); ^ statuswml.c: In function 'display_traceroute': statuswml.c:1363:10: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets(buffer, sizeof(buffer) - 1, fp); ^ archivejson.c: In function 'process_cgivars': archivejson.c:1081:6: warning: variable 'whitespace' set but not used [-Wunused-but-set-variable] int whitespace; ^ extinfo.c: In function 'show_host_info': extinfo.c:998:12: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&buf, "%s %s", temp_host->name, temp_hoststatus->plugin_output); ^ extinfo.c: In function 'show_service_info': extinfo.c:1311:12: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&buf, "%s %s %s", temp_service->host_name, temp_service->description, temp_svcstatus->plugin_output); ^ archivejson.c: In function 'json_archive_statechangelist': archivejson.c:3037:8: warning: variable 'object' set but not used [-Wunused-but-set-variable] void *object = NULL; ^ archivejson.c:3030:6: warning: variable 'last_service_state' set but not used [-Wunused-but-set-variable] int last_service_state = AU_STATE_NO_DATA; ^ archivejson.c:3029:6: warning: variable 'last_host_state' set but not used [-Wunused-but-set-variable] int last_host_state = AU_STATE_NO_DATA; ^ statusjson.c: In function 'json_status_commentlist': statusjson.c:3810:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&buf, "%lu", temp_comment->comment_id); ^ statusjson.c: In function 'json_status_downtimelist': statusjson.c:4134:13: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&buf, "%lu", temp_downtime->downtime_id); ^ objectjson.c: In function 'json_object_servicelist': objectjson.c:3526:14: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&buf, "%s", ^ gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCGI -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L/usr/lib64 -o statusmap.cgi statusmap.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o ../lib/libnagios.a -lgd -lpng -ljpeg -lz -lm gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCGI -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L/usr/lib64 -o trends.cgi trends.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o ../lib/libnagios.a -lgd -lpng -ljpeg -lz -lm gcc -Wall -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -DNSCGI -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L/usr/lib64 -o histogram.cgi histogram.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o ../lib/libnagios.a -lgd -lpng -ljpeg -lz -lm make[1]: Leaving directory `/builddir/build/BUILD/nagios-4.0.8/cgi' cd ./html && make make[1]: Entering directory `/builddir/build/BUILD/nagios-4.0.8/html' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/builddir/build/BUILD/nagios-4.0.8/html' if [ xyes = xyes ]; then \ cd ./module && make; \ fi make[1]: Entering directory `/builddir/build/BUILD/nagios-4.0.8/module' gcc -I.. -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -o helloworld.o helloworld.c -shared -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L/usr/lib64 make[1]: Leaving directory `/builddir/build/BUILD/nagios-4.0.8/module' cd ./worker && make all make[1]: Entering directory `/builddir/build/BUILD/nagios-4.0.8/worker' cd ./ping && make all make[2]: Entering directory `/builddir/build/BUILD/nagios-4.0.8/worker/ping' gcc -I.. -I ../../include -I ../.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/include -DHAVE_CONFIG_H -o worker-ping worker-ping.c -L ../../lib -l nagios -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L/usr/lib64 worker-ping.c:50:1: warning: return type defaults to 'int' [-Wreturn-type] main( int argc, char **argv, char **env) { ^ worker-ping.c: In function 'daemon_init': worker-ping.c:350:16: warning: unused variable 'limit' [-Wunused-variable] struct rlimit limit; ^ worker-ping.c:347:8: warning: variable 'homedir' set but not used [-Wunused-but-set-variable] char *homedir = NULL; ^ worker-ping.c:346:15: warning: unused variable 'lock' [-Wunused-variable] struct flock lock; ^ worker-ping.c:345:7: warning: unused variable 'buf' [-Wunused-variable] char buf[256]; ^ worker-ping.c:344:6: warning: unused variable 'val' [-Wunused-variable] int val = 0; ^ worker-ping.c:343:6: warning: unused variable 'lockfile' [-Wunused-variable] int lockfile = 0; ^ worker-ping.c:342:6: warning: unused variable 'pidno' [-Wunused-variable] int pidno = 0; ^ worker-ping.c: In function 'main': worker-ping.c:87:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ worker-ping.c: In function 'worker': worker-ping.c:238:7: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read( sd, response + 3, sizeof(response) - 4); ^ worker-ping.c: In function 'daemon_init': worker-ping.c:361:8: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir( "/"); ^ make[2]: Leaving directory `/builddir/build/BUILD/nagios-4.0.8/worker/ping' make[1]: Leaving directory `/builddir/build/BUILD/nagios-4.0.8/worker' *** Compile finished *** If the main program and CGIs compiled without any errors, you can continue with installing Nagios as follows (type 'make' without any arguments for a list of all possible options): make install - This installs the main program, CGIs, and HTML files make install-init - This installs the init script in /etc/rc.d/init.d make install-commandmode - This installs and configures permissions on the directory for holding the external command file make install-config - This installs *SAMPLE* config files in /etc/nagios You'll have to modify these sample files before you can use Nagios. Read the HTML documentation for more info on doing this. Pay particular attention to the docs on object configuration files, as they determine what/how things get monitored! make install-webconf - This installs the Apache config file for the Nagios web interface make install-exfoliation - This installs the Exfoliation theme for the Nagios web interface make install-classicui - This installs the classic theme for the Nagios web interface *** Support Notes ******************************************* If you have questions about configuring or running Nagios, please make sure that you: - Look at the sample config files - Read the documentation on the Nagios Library at: http://library.nagios.com before you post a question to one of the mailing lists. Also make sure to include pertinent information that could help others help you. This might include: - What version of Nagios you are using - What version of the plugins you are using - Relevant snippets from your config files - Relevant error messages from the Nagios log file For more information on obtaining support for Nagios, visit: http://support.nagios.com ************************************************************* Enjoy. + sed -i -e 's|NagiosCmd=/var/log/nagios/rw/nagios.cmd|NagiosCmd=/var/spool/nagios/cmd/nagios.cmd|' daemon-init + sed -i -e 's|resource.cfg|private/resource.cfg|' -e 's|command_file=/var/log/nagios/rw/nagios.cmd|command_file=/var/spool/nagios/cmd/nagios.cmd|' -e 's|#query_socket=/var/log/nagios/rw/nagios.qh|query_socket=/var/spool/nagios/cmd/nagios.qh|' sample-config/nagios.cfg + sed -e 's|/usr/lib/|/usr/lib64/|' /builddir/build/SOURCES/nagios.htaccess + cp -f /builddir/build/SOURCES/nagios.internet.cfg internet.cfg + cp -f /builddir/build/SOURCES/nagios.upgrade_to_v4.ReadMe UpgradeToVersion4.ReadMe + cp -f /builddir/build/SOURCES/nagios.upgrade_to_v4.sh UpgradeToVersion4.sh + cp -f /builddir/build/SOURCES/nagios-socket.te nagios-socket.te + echo + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.tBqgFz + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64 ++ dirname /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64 + cd nagios-4.0.8 + make DESTDIR=/builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64 INIT_OPTS= INSTALL_OPTS= COMMAND_OPTS= CGIDIR=/usr/lib64/nagios/cgi-bin CFGDIR=/etc/nagios fullinstall cd ./base && make install make[1]: Entering directory `/builddir/build/BUILD/nagios-4.0.8/base' make install-basic make[2]: Entering directory `/builddir/build/BUILD/nagios-4.0.8/base' /usr/bin/install -c -m 775 -d /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/sbin /usr/bin/install -c -m 774 nagios /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/sbin /usr/bin/install -c -m 774 nagiostats /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/sbin make[2]: Leaving directory `/builddir/build/BUILD/nagios-4.0.8/base' make strip-post-install make[2]: Entering directory `/builddir/build/BUILD/nagios-4.0.8/base' /bin/true /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/sbin/nagios /bin/true /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/sbin/nagiostats make[2]: Leaving directory `/builddir/build/BUILD/nagios-4.0.8/base' make[1]: Leaving directory `/builddir/build/BUILD/nagios-4.0.8/base' cd ./cgi && make install make[1]: Entering directory `/builddir/build/BUILD/nagios-4.0.8/cgi' make install-basic make[2]: Entering directory `/builddir/build/BUILD/nagios-4.0.8/cgi' /usr/bin/install -c -m 775 -d /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/lib64/nagios/cgi-bin for file in *.cgi; do \ /usr/bin/install -c -m 775 $file /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/lib64/nagios/cgi-bin; \ done make[2]: Leaving directory `/builddir/build/BUILD/nagios-4.0.8/cgi' make strip-post-install make[2]: Entering directory `/builddir/build/BUILD/nagios-4.0.8/cgi' for file in *.cgi; do \ /bin/true /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/lib64/nagios/cgi-bin/$file; \ done make[2]: Leaving directory `/builddir/build/BUILD/nagios-4.0.8/cgi' make[1]: Leaving directory `/builddir/build/BUILD/nagios-4.0.8/cgi' cd ./html && make install make[1]: Entering directory `/builddir/build/BUILD/nagios-4.0.8/html' /usr/bin/install -c -m 775 -d /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/share/nagios/html /usr/bin/install -c -m 775 -d /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/share/nagios/html/media /usr/bin/install -c -m 775 -d /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/share/nagios/html/stylesheets /usr/bin/install -c -m 775 -d /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/share/nagios/html/contexthelp /usr/bin/install -c -m 775 -d /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/share/nagios/html/docs /usr/bin/install -c -m 775 -d /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/share/nagios/html/docs/images /usr/bin/install -c -m 775 -d /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/share/nagios/html/js /usr/bin/install -c -m 775 -d /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/share/nagios/html/images /usr/bin/install -c -m 775 -d /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/share/nagios/html/images/logos /usr/bin/install -c -m 775 -d /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/share/nagios/html/includes /usr/bin/install -c -m 775 -d /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/share/nagios/html/includes/rss /usr/bin/install -c -m 775 -d /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/share/nagios/html/includes/rss/extlib /usr/bin/install -c -m 775 -d /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/share/nagios/html/ssi /usr/bin/install -c -m 664 robots.txt /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/share/nagios/html rm -f /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/share/nagios/html/index.html rm -f /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/share/nagios/html/main.html rm -f /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/share/nagios/html/side.html /usr/bin/install -c -m 664 jsonquery.html /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/share/nagios/html /usr/bin/install -c -m 664 rss-corefeed.html /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/share/nagios/html /usr/bin/install -c -m 664 rss-newsfeed.html /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/share/nagios/html for file in *.php; \ do /usr/bin/install -c -m 664 $file /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/share/nagios/html; done for file in stylesheets/*.css; \ do /usr/bin/install -c -m 664 $file /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/share/nagios/html/stylesheets; done for file in contexthelp/*.html; \ do /usr/bin/install -c -m 664 $file /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/share/nagios/html/contexthelp; done for file in js/*.js; \ do /usr/bin/install -c -m 664 $file /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/share/nagios/html/js; done for file in images/*.gif; \ do /usr/bin/install -c -m 664 $file /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/share/nagios/html/images; done for file in images/*.jpg; \ do /usr/bin/install -c -m 664 $file /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/share/nagios/html/images; done for file in images/*.png; \ do /usr/bin/install -c -m 664 $file /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/share/nagios/html/images; done for file in images/*.ico; \ do /usr/bin/install -c -m 664 $file /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/share/nagios/html/images; done for file in images/logos/*.*; \ do /usr/bin/install -c -m 664 $file /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/share/nagios/html/images/logos; done for file in includes/*.*; \ do /usr/bin/install -c -m 664 $file /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/share/nagios/html/includes; done for file in includes/rss/*.*; \ do /usr/bin/install -c -m 664 $file /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/share/nagios/html/includes/rss; done for file in includes/rss/extlib/*.*; \ do /usr/bin/install -c -m 664 $file /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/share/nagios/html/includes/rss/extlib; done make[1]: Leaving directory `/builddir/build/BUILD/nagios-4.0.8/html' make install-exfoliation make[1]: Entering directory `/builddir/build/BUILD/nagios-4.0.8' cp -rf contrib/exfoliation/stylesheets/* /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/share/nagios/html/stylesheets cp -rf contrib/exfoliation/images/* /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/share/nagios/html/images *** Exfoliation theme installed *** NOTE: Use 'make install-classicui' to revert to classic Nagios theme make[1]: Leaving directory `/builddir/build/BUILD/nagios-4.0.8' make install-basic make[1]: Entering directory `/builddir/build/BUILD/nagios-4.0.8' /usr/bin/install -c -m 775 -d /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/lib64/nagios/plugins /usr/bin/install -c -m 775 -d /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/var/log/nagios /usr/bin/install -c -m 775 -d /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/var/log/nagios/archives /usr/bin/install -c -m 775 -d /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/var/log/nagios/spool/checkresults chmod g+s /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/var/log/nagios/spool/checkresults *** Main program, CGIs and HTML files installed *** You can continue with installing Nagios as follows (type 'make' without any arguments for a list of all possible options): make install-init - This installs the init script in /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/etc/rc.d/init.d make install-commandmode - This installs and configures permissions on the directory for holding the external command file make install-config - This installs sample config files in /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/etc/nagios make[1]: Leaving directory `/builddir/build/BUILD/nagios-4.0.8' /usr/bin/install -c -m 755 -d /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/etc/rc.d/init.d /usr/bin/install -c -m 755 daemon-init /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/etc/rc.d/init.d/nagios *** Init script installed *** /usr/bin/install -c -m 775 -d /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/var/log/nagios/rw chmod g+s /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/var/log/nagios/rw *** External command directory configured *** /usr/bin/install -c -m 775 -d /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/etc/httpd/conf.d /usr/bin/install -c -m 644 sample-config/httpd.conf /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/etc/httpd/conf.d/nagios.conf *** Nagios/Apache conf file installed *** /usr/bin/install -c -d -m 755 /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/include/nagios /usr/bin/install -c -d -m 755 /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/include/nagios/lib /usr/bin/install -c -m 644 include/*.h /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/include/nagios /usr/bin/install -c -m 644 lib/*.h /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/include/nagios/lib rm -f /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/include/nagios/nagios/config.h /usr/bin/install -c -d -m 755 /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/lib64/nagios /usr/bin/install -c -m 644 ./lib/libnagios.a /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/lib64/nagios /usr/bin/install -c -m 775 -d /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/etc/nagios /usr/bin/install -c -m 775 -d /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/etc/nagios/objects /usr/bin/install -c -b -m 664 sample-config/nagios.cfg /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/etc/nagios/nagios.cfg /usr/bin/install -c -b -m 664 sample-config/cgi.cfg /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/etc/nagios/cgi.cfg /usr/bin/install -c -b -m 660 sample-config/resource.cfg /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/etc/nagios/resource.cfg /usr/bin/install -c -b -m 664 sample-config/template-object/templates.cfg /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/etc/nagios/objects/templates.cfg /usr/bin/install -c -b -m 664 sample-config/template-object/commands.cfg /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/etc/nagios/objects/commands.cfg /usr/bin/install -c -b -m 664 sample-config/template-object/contacts.cfg /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/etc/nagios/objects/contacts.cfg /usr/bin/install -c -b -m 664 sample-config/template-object/timeperiods.cfg /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/etc/nagios/objects/timeperiods.cfg /usr/bin/install -c -b -m 664 sample-config/template-object/localhost.cfg /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/etc/nagios/objects/localhost.cfg /usr/bin/install -c -b -m 664 sample-config/template-object/windows.cfg /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/etc/nagios/objects/windows.cfg /usr/bin/install -c -b -m 664 sample-config/template-object/printer.cfg /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/etc/nagios/objects/printer.cfg /usr/bin/install -c -b -m 664 sample-config/template-object/switch.cfg /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/etc/nagios/objects/switch.cfg *** Config files installed *** Remember, these are *SAMPLE* config files. You'll need to read the documentation for more information on how to actually define services, hosts, etc. to fit your particular needs. + install -d -m 0755 /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/bin + mv /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/sbin/nagiostats /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/bin/nagiostats + install -d -m 0755 /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/etc/nagios/private + mv /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/etc/nagios/resource.cfg /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/etc/nagios/private/resource.cfg + install -d -m 0755 /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/etc/nagios/conf.d/ + install -D -m 0644 /builddir/build/SOURCES/nagios.htpasswd /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/etc/nagios/passwd + install -D -m 0644 include/locations.h /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/include/nagios/locations.h + install -D -m 0644 /builddir/build/SOURCES/nagios.logrotate /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/etc/logrotate.d/nagios + install -d -m 0755 /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/lib64/nagios/plugins/eventhandlers + install -d -m 0775 /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/var/spool/nagios/cmd + install -d -m 0775 /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/var/run/nagios + install -D -m 0644 -p /builddir/build/SOURCES/nagios.service /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/lib/systemd/system/nagios.service + install -D -m 0644 -p /builddir/build/SOURCES/nagios.tmpfiles.conf /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/lib/tmpfiles.d/nagios.conf + rm -f /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/etc/rc.d/init.d/nagios + chmod 755 /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/sbin/nagios + mkdir selinux + cd selinux + cp -f ../nagios-socket.te . + make -f /usr/share/selinux/devel/Makefile Compiling targeted nagios-socket module /usr/bin/checkmodule: loading policy configuration from tmp/nagios-socket.tmp /usr/bin/checkmodule: policy configuration loaded /usr/bin/checkmodule: writing binary representation (version 17) to tmp/nagios-socket.mod Creating targeted nagios-socket.pp policy package rm tmp/nagios-socket.mod.fc tmp/nagios-socket.mod + install -p -m 644 -D nagios-socket.pp /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/share/selinux/packages/nagios/nagios-socket.pp + /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 /builddir/build/BUILD/nagios-4.0.8 extracting debug info from /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/sbin/nagios extracting debug info from /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/bin/nagiostats extracting debug info from /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/lib64/nagios/cgi-bin/notifications.cgi extracting debug info from /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/lib64/nagios/cgi-bin/statusmap.cgi extracting debug info from /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/lib64/nagios/cgi-bin/archivejson.cgi extracting debug info from /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/lib64/nagios/cgi-bin/objectjson.cgi extracting debug info from /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/lib64/nagios/cgi-bin/trends.cgi extracting debug info from /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/lib64/nagios/cgi-bin/extinfo.cgi extracting debug info from /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/lib64/nagios/cgi-bin/config.cgi extracting debug info from /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/lib64/nagios/cgi-bin/statuswml.cgi extracting debug info from /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/lib64/nagios/cgi-bin/statusjson.cgi extracting debug info from /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/lib64/nagios/cgi-bin/status.cgi extracting debug info from /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/lib64/nagios/cgi-bin/showlog.cgi extracting debug info from /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/lib64/nagios/cgi-bin/outages.cgi extracting debug info from /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/lib64/nagios/cgi-bin/histogram.cgi extracting debug info from /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/lib64/nagios/cgi-bin/history.cgi extracting debug info from /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/lib64/nagios/cgi-bin/statuswrl.cgi extracting debug info from /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/lib64/nagios/cgi-bin/cmd.cgi extracting debug info from /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/lib64/nagios/cgi-bin/avail.cgi extracting debug info from /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/lib64/nagios/cgi-bin/summary.cgi extracting debug info from /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/lib64/nagios/cgi-bin/tac.cgi /usr/lib/rpm/sepdebugcrcfix: Updated 21 CRC32s, 0 CRC32s did match. 8259 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-compress + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/lib/rpm/redhat/brp-java-repack-jars Processing files: nagios-4.0.8-2.el7.x86_64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.EPTceS + umask 022 + cd /builddir/build/BUILD + cd nagios-4.0.8 + DOCDIR=/builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/share/doc/nagios-4.0.8 + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/share/doc/nagios-4.0.8 + cp -pr Changelog /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/share/doc/nagios-4.0.8 + cp -pr INSTALLING /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/share/doc/nagios-4.0.8 + cp -pr LICENSE /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/share/doc/nagios-4.0.8 + cp -pr README /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/share/doc/nagios-4.0.8 + cp -pr UPGRADING /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/share/doc/nagios-4.0.8 + cp -pr UpgradeToVersion4.ReadMe /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/share/doc/nagios-4.0.8 + cp -pr UpgradeToVersion4.sh /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/share/doc/nagios-4.0.8 + cp -pr internet.cfg /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64/usr/share/doc/nagios-4.0.8 + exit 0 warning: File listed twice: /usr/share/nagios/html/config.inc.php Provides: config(nagios) = 4.0.8-2.el7 nagios = 4.0.8-2.el7 nagios(x86-64) = 4.0.8-2.el7 Requires(interp): /bin/sh /bin/sh /bin/sh Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(pre): group(nagios) user(nagios) Requires(post): /bin/sh chkconfig initscripts policycoreutils-python Requires(preun): /bin/sh chkconfig initscripts Requires(postun): /bin/sh initscripts Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.15)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.3.2)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.4)(64bit) libc.so.6(GLIBC_2.8)(64bit) libdl.so.2()(64bit) libdl.so.2(GLIBC_2.2.5)(64bit) libgd.so.2()(64bit) libjpeg.so.62()(64bit) libm.so.6()(64bit) libm.so.6(GLIBC_2.2.5)(64bit) libpng15.so.15()(64bit) libz.so.1()(64bit) rtld(GNU_HASH) Processing files: nagios-common-4.0.8-2.el7.x86_64 Provides: group(nagios) nagios-common = 4.0.8-2.el7 nagios-common(x86-64) = 4.0.8-2.el7 user(nagios) Requires(interp): /bin/sh Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(pre): /bin/sh shadow-utils Requires(post): shadow-utils Processing files: nagios-devel-4.0.8-2.el7.x86_64 Provides: nagios-devel = 4.0.8-2.el7 nagios-devel(x86-64) = 4.0.8-2.el7 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: nagios-debuginfo-4.0.8-2.el7.x86_64 Provides: nagios-debuginfo = 4.0.8-2.el7 nagios-debuginfo(x86-64) = 4.0.8-2.el7 Requires(rpmlib): rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64 Wrote: /builddir/build/RPMS/nagios-4.0.8-2.el7.x86_64.rpm Wrote: /builddir/build/RPMS/nagios-common-4.0.8-2.el7.x86_64.rpm Wrote: /builddir/build/RPMS/nagios-devel-4.0.8-2.el7.x86_64.rpm Wrote: /builddir/build/RPMS/nagios-debuginfo-4.0.8-2.el7.x86_64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.rhdbiI + umask 022 + cd /builddir/build/BUILD + cd nagios-4.0.8 + /usr/bin/rm -rf /builddir/build/BUILDROOT/nagios-4.0.8-2.el7.x86_64 + exit 0 Child return code was: 0 LEAVE do -->