<86>Feb 17 08:51:22 userdel[3845351]: delete user 'rooter' <86>Feb 17 08:51:22 userdel[3845351]: removed group 'rooter' owned by 'rooter' <86>Feb 17 08:51:22 userdel[3845351]: removed shadow group 'rooter' owned by 'rooter' <86>Feb 17 08:51:22 groupadd[3845374]: group added to /etc/group: name=rooter, GID=645 <86>Feb 17 08:51:22 groupadd[3845374]: group added to /etc/gshadow: name=rooter <86>Feb 17 08:51:22 groupadd[3845374]: new group: name=rooter, GID=645 <86>Feb 17 08:51:22 useradd[3845387]: new user: name=rooter, UID=645, GID=645, home=/root, shell=/bin/bash <86>Feb 17 08:51:22 userdel[3845418]: delete user 'builder' <86>Feb 17 08:51:22 userdel[3845418]: removed group 'builder' owned by 'builder' <86>Feb 17 08:51:22 userdel[3845418]: removed shadow group 'builder' owned by 'builder' <86>Feb 17 08:51:22 groupadd[3845442]: group added to /etc/group: name=builder, GID=646 <86>Feb 17 08:51:22 groupadd[3845442]: group added to /etc/gshadow: name=builder <86>Feb 17 08:51:22 groupadd[3845442]: new group: name=builder, GID=646 <86>Feb 17 08:51:22 useradd[3845460]: new user: name=builder, UID=646, GID=646, home=/usr/src, shell=/bin/bash warning: ignored self-provides: ossec-hids-server = 3.1.0-alt2 <13>Feb 17 08:51:28 rpmi: GeoIP-Lite-Country-1:20180327-alt1 1522192520 installed <13>Feb 17 08:51:28 rpmi: libGeoIP-1.6.12-alt1 1516269300 installed <13>Feb 17 08:51:28 rpmi: libverto-0.3.1-alt1_2 sisyphus+265276.100.1.1 1611604625 installed <13>Feb 17 08:51:28 rpmi: libcom_err-1.45.6.0.24.af1a-alt1 sisyphus+262279.100.1.1 1606088229 installed <13>Feb 17 08:51:28 rpmi: libcom_err-devel-1.45.6.0.24.af1a-alt1 sisyphus+262279.100.1.1 1606088229 installed <13>Feb 17 08:51:28 rpmi: libverto-devel-0.3.1-alt1_2 sisyphus+265276.100.1.1 1611604625 installed <13>Feb 17 08:51:28 rpmi: lua5.3-5.3.5-alt3 sisyphus+237725.540.7.3 1569407869 installed <13>Feb 17 08:51:28 rpmi: libjson-c5-0.15-alt1 sisyphus+264955.100.1.1 1611154879 installed <13>Feb 17 08:51:28 rpmi: openldap-common-2.4.57-alt1 sisyphus+266287.100.1.1 1613244218 installed <13>Feb 17 08:51:28 rpmi: liblmdb-0.9.23-alt1 sisyphus+225277.100.2.1 1553001679 installed <13>Feb 17 08:51:28 rpmi: libkeyutils-1.6.3-alt1 sisyphus+266061.100.1.1 1612919567 installed <13>Feb 17 08:51:28 rpmi: libp11-kit-0.23.15-alt2 sisyphus+252784.100.2.2 1591274901 installed <13>Feb 17 08:51:28 rpmi: libtasn1-4.16.0-alt1 sisyphus+245480.100.1.1 1580825062 installed <13>Feb 17 08:51:28 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Feb 17 08:51:28 rpmi: alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Feb 17 08:51:28 rpmi: ca-certificates-2021.01.27-alt1 sisyphus+265371.200.1.1 1611759824 installed <13>Feb 17 08:51:28 rpmi: ca-trust-0.1.2-alt1 sisyphus+233348.100.1.1 1561653823 installed <13>Feb 17 08:51:28 rpmi: p11-kit-trust-0.23.15-alt2 sisyphus+252784.100.2.2 1591274901 installed <13>Feb 17 08:51:28 rpmi: libcrypto1.1-1.1.1i-alt3 sisyphus+265605.200.2.1 1612202596 installed <13>Feb 17 08:51:28 rpmi: libssl1.1-1.1.1i-alt3 sisyphus+265605.200.2.1 1612202596 installed <86>Feb 17 08:51:28 groupadd[3854174]: group added to /etc/group: name=_keytab, GID=499 <86>Feb 17 08:51:28 groupadd[3854174]: group added to /etc/gshadow: name=_keytab <86>Feb 17 08:51:28 groupadd[3854174]: new group: name=_keytab, GID=499 <13>Feb 17 08:51:28 rpmi: libkrb5-1.18.3-alt1 sisyphus+262109.100.1.1 1605777180 installed <86>Feb 17 08:51:28 groupadd[3854842]: group added to /etc/group: name=sasl, GID=498 <86>Feb 17 08:51:28 groupadd[3854842]: group added to /etc/gshadow: name=sasl <86>Feb 17 08:51:28 groupadd[3854842]: new group: name=sasl, GID=498 <13>Feb 17 08:51:28 rpmi: libsasl2-3-2.1.27-alt2.1 sisyphus+255909.100.2.1 1597199456 installed <13>Feb 17 08:51:28 rpmi: libldap-2.4.57-alt1 sisyphus+266287.100.1.1 1613244306 installed <13>Feb 17 08:51:28 rpmi: libpq5-13.2-alt1 sisyphus+266168.100.1.1 1613037925 installed <13>Feb 17 08:51:28 rpmi: libecpg6-13.2-alt1 sisyphus+266168.100.1.1 1613037925 installed <13>Feb 17 08:51:28 rpmi: libkrb5-ldap-1.18.3-alt1 sisyphus+262109.100.1.1 1605777180 installed <13>Feb 17 08:51:28 rpmi: libkrb5-devel-1.18.3-alt1 sisyphus+262109.100.1.1 1605777180 installed <13>Feb 17 08:51:29 rpmi: libmysqlclient21-8.0.23-alt1 sisyphus+266017.100.2.1 1613376155 installed <13>Feb 17 08:51:29 rpmi: libmysqlclient21-devel-8.0.23-alt1 sisyphus+266017.100.2.1 1613376155 installed <13>Feb 17 08:51:29 rpmi: postgresql-devel-13.2-alt1 sisyphus+266168.100.1.1 1613037925 installed <13>Feb 17 08:51:29 rpmi: libjson-c-devel-0.15-alt1 sisyphus+264955.100.1.1 1611154879 installed <13>Feb 17 08:51:29 rpmi: liblua5.3-devel-5.3.5-alt3 sisyphus+237725.540.7.3 1569407869 installed <13>Feb 17 08:51:29 rpmi: libGeoIP-devel-1.6.12-alt1 1516269300 installed <13>Feb 17 08:51:29 rpmi: zlib-devel-1.2.11-alt1 sisyphus+221902.6000.4.1 1550601058 installed warning: ignored self-provides: ossec-hids-server = 3.1.0-alt2 Building target platforms: i586 Building for target i586 Wrote: /usr/src/in/nosrpm/ossec-hids-3.1.0-alt2.nosrc.rpm (w1.gzdio) warning: ignored self-provides: ossec-hids-server = 3.1.0-alt2 Installing ossec-hids-3.1.0-alt2.src.rpm Building target platforms: i586 Building for target i586 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.73699 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf ossec-hids-3.1.0 + echo 'Source #0 (ossec-hids-3.1.0.tar):' Source #0 (ossec-hids-3.1.0.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/ossec-hids-3.1.0.tar + cd ossec-hids-3.1.0 + /bin/chmod -c -Rf u+rwX,go-w . + echo 'Patch #1 (ossec-hids-2.9.3-alt-fhs-compliance.patch):' Patch #1 (ossec-hids-2.9.3-alt-fhs-compliance.patch): + /usr/bin/patch -p1 patching file src/init/ossec-client.sh Hunk #1 succeeded at 7 with fuzz 2. patching file src/init/ossec-server.sh Hunk #1 succeeded at 8 with fuzz 1. Hunk #4 succeeded at 247 (offset 17 lines). Hunk #5 succeeded at 276 (offset 17 lines). + echo 'Patch #2 (ossec-hids-2.9.3-alt-email-conf.patch):' Patch #2 (ossec-hids-2.9.3-alt-email-conf.patch): + /usr/bin/patch -p1 patching file etc/ossec-server.conf + sed -i 's|/var/ossec|/var/lib/ossec|' src/LOCATION + sed -i 's|/var/ossec|/var/lib/ossec|' src/headers/defs.h + sed -i 's|/var/ossec|/var/lib/ossec|' src/Makefile + sed -i 's|/var/ossec|/var/lib/ossec|' doc/nmap.txt + sed -i 's|/var/ossec|/var/lib/ossec|' contrib/ossec-testing/runtests.py + sed -i 's|/var/ossec|/var/lib/ossec|' contrib/add_localfile.sh + sed -i 's|/var/ossec|\/usr|' src/systemd/server/ossec-agentless.service src/systemd/server/ossec-analysisd.service src/systemd/server/ossec-csyslog.service src/systemd/server/ossec-dbd.service src/systemd/server/ossec-execd.service src/systemd/server/ossec-logcollector.service src/systemd/server/ossec-maild.service src/systemd/server/ossec-monitord.service src/systemd/server/ossec-remoted.service src/systemd/server/ossec-syscheckd.service + rm -rf contrib/specs/ + rm -rf contrib/debian-packages/ + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.78992 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd ossec-hids-3.1.0 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2' + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector' + LDFLAGS='-fPIE -pie -Wl,-z,relro' + SH_LDFLAGS='-fPIE -pie -Wl,-z,relro' + export CFLAGS LDFLAGS SH_LDFLAGS + pushd ./src ~/RPM/BUILD/ossec-hids-3.1.0/src ~/RPM/BUILD/ossec-hids-3.1.0 + mkdir -p clients/ + make -j8 TARGET=agent V=1 cd external/zlib-1.2.11/ && ./configure && make libz.a cd external/lua-5.2.3/ && make posix cd src && make posix make all SYSCFLAGS="-DLUA_USE_POSIX" make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -I./client-agent -I./external/zlib-1.2.11/ -DARGV0=\"ossec-agentd\" -c client-agent/event-forward.c -o client-agent/event-forward.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -I./client-agent -I./external/zlib-1.2.11/ -DARGV0=\"ossec-agentd\" -c client-agent/config.c -o client-agent/config.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' Checking for gcc... make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -I./client-agent -I./external/zlib-1.2.11/ -DARGV0=\"ossec-agentd\" -c client-agent/intcheck_op.c -o client-agent/intcheck_op.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -I./client-agent -I./external/zlib-1.2.11/ -DARGV0=\"ossec-agentd\" -c client-agent/receiver-win.c -o client-agent/receiver-win.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -I./client-agent -I./external/zlib-1.2.11/ -DARGV0=\"ossec-agentd\" -c client-agent/agentd.c -o client-agent/agentd.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -I./client-agent -I./external/zlib-1.2.11/ -DARGV0=\"ossec-agentd\" -c client-agent/notify.c -o client-agent/notify.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -I./client-agent -I./external/zlib-1.2.11/ -DARGV0=\"ossec-agentd\" -c client-agent/main.c -o client-agent/main.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -Wno-implicit-fallthrough -c os_crypto/blowfish/bf_op.c -o os_crypto/blowfish/bf_op.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -I./client-agent -I./external/zlib-1.2.11/ -DARGV0=\"ossec-agentd\" -c client-agent/sendmsg.c -o client-agent/sendmsg.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' Checking for shared library support... make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -I./client-agent -I./external/zlib-1.2.11/ -DARGV0=\"ossec-agentd\" -c client-agent/receiver.c -o client-agent/receiver.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -Wno-implicit-fallthrough -c os_crypto/blowfish/bf_skey.c -o os_crypto/blowfish/bf_skey.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -I./client-agent -I./external/zlib-1.2.11/ -DARGV0=\"ossec-agentd\" -c client-agent/start_agent.c -o client-agent/start_agent.o client-agent/start_agent.c: In function 'start_agent': client-agent/start_agent.c:155:58: warning: '%s' directive output may be truncated writing up to 6145 bytes into a region of size 6136 [-Wformat-truncation=] 155 | snprintf(fmsg, OS_MAXSTR, "%c:%s:%s", LOCALFILE_MQ, | ^~ 156 | "ossec", msg); | ~~~ In file included from /usr/include/stdio.h:866, from ./headers/shared.h:54, from client-agent/start_agent.c:10: /usr/include/bits/stdio2.h:70:10: note: '__builtin___snprintf_chk' output between 9 and 6154 bytes into a destination of size 6144 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c os_crypto/md5/md5_op.c -o os_crypto/md5/md5_op.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' Building shared library libz.so.1.2.11 with gcc. make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c os_zlib/os_zlib.c -o os_zlib/os_zlib.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' Checking for size_t... Yes. make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c os_crypto/md5_sha1/md5_sha1_op.c -o os_crypto/md5_sha1/md5_sha1_op.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c os_crypto/md5/md5.c -o os_crypto/md5/md5.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' Checking for off64_t... Yes. Checking for fseeko... Yes. make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -Wno-implicit-fallthrough -c os_crypto/blowfish/bf_enc.c -o os_crypto/blowfish/bf_enc.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c config/alerts-config.c -o config/alerts-config.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' Checking for strerror... Yes. make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c config/agentlessd-config.c -o config/agentlessd-config.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c config/active-response.c -o config/active-response.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' Checking for unistd.h... Yes. make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c config/client-config.c -o config/client-config.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make[3]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' cc -O2 -Wall -DLUA_COMPAT_ALL -DPREFIX=\"/var/ossec\" -DLUA_USE_POSIX -c -o lapi.o lapi.c make[3]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' Checking for stdarg.h... Yes. make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c config/dbd-config.c -o config/dbd-config.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c config/csyslogd-config.c -o config/csyslogd-config.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c config/config.c -o config/config.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf(). make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c config/email-alerts-config.c -o config/email-alerts-config.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c config/remote-config.c -o config/remote-config.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' Checking for vsnprintf() in stdio.h... Yes. Checking for return value of vsnprintf()... Yes. make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c external/cJSON/cJSON.c -o external/cJSON/cJSON.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c config/localfile-config.c -o config/localfile-config.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make[3]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' cc -O2 -Wall -DLUA_COMPAT_ALL -DPREFIX=\"/var/ossec\" -DLUA_USE_POSIX -c -o lcode.o lcode.c make[3]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' Checking for attribute(visibility) support... Yes. make[3]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' cc -O2 -Wall -DLUA_COMPAT_ALL -DPREFIX=\"/var/ossec\" -DLUA_USE_POSIX -c -o lctype.o lctype.c make[3]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c config/reports-config.c -o config/reports-config.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c config/rootcheck-config.c -o config/rootcheck-config.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c config/global-config.c -o config/global-config.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make[1]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/zlib-1.2.11' gcc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o adler32.o adler32.c make[1]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/zlib-1.2.11' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c shared/agent_op.c -o shared/agent_op.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c config/rules-config.c -o config/rules-config.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c shared/custom_output_search_replace.c -o shared/custom_output_search_replace.o In file included from /usr/include/string.h:532, from ./headers/shared.h:57, from shared/custom_output_search_replace.c:1: In function 'strncpy', inlined from 'searchAndReplace' at shared/custom_output_search_replace.c:41:9: /usr/include/bits/string_fortified.h:91:10: warning: '__builtin_strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 91 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ shared/custom_output_search_replace.c: In function 'searchAndReplace': shared/custom_output_search_replace.c:9:30: note: length computed here 9 | const size_t value_len = strlen(value); | ^~~~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c shared/debug_op.c -o shared/debug_op.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make[3]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' cc -O2 -Wall -DLUA_COMPAT_ALL -DPREFIX=\"/var/ossec\" -DLUA_USE_POSIX -c -o ldebug.o ldebug.c make[3]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -Wno-implicit-fallthrough -c os_crypto/sha1/sha1_op.c -o os_crypto/sha1/sha1_op.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c shared/dirtree_op.c -o shared/dirtree_op.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c shared/fs_op.c -o shared/fs_op.o shared/fs_op.c: In function 'IsNFS': shared/fs_op.c:46:47: warning: comparison of integer expressions of different signedness: 'uint32_t' {aka 'const unsigned int'} and '__fsword_t' {aka 'int'} [-Wsign-compare] 46 | if(network_file_systems[i].f_type == stfs.f_type ) { | ^~ shared/fs_op.c: In function 'skipFS': shared/fs_op.c:79:44: warning: comparison of integer expressions of different signedness: 'uint32_t' {aka 'const unsigned int'} and '__fsword_t' {aka 'int'} [-Wsign-compare] 79 | if(skip_file_systems[i].f_type == stfs.f_type ) { | ^~ make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make[1]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/zlib-1.2.11' gcc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o crc32.o crc32.c make[1]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/zlib-1.2.11' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c shared/help.c -o shared/help.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c shared/file-queue.c -o shared/file-queue.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c shared/hash_op.c -o shared/hash_op.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c shared/math_op.c -o shared/math_op.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c config/syscheck-config.c -o config/syscheck-config.o In file included from /usr/include/string.h:532, from ./headers/shared.h:57, from config/syscheck-config.c:10: In function 'strncpy', inlined from 'Read_Syscheck' at config/syscheck-config.c:792:17: /usr/include/bits/string_fortified.h:91:10: warning: '__builtin_strncpy' output may be truncated copying 6143 bytes from a string of length 6143 [-Wstringop-truncation] 91 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'strncpy', inlined from 'Read_Syscheck' at config/syscheck-config.c:799:21: /usr/include/bits/string_fortified.h:91:10: warning: '__builtin_strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=] 91 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config/syscheck-config.c: In function 'Read_Syscheck': config/syscheck-config.c:799:21: note: length computed here 799 | strncpy(syscheck->prefilter_cmd, cmd, strlen(cmd)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c shared/file_op.c -o shared/file_op.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make[3]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' cc -O2 -Wall -DLUA_COMPAT_ALL -DPREFIX=\"/var/ossec\" -DLUA_USE_POSIX -c -o ldo.o ldo.c make[3]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c shared/mem_op.c -o shared/mem_op.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c shared/list_op.c -o shared/list_op.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c shared/privsep_op.c -o shared/privsep_op.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c shared/pthreads_op.c -o shared/pthreads_op.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c shared/mq_op.c -o shared/mq_op.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c shared/randombytes.c -o shared/randombytes.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make[3]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' cc -O2 -Wall -DLUA_COMPAT_ALL -DPREFIX=\"/var/ossec\" -DLUA_USE_POSIX -c -o ldump.o ldump.c make[3]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c shared/regex_op.c -o shared/regex_op.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make[3]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' cc -O2 -Wall -DLUA_COMPAT_ALL -DPREFIX=\"/var/ossec\" -DLUA_USE_POSIX -c -o lfunc.o lfunc.c make[3]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c shared/sig_op.c -o shared/sig_op.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c shared/store_op.c -o shared/store_op.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c shared/string_op.c -o shared/string_op.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c shared/read-alert.c -o shared/read-alert.o In file included from /usr/include/string.h:532, from ./headers/shared.h:57, from shared/read-alert.c:12: In function 'strncpy', inlined from 'GetAlertData' at shared/read-alert.c:255:13: /usr/include/bits/string_fortified.h:91:10: warning: '__builtin_strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=] 91 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ shared/read-alert.c: In function 'GetAlertData': shared/read-alert.c:253:17: note: length computed here 253 | z = strlen(p) - strlen(m); | ^~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c shared/wait_op.c -o shared/wait_op.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c os_regex/os_match.c -o os_regex/os_match.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c shared/read-agents.c -o shared/read-agents.o In file included from /usr/include/string.h:532, from ./headers/shared.h:57, from shared/read-agents.c:10: In function 'strncpy', inlined from '_do_print_syscheck' at shared/read-agents.c:384:17: /usr/include/bits/string_fortified.h:91:10: warning: '__builtin_strncpy' output may be truncated copying 23 bytes from a string of length 24 [-Wstringop-truncation] 91 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c shared/report_op.c -o shared/report_op.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c os_net/os_net.c -o os_net/os_net.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c os_regex/os_match_execute.c -o os_regex/os_match_execute.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c os_regex/os_match_compile.c -o os_regex/os_match_compile.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c os_regex/os_match_free_pattern.c -o os_regex/os_match_free_pattern.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c os_regex/os_regex.c -o os_regex/os_regex.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c shared/validate_op.c -o shared/validate_op.o shared/validate_op.c: In function 'OS_IsValidTime': shared/validate_op.c:600:28: warning: '%s' directive output may be truncated writing up to 6 bytes into a region of size between 5 and 11 [-Wformat-truncation=] 600 | snprintf(ret, 12, "%c%s%s", ng == 0 ? '.' : '!', first_hour, second_hour); | ^~ ~~~~~~~~~~~ In file included from /usr/include/stdio.h:866, from ./headers/shared.h:54, from shared/validate_op.c:10: /usr/include/bits/stdio2.h:70:10: note: '__builtin___snprintf_chk' output between 2 and 14 bytes into a destination of size 12 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ shared/validate_op.c:595:31: warning: '%s' directive output may be truncated writing up to 6 bytes into a region of size between 5 and 11 [-Wformat-truncation=] 595 | snprintf(ret, 12, "!%s%s", second_hour, first_hour); | ^~ ~~~~~~~~~~ In file included from /usr/include/stdio.h:866, from ./headers/shared.h:54, from shared/validate_op.c:10: /usr/include/bits/stdio2.h:70:10: note: '__builtin___snprintf_chk' output between 2 and 14 bytes into a destination of size 12 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c os_regex/os_regex_free_pattern.c -o os_regex/os_regex_free_pattern.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c shared/rules_op.c -o shared/rules_op.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c os_regex/os_regex_maps.c -o os_regex/os_regex_maps.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c os_regex/os_regex_startswith.c -o os_regex/os_regex_startswith.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make[3]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' cc -O2 -Wall -DLUA_COMPAT_ALL -DPREFIX=\"/var/ossec\" -DLUA_USE_POSIX -c -o lgc.o lgc.c make[3]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c os_regex/os_regex_free_substrings.c -o os_regex/os_regex_free_substrings.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c os_regex/os_regex_compile.c -o os_regex/os_regex_compile.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c os_regex/os_regex_match.c -o os_regex/os_regex_match.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c os_regex/os_regex_str.c -o os_regex/os_regex_str.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c os_regex/os_regex_strbreak.c -o os_regex/os_regex_strbreak.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c os_regex/os_regex_execute.c -o os_regex/os_regex_execute.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c os_xml/os_xml_node_access.c -o os_xml/os_xml_node_access.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make[1]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/zlib-1.2.11' gcc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o deflate.o deflate.c make[1]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/zlib-1.2.11' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c os_xml/os_xml_variables.c -o os_xml/os_xml_variables.o os_xml/os_xml_variables.c: In function 'OS_ApplyVariables': os_xml/os_xml_variables.c:179:42: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 101 [-Wformat-truncation=] 179 | "XMLERR: Unknown variable" | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 180 | ": '%s'.", lvar); | ~~~~ os_xml/os_xml_variables.c:180:46: note: format string is defined here 180 | ": '%s'.", lvar); | ^~ In file included from /usr/include/stdio.h:866, from os_xml/os_xml_variables.c:10: /usr/include/bits/stdio2.h:70:10: note: '__builtin___snprintf_chk' output between 30 and 285 bytes into a destination of size 128 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c os_xml/os_xml_access.c -o os_xml/os_xml_access.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -I./os_auth -DARGV0=\"ossec-authd\" -c os_auth/ssl.c -o os_auth/ssl.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c os_xml/os_xml_writer.c -o os_xml/os_xml_writer.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -I./os_auth -DARGV0=\"ossec-authd\" -c os_auth/main-client.c -o os_auth/main-client.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -I./os_auth -DARGV0=\"ossec-authd\" -c os_auth/check_cert.c -o os_auth/check_cert.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c os_xml/os_xml.c -o os_xml/os_xml.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make[3]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' cc -O2 -Wall -DLUA_COMPAT_ALL -DPREFIX=\"/var/ossec\" -DLUA_USE_POSIX -c -o llex.o llex.c make[3]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -DARGV0=\"ossec-logcollector\" -c logcollector/config.c -o logcollector/config.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make[1]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/zlib-1.2.11' gcc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o inffast.o inffast.c make[1]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/zlib-1.2.11' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -DARGV0=\"ossec-logcollector\" -c logcollector/read_command.c -o logcollector/read_command.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -DARGV0=\"ossec-logcollector\" -c logcollector/main.c -o logcollector/main.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -I./addagent -I./external/zlib-1.2.11/ -DARGV0=\"manage_agents\" -c addagent/validate.c -o addagent/validate.o addagent/validate.c: In function 'OS_AddNewAgent': addagent/validate.c:61:31: warning: '%d' directive output may be truncated writing between 1 and 11 bytes into a region of size 8 [-Wformat-truncation=] 61 | snprintf(nid, 8, "%d", m); | ^~ addagent/validate.c:61:30: note: directive argument in the range [-1073741824, 1073741823] 61 | snprintf(nid, 8, "%d", m); | ^~~~ In file included from /usr/include/stdio.h:866, from ./headers/shared.h:54, from addagent/manage_agents.h:10, from addagent/validate.c:11: /usr/include/bits/stdio2.h:70:10: note: '__builtin___snprintf_chk' output between 2 and 12 bytes into a destination of size 8 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ addagent/validate.c:62:33: warning: '%d' directive output may be truncated writing between 1 and 11 bytes into a region of size 8 [-Wformat-truncation=] 62 | snprintf(nid_p, 8, "%d", m - 1); | ^~ addagent/validate.c:62:32: note: directive argument in the range [-1073741825, 1073741822] 62 | snprintf(nid_p, 8, "%d", m - 1); | ^~~~ In file included from /usr/include/stdio.h:866, from ./headers/shared.h:54, from addagent/manage_agents.h:10, from addagent/validate.c:11: /usr/include/bits/stdio2.h:70:10: note: '__builtin___snprintf_chk' output between 2 and 12 bytes into a destination of size 8 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make[3]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' cc -O2 -Wall -DLUA_COMPAT_ALL -DPREFIX=\"/var/ossec\" -DLUA_USE_POSIX -c -o lmem.o lmem.c make[3]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -DARGV0=\"ossec-logcollector\" -c logcollector/read_fullcommand.c -o logcollector/read_fullcommand.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -DARGV0=\"ossec-logcollector\" -c logcollector/read_djb_multilog.c -o logcollector/read_djb_multilog.o logcollector/read_djb_multilog.c: In function 'read_djbmultilog': logcollector/read_djb_multilog.c:147:76: warning: '%s' directive output may be truncated writing up to 6118 bytes into a region of size between 5616 and 6128 [-Wformat-truncation=] 147 | snprintf(buffer, OS_MAXSTR, "%s %02d %02d:%02d:%02d %s %s: %s", | ^~ In file included from /usr/include/stdio.h:866, from ./headers/shared.h:54, from logcollector/read_djb_multilog.c:12: /usr/include/bits/stdio2.h:70:10: note: '__builtin___snprintf_chk' output 17 or more bytes (assuming 6647) into a destination of size 6144 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -DARGV0=\"ossec-logcollector\" -c logcollector/read_mssql_log.c -o logcollector/read_mssql_log.o In file included from /usr/include/string.h:532, from ./headers/shared.h:57, from logcollector/read_mssql_log.c:12: In function 'strncpy', inlined from 'read_mssql_log' at logcollector/read_mssql_log.c:111:17: /usr/include/bits/string_fortified.h:91:10: warning: '__builtin___strncpy_chk' output may be truncated copying between 2 and 6144 bytes from a string of length 6144 [-Wstringop-truncation] 91 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'strncpy', inlined from 'read_mssql_log' at logcollector/read_mssql_log.c:102:17: /usr/include/bits/string_fortified.h:91:10: warning: '__builtin___strncpy_chk' output may be truncated copying between 2 and 6144 bytes from a string of length 6144 [-Wstringop-truncation] 91 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -DARGV0=\"ossec-logcollector\" -c logcollector/logcollector.c -o logcollector/logcollector.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make[1]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/zlib-1.2.11' gcc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o infback.o infback.c make[1]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/zlib-1.2.11' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -DARGV0=\"ossec-logcollector\" -c logcollector/read_multiline.c -o logcollector/read_multiline.o In file included from /usr/include/string.h:532, from ./headers/shared.h:57, from logcollector/read_multiline.c:10: In function 'strncpy', inlined from 'read_multiline' at logcollector/read_multiline.c:72:9: /usr/include/bits/string_fortified.h:91:10: warning: '__builtin_strncpy' output may be truncated copying between 0 and 6142 bytes from a string of length 6144 [-Wstringop-truncation] 91 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -DARGV0=\"ossec-logcollector\" -c logcollector/read_mysql_log.c -o logcollector/read_mysql_log.o logcollector/read_mysql_log.c: In function 'read_mysql_log': logcollector/read_mysql_log.c:92:56: warning: '%s' directive output may be truncated writing up to 6129 bytes into a region of size between 6115 and 6132 [-Wformat-truncation=] 92 | snprintf(buffer, OS_MAXSTR, "MySQL log: %s %s", | ^~ In file included from /usr/include/stdio.h:866, from ./headers/shared.h:54, from logcollector/read_mysql_log.c:12: /usr/include/bits/stdio2.h:70:10: note: '__builtin___snprintf_chk' output between 13 and 6159 bytes into a destination of size 6144 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -DARGV0=\"ossec-logcollector\" -c logcollector/read_ossecalert.c -o logcollector/read_ossecalert.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -DARGV0=\"ossec-logcollector\" -c logcollector/read_nmapg.c -o logcollector/read_nmapg.o logcollector/read_nmapg.c: In function 'read_nmapg': logcollector/read_nmapg.c:207:49: warning: ', open ports:' directive output may be truncated writing 13 bytes into a region of size between 0 and 6138 [-Wformat-truncation=] 207 | snprintf(final_msg, OS_MAXSTR, "Host: %s, open ports:", | ^~~~~~~~~~~~~ In file included from /usr/include/stdio.h:866, from ./headers/shared.h:54, from logcollector/read_nmapg.c:10: /usr/include/bits/stdio2.h:70:10: note: '__builtin___snprintf_chk' output between 20 and 6158 bytes into a destination of size 6144 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:532, from ./headers/shared.h:57, from logcollector/read_nmapg.c:10: In function 'strncat', inlined from 'read_nmapg' at logcollector/read_nmapg.c:231:13: /usr/include/bits/string_fortified.h:122:10: warning: '__builtin___strncat_chk' output may be truncated copying between 27 and 6141 bytes from a string of length 6144 [-Wstringop-truncation] 122 | return __builtin___strncat_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -DARGV0=\"ossec-logcollector\" -c logcollector/read_win_event_channel.c -o logcollector/read_win_event_channel.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make[1]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/zlib-1.2.11' gcc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o inftrees.o inftrees.c make[1]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/zlib-1.2.11' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -DARGV0=\"ossec-logcollector\" -c logcollector/read_syslog.c -o logcollector/read_syslog.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -DARGV0=\"ossec-logcollector\" -c logcollector/read_snortfull.c -o logcollector/read_snortfull.o In file included from /usr/include/string.h:532, from ./headers/shared.h:57, from logcollector/read_snortfull.c:10: In function 'strncpy', inlined from 'read_snortfull' at logcollector/read_snortfull.c:40:17: /usr/include/bits/string_fortified.h:91:10: warning: '__builtin_strncpy' output may be truncated copying 6144 bytes from a string of length 6144 [-Wstringop-truncation] 91 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -DARGV0=\"ossec-logcollector\" -c logcollector/read_win_el.c -o logcollector/read_win_el.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -DARGV0=\"ossec-logcollector\" -c logcollector/read_postgresql_log.c -o logcollector/read_postgresql_log.o In file included from /usr/include/string.h:532, from ./headers/shared.h:57, from logcollector/read_postgresql_log.c:12: In function 'strncpy', inlined from 'read_postgresql_log' at logcollector/read_postgresql_log.c:107:17: /usr/include/bits/string_fortified.h:91:10: warning: '__builtin___strncpy_chk' output may be truncated copying between 2 and 6144 bytes from a string of length 6144 [-Wstringop-truncation] 91 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'strncpy', inlined from 'read_postgresql_log' at logcollector/read_postgresql_log.c:99:17: /usr/include/bits/string_fortified.h:91:10: warning: '__builtin___strncpy_chk' output may be truncated copying between 2 and 6144 bytes from a string of length 6144 [-Wstringop-truncation] 91 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make[3]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' cc -O2 -Wall -DLUA_COMPAT_ALL -DPREFIX=\"/var/ossec\" -DLUA_USE_POSIX -c -o lobject.o lobject.c make[3]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -DARGV0=\"ossec-syscheckd\" -c syscheckd/config.c -o syscheckd/config.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make[3]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' cc -O2 -Wall -DLUA_COMPAT_ALL -DPREFIX=\"/var/ossec\" -DLUA_USE_POSIX -c -o lopcodes.o lopcodes.c make[3]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -DARGV0=\"ossec-syscheckd\" -c syscheckd/run_realtime.c -o syscheckd/run_realtime.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -DARGV0=\"ossec-syscheckd\" -c syscheckd/win-registry.c -o syscheckd/win-registry.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -DARGV0=\"ossec-syscheckd\" -c syscheckd/create_db.c -o syscheckd/create_db.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -DARGV0=\"rootcheck\" -c rootcheck/check_open_ports.c -o rootcheck/check_open_ports.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -DARGV0=\"ossec-syscheckd\" -c syscheckd/run_check.c -o syscheckd/run_check.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -DARGV0=\"ossec-syscheckd\" -c syscheckd/seechanges.c -o syscheckd/seechanges.o syscheckd/seechanges.c: In function 'seechanges_addfile': syscheckd/seechanges.c:394:21: warning: '%s' directive output may be truncated writing up to 6144 bytes into a region of size 2042 [-Wformat-truncation=] 394 | "diff \"%s\" \"%s\" > \"%s\" 2> /dev/null", | ^~ 395 | new_tmp, | ~~~~~~~ In file included from /usr/include/stdio.h:866, from ./headers/shared.h:54, from syscheckd/seechanges.c:10: /usr/include/bits/stdio2.h:70:10: note: '__builtin___snprintf_chk' output between 29 and 18461 bytes into a destination of size 2048 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ syscheckd/seechanges.c:126:37: warning: '%s' directive output may be truncated writing up to 6144 bytes into a region of size 4095 [-Wformat-truncation=] 126 | snprintf(diff_alert, 4096 - 1, "%s%s", | ^~ 127 | buf, n >= 19 ? | ~~~ In file included from /usr/include/stdio.h:866, from ./headers/shared.h:54, from syscheckd/seechanges.c:10: /usr/include/bits/stdio2.h:70:10: note: '__builtin___snprintf_chk' output between 1 and 6160 bytes into a destination of size 4095 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -DARGV0=\"rootcheck\" -c rootcheck/check_rc_files.c -o rootcheck/check_rc_files.o rootcheck/check_rc_files.c: In function 'check_rc_files': rootcheck/check_rc_files.c:162:47: warning: '%s' directive output may be truncated writing up to 1024 bytes into a region of size 1023 [-Wformat-truncation=] 162 | snprintf(file_path, OS_SIZE_1024, "%s/%s", basedir, file); | ^~ In file included from /usr/include/stdio.h:866, from ./headers/shared.h:54, from rootcheck/check_rc_files.c:10: /usr/include/bits/stdio2.h:70:10: note: '__builtin___snprintf_chk' output 2 or more bytes (assuming 1026) into a destination of size 1024 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rootcheck/check_rc_files.c:168:54: warning: '%s' directive output may be truncated writing up to 1024 bytes into a region of size 1015 [-Wformat-truncation=] 168 | snprintf(op_msg, OS_SIZE_1024, "Rootkit '%s' detected " | ^~ In file included from /usr/include/stdio.h:866, from ./headers/shared.h:54, from rootcheck/check_rc_files.c:10: /usr/include/bits/stdio2.h:70:10: note: '__builtin___snprintf_chk' output between 48 and 2096 bytes into a destination of size 1024 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -DARGV0=\"ossec-syscheckd\" -c syscheckd/syscheck.c -o syscheckd/syscheck.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -DARGV0=\"rootcheck\" -c rootcheck/check_rc_if.c -o rootcheck/check_rc_if.o In file included from /usr/include/string.h:532, from rootcheck/check_rc_if.c:18: In function 'strncpy', inlined from 'check_rc_if' at rootcheck/check_rc_if.c:84:9: /usr/include/bits/string_fortified.h:91:10: warning: '__builtin_strncpy' output may be truncated copying 16 bytes from a string of length 511 [-Wstringop-truncation] 91 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -DARGV0=\"rootcheck\" -c rootcheck/check_rc_dev.c -o rootcheck/check_rc_dev.o rootcheck/check_rc_dev.c: In function 'read_dev_dir.isra': rootcheck/check_rc_dev.c:42:47: warning: '%s' directive output may be truncated writing up to 4097 bytes into a region of size 1018 [-Wformat-truncation=] 42 | snprintf(op_msg, OS_SIZE_1024, "File '%s' present on /dev." | ^~ ...... 135 | read_dev_file(f_name); | ~~~~~~ In file included from /usr/include/stdio.h:866, from ./headers/shared.h:54, from rootcheck/check_rc_dev.c:11: /usr/include/bits/stdio2.h:70:10: note: '__builtin___snprintf_chk' output between 47 and 4144 bytes into a destination of size 1024 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make[1]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/zlib-1.2.11' gcc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o trees.o trees.c make[1]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/zlib-1.2.11' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -DARGV0=\"rootcheck\" -c rootcheck/check_rc_policy.c -o rootcheck/check_rc_policy.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -DARGV0=\"rootcheck\" -c rootcheck/check_rc_readproc.c -o rootcheck/check_rc_readproc.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -DARGV0=\"rootcheck\" -c rootcheck/check_rc_pids.c -o rootcheck/check_rc_pids.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make[1]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/zlib-1.2.11' gcc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o zutil.o zutil.c make[1]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/zlib-1.2.11' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -DARGV0=\"rootcheck\" -c rootcheck/check_rc_ports.c -o rootcheck/check_rc_ports.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -DARGV0=\"rootcheck\" -c rootcheck/check_rc_trojans.c -o rootcheck/check_rc_trojans.o rootcheck/check_rc_trojans.c: In function 'check_rc_trojans': rootcheck/check_rc_trojans.c:94:48: warning: '%s' directive output may be truncated writing up to 1024 bytes into a region of size 998 [-Wformat-truncation=] 94 | snprintf(op_msg, OS_SIZE_1024, "Trojaned version of file " | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ 95 | "'%s' detected. Signature used: '%s' (%s).", 96 | file_path, | ~~~~~~~~~ rootcheck/check_rc_trojans.c:95:28: note: format string is defined here 95 | "'%s' detected. Signature used: '%s' (%s).", | ^~ rootcheck/check_rc_trojans.c:94:48: note: assuming directive output of 7 bytes 94 | snprintf(op_msg, OS_SIZE_1024, "Trojaned version of file " | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:866, from ./headers/shared.h:54, from rootcheck/check_rc_trojans.c:10: /usr/include/bits/stdio2.h:70:10: note: '__builtin___snprintf_chk' output 61 or more bytes (assuming 1092) into a destination of size 1024 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make[1]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/zlib-1.2.11' gcc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o compress.o compress.c make[1]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/zlib-1.2.11' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -DARGV0=\"rootcheck\" -c rootcheck/config.c -o rootcheck/config.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -DARGV0=\"rootcheck\" -c rootcheck/check_rc_sys.c -o rootcheck/check_rc_sys.o rootcheck/check_rc_sys.c: In function 'read_sys_dir.isra': rootcheck/check_rc_sys.c:92:52: warning: '%s' directive output may be truncated writing up to 4097 bytes into a region of size 998 [-Wformat-truncation=] 92 | snprintf(op_msg, OS_SIZE_1024, "Anomaly detected in file " | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ...... 294 | read_sys_file(f_name, do_read); | ~~~~~~ rootcheck/check_rc_sys.c:93:32: note: format string is defined here 93 | "'%s'. File size doesn't match what we found. " | ^~ In file included from /usr/include/stdio.h:866, from ./headers/shared.h:54, from rootcheck/check_rc_sys.c:10: /usr/include/bits/stdio2.h:70:10: note: '__builtin___snprintf_chk' output between 99 and 4196 bytes into a destination of size 1024 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rootcheck/check_rc_sys.c:121:51: warning: '%s' directive output may be truncated writing up to 4097 bytes into a region of size 1018 [-Wformat-truncation=] 121 | snprintf(op_msg, OS_SIZE_1024, "File '%s' is owned by root " | ^~ ...... 294 | read_sys_file(f_name, do_read); | ~~~~~~ In file included from /usr/include/stdio.h:866, from ./headers/shared.h:54, from rootcheck/check_rc_sys.c:10: /usr/include/bits/stdio2.h:70:10: note: '__builtin___snprintf_chk' output between 62 and 4159 bytes into a destination of size 1024 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rootcheck/check_rc_sys.c:39:67: warning: '%s' directive output may be truncated writing up to 4097 bytes into a region of size 998 [-Wformat-truncation=] 39 | snprintf(op_msg, OS_SIZE_1024, "Anomaly detected in file '%s'. " | ^~ ...... 294 | read_sys_file(f_name, do_read); | ~~~~~~ In file included from /usr/include/stdio.h:866, from ./headers/shared.h:54, from rootcheck/check_rc_sys.c:10: /usr/include/bits/stdio2.h:70:10: note: '__builtin___snprintf_chk' output between 106 and 4203 bytes into a destination of size 1024 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make[1]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/zlib-1.2.11' gcc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o uncompr.o uncompr.c make[1]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/zlib-1.2.11' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -DARGV0=\"rootcheck\" -c rootcheck/os_string.c -o rootcheck/os_string.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -DARGV0=\"rootcheck\" -c rootcheck/rootcheck.c -o rootcheck/rootcheck.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make[1]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/zlib-1.2.11' gcc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o gzclose.o gzclose.c make[1]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/zlib-1.2.11' make[1]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/zlib-1.2.11' gcc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o inflate.o inflate.c make[1]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/zlib-1.2.11' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -DARGV0=\"rootcheck\" -c rootcheck/win-common.c -o rootcheck/win-common.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -DARGV0=\"rootcheck\" -c rootcheck/unix-process.c -o rootcheck/unix-process.o rootcheck/unix-process.c: In function 'os_get_process_list': rootcheck/unix-process.c:27:40: warning: ' -p ' directive output may be truncated writing 4 bytes into a region of size between 0 and 1024 [-Wformat-truncation=] 27 | snprintf(command, OS_SIZE_1024, "%s -p %d 2> /dev/null", ps, mpid); | ^~~~ rootcheck/unix-process.c:27:37: note: directive argument in the range [1, 32768] 27 | snprintf(command, OS_SIZE_1024, "%s -p %d 2> /dev/null", ps, mpid); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:866, from ./headers/shared.h:54, from rootcheck/unix-process.c:10: /usr/include/bits/stdio2.h:70:10: note: '__builtin___snprintf_chk' output between 19 and 1047 bytes into a destination of size 1024 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -DARGV0=\"rootcheck\" -c rootcheck/win-process.c -o rootcheck/win-process.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -DARGV0=\"rootcheck\" -c rootcheck/common_rcl.c -o rootcheck/common_rcl.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -DARGV0=\"rootcheck\" -c rootcheck/run_rk_check.c -o rootcheck/run_rk_check.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -DARGV0=\"ossec-execd\" -c os_execd/win_execd.c -o os_execd/win_execd.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -DARGV0=\"rootcheck\" -c rootcheck/common.c -o rootcheck/common.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make[3]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' cc -O2 -Wall -DLUA_COMPAT_ALL -DPREFIX=\"/var/ossec\" -DLUA_USE_POSIX -c -o lparser.o lparser.c make[3]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -DARGV0=\"ossec-execd\" -c os_execd/config.c -o os_execd/config.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -DARGV0=\"ossec-execd\" -c os_execd/exec.c -o os_execd/exec.o In file included from /usr/include/string.h:532, from ./headers/shared.h:57, from os_execd/exec.c:10: In function 'strncpy', inlined from 'ReadExecConfig' at os_execd/exec.c:72:9: /usr/include/bits/string_fortified.h:91:10: warning: '__builtin_strncpy' output may be truncated copying 256 bytes from a string of length 6144 [-Wstringop-truncation] 91 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'strncpy', inlined from 'ReadExecConfig' at os_execd/exec.c:125:21: /usr/include/bits/string_fortified.h:91:10: warning: '__builtin_strncpy' accessing 256 bytes at offsets [0, 16705] and [0, 16705] may overlap up to 256 bytes at offset [0, 255] [-Wrestrict] 91 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make[1]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/zlib-1.2.11' gcc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o gzlib.o gzlib.c make[1]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/zlib-1.2.11' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -I./addagent -I./external/zlib-1.2.11/ -DARGV0=\"manage_agents\" -c addagent/b64.c -o addagent/b64.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make[1]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/zlib-1.2.11' gcc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o gzread.o gzread.c make[1]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/zlib-1.2.11' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -I./addagent -I./external/zlib-1.2.11/ -DARGV0=\"manage_agents\" -c addagent/main.c -o addagent/main.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' ar -crs libcJSON.a external/cJSON/cJSON.o ranlib libcJSON.a make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' ar -crs os_zlib.a os_zlib/os_zlib.o ranlib os_zlib.a make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make[3]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' cc -O2 -Wall -DLUA_COMPAT_ALL -DPREFIX=\"/var/ossec\" -DLUA_USE_POSIX -c -o lstate.o lstate.c make[3]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' ar -crs config.a config/active-response.o config/agentlessd-config.o config/alerts-config.o config/client-config.o config/config.o config/csyslogd-config.o config/dbd-config.o config/email-alerts-config.o config/global-config.o config/localfile-config.o config/remote-config.o config/reports-config.o config/rootcheck-config.o config/rules-config.o config/syscheck-config.o ranlib config.a make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' ar -crs shared.a shared/agent_op.o shared/custom_output_search_replace.o shared/debug_op.o shared/dirtree_op.o shared/file-queue.o shared/file_op.o shared/fs_op.o shared/hash_op.o shared/help.o shared/list_op.o shared/math_op.o shared/mem_op.o shared/mq_op.o shared/privsep_op.o shared/pthreads_op.o shared/randombytes.o shared/read-agents.o shared/read-alert.o shared/regex_op.o shared/report_op.o shared/rules_op.o shared/sig_op.o shared/store_op.o shared/string_op.o shared/validate_op.o shared/wait_op.o ranlib shared.a make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' ar -crs os_net.a os_net/os_net.o ranlib os_net.a make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' ar -crs os_regex.a os_regex/os_match.o os_regex/os_match_compile.o os_regex/os_match_execute.o os_regex/os_match_free_pattern.o os_regex/os_regex.o os_regex/os_regex_compile.o os_regex/os_regex_execute.o os_regex/os_regex_free_pattern.o os_regex/os_regex_free_substrings.o os_regex/os_regex_maps.o os_regex/os_regex_match.o os_regex/os_regex_startswith.o os_regex/os_regex_str.o os_regex/os_regex_strbreak.o ranlib os_regex.a make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' ar -crs os_xml.a os_xml/os_xml.o os_xml/os_xml_access.o os_xml/os_xml_node_access.o os_xml/os_xml_variables.o os_xml/os_xml_writer.o ranlib os_xml.a make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' ar -crs rootcheck.a rootcheck/check_open_ports.o rootcheck/check_rc_dev.o rootcheck/check_rc_files.o rootcheck/check_rc_if.o rootcheck/check_rc_pids.o rootcheck/check_rc_policy.o rootcheck/check_rc_ports.o rootcheck/check_rc_readproc.o rootcheck/check_rc_sys.o rootcheck/check_rc_trojans.o rootcheck/common.o rootcheck/common_rcl.o rootcheck/config.o rootcheck/os_string.o rootcheck/rootcheck.o rootcheck/run_rk_check.o rootcheck/unix-process.o rootcheck/win-common.o rootcheck/win-process.o ranlib rootcheck.a make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -DARGV0=\"ossec-execd\" -c os_execd/execd.c -o os_execd/execd.o os_execd/execd.c: In function 'ExecdStart': os_execd/execd.c:436:50: warning: '%d' directive output may be truncated writing between 1 and 11 bytes into a region of size 9 [-Wformat-truncation=] 436 | snprintf(ntimes, 9, "%d", ntimes_int); | ^~ os_execd/execd.c:436:49: note: directive argument in the range [-2147483647, 6] 436 | snprintf(ntimes, 9, "%d", ntimes_int); | ^~~~ In file included from /usr/include/stdio.h:866, from ./headers/shared.h:54, from os_execd/execd.c:10: /usr/include/bits/stdio2.h:70:10: note: '__builtin___snprintf_chk' output between 2 and 12 bytes into a destination of size 9 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ os_execd/execd.c:478:50: warning: '%d' directive output may be truncated writing between 1 and 11 bytes into a region of size 9 [-Wformat-truncation=] 478 | snprintf(ntimes, 9, "%d", ntimes_int); | ^~ os_execd/execd.c:478:49: note: directive argument in the range [-2147483647, 6] 478 | snprintf(ntimes, 9, "%d", ntimes_int); | ^~~~ In file included from /usr/include/stdio.h:866, from ./headers/shared.h:54, from os_execd/execd.c:10: /usr/include/bits/stdio2.h:70:10: note: '__builtin___snprintf_chk' output between 2 and 12 bytes into a destination of size 9 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make[3]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' cc -O2 -Wall -DLUA_COMPAT_ALL -DPREFIX=\"/var/ossec\" -DLUA_USE_POSIX -c -o lstring.o lstring.c make[3]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -I./addagent -I./external/zlib-1.2.11/ -DARGV0=\"manage_agents\" -c addagent/manage_agents.c -o addagent/manage_agents.o In file included from /usr/include/string.h:532, from ./headers/shared.h:57, from addagent/manage_agents.h:10, from addagent/manage_agents.c:14: In function 'strncpy', inlined from 'add_agent' at addagent/manage_agents.c:213:13: /usr/include/bits/string_fortified.h:91:10: warning: '__builtin_strncpy' output may be truncated copying 256 bytes from a string of length 257 [-Wstringop-truncation] 91 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ addagent/manage_agents.c: In function 'add_agent': addagent/manage_agents.c:274:41: warning: '%s' directive output may be truncated writing up to 257 bytes into a region of size between 55 and 65 [-Wformat-truncation=] 274 | snprintf(str1, STR_SIZE, "%d%s%d", (int)(time3 - time2), name, (int)rand1); | ^~ ~~~~ In file included from /usr/include/stdio.h:866, from ./headers/shared.h:54, from addagent/manage_agents.h:10, from addagent/manage_agents.c:14: /usr/include/bits/stdio2.h:70:10: note: '__builtin___snprintf_chk' output between 3 and 280 bytes into a destination of size 66 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ addagent/manage_agents.c:275:41: warning: '%s' directive output may be truncated writing up to 257 bytes into a region of size between 55 and 65 [-Wformat-truncation=] 275 | snprintf(str2, STR_SIZE, "%d%s%s%d", (int)(time2 - time1), ip, id, (int)rand2); | ^~ ~~ In file included from /usr/include/stdio.h:866, from ./headers/shared.h:54, from addagent/manage_agents.h:10, from addagent/manage_agents.c:14: /usr/include/bits/stdio2.h:70:10: note: '__builtin___snprintf_chk' output between 3 and 537 bytes into a destination of size 66 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -I./addagent -I./external/zlib-1.2.11/ -DARGV0=\"manage_agents\" -c addagent/read_from_user.c -o addagent/read_from_user.o make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make[3]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' cc -O2 -Wall -DLUA_COMPAT_ALL -DPREFIX=\"/var/ossec\" -DLUA_USE_POSIX -c -o ltm.o ltm.c make[3]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' make[1]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/zlib-1.2.11' gcc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o gzwrite.o gzwrite.c make[1]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/zlib-1.2.11' make[1]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/zlib-1.2.11' ar rc libz.a adler32.o crc32.o deflate.o infback.o inffast.o inflate.o inftrees.o trees.o zutil.o compress.o uncompr.o gzclose.o gzlib.o gzread.o gzwrite.o make[1]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/zlib-1.2.11' make[3]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' cc -O2 -Wall -DLUA_COMPAT_ALL -DPREFIX=\"/var/ossec\" -DLUA_USE_POSIX -c -o lzio.o lzio.c make[3]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -I./addagent -I./external/zlib-1.2.11/ -DARGV0=\"manage_agents\" -c addagent/manage_keys.c -o addagent/manage_keys.o addagent/manage_keys.c: In function 'k_import': addagent/manage_keys.c:44:5: warning: stack protector not protecting local variables: variable length buffer [-Wstack-protector] 44 | int k_import(const char *cmdimport) | ^~~~~~~~ addagent/manage_keys.c: In function 'k_bulkload': addagent/manage_keys.c:415:37: warning: '%s' directive output may be truncated writing up to 257 bytes into a region of size between 55 and 65 [-Wformat-truncation=] 415 | snprintf(str1, STR_SIZE, "%d%s%d", (int)(time3 - time2), name, (int)rand1); | ^~ ~~~~ In file included from /usr/include/stdio.h:866, from ./headers/shared.h:54, from addagent/manage_agents.h:10, from addagent/manage_keys.c:10: /usr/include/bits/stdio2.h:70:10: note: '__builtin___snprintf_chk' output between 3 and 280 bytes into a destination of size 66 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ addagent/manage_keys.c:416:37: warning: '%s' directive output may be truncated writing up to 257 bytes into a region of size between 55 and 65 [-Wformat-truncation=] 416 | snprintf(str2, STR_SIZE, "%d%s%s%d", (int)(time2 - time1), ip, id, (int)rand2); | ^~ ~~ In file included from /usr/include/stdio.h:866, from ./headers/shared.h:54, from addagent/manage_agents.h:10, from addagent/manage_keys.c:10: /usr/include/bits/stdio2.h:70:10: note: '__builtin___snprintf_chk' output between 3 and 537 bytes into a destination of size 66 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make[3]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' cc -O2 -Wall -DLUA_COMPAT_ALL -DPREFIX=\"/var/ossec\" -DLUA_USE_POSIX -c -o lundump.o lundump.c make[3]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' make[3]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' cc -O2 -Wall -DLUA_COMPAT_ALL -DPREFIX=\"/var/ossec\" -DLUA_USE_POSIX -c -o lbaselib.o lbaselib.c make[3]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' make[3]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' cc -O2 -Wall -DLUA_COMPAT_ALL -DPREFIX=\"/var/ossec\" -DLUA_USE_POSIX -c -o lcorolib.o lcorolib.c make[3]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' make[3]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' cc -O2 -Wall -DLUA_COMPAT_ALL -DPREFIX=\"/var/ossec\" -DLUA_USE_POSIX -c -o lbitlib.o lbitlib.c make[3]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' make[3]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' cc -O2 -Wall -DLUA_COMPAT_ALL -DPREFIX=\"/var/ossec\" -DLUA_USE_POSIX -c -o ltable.o ltable.c make[3]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' make[3]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' cc -O2 -Wall -DLUA_COMPAT_ALL -DPREFIX=\"/var/ossec\" -DLUA_USE_POSIX -c -o lauxlib.o lauxlib.c make[3]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' make[3]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' cc -O2 -Wall -DLUA_COMPAT_ALL -DPREFIX=\"/var/ossec\" -DLUA_USE_POSIX -c -o lmathlib.o lmathlib.c make[3]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c os_crypto/shared/keys.c -o os_crypto/shared/keys.o In file included from /usr/include/string.h:532, from ./headers/shared.h:57, from os_crypto/shared/keys.c:10: In function 'strncpy', inlined from 'OS_ReadKeys' at os_crypto/shared/keys.c:192:9: /usr/include/bits/string_fortified.h:91:10: warning: '__builtin_strncpy' output may be truncated copying 127 bytes from a string of length 2048 [-Wstringop-truncation] 91 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ os_crypto/shared/keys.c: In function 'OS_ReadKeys': os_crypto/shared/keys.c:94:32: warning: '%s' directive output may be truncated writing up to 32 bytes into a region of size between 17 and 49 [-Wformat-truncation=] 94 | snprintf(_finalstr, 49, "%s%s", filesum2, filesum1); | ^~ ~~~~~~~~ In file included from /usr/include/stdio.h:866, from ./headers/shared.h:54, from os_crypto/shared/keys.c:10: /usr/include/bits/stdio2.h:70:10: note: '__builtin___snprintf_chk' output between 1 and 65 bytes into a destination of size 49 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make[3]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' cc -O2 -Wall -DLUA_COMPAT_ALL -DPREFIX=\"/var/ossec\" -DLUA_USE_POSIX -c -o ltablib.o ltablib.c make[3]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -c os_crypto/shared/msgs.c -o os_crypto/shared/msgs.o os_crypto/shared/msgs.c: In function 'CreateSecMSG': os_crypto/shared/msgs.c:410:37: warning: '%s' directive output may be truncated writing up to 6145 bytes into a region of size between 6112 and 6144 [-Wformat-truncation=] 410 | snprintf(_finmsg, OS_MAXSTR, "%s%s", md5sum, _tmpmsg); | ^~ ~~~~~~~ In file included from /usr/include/stdio.h:866, from ./headers/shared.h:54, from os_crypto/shared/msgs.c:10: /usr/include/bits/stdio2.h:70:10: note: '__builtin___snprintf_chk' output between 1 and 6178 bytes into a destination of size 6144 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' ar -crs os_crypto.a os_crypto/blowfish/bf_op.o os_crypto/blowfish/bf_skey.o os_crypto/blowfish/bf_enc.o os_crypto/md5/md5.o os_crypto/md5/md5_op.o os_crypto/sha1/sha1_op.o os_crypto/shared/keys.o os_crypto/shared/msgs.o os_crypto/md5_sha1/md5_sha1_op.o ranlib os_crypto.a make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make[3]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' cc -O2 -Wall -DLUA_COMPAT_ALL -DPREFIX=\"/var/ossec\" -DLUA_USE_POSIX -c -o lvm.o lvm.c make[3]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' make[3]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' cc -O2 -Wall -DLUA_COMPAT_ALL -DPREFIX=\"/var/ossec\" -DLUA_USE_POSIX -c -o loslib.o loslib.c make[3]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' make[3]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' cc -O2 -Wall -DLUA_COMPAT_ALL -DPREFIX=\"/var/ossec\" -DLUA_USE_POSIX -c -o liolib.o liolib.c make[3]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' make[3]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' cc -O2 -Wall -DLUA_COMPAT_ALL -DPREFIX=\"/var/ossec\" -DLUA_USE_POSIX -c -o linit.o linit.c make[3]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' make[3]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' cc -O2 -Wall -DLUA_COMPAT_ALL -DPREFIX=\"/var/ossec\" -DLUA_USE_POSIX -c -o ldblib.o ldblib.c make[3]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -I./external/zlib-1.2.11/ client-agent/agentd.o client-agent/config.o client-agent/event-forward.o client-agent/intcheck_op.o client-agent/main.o client-agent/notify.o client-agent/receiver-win.o client-agent/receiver.o client-agent/sendmsg.o client-agent/start_agent.o os_crypto.a config.a shared.a os_net.a os_regex.a os_xml.a os_zlib.a external/zlib-1.2.11/libz.a -fPIE -pie -Wl,-z,relro -lm -lpthread -o ossec-agentd ld: os_net.a(os_net.o):/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/os_net/os_net.c:17: multiple definition of `agt'; client-agent/config.o:/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/client-agent/config.c:20: first defined here collect2: error: ld returned 1 exit status make: *** [Makefile:932: ossec-agentd] Error 1 make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: *** Waiting for unfinished jobs.... make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -I./os_auth addagent/validate.o os_auth/main-client.o os_auth/ssl.o os_auth/check_cert.o os_crypto.a config.a shared.a os_net.a os_regex.a os_xml.a os_zlib.a external/zlib-1.2.11/libz.a -fPIE -pie -Wl,-z,relro -lm -lpthread -o agent-auth make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make[3]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' cc -O2 -Wall -DLUA_COMPAT_ALL -DPREFIX=\"/var/ossec\" -DLUA_USE_POSIX -c -o loadlib.o loadlib.c make[3]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ -I./external/zlib-1.2.11/ syscheckd/config.o syscheckd/create_db.o syscheckd/run_check.o syscheckd/run_realtime.o syscheckd/seechanges.o syscheckd/syscheck.o syscheckd/win-registry.o rootcheck.a os_crypto.a config.a shared.a os_net.a os_regex.a os_xml.a os_zlib.a external/zlib-1.2.11/libz.a -fPIE -pie -Wl,-z,relro -lm -lpthread -o ossec-syscheckd make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' cc -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fpic -fPIE -Wformat -Wformat-security -fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wstack-protector -O2 -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/lib/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DCLIENT -Wall -Wextra -I./ -I./headers/ logcollector/config.o logcollector/logcollector.o logcollector/main.o logcollector/read_command.o logcollector/read_djb_multilog.o logcollector/read_fullcommand.o logcollector/read_mssql_log.o logcollector/read_multiline.o logcollector/read_mysql_log.o logcollector/read_nmapg.o logcollector/read_ossecalert.o logcollector/read_postgresql_log.o logcollector/read_snortfull.o logcollector/read_syslog.o logcollector/read_win_el.o logcollector/read_win_event_channel.o os_crypto.a config.a shared.a os_net.a os_regex.a os_xml.a -fPIE -pie -Wl,-z,relro -lm -lpthread -o ossec-logcollector make: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src' make[3]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' cc -O2 -Wall -DLUA_COMPAT_ALL -DPREFIX=\"/var/ossec\" -DLUA_USE_POSIX -c -o lstrlib.o lstrlib.c make[3]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' make[3]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' ar rcu liblua.a lapi.o lcode.o lctype.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o lauxlib.o lbaselib.o lbitlib.o lcorolib.o ldblib.o liolib.o lmathlib.o loslib.o lstrlib.o ltablib.o loadlib.o linit.o ranlib liblua.a make[3]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' make[3]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' cc -O2 -Wall -DLUA_COMPAT_ALL -DPREFIX=\"/var/ossec\" -DLUA_USE_POSIX -c -o lua.o lua.c make[3]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' make[3]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' cc -O2 -Wall -DLUA_COMPAT_ALL -DPREFIX=\"/var/ossec\" -DLUA_USE_POSIX -c -o luac.o luac.c make[3]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' make[3]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' cc -o ossec-lua lua.o liblua.a -lm make[3]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' make[3]: Entering directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' cc -o ossec-luac luac.o liblua.a -lm make[3]: Leaving directory '/usr/src/RPM/BUILD/ossec-hids-3.1.0/src/external/lua-5.2.3/src' error: Bad exit status from /usr/src/tmp/rpm-tmp.78992 (%build) RPM build errors: ignored self-provides: ossec-hids-server = 3.1.0-alt2 Bad exit status from /usr/src/tmp/rpm-tmp.78992 (%build) Command exited with non-zero status 1 57.99user 5.21system 0:11.63elapsed 543%CPU (0avgtext+0avgdata 34480maxresident)k 0inputs+0outputs (0major+836956minor)pagefaults 0swaps hsh-rebuild: rebuild of `ossec-hids-3.1.0-alt2.src.rpm' failed. Command exited with non-zero status 1 68.65user 10.62system 0:26.67elapsed 297%CPU (0avgtext+0avgdata 115072maxresident)k 7512inputs+0outputs (0major+1115216minor)pagefaults 0swaps