-------------------------------------------------------------------------------
-- Phase: setup
-------------------------------------------------------------------------------
Installing /packages/All/perl5-5.30.2.txz
=====
Message from perl5-5.30.2:
--
The /usr/bin/perl symlink has been removed starting with Perl 5.20.
For shebangs, you should either use:
#!/usr/local/bin/perl
or
#!/usr/bin/env perl
The first one will only work if you have a /usr/local/bin/perl,
the second will work as long as perl is in PATH.
Installing /packages/All/libltdl-2.4.6.txz
Installing /packages/All/freetype2-2.10.1.txz
=====
Message from freetype2-2.10.1:
--
The 2.7.x series now uses the new subpixel hinting mode (V40 port's option) as
the default, emulating a modern version of ClearType. This change inevitably
leads to different rendering results, and you might change port's options to
adapt it to your taste (or use the new "FREETYPE_PROPERTIES" environment
variable).
The environment variable "FREETYPE_PROPERTIES" can be used to control the
driver properties. Example:
FREETYPE_PROPERTIES=truetype:interpreter-version=35 \
cff:no-stem-darkening=1 \
autofitter:warping=1
This allows to select, say, the subpixel hinting mode at runtime for a given
application.
If LONG_PCF_NAMES port's option was enabled, the PCF family names may include
the foundry and information whether they contain wide characters. For example,
"Sony Fixed" or "Misc Fixed Wide", instead of "Fixed". This can be disabled at
run time with using pcf:no-long-family-names property, if needed. Example:
FREETYPE_PROPERTIES=pcf:no-long-family-names=1
How to recreate fontconfig cache with using such environment variable,
if needed:
# env FREETYPE_PROPERTIES=pcf:no-long-family-names=1 fc-cache -fsv
The controllable properties are listed in the section "Controlling FreeType
Modules" in the reference's table of contents
(/usr/local/share/doc/freetype2/reference/site/index.html, if documentation was installed).
Installing /packages/All/expat-2.2.8.txz
Installing /packages/All/indexinfo-0.3.1.txz
Installing /packages/All/gettext-runtime-0.20.2.txz
Installing /packages/All/fontconfig-2.13.92_2,1.txz
Running fc-cache to build fontconfig cache...
Font directories:
/usr/local/share/fonts
/usr/local/lib/X11/fonts
/usr/local/share/fonts: skipping, no such directory
/usr/local/lib/X11/fonts: skipping, no such directory
/var/db/fontconfig: cleaning cache directory
fc-cache: succeeded
Installing /packages/All/png-1.6.37.txz
Installing /packages/All/jbigkit-2.1_1.txz
Installing /packages/All/jpeg-turbo-2.0.4.txz
Installing /packages/All/tiff-4.1.0.txz
Installing /packages/All/giflib-5.2.1.txz
Installing /packages/All/webp-1.1.0.txz
Installing /packages/All/libgd-2.3.0,1.txz
Installing /packages/All/openssl-1.1.1g,1.txz
Installing /packages/All/nagios-plugins-2.3.3,1.txz
Installing /packages/All/pcre-8.43_2.txz
Installing /packages/All/libargon2-20190702.txz
Installing /packages/All/libxml2-2.9.10.txz
Installing /packages/All/php72-7.2.30.txz
SUCCEEDED 00:00:17
-------------------------------------------------------------------------------
-- Phase: check-sanity
-------------------------------------------------------------------------------
SUCCEEDED 00:00:01
-------------------------------------------------------------------------------
-- Phase: pkg-depends
-------------------------------------------------------------------------------
===> nagios-3.5.1_12 depends on file: /usr/local/sbin/pkg - found
SUCCEEDED 00:00:00
-------------------------------------------------------------------------------
-- Phase: fetch-depends
-------------------------------------------------------------------------------
SUCCEEDED 00:00:00
-------------------------------------------------------------------------------
-- Phase: fetch
-------------------------------------------------------------------------------
===> nagios-3.5.1_12 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by nagios-3.5.1_12 for building
SUCCEEDED 00:00:00
-------------------------------------------------------------------------------
-- Phase: checksum
-------------------------------------------------------------------------------
===> nagios-3.5.1_12 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by nagios-3.5.1_12 for building
=> SHA256 Checksum OK for nagios-3.5.1.tar.gz.
SUCCEEDED 00:00:00
-------------------------------------------------------------------------------
-- Phase: extract-depends
-------------------------------------------------------------------------------
SUCCEEDED 00:00:00
-------------------------------------------------------------------------------
-- Phase: extract
-------------------------------------------------------------------------------
===> nagios-3.5.1_12 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by nagios-3.5.1_12 for building
===> Extracting for nagios-3.5.1_12
=> SHA256 Checksum OK for nagios-3.5.1.tar.gz.
Extracted Memory Use: 9.53M
SUCCEEDED 00:00:01
-------------------------------------------------------------------------------
-- Phase: patch-depends
-------------------------------------------------------------------------------
SUCCEEDED 00:00:00
-------------------------------------------------------------------------------
-- Phase: patch
-------------------------------------------------------------------------------
===> Patching for nagios-3.5.1_12
===> Applying ports patches for nagios-3.5.1_12
===> Cleanly applied ports patch(es) patch-0007-fix_downtime_struct patch-Makefile.in patch-base__Makefile.in patch-cgi__Makefile.in patch-contrib__Makefile.in patch-d97e03f32741a7d851826b03ed73ff4c9612a866 patch-html__Makefile.in patch-html__index.php patch-html__main.php patch-html_includes_rss_parse.inc patch-include__locations.h.in patch-sample-config__cgi.cfg.in patch-sample-config__nagios.cfg.in patch-sample-config__template-object__localhost.cfg.in patch-sample-config__template-object__templates.cfg.in
SUCCEEDED 00:00:00
-------------------------------------------------------------------------------
-- Phase: build-depends
-------------------------------------------------------------------------------
===> nagios-3.5.1_12 depends on package: perl5>=5.30.r1<5.31 - found
SUCCEEDED 00:00:01
-------------------------------------------------------------------------------
-- Phase: lib-depends
-------------------------------------------------------------------------------
===> nagios-3.5.1_12 depends on shared library: libltdl.so - found (/usr/local/lib/libltdl.so)
===> nagios-3.5.1_12 depends on shared library: libgd.so - found (/usr/local/lib/libgd.so)
SUCCEEDED 00:00:00
-------------------------------------------------------------------------------
-- Phase: configure
-------------------------------------------------------------------------------
===> nagios-3.5.1_12 depends on package: perl5>=5.30.r1<5.31 - found
===> nagios-3.5.1_12 depends on shared library: libltdl.so - found (/usr/local/lib/libltdl.so)
===> nagios-3.5.1_12 depends on shared library: libgd.so - found (/usr/local/lib/libgd.so)
===> Configuring for nagios-3.5.1_12
configure: loading site script /xports/Templates/config.site
checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... x86_64-portbld-dragonfly5.9
checking host system type... x86_64-portbld-dragonfly5.9
checking for gcc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking whether make sets $(MAKE)... yes
checking for strip... /usr/bin/strip
checking how to run the C preprocessor... cpp
checking for egrep... grep -E
checking for ANSI C header files... (cached) yes
checking whether time.h and sys/time.h may both be included... yes
checking for sys/wait.h that is POSIX.1 compatible... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for arpa/inet.h... (cached) yes
checking for ctype.h... (cached) yes
checking for dirent.h... (cached) yes
checking for errno.h... (cached) yes
checking for fcntl.h... (cached) yes
checking for getopt.h... (cached) yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking for libgen.h... (cached) yes
checking for limits.h... (cached) yes
checking for math.h... (cached) yes
checking for netdb.h... (cached) yes
checking for netinet/in.h... (cached) yes
checking for pthread.h... (cached) yes
checking pthreads.h usability... no
checking pthreads.h presence... no
checking for pthreads.h... no
checking for pwd.h... (cached) yes
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking for signal.h... (cached) yes
checking socket.h usability... no
checking socket.h presence... no
checking for socket.h... no
checking for stdarg.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for sys/mman.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for sys/resource.h... (cached) yes
checking for sys/wait.h... (cached) yes
checking for sys/socket.h... (cached) 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 for sys/un.h... (cached) yes
checking sys/ipc.h usability... yes
checking sys/ipc.h presence... yes
checking for sys/ipc.h... yes
checking for sys/msg.h... (cached) yes
checking for sys/poll.h... (cached) 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 for locale.h... (cached) yes
checking for wchar.h... (cached) 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... (cached) yes
checking for pid_t... (cached) yes
checking for size_t... (cached) yes
checking return type of signal handlers... void
checking for uid_t in sys/types.h... (cached) yes
checking type of array argument to getgroups... gid_t
checking for va_copy... yes
checking for vsnprintf... (cached) yes
checking for snprintf... (cached) yes
checking for asprintf... (cached) yes
checking for vasprintf... (cached) 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... (cached) yes
checking for strdup... (cached) yes
checking for strstr... (cached) yes
checking for strtoul... (cached) yes
checking for unsetenv... (cached) yes
checking for type of socket size... size_t
checking for pthread_create in -lcma... no
checking for pthread_create in -lpthread... yes
checking for library containing nanosleep... none required
checking for mail... /usr/bin/mail
We'll use default routines (in xdata/xsddefault.*) for status data I/O...
We'll use default routines (in xdata/xcddefault.*) for comment data I/O...
We'll use default routines (in xdata/xrddefault.*) for retention data I/O...
We'll use template-based routines (in xdata/xodtemplate.*) for object data I/O...
We'll use default routines (in xdata/xpddefault.*) for performance data I/O...
We'll use default routines (in xdata/xdddefault.*) for scheduled downtime data I/O...
checking for main in -liconv... (cached) no
checking for gdImagePng in -lgd (order 1)... no
checking for gdImagePng in -lgd (order 2)... yes
GD library was found!
checking for gdImageCreateTrueColor in -lgd... yes
checking for traceroute... /usr/sbin/traceroute
checking for type va_list... yes
checking for perl... (cached) /usr/local/bin/perl
configure: creating ./config.status
config.status: creating Makefile
config.status: creating subst
config.status: creating pkginfo
config.status: creating base/Makefile
config.status: creating common/Makefile
config.status: creating contrib/Makefile
config.status: creating cgi/Makefile
config.status: creating html/Makefile
config.status: creating module/Makefile
config.status: creating xdata/Makefile
config.status: creating daemon-init
config.status: creating t/Makefile
config.status: creating t-tap/Makefile
config.status: creating include/config.h
config.status: creating include/snprintf.h
Creating sample config files in sample-config/ ...
*** Configuration summary for nagios 3.5.1 08-30-2013 ***:
General Options:
-------------------------
Nagios executable: nagios
Nagios user/group: nagios,nagios
Command user/group: nagios,www
Embedded Perl: no
Event Broker: no
Install ${prefix}: /usr/local
Lock file: /var/spool/nagios/nagios.lock
Check result directory: /var/spool/nagios/checkresults
Init directory: /usr/local/etc/rc.d
Apache conf.d directory: /usr/local/etc
Mail program: /usr/bin/mail
Host OS: dragonfly5.9
Web Interface Options:
------------------------
HTML URL: http://localhost/nagios/
CGI URL: http://localhost/nagios/cgi-bin/
Traceroute (used by WAP): /usr/sbin/traceroute
Review the options above for accuracy. If they look okay,
type 'make all' to compile the main program and CGIs.
SUCCEEDED 00:00:09
-------------------------------------------------------------------------------
-- Phase: build
-------------------------------------------------------------------------------
===> Building for nagios-3.5.1_12
cd ./base && /usr/bin/make
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCORE -c -o ../common/shared.o ../common/shared.c
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCORE -c checks.c
checks.c: In function 'run_async_service_check':
checks.c:338:6: warning: variable 'wait_result' set but not used [-Wunused-but-set-variable]
int wait_result = 0;
^~~~~~~~~~~
checks.c: In function 'run_async_host_check_3x':
checks.c:2930:6: warning: variable 'wait_result' set but not used [-Wunused-but-set-variable]
int wait_result = 0;
^~~~~~~~~~~
checks.c: In function 'handle_async_host_check_result_3x':
checks.c:3284:17: warning: variable 'start_time_hires' set but not used [-Wunused-but-set-variable]
struct timeval start_time_hires;
^~~~~~~~~~~~~~~~
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCORE -c config.c
config.c: In function 'read_main_config_file':
config.c:262:8: warning: variable 'argptr' set but not used [-Wunused-but-set-variable]
char *argptr = NULL;
^~~~~~
config.c:261:8: warning: variable 'modptr' set but not used [-Wunused-but-set-variable]
char *modptr = NULL;
^~~~~~
config.c: In function 'pre_flight_circular_check':
config.c:2710:6: warning: variable 'result' set but not used [-Wunused-but-set-variable]
int result = OK;
^~~~~~
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCORE -c commands.c
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCORE -c events.c
events.c: In function 'event_execution_loop':
events.c:991:14: warning: variable 'sleep_event' set but not used [-Wunused-but-set-variable]
timed_event sleep_event;
^~~~~~~~~~~
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCORE -c flapping.c
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCORE -c logging.c
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCORE -c -o macros-base.o ../common/macros.c
../common/macros.c: In function 'process_macros_r':
../common/macros.c:133:6: warning: variable 'found_macro_x' set but not used [-Wunused-but-set-variable]
int found_macro_x = FALSE;
^~~~~~~~~~~~~
../common/macros.c:128:6: warning: variable 'x' set but not used [-Wunused-but-set-variable]
int x = 0;
^
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCORE -c netutils.c
netutils.c: In function 'my_tcp_connect':
netutils.c:52:40: warning: '%d' directive output may be truncated writing between 1 and 11 bytes into a region of size 6 [-Wformat-truncation=]
snprintf(port_str, sizeof(port_str), "%d", port);
^~
netutils.c:52:39: note: directive argument in the range [-2147483648, 65535]
snprintf(port_str, sizeof(port_str), "%d", port);
^~~~
netutils.c:52:2: note: 'snprintf' output between 2 and 12 bytes into a destination of size 6
snprintf(port_str, sizeof(port_str), "%d", port);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCORE -c notifications.c
notifications.c: In function 'service_notification':
notifications.c:73:6: warning: unused variable 'neb_result' [-Wunused-variable]
int neb_result;
^~~~~~~~~~
notifications.c: In function 'notify_contact_of_service':
notifications.c:721:6: warning: unused variable 'neb_result' [-Wunused-variable]
int neb_result;
^~~~~~~~~~
notifications.c: In function 'host_notification':
notifications.c:1061:6: warning: unused variable 'neb_result' [-Wunused-variable]
int neb_result;
^~~~~~~~~~
notifications.c: In function 'check_host_notification_viability':
notifications.c:1499:87: warning: self-comparison always evaluates to false [-Wtautological-compare]
if((hst->last_time_unreachable < first_problem_time) && (hst->last_time_unreachable > hst->last_time_unreachable))
^
notifications.c: In function 'notify_contact_of_host':
notifications.c:1659:6: warning: unused variable 'neb_result' [-Wunused-variable]
int neb_result;
^~~~~~~~~~
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCORE -c sehandlers.c
sehandlers.c: In function 'run_global_service_event_handler':
sehandlers.c:265:6: warning: variable 'result' set but not used [-Wunused-but-set-variable]
int result = 0;
^~~~~~
sehandlers.c: In function 'run_service_event_handler':
sehandlers.c:368:6: warning: variable 'result' set but not used [-Wunused-but-set-variable]
int result = 0;
^~~~~~
sehandlers.c: In function 'run_global_host_event_handler':
sehandlers.c:511:6: warning: variable 'result' set but not used [-Wunused-but-set-variable]
int result = 0;
^~~~~~
sehandlers.c: In function 'run_host_event_handler':
sehandlers.c:612:6: warning: variable 'result' set but not used [-Wunused-but-set-variable]
int result = 0;
^~~~~~
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCORE -c -o skiplist.o ../common/skiplist.c
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCORE -c utils.c
utils.c: In function 'my_system_r':
utils.c:305:8: warning: variable 'temp_buffer' set but not used [-Wunused-but-set-variable]
char *temp_buffer = NULL;
^~~~~~~~~~~
utils.c: In function 'check_time_against_period':
utils.c:863:6: warning: variable 'test_time_mday' set but not used [-Wunused-but-set-variable]
int test_time_mday = 0;
^~~~~~~~~~~~~~
utils.c: In function '_get_next_valid_time':
utils.c:1159:6: warning: variable 'current_time_wday' set but not used [-Wunused-but-set-variable]
int current_time_wday = 0;
^~~~~~~~~~~~~~~~~
utils.c:1154:6: warning: variable 'pref_time_mday' set but not used [-Wunused-but-set-variable]
int pref_time_mday = 0;
^~~~~~~~~~~~~~
utils.c: In function 'contains_illegal_object_chars':
utils.c:3004:15: warning: variable 'ch' set but not used [-Wunused-but-set-variable]
register int ch = 0;
^~
utils.c: In function 'generate_check_stats':
utils.c:3839:6: warning: variable 'right_value' set but not used [-Wunused-but-set-variable]
int right_value = 0;
^~~~~~~~~~~
utils.c:3838:6: warning: variable 'left_value' set but not used [-Wunused-but-set-variable]
int left_value = 0;
^~~~~~~~~~
utils.c: In function 'query_update_api':
utils.c:4075:6: warning: variable 'result' set but not used [-Wunused-but-set-variable]
int result = OK;
^~~~~~
utils.c: In function 'process_check_result_queue':
utils.c:2381:38: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=]
snprintf(file, sizeof(file), "%s/%s", dirname, dirfile->d_name);
^
utils.c:2381:3: note: 'snprintf' output 2 or more bytes (assuming 257) into a destination of size 256
snprintf(file, sizeof(file), "%s/%s", dirname, dirfile->d_name);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
utils.c: In function 'find_executing_checks':
utils.c:2471:38: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=]
snprintf(file, sizeof(file), "%s/%s", dirname, dirfile->d_name);
^
utils.c:2471:3: note: 'snprintf' output 2 or more bytes (assuming 257) into a destination of size 256
snprintf(file, sizeof(file), "%s/%s", dirname, dirfile->d_name);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCORE -c -o retention-base.o sretention.c
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCORE -c -o xretention-base.o ../xdata/xrddefault.c
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCORE -c -o comments-base.o ../common/comments.c
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCORE -c -o xcomments-base.o ../xdata/xcddefault.c
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCORE -c -o objects-base.o ../common/objects.c
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCORE -c -o xobjects-base.o ../xdata/xodtemplate.c
../xdata/xodtemplate.c: In function 'xodtemplate_process_config_dir':
../xdata/xodtemplate.c:600:38: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=]
snprintf(file, sizeof(file), "%s/%s", dirname, dirfile->d_name);
^
../xdata/xodtemplate.c:600:3: note: 'snprintf' output 2 or more bytes (assuming 257) into a destination of size 256
snprintf(file, sizeof(file), "%s/%s", dirname, dirfile->d_name);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCORE -c -o statusdata-base.o ../common/statusdata.c
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCORE -c -o xstatusdata-base.o ../xdata/xsddefault.c
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCORE -c -o perfdata-base.o perfdata.c
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCORE -c -o xperfdata-base.o ../xdata/xpddefault.c
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCORE -c -o downtime-base.o ../common/downtime.c
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCORE -c -o xdowntime-base.o ../xdata/xdddefault.c
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCORE -o nagios nagios.c ../common/shared.o checks.o config.o commands.o events.o flapping.o logging.o macros-base.o netutils.o notifications.o sehandlers.o skiplist.o utils.o retention-base.o xretention-base.o comments-base.o xcomments-base.o objects-base.o xobjects-base.o statusdata-base.o xstatusdata-base.o perfdata-base.o xperfdata-base.o downtime-base.o xdowntime-base.o -lm -lpthread -L/usr/local/lib
nagios.c: In function 'main':
nagios.c:472:3: warning: 'strncat' specified bound 1 equals source length [-Wstringop-overflow=]
strncat(config_file, "/", 1);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCORE -o nagiostats nagiostats.c -lm -L/usr/local/lib
cd ./cgi && /usr/bin/make
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCGI -c getcgi.c
getcgi.c: In function 'free_cgivars':
getcgi.c:513:24: warning: comparison between pointer and zero character constant [-Wpointer-compare]
for(x = 0; cgivars[x] != '\x0'; x++)
^~
getcgi.c:513:13: note: did you mean to dereference the pointer?
for(x = 0; cgivars[x] != '\x0'; x++)
^
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCGI -c cgiutils.c
cgiutils.c: In function 'include_ssi_files':
cgiutils.c:1571:6: warning: unused variable 'x' [-Wunused-variable]
int x;
^
cgiutils.c: In function 'html_encode':
cgiutils.c:1008:4: warning: 'strncpy' output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation]
strncpy(outstp, "
", 4);
^~~~~~~~~~~~~~~~~~~~~~~~~~
cgiutils.c:1013:4: warning: 'strncpy' output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation]
strncpy(outstp, "
", 4);
^~~~~~~~~~~~~~~~~~~~~~~~~~
cgiutils.c:1032:6: warning: 'strncpy' output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation]
strncpy(outstp, "<", 4);
^~~~~~~~~~~~~~~~~~~~~~~~~~
cgiutils.c:1050:6: warning: 'strncpy' output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation]
strncpy(outstp, ">", 4);
^~~~~~~~~~~~~~~~~~~~~~~~~~
cgiutils.c: In function 'read_cgi_config_file':
cgiutils.c:360:54: warning: 'docs/' directive output may be truncated writing 5 bytes into a region of size between 1 and 256 [-Wformat-truncation=]
snprintf(url_docs_path, sizeof(url_docs_path), "%sdocs/", url_html_path);
^~~~~
cgiutils.c:360:4: note: 'snprintf' output between 6 and 261 bytes into a destination of size 256
snprintf(url_docs_path, sizeof(url_docs_path), "%sdocs/", url_html_path);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cgiutils.c:363:70: warning: 'contexthelp/' directive output may be truncated writing 12 bytes into a region of size between 1 and 256 [-Wformat-truncation=]
snprintf(url_context_help_path, sizeof(url_context_help_path), "%scontexthelp/", url_html_path);
^~~~~~~~~~~~
cgiutils.c:363:4: note: 'snprintf' output between 13 and 268 bytes into a destination of size 256
snprintf(url_context_help_path, sizeof(url_context_help_path), "%scontexthelp/", url_html_path);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cgiutils.c:366:58: warning: 'images/' directive output may be truncated writing 7 bytes into a region of size between 1 and 256 [-Wformat-truncation=]
snprintf(url_images_path, sizeof(url_images_path), "%simages/", url_html_path);
^~~~~~~
cgiutils.c:366:4: note: 'snprintf' output between 8 and 263 bytes into a destination of size 256
snprintf(url_images_path, sizeof(url_images_path), "%simages/", url_html_path);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cgiutils.c:369:68: warning: 'logos/' directive output may be truncated writing 6 bytes into a region of size between 1 and 256 [-Wformat-truncation=]
snprintf(url_logo_images_path, sizeof(url_logo_images_path), "%slogos/", url_images_path);
^~~~~~
cgiutils.c:369:4: note: 'snprintf' output between 7 and 262 bytes into a destination of size 256
snprintf(url_logo_images_path, sizeof(url_logo_images_path), "%slogos/", url_images_path);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cgiutils.c:372:68: warning: 'stylesheets/' directive output may be truncated writing 12 bytes into a region of size between 1 and 256 [-Wformat-truncation=]
snprintf(url_stylesheets_path, sizeof(url_stylesheets_path), "%sstylesheets/", url_html_path);
^~~~~~~~~~~~
cgiutils.c:372:4: note: 'snprintf' output between 13 and 268 bytes into a destination of size 256
snprintf(url_stylesheets_path, sizeof(url_stylesheets_path), "%sstylesheets/", url_html_path);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cgiutils.c:375:56: warning: 'media/' directive output may be truncated writing 6 bytes into a region of size between 1 and 256 [-Wformat-truncation=]
snprintf(url_media_path, sizeof(url_media_path), "%smedia/", url_html_path);
^~~~~~
cgiutils.c:375:4: note: 'snprintf' output between 7 and 262 bytes into a destination of size 256
snprintf(url_media_path, sizeof(url_media_path), "%smedia/", url_html_path);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cgiutils.c:379:50: warning: 'js/' directive output may be truncated writing 3 bytes into a region of size between 1 and 256 [-Wformat-truncation=]
snprintf(url_js_path, sizeof(url_js_path), "%sjs/", url_html_path);
^~~
cgiutils.c:379:4: note: 'snprintf' output between 4 and 259 bytes into a destination of size 256
snprintf(url_js_path, sizeof(url_js_path), "%sjs/", url_html_path);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cgiutils.c:344:68: warning: 'images/' directive output may be truncated writing 7 bytes into a region of size between 1 and 256 [-Wformat-truncation=]
snprintf(physical_images_path, sizeof(physical_images_path), "%simages/", physical_html_path);
^~~~~~~
cgiutils.c:344:4: note: 'snprintf' output between 8 and 263 bytes into a destination of size 256
snprintf(physical_images_path, sizeof(physical_images_path), "%simages/", physical_html_path);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cgiutils.c:347:65: warning: 'ssi/' directive output may be truncated writing 4 bytes into a region of size between 1 and 256 [-Wformat-truncation=]
snprintf(physical_ssi_path, sizeof(physical_images_path), "%sssi/", physical_html_path);
^~~~
cgiutils.c:347:4: note: 'snprintf' output between 5 and 260 bytes into a destination of size 256
snprintf(physical_ssi_path, sizeof(physical_images_path), "%sssi/", physical_html_path);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cgiutils.c: In function 'html_encode':
cgiutils.c:1070:31: warning: '%u' directive writing between 1 and 10 bytes into a region of size 8 [-Wformat-overflow=]
sprintf(temp_expansion, "%u;", *(unsigned int *)inwcp);
^~
cgiutils.c:1070:28: note: directive argument in the range [1, 4294967295]
sprintf(temp_expansion, "%u;", *(unsigned int *)inwcp);
^~~~~~~
cgiutils.c:1070:4: note: 'sprintf' output between 5 and 14 bytes into a destination of size 10
sprintf(temp_expansion, "%u;", *(unsigned int *)inwcp);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cgiutils.c:1073:5: warning: 'strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
strncpy(outstp, temp_expansion, strlen(temp_expansion));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cgiutils.c:1071:41: note: length computed here
if(((outstp - encoded_html_string) + strlen(temp_expansion)) <
^~~~~~~~~~~~~~~~~~~~~~
cgiutils.c: In function 'escape_string':
cgiutils.c:1172:5: warning: 'strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
strncpy(stp, temp_expansion, strlen(temp_expansion));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cgiutils.c:1170:38: note: length computed here
if(((stp - encoded_html_string) + strlen(temp_expansion)) <
^~~~~~~~~~~~~~~~~~~~~~
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCGI -c cgiauth.c
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCGI -c -o macros-cgi.o ../common/macros.c
../common/macros.c: In function 'process_macros_r':
../common/macros.c:133:6: warning: variable 'found_macro_x' set but not used [-Wunused-but-set-variable]
int found_macro_x = FALSE;
^~~~~~~~~~~~~
../common/macros.c:128:6: warning: variable 'x' set but not used [-Wunused-but-set-variable]
int x = 0;
^
../common/macros.c: In function 'grab_datetime_macro_r':
../common/macros.c:1481:9: warning: variable 'test_time' set but not used [-Wunused-but-set-variable]
time_t test_time = 0L;
^~~~~~~~~
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCGI -c -o skiplist.o ../common/skiplist.c
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCGI -c -o objects-cgi.o ../common/objects.c
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCGI -c -o xobjects-cgi.o ../xdata/xodtemplate.c
../xdata/xodtemplate.c: In function 'xodtemplate_process_config_dir':
../xdata/xodtemplate.c:600:38: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=]
snprintf(file, sizeof(file), "%s/%s", dirname, dirfile->d_name);
^
../xdata/xodtemplate.c:600:3: note: 'snprintf' output 2 or more bytes (assuming 257) into a destination of size 256
snprintf(file, sizeof(file), "%s/%s", dirname, dirfile->d_name);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCGI -c -o statusdata-cgi.o ../common/statusdata.c
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCGI -c -o xstatusdata-cgi.o ../xdata/xsddefault.c
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCGI -c -o comments-cgi.o ../common/comments.c
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCGI -c -o downtime-cgi.o ../common/downtime.c
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCGI -o avail.cgi avail.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o -L/usr/local/lib
avail.c: In function 'compute_subject_availability':
avail.c:1681:6: warning: variable 'first_real_state' set but not used [-Wunused-but-set-variable]
int first_real_state = AS_NO_DATA;
^~~~~~~~~~~~~~~~
avail.c: In function 'compute_subject_availability_times':
avail.c:1983:6: warning: variable 'end_state' set but not used [-Wunused-but-set-variable]
int end_state;
^~~~~~~~~
avail.c: In function 'compute_subject_downtime_times':
avail.c:2259:9: warning: variable 'part_start_time' set but not used [-Wunused-but-set-variable]
time_t part_start_time = 0L;
^~~~~~~~~~~~~~~
avail.c: In function 'display_host_availability':
avail.c:3889:9: warning: variable 'percent_time_indeterminate_unscheduled' set but not used [-Wunused-but-set-variable]
double percent_time_indeterminate_unscheduled = 0.0;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
avail.c: In function 'display_service_availability':
avail.c:4389:9: warning: variable 'percent_time_indeterminate_unscheduled' set but not used [-Wunused-but-set-variable]
double percent_time_indeterminate_unscheduled = 0.0;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCGI -c extcmd_list.c
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCGI -o cmd.cgi cmd.c extcmd_list.o ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o -L/usr/local/lib
cmd.c: In function 'show_command_help':
cmd.c:2309:6: warning: type of 'cmd' defaults to 'int' [-Wimplicit-int]
void show_command_help(cmd) {
^~~~~~~~~~~~~~~~~
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCGI -o config.cgi config.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o -L/usr/local/lib
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCGI -o extinfo.cgi extinfo.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o -L/usr/local/lib
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCGI -o history.cgi history.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o -L/usr/local/lib
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCGI -o notifications.cgi notifications.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o -L/usr/local/lib
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCGI -o outages.cgi outages.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o -L/usr/local/lib
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCGI -o showlog.cgi showlog.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o -L/usr/local/lib
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCGI -o status.cgi status.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o -L/usr/local/lib
status.c: In function 'create_pagenumbers':
status.c:5408:6: warning: variable 'next_page' set but not used [-Wunused-but-set-variable]
int next_page;
^~~~~~~~~
status.c:5405:6: warning: variable 'leftovers' set but not used [-Wunused-but-set-variable]
int leftovers = 0;
^~~~~~~~~
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCGI -o statuswml.cgi statuswml.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o -L/usr/local/lib
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCGI -o summary.cgi summary.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o -L/usr/local/lib
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCGI -o tac.cgi tac.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o -L/usr/local/lib
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCGI -o statusmap.cgi statusmap.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o -lgd -lpng -ljpeg -lz -lm -L/usr/local/lib
statusmap.c: In function 'draw_hosts':
statusmap.c:1573:10: warning: variable 'y2' set but not used [-Wunused-but-set-variable]
int y1, y2;
^~
statusmap.c: In function 'calculate_circular_layer_coords':
statusmap.c:2652:9: warning: variable 'average_child_angle' set but not used [-Wunused-but-set-variable]
double average_child_angle = 0.0;
^~~~~~~~~~~~~~~~~~~
statusmap.c: In function 'draw_circular_layer_markup':
statusmap.c:2741:9: warning: variable 'average_child_angle' set but not used [-Wunused-but-set-variable]
double average_child_angle = 0.0;
^~~~~~~~~~~~~~~~~~~
statusmap.c: In function 'initialize_graphics':
statusmap.c:2150:80: warning: 'logos/' directive output may be truncated writing 6 bytes into a region of size between 0 and 255 [-Wformat-truncation=]
snprintf(physical_logo_images_path, sizeof(physical_logo_images_path) - 1, "%slogos/", physical_images_path);
^~~~~~
statusmap.c:2150:2: note: 'snprintf' output between 7 and 262 bytes into a destination of size 255
snprintf(physical_logo_images_path, sizeof(physical_logo_images_path) - 1, "%slogos/", physical_images_path);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCGI -o trends.cgi trends.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o -lgd -lpng -ljpeg -lz -lm -L/usr/local/lib
trends.c: In function 'graph_all_trend_data':
trends.c:1741:6: warning: variable 'first_real_state' set but not used [-Wunused-but-set-variable]
int first_real_state = AS_NO_DATA;
^~~~~~~~~~~~~~~~
trends.c: In function 'graph_trend_data':
trends.c:2046:6: warning: variable 'end_state' set but not used [-Wunused-but-set-variable]
int end_state;
^~~~~~~~~
trends.c: In function 'draw_time_breakdowns':
trends.c:2801:6: warning: variable 'string_height' set but not used [-Wunused-but-set-variable]
int string_height;
^~~~~~~~~~~~~
trends.c: In function 'graph_trend_data':
trends.c:2288:58: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1017 [-Wformat-truncation=]
snprintf(temp_buffer, sizeof(temp_buffer) - 1, "%s
Time Range: %s to %s
Duration: %dd %dh %dm %ds
State Info: %s", state_string, start_timestring, end_timestring, days, hours, minutes, seconds, (state_info == NULL) ? "N/A" : state_info);
^~ ~~~~~~~~~~~~
trends.c:2288:51: note: assuming directive output of 3 bytes
snprintf(temp_buffer, sizeof(temp_buffer) - 1, "%s
Time Range: %s to %s
Duration: %dd %dh %dm %ds
State Info: %s", state_string, start_timestring, end_timestring, days, hours, minutes, seconds, (state_info == NULL) ? "N/A" : state_info);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
trends.c:2288:4: note: 'snprintf' output 125 or more bytes (assuming 3197) into a destination of size 1023
snprintf(temp_buffer, sizeof(temp_buffer) - 1, "%s
Time Range: %s to %s
Duration: %dd %dh %dm %ds
State Info: %s", state_string, start_timestring, end_timestring, days, hours, minutes, seconds, (state_info == NULL) ? "N/A" : state_info);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
trends.c: In function 'main':
trends.c:781:54: warning: ' to ' directive output may be truncated writing 4 bytes into a region of size between 0 and 1023 [-Wformat-truncation=]
snprintf(temp_buffer, sizeof(temp_buffer) - 1, "%s to %s", start_time, end_time);
^~~~
trends.c:781:4: note: 'snprintf' output between 5 and 2051 bytes into a destination of size 1023
snprintf(temp_buffer, sizeof(temp_buffer) - 1, "%s to %s", start_time, end_time);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
trends.c:788:54: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=]
snprintf(temp_buffer, sizeof(temp_buffer) - 1, "%s", start_time);
^
trends.c:788:4: note: 'snprintf' output between 1 and 1024 bytes into a destination of size 1023
snprintf(temp_buffer, sizeof(temp_buffer) - 1, "%s", start_time);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc -Wall -pipe -I/usr/local/include -O2 -fno-strict-aliasing -DHAVE_CONFIG_H -DNSCGI -o histogram.cgi histogram.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o -lgd -lpng -ljpeg -lz -lm -L/usr/local/lib
histogram.c: In function 'graph_all_histogram_data':
histogram.c:1710:52: warning: ' to ' directive output may be truncated writing 4 bytes into a region of size between 0 and 1023 [-Wformat-truncation=]
snprintf(temp_buffer, sizeof(temp_buffer) - 1, "%s to %s", start_time, end_time);
^~~~
histogram.c:1710:2: note: 'snprintf' output between 5 and 2051 bytes into a destination of size 1023
snprintf(temp_buffer, sizeof(temp_buffer) - 1, "%s to %s", start_time, end_time);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cd ./html && /usr/bin/make
if [ xno = xyes ]; then cd ./module && /usr/bin/make; fi
*** Compile finished ***
If the main program and CGIs compiled without any errors, you
can continue with installing Nagios as follows (type 'make'
without any arguments for a list of all possible options):
make install
- This installs the main program, CGIs, and HTML files
make install-init
- This installs the init script in /usr/local/etc/rc.d
make install-commandmode
- This installs and configures permissions on the
directory for holding the external command file
make install-config
- This installs *SAMPLE* config files in /usr/local/etc/nagios
You'll have to modify these sample files before you can
use Nagios. Read the HTML documentation for more info
on doing this. Pay particular attention to the docs on
object configuration files, as they determine what/how
things get monitored!
make install-webconf
- This installs the Apache config file for the Nagios
web interface
make install-exfoliation
- This installs the Exfoliation theme for the Nagios
web interface
make install-classicui
- This installs the classic theme for the Nagios
web interface
*** Support Notes *******************************************
If you have questions about configuring or running Nagios,
please make sure that you:
- Look at the sample config files
- Read the documentation on the Nagios Library at:
http://library.nagios.com
before you post a question to one of the mailing lists.
Also make sure to include pertinent information that could
help others help you. This might include:
- What version of Nagios you are using
- What version of the plugins you are using
- Relevant snippets from your config files
- Relevant error messages from the Nagios log file
For more information on obtaining support for Nagios, visit:
http://support.nagios.com
*************************************************************
Enjoy.
SUCCEEDED 00:01:46
-------------------------------------------------------------------------------
-- Phase: run-depends
-------------------------------------------------------------------------------
===> nagios-3.5.1_12 depends on file: /usr/local/libexec/nagios/check_nagios - found
===> nagios-3.5.1_12 depends on file: /usr/local/include/php/main/php.h - found
SUCCEEDED 00:00:00
-------------------------------------------------------------------------------
-- Phase: stage
-------------------------------------------------------------------------------
===> Staging for nagios-3.5.1_12
===> nagios-3.5.1_12 depends on file: /usr/local/libexec/nagios/check_nagios - found
===> nagios-3.5.1_12 depends on file: /usr/local/include/php/main/php.h - found
===> Generating temporary packing list
===> Creating groups.
===> Creating users
cd ./base && /usr/bin/make install
/usr/bin/make install-basic
/usr/bin/install -c -m 755 -d /construction/net-mgmt/nagios/stage/usr/local/bin
/usr/bin/install -c -m 755 nagios /construction/net-mgmt/nagios/stage/usr/local/bin
/usr/bin/install -c -m 755 nagiostats /construction/net-mgmt/nagios/stage/usr/local/bin
/usr/bin/make strip-post-install
/usr/bin/strip /construction/net-mgmt/nagios/stage/usr/local/bin/nagios
/usr/bin/strip /construction/net-mgmt/nagios/stage/usr/local/bin/nagiostats
cd ./cgi && /usr/bin/make install
/usr/bin/make install-basic
/usr/bin/install -c -m 755 -d /construction/net-mgmt/nagios/stage/usr/local/www/nagios/cgi-bin
for file in *.cgi; do /usr/bin/install -c -m 755 $file /construction/net-mgmt/nagios/stage/usr/local/www/nagios/cgi-bin; done
/usr/bin/make strip-post-install
for file in *.cgi; do /usr/bin/strip /construction/net-mgmt/nagios/stage/usr/local/www/nagios/cgi-bin/$file; done
cd ./html && /usr/bin/make install
/usr/bin/install -c -m 755 -d /construction/net-mgmt/nagios/stage/usr/local/www/nagios
/usr/bin/install -c -m 755 -d /construction/net-mgmt/nagios/stage/usr/local/www/nagios/stylesheets
/usr/bin/install -c -m 755 -d /construction/net-mgmt/nagios/stage/usr/local/www/nagios/contexthelp
/usr/bin/install -c -m 755 -d /construction/net-mgmt/nagios/stage/usr/local/www/nagios/js
/usr/bin/install -c -m 755 -d /construction/net-mgmt/nagios/stage/usr/local/www/nagios/images
/usr/bin/install -c -m 755 -d /construction/net-mgmt/nagios/stage/usr/local/www/nagios/images/logos
/usr/bin/install -c -m 755 -d /construction/net-mgmt/nagios/stage/usr/local/www/nagios/includes
/usr/bin/install -c -m 755 -d /construction/net-mgmt/nagios/stage/usr/local/www/nagios/includes/rss
/usr/bin/install -c -m 755 -d /construction/net-mgmt/nagios/stage/usr/local/www/nagios/includes/rss/extlib
/usr/bin/install -c -m 755 -d /construction/net-mgmt/nagios/stage/usr/local/www/nagios/ssi
/usr/bin/install -c -m 644 robots.txt /construction/net-mgmt/nagios/stage/usr/local/www/nagios
rm -f /construction/net-mgmt/nagios/stage/usr/local/www/nagios/index.html
rm -f /construction/net-mgmt/nagios/stage/usr/local/www/nagios/main.html
rm -f /construction/net-mgmt/nagios/stage/usr/local/www/nagios/side.html
for file in *.php; do /usr/bin/install -c -m 644 $file /construction/net-mgmt/nagios/stage/usr/local/www/nagios; done
for file in stylesheets/*.css; do /usr/bin/install -c -m 644 $file /construction/net-mgmt/nagios/stage/usr/local/www/nagios/stylesheets; done
for file in contexthelp/*.html; do /usr/bin/install -c -m 644 $file /construction/net-mgmt/nagios/stage/usr/local/www/nagios/contexthelp; done
for file in js/*.js; do /usr/bin/install -c -m 644 $file /construction/net-mgmt/nagios/stage/usr/local/www/nagios/js; done
for file in images/*.gif; do /usr/bin/install -c -m 644 $file /construction/net-mgmt/nagios/stage/usr/local/www/nagios/images; done
for file in images/*.jpg; do /usr/bin/install -c -m 644 $file /construction/net-mgmt/nagios/stage/usr/local/www/nagios/images; done
for file in images/*.png; do /usr/bin/install -c -m 644 $file /construction/net-mgmt/nagios/stage/usr/local/www/nagios/images; done
for file in images/*.ico; do /usr/bin/install -c -m 644 $file /construction/net-mgmt/nagios/stage/usr/local/www/nagios/images; done
for file in images/logos/*.*; do /usr/bin/install -c -m 644 $file /construction/net-mgmt/nagios/stage/usr/local/www/nagios/images/logos; done
for file in includes/*.*; do /usr/bin/install -c -m 644 $file /construction/net-mgmt/nagios/stage/usr/local/www/nagios/includes; done
for file in includes/rss/*.*; do /usr/bin/install -c -m 644 $file /construction/net-mgmt/nagios/stage/usr/local/www/nagios/includes/rss; done
for file in includes/rss/extlib/*.*; do /usr/bin/install -c -m 644 $file /construction/net-mgmt/nagios/stage/usr/local/www/nagios/includes/rss/extlib; done
/usr/bin/make install-exfoliation
cp -rf contrib/exfoliation/stylesheets/* /construction/net-mgmt/nagios/stage/usr/local/www/nagios/stylesheets
cp -rf contrib/exfoliation/images/* /construction/net-mgmt/nagios/stage/usr/local/www/nagios/images
*** Exfoliation theme installed ***
NOTE: Use 'make install-classicui' to revert to classic Nagios theme
/usr/bin/make install-basic
/usr/bin/install -c -m 755 -d /construction/net-mgmt/nagios/stage/usr/local/libexec/nagios
/usr/bin/install -c -m 775 -d /construction/net-mgmt/nagios/stage/var/spool/nagios
/usr/bin/install -c -m 775 -d /construction/net-mgmt/nagios/stage/var/spool/nagios/archives
/usr/bin/install -c -m 775 -d /construction/net-mgmt/nagios/stage/var/spool/nagios/checkresults
if [ no = yes ]; then /usr/bin/install -c -m 644 p1.pl /construction/net-mgmt/nagios/stage/usr/local/bin; fi;
*** Main program, CGIs and HTML files installed ***
You can continue with installing Nagios as follows (type 'make'
without any arguments for a list of all possible options):
make install-init
- This installs the init script in /construction/net-mgmt/nagios/stage/usr/local/etc/rc.d
make install-commandmode
- This installs and configures permissions on the
directory for holding the external command file
make install-config
- This installs sample config files in /construction/net-mgmt/nagios/stage/usr/local/etc/nagios
/usr/bin/install -c -m 775 -d /construction/net-mgmt/nagios/stage/var/spool/nagios/rw
*** External command directory configured ***
/usr/bin/install -c -m 755 -d /construction/net-mgmt/nagios/stage/usr/local/etc/nagios
/usr/bin/install -c -m 755 -d /construction/net-mgmt/nagios/stage/usr/local/etc/nagios/objects
/usr/bin/install -c -m 644 sample-config/nagios.cfg /construction/net-mgmt/nagios/stage/usr/local/etc/nagios/nagios.cfg-sample
/usr/bin/install -c -m 644 sample-config/cgi.cfg /construction/net-mgmt/nagios/stage/usr/local/etc/nagios/cgi.cfg-sample
/usr/bin/install -c -m 644 sample-config/resource.cfg /construction/net-mgmt/nagios/stage/usr/local/etc/nagios/resource.cfg-sample
/usr/bin/install -c -m 644 sample-config/template-object/templates.cfg /construction/net-mgmt/nagios/stage/usr/local/etc/nagios/objects/templates.cfg-sample
/usr/bin/install -c -m 644 sample-config/template-object/commands.cfg /construction/net-mgmt/nagios/stage/usr/local/etc/nagios/objects/commands.cfg-sample
/usr/bin/install -c -m 644 sample-config/template-object/contacts.cfg /construction/net-mgmt/nagios/stage/usr/local/etc/nagios/objects/contacts.cfg-sample
/usr/bin/install -c -m 644 sample-config/template-object/timeperiods.cfg /construction/net-mgmt/nagios/stage/usr/local/etc/nagios/objects/timeperiods.cfg-sample
/usr/bin/install -c -m 644 sample-config/template-object/localhost.cfg /construction/net-mgmt/nagios/stage/usr/local/etc/nagios/objects/localhost.cfg-sample
/usr/bin/install -c -m 644 sample-config/template-object/printer.cfg /construction/net-mgmt/nagios/stage/usr/local/etc/nagios/objects/printer.cfg-sample
/usr/bin/install -c -m 644 sample-config/template-object/switch.cfg /construction/net-mgmt/nagios/stage/usr/local/etc/nagios/objects/switch.cfg-sample
*** Config files installed ***
Remember, these are *SAMPLE* config files. You'll need to read
the documentation for more information on how to actually define
services, hosts, etc. to fit your particular needs.
====> Compressing man pages (compress-man)
===> Staging rc.d startup script(s)
====> Running Q/A tests (stage-qa)
Error: /usr/local/www/nagios/cgi-bin/histogram.cgi is linked to /usr/local/lib/libpng16.so.16 from graphics/png but it is not declared as a dependency
Warning: you need LIB_DEPENDS+=libpng16.so:graphics/png
Error: /usr/local/www/nagios/cgi-bin/histogram.cgi is linked to /usr/local/lib/libjpeg.so.8 from graphics/jpeg-turbo but it is not declared as a dependency
Warning: you need USES+=jpeg
Warning: You have disabled the licenses framework with DISABLE_LICENSES, unable to run checks
SUCCEEDED 00:00:03
-------------------------------------------------------------------------------
-- Phase: package
-------------------------------------------------------------------------------
===> Building package for nagios-3.5.1_12
pkg-static: Warning: @unexec is deprecated, please use @[pre|post]unexec
file sizes/checksums [375]: 0%
file sizes/checksums [375]: 26%
file sizes/checksums [375]: 53%
file sizes/checksums [375]: 80%
file sizes/checksums [375]: 100%
packing files [375]: 0%
packing files [375]: 26%
packing files [375]: 53%
packing files [375]: 80%
packing files [375]: 100%
packing directories [6]: 0%
packing directories [6]: 100%
SUCCEEDED 00:00:07
TOTAL TIME 00:02:25