D: [iurt_root_command] chroot RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument Installing /home/iurt/rpmbuild/SRPMS/smtp-gated-1.4.20.0-8.mga8.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.tPxJGx + umask 022 + cd /home/iurt/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/iurt/rpmbuild/BUILD + rm -rf smtp-gated-1.4.20.0 + /usr/bin/gzip -dc /home/iurt/rpmbuild/SOURCES/smtp-gated-1.4.20.0.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd smtp-gated-1.4.20.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (smtp-gated-1.4.17-fdprintf.patch):' Patch #0 (smtp-gated-1.4.17-fdprintf.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .fdprintf --fuzz=0 patching file src/smtp-gated.c Hunk #1 succeeded at 2388 (offset 399 lines). + echo 'Patch #1 (smtp-gated-1.4.17-syslog.patch):' Patch #1 (smtp-gated-1.4.17-syslog.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .syslog --fuzz=0 patching file src/util.c Hunk #1 succeeded at 650 (offset 24 lines). + echo 'Patch #2 (smtp-gated-1.4.18.8-linkage.patch):' Patch #2 (smtp-gated-1.4.18.8-linkage.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .linkage --fuzz=0 patching file src/Makefile.in Hunk #1 succeeded at 178 (offset 22 lines). + echo 'Patch #3 (smtp-gated-1.4.20.0-gcc7.patch):' Patch #3 (smtp-gated-1.4.20.0-gcc7.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .gcc7 --fuzz=0 patching file src/smtp-gated.c + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.I4rH4t + umask 022 + cd /home/iurt/rpmbuild/BUILD + cd smtp-gated-1.4.20.0 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + autoreconf -fi aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in' autoheader: autoconf input should be named 'configure.ac', not 'configure.in' automake: warning: autoconf input should be named 'configure.ac', not 'configure.in' configure.in:28: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated. For more info, see: configure.in:28: https://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation doc/Makefile.am:27: warning: '%'-style pattern rules are a GNU make extension doc/Makefile.am:30: warning: '%'-style pattern rules are a GNU make extension doc/Makefile.am:33: warning: '%'-style pattern rules are a GNU make extension automake: warning: autoconf input should be named 'configure.ac', not 'configure.in' tests/Makefile.am:19: warning: wildcard *.t *.pl *.pm *.sh: non-POSIX variable name tests/Makefile.am:19: (probably a GNU make extension) + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables ' + export FCFLAGS + LDFLAGS=' -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags' + export LDFLAGS + CONFIGURE_TOP=. + '[' 1 = 1 ']' ++ find . -name config.guess -o -name config.sub + for i in $(find ${CONFIGURE_TOP} -name config.guess -o -name config.sub) ++ basename ./config.guess + '[' -f /usr/lib/rpm/mageia/config.guess ']' ++ basename ./config.guess + cp -af /usr/lib/rpm/mageia/config.guess ./config.guess + for i in $(find ${CONFIGURE_TOP} -name config.guess -o -name config.sub) ++ basename ./config.sub + '[' -f /usr/lib/rpm/mageia/config.sub ']' ++ basename ./config.sub + cp -af /usr/lib/rpm/mageia/config.sub ./config.sub + /usr/lib/rpm/mageia/force-as-needed-for-shared-lib-in-libtool Forcing -Wl,--as-needed in configure/libtool to workaround libtool bug (cf http://lists.gnu.org/archive/html/libtool-patches/2004-06/msg00002.html) + /usr/lib/rpm/mageia/drop-ld-no-undefined-for-shared-lib-modules-in-libtool + /usr/lib/rpm/mageia/fix-libtool-ltmain-from-overlinking + /usr/lib/rpm/mageia/fix-libtool-from-moving-options-after-libs . + /usr/lib/rpm/mageia/fix-dlsearch-path-in-libtool-for-multilib . lib64 + ./configure --host=x86_64-mageia-linux-gnu --build=x86_64-mageia-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-pcre=/usr/include --enable-spf=/usr/include/spf2 checking build system type... x86_64-mageia-linux-gnu checking host system type... x86_64-mageia-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a race-free mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking for x86_64-mageia-linux-gnu-gcc... x86_64-mageia-linux-gnu-gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether x86_64-mageia-linux-gnu-gcc accepts -g... yes checking for x86_64-mageia-linux-gnu-gcc option to enable C11 features... none needed checking whether x86_64-mageia-linux-gnu-gcc understands -c and -o together... yes checking whether make supports the include directive... yes (GNU style) checking dependency style of x86_64-mageia-linux-gnu-gcc... none checking whether make sets $(MAKE)... (cached) yes checking for x86_64-mageia-linux-gnu-strip... no checking for strip... strip checking for perl... perl checking for txt2tags... no checking for sys/types.h... yes checking for sys/stat.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking whether byte ordering is bigendian... no checking for uint32_t... yes checking for u_int32_t... yes checking for sig_atomic_t... yes checking for socklen_t... yes checking size of pid_t... 4 checking size of uid_t... 4 checking size of time_t... 8 checking size of size_t... 8 checking for struct stat.st_size... yes checking for err.h... yes checking for limits.h... yes checking for stdint.h... (cached) yes checking for netinet/in.h... yes checking for inttypes.h... (cached) yes checking for sys/types.h... (cached) yes checking for sys/time.h... yes checking for sys/socket.h... yes checking for sys/loadavg.h... no checking for sys/resource.h... yes checking for sys/wait.h... yes checking for netdb.h... yes checking for arpa/inet.h... yes checking for arpa/nameser.h... yes checking for endian.h... yes checking for sys/endian.h... no checking for byteswap.h... yes checking for machine/bswap.h... no checking how x86_64-mageia-linux-gnu-gcc reports undeclared, standard C functions... error checking whether bswap_16 is declared... yes checking whether bswap_32 is declared... yes checking whether bswap_64 is declared... yes checking whether bswap16 is declared... no checking whether bswap32 is declared... no checking whether bswap64 is declared... no checking whether swap16 is declared... no checking whether swap32 is declared... no checking whether swap64 is declared... no checking whether __swap16 is declared... no checking whether __swap32 is declared... no checking whether __swap64 is declared... no checking for strndup... yes checking for asprintf... yes checking for vasprintf... yes checking for setenv... yes checking for setproctitle... no checking for getloadavg... yes checking for accept... yes checking for inet_ntoa... yes checking for gethostname... yes checking for flock... yes checking for mmap... yes checking for inet_aton... yes checking for getline... yes checking for getrusage... yes checking for setrlimit... yes checking whether RLIMIT_CORE is declared... yes checking whether RLIMIT_AS is declared... yes checking whether RLIMIT_DATA is declared... yes checking whether RLIMIT_FSIZE is declared... yes checking whether IP_PKTINFO is declared... yes checking for linux/netfilter_ipv4.h... yes checking for linux/netfilter/xt_TPROXY.h... yes checking for netinet/ipl.h... no checking for net/pfvar.h... no checking for netinet/ip_fw.h... no checking for netinet/ip_fw2.h... no checking for libmksd.h... no checking for libdspam.h... no checking for dspam/libdspam.h... no checking for pcre.h... yes checking for pcre/pcre.h... no checking for spf2/spf.h... yes checking if debugging enabled... no configure: ----------------------------------------------------------- configure: setup: proxy messages default language: en configure: setup: NAT support: Linux/netfilter configure: setup: NAT support: Linux/tproxy configure: setup: use of shared memory: yes configure: setup: SMTP CHUNKING extension support (BROKEN): no configure: setup: silent ECONNRESET: no configure: setup: enable mksd: no configure: setup: enable regexp: yes configure: setup: enable SPF: yes configure: setup: enable libdspam (BROKEN): disabled configure: ----------------------------------------------------------- checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating lib/Makefile config.status: creating src/lang.h config.status: creating lang/Makefile config.status: creating contrib/Makefile config.status: creating doc/Makefile config.status: creating tests/Makefile config.status: creating smtp-gated.spec config.status: creating doc/smtp-gated.t2t config.status: creating doc/smtp-gated.conf.t2t config.status: creating config.h config.status: executing depfiles commands + /usr/bin/make -O -j8 V=1 VERBOSE=1 /usr/bin/make all-recursive Making all in src make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -c -o regex-test.o regex-test.c make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -c -o smtp_gated-confvars.o `test -f 'confvars.c' || echo './'`confvars.c make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -c -o smtp_gated-daemon.o `test -f 'daemon.c' || echo './'`daemon.c make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -c -o smtp_gated-conffile.o `test -f 'conffile.c' || echo './'`conffile.c make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -c -o smtp_gated-scan.o `test -f 'scan.c' || echo './'`scan.c make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DMD5_TEST -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -c -o md5_test-md5.o `test -f 'md5.c' || echo './'`md5.c make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -c -o smtp_gated-dump.o `test -f 'dump.c' || echo './'`dump.c dump.c: In function 'dump_state': dump.c:167:16: warning: too many arguments for format [-Wformat-extra-args] 167 | fdprintf(fd, "Found: %u/%u/%u/%u/%u (viruses/spam/no-auth/spf/regex/earlytalk)\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dump.c:236:27: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] 236 | fdprintf(fd, "%-15s %4u %8u %8u %7.1f", inet_ntoa(UINT32_TO_SIN(ci->dst)), ci->transaction, ci->cli_rx, ci->srv_rx, speed); | ~~^ ~~~~~~~~~~~~~~~ | | | | unsigned int size_t {aka long unsigned int} | %4lu dump.c:236:31: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] 236 | fdprintf(fd, "%-15s %4u %8u %8u %7.1f", inet_ntoa(UINT32_TO_SIN(ci->dst)), ci->transaction, ci->cli_rx, ci->srv_rx, speed); | ~~^ ~~~~~~~~~~ | | | | unsigned int size_t {aka long unsigned int} | %8lu dump.c:236:35: warning: format '%u' expects argument of type 'unsigned int', but argument 6 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] 236 | fdprintf(fd, "%-15s %4u %8u %8u %7.1f", inet_ntoa(UINT32_TO_SIN(ci->dst)), ci->transaction, ci->cli_rx, ci->srv_rx, speed); | ~~^ ~~~~~~~~~~ | | | | unsigned int size_t {aka long unsigned int} | %8lu In file included from confvars.h:35, from dump.c:49: dump.c: In function 'dump_ver': conffile.h:44:27: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=] 44 | #define CONF_D2(a) printf(" %-30s: %d\n", #a, a); | ^~~~~~~~~~~~~~~ dump.c:354:2: note: in expansion of macro 'CONF_D2' 354 | CONF_D2(sizeof(struct session_t)); | ^~~~~~~ conffile.h:44:38: note: format string is defined here 44 | #define CONF_D2(a) printf(" %-30s: %d\n", #a, a); | ~^ | | | int | %ld conffile.h:44:27: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=] 44 | #define CONF_D2(a) printf(" %-30s: %d\n", #a, a); | ^~~~~~~~~~~~~~~ dump.c:355:2: note: in expansion of macro 'CONF_D2' 355 | CONF_D2(sizeof(struct scoreboard_t)); | ^~~~~~~ conffile.h:44:38: note: format string is defined here 44 | #define CONF_D2(a) printf(" %-30s: %d\n", #a, a); | ~^ | | | int | %ld conffile.h:44:27: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=] 44 | #define CONF_D2(a) printf(" %-30s: %d\n", #a, a); | ^~~~~~~~~~~~~~~ dump.c:356:2: note: in expansion of macro 'CONF_D2' 356 | CONF_D2(sizeof(struct pipeline_t)); | ^~~~~~~ conffile.h:44:38: note: format string is defined here 44 | #define CONF_D2(a) printf(" %-30s: %d\n", #a, a); | ~^ | | | int | %ld conffile.h:44:27: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=] 44 | #define CONF_D2(a) printf(" %-30s: %d\n", #a, a); | ^~~~~~~~~~~~~~~ dump.c:357:2: note: in expansion of macro 'CONF_D2' 357 | CONF_D2(sizeof(struct ratelimit_record_t)); | ^~~~~~~ conffile.h:44:38: note: format string is defined here 44 | #define CONF_D2(a) printf(" %-30s: %d\n", #a, a); | ~^ | | | int | %ld make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -c -o smtp_gated-lookup.o `test -f 'lookup.c' || echo './'`lookup.c make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -c -o smtp_gated-compat.o `test -f 'compat.c' || echo './'`compat.c make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -c -o smtp_gated-lockfile.o `test -f 'lockfile.c' || echo './'`lockfile.c make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -c -o smtp_gated-spool.o `test -f 'spool.c' || echo './'`spool.c spool.c: In function 'spool_scan': spool.c:187:47: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] 187 | log_action(LOG_DEBUG, "DATA:SCANNING size=%d, src=%s, ident=%s", | ~^ | | | int | %ld 188 | data->size, data->origin_str, data->ident); | ~~~~~~~~~~ | | | size_t {aka long unsigned int} spool.c:203:42: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] 203 | log_action(LOG_INFO, "SCAN:CLEAN size=%d, time=%d, src=%s, ident=%s", | ~^ | | | int | %ld 204 | data->size, scan_time, data->origin_str, data->ident); | ~~~~~~~~~~ | | | size_t {aka long unsigned int} spool.c:206:44: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] 206 | log_action(LOG_INFO, "SCAN:SKIPPED size=%d, src=%s, ident=%s", | ~^ | | | int | %ld 207 | data->size, data->origin_str, data->ident); | ~~~~~~~~~~ | | | size_t {aka long unsigned int} spool.c:213:45: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] 213 | log_action(LOG_WARNING, "SCAN:VIRUS size=%d, time=%d, src=%s, ident=%s, virus=%s", | ~^ | | | int | %ld 214 | data->size, scan_time, data->origin_str, data->ident, scan_result_string); | ~~~~~~~~~~ | | | size_t {aka long unsigned int} spool.c:223:47: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] 223 | log_action(LOG_WARNING, "SCAN:TIMEOUT size=%d, time=%d, src=%s, ident=%s, result=%s", | ~^ | | | int | %ld 224 | data->size, scan_time, data->origin_str, data->ident, scan_result_string); | ~~~~~~~~~~ | | | size_t {aka long unsigned int} spool.c:233:42: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] 233 | log_action(LOG_ERR, "SCAN:FAILED size=%d, time=%d, src=%s, ident=%s, result=%s", | ~^ | | | int | %ld 234 | data->size, scan_time, data->origin_str, data->ident, scan_result_string); | ~~~~~~~~~~ | | | size_t {aka long unsigned int} spool.c:249:45: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] 249 | log_action(LOG_INFO, "SPAM:SKIPPED size=%d, src=%s, ident=%s, load=%f", | ~^ | | | int | %ld 250 | data->size, data->origin_str, data->ident, cur_load); | ~~~~~~~~~~ | | | size_t {aka long unsigned int} spool.c:297:37: warning: format '%d' expects argument of type 'int', but argument 4 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] 297 | log_action(level, "SPAM:%s size=%d, time=%d, src=%s, ident=%s, score=%f", | ~^ | | | int | %ld 298 | scan_result_string, data->size, scan_time, data->origin_str, | ~~~~~~~~~~ | | | size_t {aka long unsigned int} spool.c:301:45: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] 301 | log_action(LOG_INFO, "SPAM:SKIPPED size=%d, src=%s, ident=%s", | ~^ | | | int | %ld 302 | data->size, data->origin_str, data->ident); | ~~~~~~~~~~ | | | size_t {aka long unsigned int} make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -c -o smtp_gated-action.o `test -f 'action.c' || echo './'`action.c action.c: In function 'user_action': action.c:114:37: warning: format '%d' expects argument of type 'int', but argument 4 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] 114 | if (snprintf(size, sizeof(size), "%d", data->size) == -1) goto asprintf_err; | ~^ ~~~~~~~~~~ | | | | int size_t {aka long unsigned int} | %ld make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -c -o smtp_gated-md5.o `test -f 'md5.c' || echo './'`md5.c make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -c -o smtp_gated-regex.o `test -f 'regex.c' || echo './'`regex.c make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -c -o smtp_gated-dnsbl.o `test -f 'dnsbl.c' || echo './'`dnsbl.c dnsbl.c: In function 'dnsbl_check': dnsbl.c:128:3: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 128 | asprintf(&data->message, "DNSBL: %s: %d.%d.%d.%d", dnsbl, NIPQUAD(answer)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -c -o smtp_gated-util.o `test -f 'util.c' || echo './'`util.c util.c: In function 'shmalloc': util.c:671:33: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] 671 | log_action(LOG_CRIT, "shmget(%d) failed: %s", size, strerror(errno)); | ~^ ~~~~ | | | | int size_t {aka long unsigned int} | %ld util.c: At top level: util.c:1021:2: warning: #warning openf(): TODO? [-Wcpp] 1021 | #warning openf(): TODO? | ^~~~~~~ util.c: In function 'snprintp': util.c:1155:39: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 1155 | cat_ptr = strncpy(tmp, inet_ntoa(*(struct in_addr *) p->u.inet), sizeof(tmp)); | ^ In file included from /usr/include/string.h:495, from util.c:37: In function 'strncpy', inlined from 'snprintp' at util.c:1155:15: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 8192 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' x86_64-mageia-linux-gnu-gcc -DMD5_TEST -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -o md5-test md5_test-md5.o make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' x86_64-mageia-linux-gnu-gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -lpcre -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -o regex-test regex-test.o make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -c -o smtp_gated-ratelimit.o `test -f 'ratelimit.c' || echo './'`ratelimit.c ratelimit.c: In function 'ratelimit_string': ratelimit.c:194:2: warning: #warning TODO:ratelimit_string() not implemented [-Wcpp] 194 | #warning TODO:ratelimit_string() not implemented | ^~~~~~~ ratelimit.c: In function 'ratelimit_ip': ratelimit.c:211:31: warning: taking address of packed member of 'struct ratelimit_record_t' may result in an unaligned pointer value [-Waddress-of-packed-member] 211 | struct ratelimit_ip_t *dst = rec->dst; | ^~~ make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -c -o smtp_gated-spf.o `test -f 'spf.c' || echo './'`spf.c make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -c -o smtp_gated-smtp-gated.o `test -f 'smtp-gated.c' || echo './'`smtp-gated.c smtp-gated.c:543:2: warning: #warning run-test.pl --long: possible memory leak [-Wcpp] 543 | #warning run-test.pl --long: possible memory leak | ^~~~~~~ smtp-gated.c: In function 'server_callback': smtp-gated.c:1939:2: warning: #warning TEST:RATELIMIT_MAILFROM_REJECTS [-Wcpp] 1939 | #warning TEST:RATELIMIT_MAILFROM_REJECTS | ^~~~~~~ smtp-gated.c:1957:2: warning: #warning TEST:RATELIMIT_RCPTTO_REJECTS [-Wcpp] 1957 | #warning TEST:RATELIMIT_RCPTTO_REJECTS | ^~~~~~~ smtp-gated.c:1988:2: warning: #warning TODO:AUTH_SKIP_DIRECT [-Wcpp] 1988 | #warning TODO:AUTH_SKIP_DIRECT | ^~~~~~~ smtp-gated.c: In function 'connection': smtp-gated.c:2498:2: warning: #warning TEST:ratelimit_ip [-Wcpp] 2498 | #warning TEST:ratelimit_ip | ^~~~~~~ smtp-gated.c: At top level: smtp-gated.c:484:54: warning: 'arg_t_p' is static but used in inline function 'queue_command' which is not static 484 | return queue_commandp(command, data, arg_t_p(NULL), arg_t_p(NULL)); | ^~~~~~~ smtp-gated.c:484:39: warning: 'arg_t_p' is static but used in inline function 'queue_command' which is not static 484 | return queue_commandp(command, data, arg_t_p(NULL), arg_t_p(NULL)); | ^~~~~~~ smtp-gated.c: In function 'direct_proxy': smtp-gated.c:1091:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 1091 | write(data->server, buffer, size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smtp-gated.c:1107:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 1107 | write(data->client, buffer, size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ At top level: smtp-gated.c:109:18: warning: 'one' defined but not used [-Wunused-const-variable=] 109 | static const int one = 1; | ^~~ make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' x86_64-mageia-linux-gnu-gcc -I../ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -lpcre -lspf2 -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -o smtp-gated smtp_gated-smtp-gated.o smtp_gated-confvars.o smtp_gated-conffile.o smtp_gated-daemon.o smtp_gated-util.o smtp_gated-lookup.o smtp_gated-scan.o smtp_gated-dump.o smtp_gated-lockfile.o smtp_gated-spool.o smtp_gated-md5.o smtp_gated-compat.o smtp_gated-action.o smtp_gated-dnsbl.o smtp_gated-ratelimit.o smtp_gated-regex.o smtp_gated-spf.o /usr/bin/ld: smtp_gated-smtp-gated.o: in function `client_callback': /home/iurt/rpmbuild/BUILD/smtp-gated-1.4.20.0/src/smtp-gated.c:1675: undefined reference to `queue_command' /usr/bin/ld: /home/iurt/rpmbuild/BUILD/smtp-gated-1.4.20.0/src/smtp-gated.c:1685: undefined reference to `queue_command' /usr/bin/ld: smtp_gated-smtp-gated.o: in function `connection': /home/iurt/rpmbuild/BUILD/smtp-gated-1.4.20.0/src/smtp-gated.c:2522: undefined reference to `queue_command' collect2: error: ld returned 1 exit status make[2]: *** [Makefile:460: smtp-gated] Error 1 make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' make[1]: *** [Makefile:388: all-recursive] Error 1 make: *** [Makefile:327: all] Error 2 error: Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.I4rH4t (%build) RPM build errors: Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.I4rH4t (%build) I: [iurt_root_command] ERROR: chroot