* Package: net-analyzer/nagios-core-4.4.5-r6 * Repository: gentoo * Maintainer: mjo@gentoo.org sysadmin@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU web * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox >>> Unpacking source... >>> Unpacking nagios-4.4.5.tar.gz to /var/tmp/portage/net-analyzer/nagios-core-4.4.5-r6/work >>> Unpacking nagios-core-gentoo-icons-20141125.tar to /var/tmp/portage/net-analyzer/nagios-core-4.4.5-r6/work >>> Source unpacked in /var/tmp/portage/net-analyzer/nagios-core-4.4.5-r6/work >>> Preparing source in /var/tmp/portage/net-analyzer/nagios-core-4.4.5-r6/work/nagios-4.4.5 ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/net-analyzer/nagios-core-4.4.5-r6/work/nagios-4.4.5 ... * econf: updating nagios-4.4.5/tap/config.sub with /usr/share/gnuconfig/config.sub * econf: updating nagios-4.4.5/tap/config.guess with /usr/share/gnuconfig/config.guess * econf: updating nagios-4.4.5/config.sub with /usr/share/gnuconfig/config.sub * econf: updating nagios-4.4.5/config.guess with /usr/share/gnuconfig/config.guess ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --docdir=/usr/share/doc/nagios-core-4.4.5-r6 --htmldir=/usr/share/doc/nagios-core-4.4.5-r6/html --libdir=/usr/lib64 --with-command-group=nagios --prefix=/usr --bindir=/usr/sbin --localstatedir=/var/lib/nagios --sysconfdir=/etc/nagios --libexecdir=/usr/lib64/nagios/plugins --with-cgibindir=/usr/lib64/nagios/cgi-bin --with-webdir=/usr/share/nagios/htdocs checking for a BSD-compatible install... /usr/lib/portage/python3.6/ebuild-helpers/xattr/install -c checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed checking whether make sets $(MAKE)... yes checking whether ln -s works... yes checking for strip... /usr/bin/strip checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /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/loadavg.h usability... no checking sys/loadavg.h presence... no checking for sys/loadavg.h... no 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 sys/prctl.h usability... yes checking sys/prctl.h presence... yes checking for sys/prctl.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 what the operating system is ... linux checking what the distribution type is ... gentoo checking what init system is being used ... openrc checking what inetd is being used ... unknown checking for which paths to use ... default checking for which init file to use ... openrc-init checking for which inetd files to use ... unknown checking for va_copy... yes checking for vsnprintf... yes checking for snprintf... yes checking for asprintf... yes checking for vasprintf... yes checking for sigaction... 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 RLIMIT_PROC... yes 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 checking for GD library... yes checking for gdImageCreateTrueColor in -lgd... yes checking ltdl.h usability... yes checking ltdl.h presence... yes checking for ltdl.h... yes checking for lt_dlinit in -lltdl... 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 checking for unzip... /usr/bin/unzip configure: creating ./config.status config.status: creating html/index.php config.status: creating Makefile config.status: creating lib/Makefile 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 subst config.status: creating pkginfo config.status: creating startup/openrc-init config.status: creating startup/default-init config.status: creating startup/default-service config.status: creating startup/upstart-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.4.5 2019-08-20 ***: General Options: ------------------------- Nagios executable: nagios Nagios user/group: nagios,nagios Command user/group: nagios,nagios Event Broker: yes Install ${prefix}: /usr Install ${includedir}: /usr/include/nagios Lock file: /run/nagios.lock Check result directory: /var/lib/nagios/spool/checkresults Init directory: /etc/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. >>> Source configured. >>> Compiling source in /var/tmp/portage/net-analyzer/nagios-core-4.4.5-r6/work/nagios-4.4.5 ... make -j1 CC=x86_64-pc-linux-gnu-gcc nagios cd ./base && make make[1]: Entering directory '/var/tmp/portage/net-analyzer/nagios-core-4.4.5-r6/work/nagios-4.4.5/base' x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCORE -c -o nagios.o nagios.c nagios.c: In function ‘main’: nagios.c:611:4: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 611 | asprintf(&mac->x[MACRO_PROCESSSTARTTIME], "%llu", (unsigned long long)program_start); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nagios.c:841:4: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 841 | asprintf(&mac->x[MACRO_EVENTSTARTTIME], "%llu", (unsigned long long)event_start); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nagios.c: In function ‘nagios_core_worker’: nagios.c:176:3: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result [-Wunused-result] 176 | read(sd, response + 3, sizeof(response) - 4); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nagios.c: In function ‘test_path_access’: nagios.c:122:3: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 122 | asprintf(&path, "%s/%s", p, program); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCORE -c -o broker.o broker.c x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCORE -c -o nebmods.o nebmods.c x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCORE -c -o ../common/shared.o ../common/shared.c x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCORE -c -o query-handler.o query-handler.c x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCORE -c -o workers.o workers.c workers.c: In function ‘handle_worker_result’: workers.c:801:4: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 801 | asprintf(&error_reason, "timed out after %.2fs", tv_delta_f(&wpres.start, &wpres.stop)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ workers.c:804:4: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 804 | asprintf(&error_reason, "died by signal %d%s after %.2f seconds", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 805 | WTERMSIG(wpres.wait_status), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 806 | WCOREDUMP(wpres.wait_status) ? " (core dumped)" : "", | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 807 | tv_delta_f(&wpres.start, &wpres.stop)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ workers.c:810:4: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 810 | asprintf(&error_reason, "is a non-check helper but exited with return code %d", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 811 | WEXITSTATUS(wpres.wait_status)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ workers.c: In function ‘handle_worker_check’: workers.c:618:3: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 618 | asprintf(&cr->output, "(No output on stdout) stderr: %s", wpres->outerr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘get_wproc_list’, inlined from ‘get_worker’ at workers.c:277:12: workers.c:253:3: warning: ‘%s’ directive argument is null [-Wformat-overflow=] 253 | log_debug_info(DEBUGL_CHECKS, 1, "Found specialized worker(s) for '%s'", (slash && *slash != '/') ? slash : cmd_name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCORE -c -o checks.o checks.c checks.c: In function ‘get_service_check_return_code’: checks.c:376:3: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 376 | asprintf(&svc->plugin_output, "(Service check timed out after %.2lf seconds)", svc->execution_time); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ checks.c:429:3: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 429 | asprintf(&svc->plugin_output, "(Return code of %d for service '%s' on host '%s' was out of bounds)", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 430 | cr->return_code, | ~~~~~~~~~~~~~~~~ 431 | svc->description, | ~~~~~~~~~~~~~~~~~ 432 | svc->host_name); | ~~~~~~~~~~~~~~~ checks.c: In function ‘get_host_check_return_code’: checks.c:467:3: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 467 | asprintf(&hst->plugin_output, "(Host check timed out after %.2lf seconds)", hst->execution_time); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ checks.c:523:3: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 523 | asprintf(&hst->plugin_output, "(Return code of %d for host '%s' was out of bounds)", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 524 | cr->return_code, | ~~~~~~~~~~~~~~~~ 525 | hst->name); | ~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCORE -c -o config.o config.c config.c: In function ‘read_main_config_file’: config.c:140:4: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 140 | asprintf(&error_message, "NULL variable"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:145:4: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 145 | asprintf(&error_message, "malloc() error"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:152:4: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 152 | asprintf(&error_message, "NULL value"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:157:4: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 157 | asprintf(&error_message, "malloc() error"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:199:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 199 | asprintf(&error_message, "Log file is too long"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:218:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 218 | asprintf(&error_message, "Debug log file is too long"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:233:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 233 | asprintf(&error_message, "Command file is too long"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:258:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 258 | asprintf(&error_message, "Check result path is too long"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:270:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 270 | asprintf(&error_message, "Check result path '%s' is not a valid directory", check_result_path); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:284:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 284 | asprintf(&error_message, "Lock file is too long"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:340:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 340 | asprintf(&error_message, "Illegal value for use_syslog"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:351:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 351 | asprintf(&error_message, "Illegal value for log_notifications"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:362:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 362 | asprintf(&error_message, "Illegal value for log_service_retries"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:373:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 373 | asprintf(&error_message, "Illegal value for log_host_retries"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:384:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 384 | asprintf(&error_message, "Illegal value for log_event_handlers"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:395:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 395 | asprintf(&error_message, "Illegal value for log_external_commands"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:406:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 406 | asprintf(&error_message, "Illegal value for log_passive_checks"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:417:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 417 | asprintf(&error_message, "Illegal value for log_initial_states"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:428:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 428 | asprintf(&error_message, "Illegal value for log_current_states"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:439:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 439 | asprintf(&error_message, "Illegal value for retain_state_information"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:451:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 451 | asprintf(&error_message, "Illegal value for retention_update_interval"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:460:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 460 | asprintf(&error_message, "Illegal value for use_retained_program_state"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:471:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 471 | asprintf(&error_message, "Illegal value for use_retained_scheduling_info"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:484:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 484 | asprintf(&error_message, "Illegal value for retention_scheduling_horizon"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:514:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 514 | asprintf(&error_message, "Illegal value for obsess_over_services"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:525:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 525 | asprintf(&error_message, "Illegal value for obsess_over_hosts"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:536:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 536 | asprintf(&error_message, "Illegal value for translate_passive_host_checks"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:552:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 552 | asprintf(&error_message, "Illegal value for service_check_timeout"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:570:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 570 | asprintf(&error_message,"Illegal value for service_check_timeout_state"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:581:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 581 | asprintf(&error_message, "Illegal value for host_check_timeout"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:592:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 592 | asprintf(&error_message, "Illegal value for event_handler_timeout"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:603:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 603 | asprintf(&error_message, "Illegal value for notification_timeout"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:614:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 614 | asprintf(&error_message, "Illegal value for ocsp_timeout"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:625:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 625 | asprintf(&error_message, "Illegal value for ochp_timeout"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:634:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 634 | asprintf(&error_message, "Illegal value for use_aggressive_host_checking"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:656:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 656 | asprintf(&error_message, "Illegal value for soft_state_dependencies"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:676:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 676 | asprintf(&error_message, "Illegal value for log_rotation_method"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:685:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 685 | asprintf(&error_message, "Log archive path too long"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:723:6: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 723 | asprintf(&error_message, "Illegal value for service_inter_check_delay_method"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:734:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 734 | asprintf(&error_message, "Illegal value for max_service_check_spread"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:752:6: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 752 | asprintf(&error_message, "Illegal value for host_inter_check_delay_method"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:763:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 763 | asprintf(&error_message, "Illegal value for max_host_check_spread"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:784:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 784 | asprintf(&error_message, "Illegal value for max_concurrent_checks"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:794:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 794 | asprintf(&error_message, "Illegal value for check_result_reaper_frequency"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:804:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 804 | asprintf(&error_message, "Illegal value for max_check_result_reaper_time"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:818:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 818 | asprintf(&error_message, "Illegal value for interval_length"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:827:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 827 | asprintf(&error_message, "Illegal value for check_external_commands"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:843:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 843 | asprintf(&error_message, "Illegal value for check_for_orphaned_services"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:854:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 854 | asprintf(&error_message, "Illegal value for check_for_orphaned_hosts"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:865:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 865 | asprintf(&error_message, "Illegal value for check_service_freshness"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:876:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 876 | asprintf(&error_message, "Illegal value for check_host_freshness"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:888:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 888 | asprintf(&error_message, "Illegal value for service_freshness_check_interval"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:898:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 898 | asprintf(&error_message, "Illegal value for host_freshness_check_interval"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:906:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 906 | asprintf(&error_message, "Illegal value for auto_reschedule_checks"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:918:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 918 | asprintf(&error_message, "Illegal value for auto_rescheduling_interval"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:928:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 928 | asprintf(&error_message, "Illegal value for auto_rescheduling_window"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:938:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 938 | asprintf(&error_message, "Illegal value for status_update_interval"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:949:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 949 | asprintf(&error_message, "Illegal value for time_change_threshold"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:968:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 968 | asprintf(&error_message, "Illegal value for low_service_flap_threshold"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:978:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 978 | asprintf(&error_message, "Illegal value for high_service_flap_threshold"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:988:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 988 | asprintf(&error_message, "Illegal value for low_host_flap_threshold"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:998:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 998 | asprintf(&error_message, "Illegal value for high_host_flap_threshold"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:1060:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 1060 | asprintf(&error_message, "Illegal value for daemon_dumps_core"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:1071:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 1071 | asprintf(&error_message, "Illegal value for use_large_installation_tweaks "); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:1188:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 1188 | asprintf(&error_message, "Illegal value for service_skip_check_dependency_status"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:1196:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 1196 | asprintf(&error_message, "Illegal value for service_skip_check_parent_status"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:1204:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 1204 | asprintf(&error_message, "Illegal value for service_skip_check_host_down_status"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:1212:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 1212 | asprintf(&error_message, "Illegal value for host_skip_check_dependency_status"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:1219:4: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 1219 | asprintf(&error_message, "UNKNOWN VARIABLE"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c: In function ‘obsoleted_warning’: config.c:81:2: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 81 | asprintf(&buf, "Warning: %s is deprecated and will be removed.%s%s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 82 | key, msg ? " " : "", msg ? msg : ""); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c: In function ‘pre_flight_check’: config.c:1499:2: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 1499 | asprintf(&buf, "%s/nagiosXXXXXX", temp_path); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.c:1511:2: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 1511 | asprintf(&buf, "%s/nagiosXXXXXX", check_result_path); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCORE -c -o commands.o commands.c commands.c: In function ‘launch_command_file_worker’: commands.c:295:8: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result [-Wunused-result] 295 | (void)chdir("/tmp"); | ^~~~~~~~~~~~~ commands.c:296:8: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result [-Wunused-result] 296 | (void)chdir("nagios-cfw"); | ^~~~~~~~~~~~~~~~~~~ commands.c: In function ‘process_external_command1’: commands.c:904:2: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 904 | asprintf(&temp_buffer, "EXTERNAL COMMAND: %s;%s\n", command_id, args); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCORE -c -o events.o events.c x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCORE -c -o flapping.o flapping.c flapping.c: In function ‘set_service_flap’: flapping.c:313:3: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 313 | 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ flapping.c: In function ‘set_host_flap’: flapping.c:403:3: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 403 | 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCORE -c -o logging.o logging.c logging.c: In function ‘log_service_event’: logging.c:270:2: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 270 | asprintf(&temp_buffer, "SERVICE ALERT: %s;%s;%s;%s;%d;%s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 271 | svc->host_name, svc->description, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 272 | service_state_name(svc->current_state), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 273 | state_type_name(svc->state_type), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 274 | svc->current_attempt, | ~~~~~~~~~~~~~~~~~~~~~ 275 | (svc->plugin_output == NULL) ? "" : svc->plugin_output); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ logging.c: In function ‘log_host_event’: logging.c:297:2: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 297 | asprintf(&temp_buffer, "HOST ALERT: %s;%s;%s;%d;%s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 298 | hst->name, | ~~~~~~~~~~ 299 | host_state_name(hst->current_state), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 300 | state_type_name(hst->state_type), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 301 | hst->current_attempt, | ~~~~~~~~~~~~~~~~~~~~~ 302 | (hst->plugin_output == NULL) ? "" : hst->plugin_output); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ logging.c: In function ‘log_host_states’: logging.c:323:3: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 323 | asprintf(&temp_buffer, "%s HOST STATE: %s;%s;%s;%d;%s\n", (type == INITIAL_STATES) ? "INITIAL" : "CURRENT", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 324 | temp_host->name, | ~~~~~~~~~~~~~~~~ 325 | host_state_name(temp_host->current_state), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 326 | state_type_name(temp_host->state_type), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 327 | temp_host->current_attempt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 328 | (temp_host->plugin_output == NULL) ? "" : temp_host->plugin_output); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ logging.c: In function ‘log_service_states’: logging.c:355:3: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 355 | asprintf(&temp_buffer, "%s SERVICE STATE: %s;%s;%s;%s;%d;%s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 356 | (type == INITIAL_STATES) ? "INITIAL" : "CURRENT", | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 357 | temp_service->host_name, temp_service->description, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 358 | service_state_name(temp_service->current_state), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 359 | state_type_name(temp_service->state_type), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 360 | temp_service->current_attempt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 361 | temp_service->plugin_output); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ logging.c: In function ‘rotate_log_file’: logging.c:409:2: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 409 | 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:433:2: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 433 | asprintf(&temp_buffer, "LOG ROTATION: %s\n", method_string); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ logging.c:442:3: warning: ignoring return value of ‘chown’, declared with attribute warn_unused_result [-Wunused-result] 442 | chown(log_file, log_file_stat.st_uid, log_file_stat.st_gid); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ logging.c: In function ‘write_log_file_info’: logging.c:463:2: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 463 | asprintf(&temp_buffer, "LOG VERSION: %s\n", LOG_VERSION_2); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ logging.c: In function ‘log_debug_info’: logging.c:553:3: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 553 | asprintf(&tmppath, "%s.old", debug_file); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCORE -c -o macros-base.o ../common/macros.c ../common/macros.c: In function ‘grab_macrox_value_r’: ../common/macros.c:1267:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 1267 | asprintf(&mac->x[MACRO_TOTALHOSTSUP], "%d", hosts_up); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../common/macros.c:1268:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 1268 | asprintf(&mac->x[MACRO_TOTALHOSTSDOWN], "%d", hosts_down); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../common/macros.c:1269:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 1269 | asprintf(&mac->x[MACRO_TOTALHOSTSUNREACHABLE], "%d", hosts_unreachable); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../common/macros.c:1270:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 1270 | asprintf(&mac->x[MACRO_TOTALHOSTSDOWNUNHANDLED], "%d", hosts_down_unhandled); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../common/macros.c:1271:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 1271 | asprintf(&mac->x[MACRO_TOTALHOSTSUNREACHABLEUNHANDLED], "%d", hosts_unreachable_unhandled); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../common/macros.c:1272:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 1272 | asprintf(&mac->x[MACRO_TOTALHOSTPROBLEMS], "%d", host_problems); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../common/macros.c:1273:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 1273 | asprintf(&mac->x[MACRO_TOTALHOSTPROBLEMSUNHANDLED], "%d", host_problems_unhandled); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../common/macros.c:1274:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 1274 | asprintf(&mac->x[MACRO_TOTALSERVICESOK], "%d", services_ok); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../common/macros.c:1275:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 1275 | asprintf(&mac->x[MACRO_TOTALSERVICESWARNING], "%d", services_warning); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../common/macros.c:1276:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 1276 | asprintf(&mac->x[MACRO_TOTALSERVICESCRITICAL], "%d", services_critical); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../common/macros.c:1277:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 1277 | asprintf(&mac->x[MACRO_TOTALSERVICESUNKNOWN], "%d", services_unknown); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../common/macros.c:1278:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 1278 | asprintf(&mac->x[MACRO_TOTALSERVICESWARNINGUNHANDLED], "%d", services_warning_unhandled); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../common/macros.c:1279:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 1279 | asprintf(&mac->x[MACRO_TOTALSERVICESCRITICALUNHANDLED], "%d", services_critical_unhandled); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../common/macros.c:1280:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 1280 | asprintf(&mac->x[MACRO_TOTALSERVICESUNKNOWNUNHANDLED], "%d", services_unknown_unhandled); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../common/macros.c:1281:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 1281 | asprintf(&mac->x[MACRO_TOTALSERVICEPROBLEMS], "%d", service_problems); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../common/macros.c:1282:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 1282 | asprintf(&mac->x[MACRO_TOTALSERVICEPROBLEMSUNHANDLED], "%d", service_problems_unhandled); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../common/macros.c: In function ‘grab_standard_host_macro_r’: ../common/macros.c:1778:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 1778 | asprintf(&buf1, "%s%s%s", (buf2) ? buf2 : "", (buf2) ? "," : "", temp_hostgroup->group_name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../common/macros.c:1847:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 1847 | asprintf(output, "%s/cgi-bin/extinfo.cgi?type=1&host=%s", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1848 | website_url ? website_url : "website_url not set", | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1849 | buf1); | ~~~~~ ../common/macros.c: In function ‘grab_standard_service_macro_r’: ../common/macros.c:2179:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 2179 | asprintf(&buf1, "%s%s%s", (buf2) ? buf2 : "", (buf2) ? "," : "", temp_servicegroup->group_name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../common/macros.c:2197:6: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 2197 | asprintf(output, "%s/cgi-bin/extinfo.cgi?type=2&host=%s&service=%s", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2198 | website_url ? website_url : "website_url not set", | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2199 | buf1, buf2); | ~~~~~~~~~~~ ../common/macros.c: In function ‘grab_standard_contact_macro_r’: ../common/macros.c:2387:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 2387 | 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:3185:3: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 3185 | asprintf(¯o_name, "ARG%d", x + 1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../common/macros.c: In function ‘set_custom_macro_environment_vars_r’: ../common/macros.c:3210:4: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 3210 | asprintf(&customvarname, "_HOST%s", temp_customvariablesmember->variable_name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../common/macros.c:3224:4: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 3224 | asprintf(&customvarname, "_SERVICE%s", temp_customvariablesmember->variable_name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../common/macros.c:3237:4: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 3237 | asprintf(&customvarname, "_CONTACT%s", temp_customvariablesmember->variable_name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../common/macros.c: In function ‘set_contact_address_environment_vars_r’: ../common/macros.c:3264:3: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 3264 | asprintf(&varname, "CONTACTADDRESS%d", x); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../common/macros.c: In function ‘set_macro_environment_var’: ../common/macros.c:3286:2: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 3286 | asprintf(&env_macro_name, "%s%s", MACRO_ENV_VAR_PREFIX, name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../common/macros.c: In function ‘add_macrox_environment_vars_r’: ../common/macros.c:3371:3: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 3371 | asprintf(&envname, "%s%s", MACRO_ENV_VAR_PREFIX, macro_x_names[x]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../common/macros.c: In function ‘add_argv_macro_environment_vars_r’: ../common/macros.c:3392:3: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 3392 | asprintf(¯o_name, "%sARG%d", MACRO_ENV_VAR_PREFIX, x + 1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../common/macros.c: In function ‘add_custom_macro_environment_vars_r’: ../common/macros.c:3419:4: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 3419 | asprintf(&customvarname, "%s_HOST%s", MACRO_ENV_VAR_PREFIX, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3420 | temp_customvariablesmember->variable_name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../common/macros.c:3451:4: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 3451 | asprintf(&customvarname, "%s_SERVICE%s", MACRO_ENV_VAR_PREFIX, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3452 | temp_customvariablesmember->variable_name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../common/macros.c:3483:4: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 3483 | asprintf(&customvarname, "%s_CONTACT%s", MACRO_ENV_VAR_PREFIX, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3484 | temp_customvariablesmember->variable_name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../common/macros.c: In function ‘add_contact_address_environment_vars_r’: ../common/macros.c:3524:2: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 3524 | asprintf(&varname, "%sCONTACTNAME", MACRO_ENV_VAR_PREFIX); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../common/macros.c:3526:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 3526 | asprintf(&varname, "%sCONTACTALIAS", MACRO_ENV_VAR_PREFIX); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../common/macros.c:3528:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 3528 | asprintf(&varname, "%sCONTACTEMAIL", MACRO_ENV_VAR_PREFIX); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../common/macros.c:3530:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 3530 | asprintf(&varname, "%sCONTACTPAGER", MACRO_ENV_VAR_PREFIX); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../common/macros.c:3537:3: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 3537 | asprintf(&varname, "%sCONTACTADDRESS%d", MACRO_ENV_VAR_PREFIX, x); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCORE -c -o netutils.o netutils.c netutils.c: In function ‘my_tcp_connect’: netutils.c:50:40: warning: ‘%d’ directive output may be truncated writing between 1 and 11 bytes into a region of size 6 [-Wformat-truncation=] 50 | snprintf(port_str, sizeof(port_str), "%d", port); | ^~ netutils.c:50:39: note: directive argument in the range [-2147483648, 65535] 50 | snprintf(port_str, sizeof(port_str), "%d", port); | ^~~~ In file included from /usr/include/stdio.h:867, from ../include/config.h:121, from netutils.c:24: /usr/include/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 2 and 12 bytes into a destination of size 6 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCORE -c -o notifications.o notifications.c notifications.c: In function ‘service_notification’: notifications.c:223:3: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 223 | asprintf(&mac.x[MACRO_SERVICENOTIFICATIONNUMBER], "%d", svc->current_notification_number); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ notifications.c:229:3: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 229 | asprintf(&mac.x[MACRO_SERVICENOTIFICATIONID], "%lu", svc->current_notification_id); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ notifications.c: In function ‘notify_contact_of_service’: notifications.c:790:6: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 790 | 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:793:6: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 793 | 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:796:6: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 796 | 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:799:6: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 799 | 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:802:6: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 802 | 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:805:6: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 805 | 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:808:6: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 808 | 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:811:6: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 811 | 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:814:6: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 814 | asprintf(&temp_buffer, "SERVICE NOTIFICATION: %s;%s;%s;$SERVICESTATE$;%s;$SERVICEOUTPUT$\n", cntct->name, svc->host_name, svc->description, command_name_ptr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ notifications.c: In function ‘host_notification’: notifications.c:1180:3: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 1180 | asprintf(&mac.x[MACRO_HOSTNOTIFICATIONNUMBER], "%d", hst->current_notification_number); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ notifications.c:1186:3: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 1186 | asprintf(&mac.x[MACRO_HOSTNOTIFICATIONID], "%lu", hst->current_notification_id); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ notifications.c: In function ‘notify_contact_of_host’: notifications.c:1688:6: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 1688 | asprintf(&temp_buffer, "HOST NOTIFICATION: %s;%s;CUSTOM ($HOSTSTATE$);%s;$HOSTOUTPUT$;$NOTIFICATIONAUTHOR$;$NOTIFICATIONCOMMENT$\n", cntct->name, hst->name, command_name_ptr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ notifications.c:1691:6: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 1691 | asprintf(&temp_buffer, "HOST NOTIFICATION: %s;%s;ACKNOWLEDGEMENT ($HOSTSTATE$);%s;$HOSTOUTPUT$;$NOTIFICATIONAUTHOR$;$NOTIFICATIONCOMMENT$\n", cntct->name, hst->name, command_name_ptr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ notifications.c:1694:6: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 1694 | asprintf(&temp_buffer, "HOST NOTIFICATION: %s;%s;FLAPPINGSTART ($HOSTSTATE$);%s;$HOSTOUTPUT$\n", cntct->name, hst->name, command_name_ptr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ notifications.c:1697:6: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 1697 | asprintf(&temp_buffer, "HOST NOTIFICATION: %s;%s;FLAPPINGSTOP ($HOSTSTATE$);%s;$HOSTOUTPUT$\n", cntct->name, hst->name, command_name_ptr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ notifications.c:1700:6: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 1700 | asprintf(&temp_buffer, "HOST NOTIFICATION: %s;%s;FLAPPINGDISABLED ($HOSTSTATE$);%s;$HOSTOUTPUT$\n", cntct->name, hst->name, command_name_ptr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ notifications.c:1703:6: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 1703 | asprintf(&temp_buffer, "HOST NOTIFICATION: %s;%s;DOWNTIMESTART ($HOSTSTATE$);%s;$HOSTOUTPUT$\n", cntct->name, hst->name, command_name_ptr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ notifications.c:1706:6: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 1706 | asprintf(&temp_buffer, "HOST NOTIFICATION: %s;%s;DOWNTIMEEND ($HOSTSTATE$);%s;$HOSTOUTPUT$\n", cntct->name, hst->name, command_name_ptr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ notifications.c:1709:6: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 1709 | asprintf(&temp_buffer, "HOST NOTIFICATION: %s;%s;DOWNTIMECANCELLED ($HOSTSTATE$);%s;$HOSTOUTPUT$\n", cntct->name, hst->name, command_name_ptr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ notifications.c:1712:6: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 1712 | asprintf(&temp_buffer, "HOST NOTIFICATION: %s;%s;$HOSTSTATE$;%s;$HOSTOUTPUT$\n", cntct->name, hst->name, command_name_ptr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCORE -c -o sehandlers.o sehandlers.c sehandlers.c: In function ‘run_global_service_event_handler’: sehandlers.c:263:3: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 263 | 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:3: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 363 | 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:3: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 507 | 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:3: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 605 | asprintf(&raw_logentry, "HOST EVENT HANDLER: %s;$HOSTSTATE$;$HOSTSTATETYPE$;$HOSTATTEMPT$;%s\n", hst->name, hst->event_handler); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCORE -c -o utils.o utils.c utils.c: In function ‘get_next_log_rotation_time’: utils.c:1592:6: warning: unused variable ‘expected_mday’ [-Wunused-variable] 1592 | int expected_mday; | ^~~~~~~~~~~~~ utils.c: In function ‘my_system_r’: utils.c:554:2: warning: ignoring return value of ‘pipe’, declared with attribute warn_unused_result [-Wunused-result] 554 | pipe(fd); | ^~~~~~~~ utils.c:630:4: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] 630 | write(fd[1], buffer, strlen(buffer) + 1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ utils.c:638:5: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] 638 | write(fd[1], buffer, strlen(buffer)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ utils.c: In function ‘daemon_init’: utils.c:1895:4: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result [-Wunused-result] 1895 | chdir(homedir); | ^~~~~~~~~~~~~~ utils.c:1910:4: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result [-Wunused-result] 1910 | chdir(homedir); | ^~~~~~~~~~~~~~ utils.c:1914:4: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result [-Wunused-result] 1914 | chdir("/"); | ^~~~~~~~~~ utils.c:2046:2: warning: ignoring return value of ‘ftruncate’, declared with attribute warn_unused_result [-Wunused-result] 2046 | ftruncate(lockfile, 0); | ^~~~~~~~~~~~~~~~~~~~~~ utils.c:2048:2: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] 2048 | write(lockfile, buf, strlen(buf)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ utils.c: In function ‘process_check_result_queue’: utils.c:2248:4: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 2248 | asprintf(&temp_buffer, "%s.ok", file); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ utils.c: In function ‘delete_check_result_file’: utils.c:2535:2: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 2535 | asprintf(&temp_buffer, "%s.ok", fname); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ utils.c: In function ‘query_update_api’: utils.c:3351:3: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 3351 | asprintf(&api_query_opts, "&firstcheck=1"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ utils.c:3354:4: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 3354 | asprintf(&qopts2, "%s&last_version=%s", api_query_opts, last_program_version); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ utils.c:3361:2: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 3361 | asprintf(&api_query, "v=1&product=nagios&tinycheck=1&stableonly=1&uid=%lu", update_uid); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ utils.c:3364:3: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 3364 | asprintf(&api_query2, "%s&version=%s%s", api_query, PROGRAM_VERSION, (api_query_opts == NULL) ? "" : api_query_opts); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ utils.c:3370:2: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 3370 | asprintf(&buf, | ^~~~~~~~~~~~~~ 3371 | "POST %s HTTP/1.0\r\nUser-Agent: Nagios/%s\r\n" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3372 | "Connection: close\r\nHost: %s\r\n" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3373 | "Content-Type: application/x-www-form-urlencoded\r\n" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3374 | "Content-Length: %lu\r\n\r\n%s", | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3375 | api_path, PROGRAM_VERSION, api_server, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3376 | (unsigned long) strlen(api_query), api_query); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ utils.c: In function ‘process_check_result_queue’: utils.c:2213:38: warning: ‘__builtin___snprintf_chk’ output may be truncated before the last format character [-Wformat-truncation=] 2213 | snprintf(file, sizeof(file), "%s/%s", dirname, dirfile->d_name); | ^ In file included from /usr/include/stdio.h:867, from ../include/config.h:121, from utils.c:23: /usr/include/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output 2 or more bytes (assuming 257) into a destination of size 256 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCORE -c -o retention-base.o sretention.c x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCORE -c -o xretention-base.o ../xdata/xrddefault.c ../xdata/xrddefault.c: In function ‘xrddefault_save_state_information’: ../xdata/xrddefault.c:112:2: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 112 | asprintf(&tmp_file, "%sXXXXXX", temp_file); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCORE -c -o comments-base.o ../common/comments.c x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCORE -c -o xcomments-base.o ../xdata/xcddefault.c x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCORE -c -o objects-base.o ../common/objects.c x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCORE -c -o xobjects-base.o ../xdata/xodtemplate.c ../xdata/xodtemplate.c: In function ‘xodtemplate_read_config_data’: ../xdata/xodtemplate.c:303:6: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 303 | asprintf(&cfgfile, "%s/%s", config_base_dir, val); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../xdata/xodtemplate.c:322:6: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 322 | asprintf(&cfgfile, "%s/%s", config_base_dir, val); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../xdata/xodtemplate.c: In function ‘xodtemplate_add_object_property’: ../xdata/xodtemplate.c:3463:6: warning: ‘%s’ directive argument is null [-Wformat-overflow=] 3463 | logit(NSLOG_CONFIG_ERROR, TRUE, "Error: Invalid 3d_coords value '%s' in extended host info definition.\n", temp_ptr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../xdata/xodtemplate.c:3448:6: warning: ‘%s’ directive argument is null [-Wformat-overflow=] 3448 | logit(NSLOG_CONFIG_ERROR, TRUE, "Error: Invalid 2d_coords value '%s' in extended host info definition.\n", temp_ptr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../xdata/xodtemplate.c:2611:6: warning: ‘%s’ directive argument is null [-Wformat-overflow=] 2611 | logit(NSLOG_CONFIG_ERROR, TRUE, "Error: Invalid 3d_coords value '%s' in host definition.\n", temp_ptr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../xdata/xodtemplate.c:2598:6: warning: ‘%s’ directive argument is null [-Wformat-overflow=] 2598 | logit(NSLOG_CONFIG_ERROR, TRUE, "Error: Invalid 2d_coords value '%s' in host definition.\n", temp_ptr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../xdata/xodtemplate.c: In function ‘xodtemplate_process_config_dir’: ../xdata/xodtemplate.c:592:38: warning: ‘__builtin___snprintf_chk’ output may be truncated before the last format character [-Wformat-truncation=] 592 | snprintf(file, sizeof(file), "%s/%s", dirname, dirfile->d_name); | ^ In file included from /usr/include/stdio.h:867, from ../xdata/../include/config.h:121, from ../xdata/xodtemplate.c:48: /usr/include/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output 2 or more bytes (assuming 257) into a destination of size 256 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCORE -c -o statusdata-base.o ../common/statusdata.c x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCORE -c -o xstatusdata-base.o ../xdata/xsddefault.c ../xdata/xsddefault.c: In function ‘xsddefault_save_status_data’: ../xdata/xsddefault.c:134:2: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 134 | asprintf(&tmp_log, "%sXXXXXX", temp_file); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCORE -c -o perfdata-base.o perfdata.c x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCORE -c -o xperfdata-base.o ../xdata/xpddefault.c x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCORE -c -o downtime-base.o ../common/downtime.c ../common/downtime.c: In function ‘register_downtime’: ../common/downtime.c:439:3: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 439 | 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:3: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 441 | 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make -C ../lib make[2]: Entering directory '/var/tmp/portage/net-analyzer/nagios-core-4.4.5-r6/work/nagios-4.4.5/lib' x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCORE -DHAVE_CONFIG_H -c squeue.c -o squeue.o x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCORE -DHAVE_CONFIG_H -c kvvec.c -o kvvec.o x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCORE -DHAVE_CONFIG_H -c iocache.c -o iocache.o x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCORE -DHAVE_CONFIG_H -c iobroker.c -o iobroker.o x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCORE -DHAVE_CONFIG_H -c bitmap.c -o bitmap.o x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCORE -DHAVE_CONFIG_H -c dkhash.c -o dkhash.o x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCORE -DHAVE_CONFIG_H -c runcmd.c -o runcmd.o x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCORE -DHAVE_CONFIG_H -c nsutils.c -o nsutils.o x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCORE -DHAVE_CONFIG_H -c fanout.c -o fanout.o x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCORE -DHAVE_CONFIG_H -c pqueue.c -o pqueue.o x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCORE -DHAVE_CONFIG_H -c worker.c -o worker.o worker.c: In function ‘enter_worker’: worker.c:758:8: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result [-Wunused-result] 758 | (void)chdir("/tmp"); | ^~~~~~~~~~~~~ worker.c:759:8: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result [-Wunused-result] 759 | (void)chdir("nagios-workers"); | ^~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCORE -DHAVE_CONFIG_H -c skiplist.c -o skiplist.o x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCORE -DHAVE_CONFIG_H -c nsock.c -o nsock.o x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCORE -DHAVE_CONFIG_H -c nspath.c -o nspath.o 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 '/var/tmp/portage/net-analyzer/nagios-core-4.4.5-r6/work/nagios-4.4.5/lib' x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCORE -o nagios nagios.o broker.o nebmods.o ../common/shared.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,-O1 -Wl,--as-needed -lm -lltdl ../lib/libnagios.a x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCORE -o nagiostats nagiostats.c -Wl,-O1 -Wl,--as-needed -lm ../lib/libnagios.a make[1]: Leaving directory '/var/tmp/portage/net-analyzer/nagios-core-4.4.5-r6/work/nagios-4.4.5/base' make -j1 CC=x86_64-pc-linux-gnu-gcc DESTDIR=/var/tmp/portage/net-analyzer/nagios-core-4.4.5-r6/image/ cgis html cd ./cgi && make make[1]: Entering directory '/var/tmp/portage/net-analyzer/nagios-core-4.4.5-r6/work/nagios-4.4.5/cgi' x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCGI -c -o getcgi.o getcgi.c x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCGI -c -o cgiutils.o cgiutils.c cgiutils.c: In function ‘read_cgi_config_file’: cgiutils.c:350:54: warning: ‘docs/’ directive output may be truncated writing 5 bytes into a region of size between 1 and 256 [-Wformat-truncation=] 350 | snprintf(url_docs_path, sizeof(url_docs_path), "%sdocs/", url_html_path); | ^~~~~ In file included from /usr/include/stdio.h:867, from ../include/config.h:121, from cgiutils.c:22: /usr/include/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 6 and 261 bytes into a destination of size 256 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cgiutils.c:353:70: warning: ‘contexthelp/’ directive output may be truncated writing 12 bytes into a region of size between 1 and 256 [-Wformat-truncation=] 353 | ntf(url_context_help_path, sizeof(url_context_help_path), "%scontexthelp/", url_html_path); | ^~~~~~~~~~~~ In file included from /usr/include/stdio.h:867, from ../include/config.h:121, from cgiutils.c:22: /usr/include/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 13 and 268 bytes into a destination of size 256 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cgiutils.c:356:58: warning: ‘images/’ directive output may be truncated writing 7 bytes into a region of size between 1 and 256 [-Wformat-truncation=] 356 | snprintf(url_images_path, sizeof(url_images_path), "%simages/", url_html_path); | ^~~~~~~ In file included from /usr/include/stdio.h:867, from ../include/config.h:121, from cgiutils.c:22: /usr/include/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 8 and 263 bytes into a destination of size 256 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cgiutils.c:359:68: warning: ‘logos/’ directive output may be truncated writing 6 bytes into a region of size between 1 and 256 [-Wformat-truncation=] 359 | rintf(url_logo_images_path, sizeof(url_logo_images_path), "%slogos/", url_images_path); | ^~~~~~ In file included from /usr/include/stdio.h:867, from ../include/config.h:121, from cgiutils.c:22: /usr/include/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 7 and 262 bytes into a destination of size 256 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cgiutils.c:362:68: warning: ‘stylesheets/’ directive output may be truncated writing 12 bytes into a region of size between 1 and 256 [-Wformat-truncation=] 362 | rintf(url_stylesheets_path, sizeof(url_stylesheets_path), "%sstylesheets/", url_html_path); | ^~~~~~~~~~~~ In file included from /usr/include/stdio.h:867, from ../include/config.h:121, from cgiutils.c:22: /usr/include/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 13 and 268 bytes into a destination of size 256 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cgiutils.c:365:56: warning: ‘media/’ directive output may be truncated writing 6 bytes into a region of size between 1 and 256 [-Wformat-truncation=] 365 | snprintf(url_media_path, sizeof(url_media_path), "%smedia/", url_html_path); | ^~~~~~ In file included from /usr/include/stdio.h:867, from ../include/config.h:121, from cgiutils.c:22: /usr/include/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 7 and 262 bytes into a destination of size 256 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cgiutils.c:369:50: warning: ‘js/’ directive output may be truncated writing 3 bytes into a region of size between 1 and 256 [-Wformat-truncation=] 369 | snprintf(url_js_path, sizeof(url_js_path), "%sjs/", url_html_path); | ^~~ In file included from /usr/include/stdio.h:867, from ../include/config.h:121, from cgiutils.c:22: /usr/include/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 4 and 259 bytes into a destination of size 256 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cgiutils.c:334:68: warning: ‘images/’ directive output may be truncated writing 7 bytes into a region of size between 1 and 256 [-Wformat-truncation=] 334 | rintf(physical_images_path, sizeof(physical_images_path), "%simages/", physical_html_path); | ^~~~~~~ In file included from /usr/include/stdio.h:867, from ../include/config.h:121, from cgiutils.c:22: /usr/include/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 8 and 263 bytes into a destination of size 256 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cgiutils.c:337:65: warning: ‘ssi/’ directive output may be truncated writing 4 bytes into a region of size between 1 and 256 [-Wformat-truncation=] 337 | snprintf(physical_ssi_path, sizeof(physical_images_path), "%sssi/", physical_html_path); | ^~~~ In file included from /usr/include/stdio.h:867, from ../include/config.h:121, from cgiutils.c:22: /usr/include/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 5 and 260 bytes into a destination of size 256 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:494, from ../include/config.h:166, from cgiutils.c:22: In function ‘strncpy’, inlined from ‘html_encode’ at cgiutils.c:1257:4: /usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘strncpy’, inlined from ‘html_encode’ at cgiutils.c:1262:4: /usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘strncpy’, inlined from ‘escape_string’ at cgiutils.c:1436:5: /usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cgiutils.c: In function ‘escape_string’: cgiutils.c:1434:39: note: length computed here 1434 | if((( stp - encoded_html_string) + strlen( temp_expansion)) < | ^~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCGI -c -o cgiauth.o cgiauth.c x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCGI -c -o macros-cgi.o ../common/macros.c x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCGI -c -o objects-cgi.o ../common/objects.c x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCGI -c -o xobjects-cgi.o ../xdata/xodtemplate.c ../xdata/xodtemplate.c: In function ‘xodtemplate_add_object_property’: ../xdata/xodtemplate.c:3463:6: warning: ‘%s’ directive argument is null [-Wformat-overflow=] 3463 | logit(NSLOG_CONFIG_ERROR, TRUE, "Error: Invalid 3d_coords value '%s' in extended host info definition.\n", temp_ptr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../xdata/xodtemplate.c:3448:6: warning: ‘%s’ directive argument is null [-Wformat-overflow=] 3448 | logit(NSLOG_CONFIG_ERROR, TRUE, "Error: Invalid 2d_coords value '%s' in extended host info definition.\n", temp_ptr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../xdata/xodtemplate.c:2611:6: warning: ‘%s’ directive argument is null [-Wformat-overflow=] 2611 | logit(NSLOG_CONFIG_ERROR, TRUE, "Error: Invalid 3d_coords value '%s' in host definition.\n", temp_ptr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../xdata/xodtemplate.c:2598:6: warning: ‘%s’ directive argument is null [-Wformat-overflow=] 2598 | logit(NSLOG_CONFIG_ERROR, TRUE, "Error: Invalid 2d_coords value '%s' in host definition.\n", temp_ptr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../xdata/xodtemplate.c: In function ‘xodtemplate_process_config_dir’: ../xdata/xodtemplate.c:592:38: warning: ‘__builtin___snprintf_chk’ output may be truncated before the last format character [-Wformat-truncation=] 592 | snprintf(file, sizeof(file), "%s/%s", dirname, dirfile->d_name); | ^ In file included from /usr/include/stdio.h:867, from ../xdata/../include/config.h:121, from ../xdata/xodtemplate.c:48: /usr/include/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output 2 or more bytes (assuming 257) into a destination of size 256 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCGI -c -o statusdata-cgi.o ../common/statusdata.c ../common/statusdata.c: In function ‘add_host_status’: ../common/statusdata.c:287:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 287 | asprintf(&new_hoststatus->plugin_output, "Host check scheduled for %s", date_string); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../common/statusdata.c:293:6: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 293 | 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:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 359 | asprintf(&new_svcstatus->plugin_output, "Service check scheduled for %s", date_string); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../common/statusdata.c:365:6: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] 365 | asprintf(&new_svcstatus->plugin_output, "Forced service check scheduled for %s", date_string); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCGI -c -o xstatusdata-cgi.o ../xdata/xsddefault.c x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCGI -c -o comments-cgi.o ../common/comments.c x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCGI -c -o downtime-cgi.o ../common/downtime.c x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCGI -DJSON_NAGIOS_4X -c -o archiveutils.o archiveutils.c x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCGI -DJSON_NAGIOS_4X -c -o jsonutils.o jsonutils.c x86_64-pc-linux-gnu-gcc -Wall -I.. -O2 -pipe -march=native -fno-common -DHAVE_CONFIG_H -DNSCGI -DJSON_NAGIOS_4X -Wl,-O1 -Wl,--as-needed -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 /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: xstatusdata-cgi.o:(.bss+0x98): multiple definition of `process_performance_data'; ../common/shared.o:(.bss+0x48): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: xstatusdata-cgi.o:(.bss+0x9c): multiple definition of `enable_flap_detection'; ../common/shared.o:(.bss+0x28): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: xstatusdata-cgi.o:(.bss+0xa8): multiple definition of `obsess_over_hosts'; ../common/shared.o:(.bss+0x8): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: xstatusdata-cgi.o:(.bss+0xac): multiple definition of `obsess_over_services'; ../common/shared.o:(.bss+0xc): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: xstatusdata-cgi.o:(.bss+0xb0): multiple definition of `enable_event_handlers'; ../common/shared.o:(.bss+0x10): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: xstatusdata-cgi.o:(.bss+0xb4): multiple definition of `accept_passive_host_checks'; ../common/shared.o:(.bss+0x14): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: xstatusdata-cgi.o:(.bss+0xb8): multiple definition of `execute_host_checks'; ../common/shared.o:(.bss+0x18): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: xstatusdata-cgi.o:(.bss+0xbc): multiple definition of `accept_passive_service_checks'; ../common/shared.o:(.bss+0x1c): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: xstatusdata-cgi.o:(.bss+0xc0): multiple definition of `execute_service_checks'; ../common/shared.o:(.bss+0x20): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: xstatusdata-cgi.o:(.bss+0xc4): multiple definition of `enable_notifications'; ../common/shared.o:(.bss+0x24): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: xstatusdata-cgi.o:(.bss+0xc8): multiple definition of `last_log_rotation'; ../common/shared.o:(.bss+0x30): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: xstatusdata-cgi.o:(.bss+0xd8): multiple definition of `program_start'; ../common/shared.o:(.bss+0xa0): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: xstatusdata-cgi.o:(.bss+0xd0): multiple definition of `daemon_mode'; ../common/shared.o:(.bss+0x38): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: xstatusdata-cgi.o:(.bss+0x94): multiple definition of `nagios_pid'; ../common/shared.o:(.bss+0x3c): first defined here collect2: error: ld returned 1 exit status make[1]: *** [Makefile:177: archivejson.cgi] Error 1 make[1]: Leaving directory '/var/tmp/portage/net-analyzer/nagios-core-4.4.5-r6/work/nagios-4.4.5/cgi' make: *** [Makefile:183: cgis] Error 2 * ERROR: net-analyzer/nagios-core-4.4.5-r6::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=net-analyzer/nagios-core-4.4.5-r6::gentoo'`, * the complete build log and the output of `emerge -pqv '=net-analyzer/nagios-core-4.4.5-r6::gentoo'`. * The complete build log is located at '/var/log/portage/net-analyzer:nagios-core-4.4.5-r6:20200128-082812.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/net-analyzer/nagios-core-4.4.5-r6/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-analyzer/nagios-core-4.4.5-r6/temp/environment'. * Working directory: '/var/tmp/portage/net-analyzer/nagios-core-4.4.5-r6/work/nagios-4.4.5' * S: '/var/tmp/portage/net-analyzer/nagios-core-4.4.5-r6/work/nagios-4.4.5'