=> Building net-mgmt/nagios
Started : Wednesday, 6 MAR 2019 at 20:54:50 UTC
Platform: 5.5-DEVELOPMENT DragonFly v5.5.0.192.g15ae7f0-DEVELOPMENT #34: Tue Feb 19 09:07:07 PST 2019 root@pkgbox64.dragonflybsd.org:/usr/obj/usr/src/sys/X86_64_GENERIC x86_64
--------------------------------------------------
-- Environment
--------------------------------------------------
UNAME_r=5.5-SYNTH
UNAME_m=x86_64
UNAME_p=x86_64
UNAME_v=DragonFly 5.5-SYNTH
UNAME_s=DragonFly
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
SSL_NO_VERIFY_PEER=1
TERM=dumb
PKG_CACHEDIR=/var/cache/pkg8
PKG_DBDIR=/var/db/pkg8
PORTSDIR=/xports
LANG=C
HOME=/root
USER=root
--------------------------------------------------
-- Options
--------------------------------------------------
===> The following configuration options are available for nagios-3.5.1_11:
EMBEDDED_PERL=off: Enable embedded Perl [requires Perl 5.8.0+]
EVENT_BROKER=off: Enable event broker functionality
NANOSLEEP=off: Use nanosleep in event timing
UNHANDLED_HACK=off: Display passive checks in unhandled queries
====> Build and/or install plugins: you can only select none or one of them
MONPLUGINS=off: Plugins from monitoring-plugins.org
NAGPLUGINS=on: Plugins from nagios-plugins.org
===> Use 'make config' to modify these settings
--------------------------------------------------
-- CONFIGURE_ENV
--------------------------------------------------
PERL=/usr/local/bin/perl
ac_cv_path_PERL=/usr/local/bin/perl
ac_cv_path_PERL_PATH=/usr/local/bin/perl
PERL_USE_UNSAFE_INC=1
XDG_DATA_HOME=/construction/net-mgmt/nagios
XDG_CONFIG_HOME=/construction/net-mgmt/nagios
HOME=/construction/net-mgmt/nagios
TMPDIR="/tmp"
PATH=/construction/net-mgmt/nagios/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
SHELL=/bin/sh
CONFIG_SHELL=/bin/sh
CCVER=gcc80
CONFIG_SITE=/xports/Templates/config.site
lt_cv_sys_max_cmd_len=262144
--------------------------------------------------
-- CONFIGURE_ARGS
--------------------------------------------------
--with-command-user=nagios
--with-command-group=www
--with-nagios-user=nagios
--with-nagios-group=nagios
--with-htmurl=/nagios
--with-cgiurl=/nagios/cgi-bin
--sbindir=/usr/local/www/nagios/cgi-bin
--libexecdir=/usr/local/libexec/nagios
--datadir=/usr/local/www/nagios
--sysconfdir=/usr/local/etc/nagios
--localstatedir=/var/spool/nagios
--with-httpd-conf=/usr/local/etc
--with-checkresult-dir=/var/spool/nagios/checkresults
--disable-statuswrl
ac_cv_lib_iconv_main=no
--disable-embedded-perl
--without-perlcache
--disable-event-broker
--disable-nanosleep
--prefix=/usr/local
${_LATE_CONFIGURE_ARGS}
--------------------------------------------------
-- MAKE_ENV
--------------------------------------------------
PERL_USE_UNSAFE_INC=1
XDG_DATA_HOME=/construction/net-mgmt/nagios
XDG_CONFIG_HOME=/construction/net-mgmt/nagios
HOME=/construction/net-mgmt/nagios
TMPDIR="/tmp"
PATH=/construction/net-mgmt/nagios/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
NO_PIE=yes
MK_DEBUG_FILES=no
MK_KERNEL_SYMBOLS=no
SHELL=/bin/sh
NO_LINT=YES
CCVER=gcc80
PREFIX=/usr/local
LOCALBASE=/usr/local
NOPROFILE=1
CC="cc"
CFLAGS="-pipe -I/usr/local/include -O2 -fno-strict-aliasing "
CPP="cpp"
CPPFLAGS="-I/usr/local/include"
LDFLAGS=" "
LIBS="-L/usr/local/lib"
CXX="c++"
CXXFLAGS=" -pipe -I/usr/local/include -O2 -fno-strict-aliasing "
MANPREFIX="/usr/local"
BSD_INSTALL_PROGRAM="install -s -m 555"
BSD_INSTALL_LIB="install -s -m 0644"
BSD_INSTALL_SCRIPT="install -m 555"
BSD_INSTALL_DATA="install -m 0644"
BSD_INSTALL_MAN="install -m 444"
--------------------------------------------------
-- MAKE_ARGS
--------------------------------------------------
DESTDIR=/construction/net-mgmt/nagios/stage
--------------------------------------------------
-- PLIST_SUB
--------------------------------------------------
NAGIOSDIR=/var/spool/nagios
NAGIOSWWWDIR=www/nagios
NAGIOSUSER=nagios
NAGIOSGROUP=nagios
WWWGRP=www
EMBEDDED_PERL="@comment "
NO_EMBEDDED_PERL=""
EVENT_BROKER="@comment "
NO_EVENT_BROKER=""
MONPLUGINS="@comment "
NO_MONPLUGINS=""
NAGPLUGINS=""
NO_NAGPLUGINS="@comment "
NANOSLEEP="@comment "
NO_NANOSLEEP=""
UNHANDLED_HACK="@comment "
NO_UNHANDLED_HACK=""
PHP_EXT_DIR=20170718
OSREL=5.5
PREFIX=%D
LOCALBASE=/usr/local
RESETPREFIX=/usr/local
LIB32DIR=lib
PERL_VERSION=5.28.1
PERL_VER=5.28
PERL5_MAN1=lib/perl5/site_perl/man/man1
PERL5_MAN3=lib/perl5/site_perl/man/man3
SITE_PERL=lib/perl5/site_perl
SITE_ARCH=lib/perl5/site_perl/mach/5.28
PROFILE="@comment "
DOCSDIR="share/doc/nagios"
EXAMPLESDIR="share/examples/nagios"
DATADIR="share/nagios"
WWWDIR="www/nagios"
ETCDIR="etc/nagios"
--------------------------------------------------
-- SUB_LIST
--------------------------------------------------
PREFIX=/usr/local
NAGIOSHTMURL=/nagios
NAGIOSCGIURL=/nagios/cgi-bin
NAGIOSDIR=/var/spool/nagios
NAGIOSWWWDIR=www/nagios
NAGIOSUSER=nagios
NAGIOSGROUP=nagios
WWWGRP=www
EMBEDDED_PERL="@comment "
NO_EMBEDDED_PERL=""
EVENT_BROKER="@comment "
NO_EVENT_BROKER=""
MONPLUGINS="@comment "
NO_MONPLUGINS=""
NAGPLUGINS=""
NO_NAGPLUGINS="@comment "
NANOSLEEP="@comment "
NO_NANOSLEEP=""
UNHANDLED_HACK="@comment "
NO_UNHANDLED_HACK=""
PHP_EXT_DIR=20170718
OSREL=5.5
PREFIX=%D
LOCALBASE=/usr/local
RESETPREFIX=/usr/local
LIB32DIR=lib
PERL_VERSION=5.28.1
PERL_VER=5.28
PERL5_MAN1=lib/perl5/site_perl/man/man1
PERL5_MAN3=lib/perl5/site_perl/man/man3
SITE_PERL=lib/perl5/site_perl
SITE_ARCH=lib/perl5/site_perl/mach/5.28
PROFILE="@comment "
DOCSDIR="share/doc/nagios"
EXAMPLESDIR="share/examples/nagios"
DATADIR="share/nagios"
WWWDIR="www/nagios"
ETCDIR="etc/nagios"
PHP_EXT_DIR=20170718
PREFIX=/usr/local
LOCALBASE=/usr/local
DATADIR=/usr/local/share/nagios
DOCSDIR=/usr/local/share/doc/nagios
EXAMPLESDIR=/usr/local/share/examples/nagios
WWWDIR=/usr/local/www/nagios
ETCDIR=/usr/local/etc/nagios
--------------------------------------------------
-- /etc/make.conf
--------------------------------------------------
SYNTHPROFILE=Release-BE
USE_PACKAGE_DEPENDS_ONLY=yes
PACKAGE_BUILDING=yes
BATCH=yes
PKG_CREATE_VERBOSE=yes
PORTSDIR=/xports
DISTDIR=/distfiles
WRKDIRPREFIX=/construction
PORT_DBDIR=/options
PACKAGES=/packages
MAKE_JOBS_NUMBER_LIMIT=5
LICENSES_ACCEPTED= NONE
HAVE_COMPAT_IA32_KERN=
CONFIGURE_MAX_CMD_LEN=262144
_PERL5_FROM_BIN=5.26.2
_ALTCCVERSION_921dbbb2=none
_OBJC_ALTCCVERSION_921dbbb2=none
_SMP_CPUS=8
UID=0
ARCH=x86_64
OPSYS=DragonFly
DFLYVERSION=500500
OSVERSION=9999999
OSREL=5.5
_OSRELEASE=5.5-SYNTH
PYTHONBASE=/usr/local
_PKG_CHECKED=1
--------------------------------------------------------------------------------
-- Phase: check-sanity
--------------------------------------------------------------------------------
===> License GPLv2 accepted by the user
--------------------------------------------------------------------------------
-- Phase: pkg-depends
--------------------------------------------------------------------------------
===> nagios-3.5.1_11 depends on file: /usr/local/sbin/pkg - not found
===> Installing existing package /packages/All/pkg-1.10.5_5.txz
Installing pkg-1.10.5_5...
Extracting pkg-1.10.5_5: .......... done
===> nagios-3.5.1_11 depends on file: /usr/local/sbin/pkg - found
===> Returning to build of nagios-3.5.1_11
--------------------------------------------------------------------------------
-- Phase: fetch-depends
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- Phase: fetch
--------------------------------------------------------------------------------
===> License GPLv2 accepted by the user
===> Fetching all distfiles required by nagios-3.5.1_11 for building
--------------------------------------------------------------------------------
-- Phase: checksum
--------------------------------------------------------------------------------
===> License GPLv2 accepted by the user
===> Fetching all distfiles required by nagios-3.5.1_11 for building
=> SHA256 Checksum OK for nagios-3.5.1.tar.gz.
--------------------------------------------------------------------------------
-- Phase: extract-depends
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- Phase: extract
--------------------------------------------------------------------------------
===> License GPLv2 accepted by the user
===> Fetching all distfiles required by nagios-3.5.1_11 for building
===> Extracting for nagios-3.5.1_11
=> SHA256 Checksum OK for nagios-3.5.1.tar.gz.
--------------------------------------------------------------------------------
-- Phase: patch-depends
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- Phase: patch
--------------------------------------------------------------------------------
===> Patching for nagios-3.5.1_11
===> Applying ports patches for nagios-3.5.1_11
--------------------------------------------------------------------------------
-- Phase: build-depends
--------------------------------------------------------------------------------
===> nagios-3.5.1_11 depends on package: perl5>=5.28.r1<5.29 - not found
===> Installing existing package /packages/All/perl5-5.28.1.txz
Installing perl5-5.28.1...
Extracting perl5-5.28.1: .......... done
Message from perl5-5.28.1:
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.
===> nagios-3.5.1_11 depends on package: perl5>=5.28.r1<5.29 - found
===> Returning to build of nagios-3.5.1_11
--------------------------------------------------------------------------------
-- Phase: lib-depends
--------------------------------------------------------------------------------
===> nagios-3.5.1_11 depends on shared library: libltdl.so - not found
===> Installing existing package /packages/All/libltdl-2.4.6.txz
Installing libltdl-2.4.6...
Extracting libltdl-2.4.6: .......... done
===> nagios-3.5.1_11 depends on shared library: libltdl.so - found (/usr/local/lib/libltdl.so)
===> Returning to build of nagios-3.5.1_11
===> nagios-3.5.1_11 depends on shared library: libgd.so - not found
===> Installing existing package /packages/All/libgd-2.2.5_1,1.txz
Installing libgd-2.2.5_1,1...
`-- Installing fontconfig-2.12.6,1...
| `-- Installing expat-2.2.6_1...
| `-- Extracting expat-2.2.6_1: .......... done
| `-- Installing freetype2-2.9.1...
| `-- Extracting freetype2-2.9.1: .......... done
`-- Extracting fontconfig-2.12.6,1: .......... done
Running fc-cache to build fontconfig cache...
/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 jpeg-turbo-2.0.2...
`-- Extracting jpeg-turbo-2.0.2: .......... done
`-- Installing png-1.6.36...
`-- Extracting png-1.6.36: .......... done
`-- Installing tiff-4.0.10...
| `-- Installing jbigkit-2.1_1...
| `-- Extracting jbigkit-2.1_1: .......... done
`-- Extracting tiff-4.0.10: .......... done
`-- Installing webp-1.0.2...
| `-- Installing giflib-5.1.4...
| `-- Extracting giflib-5.1.4: .......... done
`-- Extracting webp-1.0.2: .......... done
Extracting libgd-2.2.5_1,1: .......... done
Message from freetype2-2.9.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.
The controllable properties are listed in the section "Controlling FreeType
Modules" in the reference's table of contents
(/usr/local/share/doc/freetype2/reference/ft2-toc.html, if documentation was installed).
===> nagios-3.5.1_11 depends on shared library: libgd.so - found (/usr/local/lib/libgd.so)
===> Returning to build of nagios-3.5.1_11
--------------------------------------------------------------------------------
-- Phase: configure
--------------------------------------------------------------------------------
===> Configuring for nagios-3.5.1_11
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.5
checking host system type... x86_64-portbld-dragonfly5.5
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: /etc/rc.d
Apache conf.d directory: /usr/local/etc
Mail program: /usr/bin/mail
Host OS: dragonfly5.5
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.
--------------------------------------------------------------------------------
-- Phase: build
--------------------------------------------------------------------------------
===> Building for nagios-3.5.1_11
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 /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.
--------------------------------------------------------------------------------
-- Phase: run-depends
--------------------------------------------------------------------------------
===> nagios-3.5.1_11 depends on file: /usr/local/libexec/nagios/check_nagios - not found
===> Installing existing package /packages/All/nagios-plugins-2.2.1_6,1.txz
Installing nagios-plugins-2.2.1_6,1...
`-- Installing gettext-runtime-0.19.8.1_2...
| `-- Installing indexinfo-0.3.1...
| `-- Extracting indexinfo-0.3.1: .... done
`-- Extracting gettext-runtime-0.19.8.1_2: .......... done
`-- Installing libressl-2.8.3...
`-- Extracting libressl-2.8.3: .......... done
Extracting nagios-plugins-2.2.1_6,1: .......... done
===> nagios-3.5.1_11 depends on file: /usr/local/libexec/nagios/check_nagios - found
===> Returning to build of nagios-3.5.1_11
===> nagios-3.5.1_11 depends on file: /usr/local/include/php/main/php.h - not found
===> Installing existing package /packages/All/php72-7.2.15.txz
Installing php72-7.2.15...
`-- Installing libargon2-20171227_1...
`-- Extracting libargon2-20171227_1: .......... done
`-- Installing libxml2-2.9.8...
`-- Extracting libxml2-2.9.8: .......... done
`-- Installing pcre-8.42_1...
`-- Extracting pcre-8.42_1: .......... done
Extracting php72-7.2.15: .......... done
===> nagios-3.5.1_11 depends on file: /usr/local/include/php/main/php.h - found
===> Returning to build of nagios-3.5.1_11
--------------------------------------------------------------------------------
-- Phase: stage
--------------------------------------------------------------------------------
===> Staging for nagios-3.5.1_11
===> 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/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)
--------------------------------------------------------------------------------
-- Phase: package
--------------------------------------------------------------------------------
===> Building package for nagios-3.5.1_11
file sizes/checksums [378]: .... done
packing files [378]: .... done
packing directories [6]: . done
--------------------------------------------------
-- Termination
--------------------------------------------------
Finished: Wednesday, 6 MAR 2019 at 20:56:38 UTC
Duration: 00:01:47