D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/smtp-gated-1.4.20.0-5.mga7.src.rpm Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.SJ2lsU + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf smtp-gated-1.4.20.0 + /usr/bin/gzip -dc /home/pterjan/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). + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.yhMOw3 + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd smtp-gated-1.4.20.0 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4' + export FFLAGS + LDFLAGS=' -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags' + export LDFLAGS + CONFIGURE_TOP=. + /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 + '[' -f ./configure.in -o -f ./configure.ac ']' + CONFIGURE_XPATH='--x-includes=/usr/include --x-libraries=/usr/lib64' + ./configure --build=x86_64-mageia-linux-gnu --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 --x-includes=/usr/include --x-libraries=/usr/lib64 --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 thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking whether gcc and cc understand -c and -o together... yes checking whether make sets $(MAKE)... (cached) yes checking for strip... strip checking for perl... perl checking for txt2tags... no checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking 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 err.h usability... yes checking err.h presence... yes checking for err.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking for stdint.h... (cached) yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking for inttypes.h... (cached) yes checking for sys/types.h... (cached) yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking sys/loadavg.h usability... no checking sys/loadavg.h presence... no checking for sys/loadavg.h... no checking sys/resource.h usability... yes checking sys/resource.h presence... yes checking for sys/resource.h... yes checking sys/wait.h usability... yes checking sys/wait.h presence... yes checking for sys/wait.h... yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking arpa/nameser.h usability... yes checking arpa/nameser.h presence... yes checking for arpa/nameser.h... yes checking endian.h usability... yes checking endian.h presence... yes checking for endian.h... yes checking sys/endian.h usability... no checking sys/endian.h presence... no checking for sys/endian.h... no checking byteswap.h usability... yes checking byteswap.h presence... yes checking for byteswap.h... yes checking machine/bswap.h usability... no checking machine/bswap.h presence... no checking for machine/bswap.h... no 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 netinet/ipl.h usability... no checking netinet/ipl.h presence... no 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 libmksd.h usability... no checking libmksd.h presence... no checking for libmksd.h... no checking libdspam.h usability... no checking libdspam.h presence... no checking for libdspam.h... no checking dspam/libdspam.h usability... no checking dspam/libdspam.h presence... no checking for dspam/libdspam.h... no checking pcre.h usability... yes checking pcre.h presence... yes checking for pcre.h... yes checking pcre/pcre.h usability... no checking pcre/pcre.h presence... no 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: ----------------------------------------------------------- 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 + echo 'warning: %make is deprecated, try %make_build instead' warning: %make is deprecated, try %make_build instead + /usr/bin/make -O -j8 /usr/bin/make all-recursive Making all in src make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' 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 -Wall -MT regex-test.o -MD -MP -MF .deps/regex-test.Tpo -c -o regex-test.o regex-test.c mv -f .deps/regex-test.Tpo .deps/regex-test.Po make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' 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 -Wall -MT md5_test-md5.o -MD -MP -MF .deps/md5_test-md5.Tpo -c -o md5_test-md5.o `test -f 'md5.c' || echo './'`md5.c mv -f .deps/md5_test-md5.Tpo .deps/md5_test-md5.Po make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' 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 -Wall -MT smtp_gated-confvars.o -MD -MP -MF .deps/smtp_gated-confvars.Tpo -c -o smtp_gated-confvars.o `test -f 'confvars.c' || echo './'`confvars.c mv -f .deps/smtp_gated-confvars.Tpo .deps/smtp_gated-confvars.Po make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' 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 -Wall -MT smtp_gated-conffile.o -MD -MP -MF .deps/smtp_gated-conffile.Tpo -c -o smtp_gated-conffile.o `test -f 'conffile.c' || echo './'`conffile.c mv -f .deps/smtp_gated-conffile.Tpo .deps/smtp_gated-conffile.Po make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' 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 -Wall -MT smtp_gated-lookup.o -MD -MP -MF .deps/smtp_gated-lookup.Tpo -c -o smtp_gated-lookup.o `test -f 'lookup.c' || echo './'`lookup.c mv -f .deps/smtp_gated-lookup.Tpo .deps/smtp_gated-lookup.Po make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' 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 -Wall -MT smtp_gated-scan.o -MD -MP -MF .deps/smtp_gated-scan.Tpo -c -o smtp_gated-scan.o `test -f 'scan.c' || echo './'`scan.c mv -f .deps/smtp_gated-scan.Tpo .deps/smtp_gated-scan.Po make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' 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 -Wall -MT smtp_gated-daemon.o -MD -MP -MF .deps/smtp_gated-daemon.Tpo -c -o smtp_gated-daemon.o `test -f 'daemon.c' || echo './'`daemon.c mv -f .deps/smtp_gated-daemon.Tpo .deps/smtp_gated-daemon.Po make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' 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 -Wall -MT smtp_gated-dump.o -MD -MP -MF .deps/smtp_gated-dump.Tpo -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] 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=] fdprintf(fd, "%-15s %4u %8u %8u %7.1f", inet_ntoa(UINT32_TO_SIN(ci->dst)), ci->transaction, ci->cli_rx, ci->srv_rx, speed); ~~^ ~~~~~~~~~~~~~~~ %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=] fdprintf(fd, "%-15s %4u %8u %8u %7.1f", inet_ntoa(UINT32_TO_SIN(ci->dst)), ci->transaction, ci->cli_rx, ci->srv_rx, speed); ~~^ ~~~~~~~~~~ %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=] fdprintf(fd, "%-15s %4u %8u %8u %7.1f", inet_ntoa(UINT32_TO_SIN(ci->dst)), ci->transaction, ci->cli_rx, ci->srv_rx, speed); ~~^ ~~~~~~~~~~ %8lu In file included from confvars.h:35:0, 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=] #define CONF_D2(a) printf(" %-30s: %d\n", #a, a); ^ dump.c:354:2: note: in expansion of macro 'CONF_D2' CONF_D2(sizeof(struct session_t)); ^~~~~~~ conffile.h:44:27: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=] #define CONF_D2(a) printf(" %-30s: %d\n", #a, a); ^ dump.c:355:2: note: in expansion of macro 'CONF_D2' CONF_D2(sizeof(struct scoreboard_t)); ^~~~~~~ conffile.h:44:27: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=] #define CONF_D2(a) printf(" %-30s: %d\n", #a, a); ^ dump.c:356:2: note: in expansion of macro 'CONF_D2' CONF_D2(sizeof(struct pipeline_t)); ^~~~~~~ conffile.h:44:27: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=] #define CONF_D2(a) printf(" %-30s: %d\n", #a, a); ^ dump.c:357:2: note: in expansion of macro 'CONF_D2' CONF_D2(sizeof(struct ratelimit_record_t)); ^~~~~~~ mv -f .deps/smtp_gated-dump.Tpo .deps/smtp_gated-dump.Po make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' 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 -Wall -MT smtp_gated-compat.o -MD -MP -MF .deps/smtp_gated-compat.Tpo -c -o smtp_gated-compat.o `test -f 'compat.c' || echo './'`compat.c mv -f .deps/smtp_gated-compat.Tpo .deps/smtp_gated-compat.Po make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' 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 -Wall -MT smtp_gated-lockfile.o -MD -MP -MF .deps/smtp_gated-lockfile.Tpo -c -o smtp_gated-lockfile.o `test -f 'lockfile.c' || echo './'`lockfile.c mv -f .deps/smtp_gated-lockfile.Tpo .deps/smtp_gated-lockfile.Po make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' 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 -Wall -MT smtp_gated-action.o -MD -MP -MF .deps/smtp_gated-action.Tpo -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=] if (snprintf(size, sizeof(size), "%d", data->size) == -1) goto asprintf_err; ~^ ~~~~~~~~~~ %ld mv -f .deps/smtp_gated-action.Tpo .deps/smtp_gated-action.Po make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' 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 -Wall -MT smtp_gated-dnsbl.o -MD -MP -MF .deps/smtp_gated-dnsbl.Tpo -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] asprintf(&data->message, "DNSBL: %s: %d.%d.%d.%d", dnsbl, NIPQUAD(answer)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mv -f .deps/smtp_gated-dnsbl.Tpo .deps/smtp_gated-dnsbl.Po make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' 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 -Wall -MT smtp_gated-md5.o -MD -MP -MF .deps/smtp_gated-md5.Tpo -c -o smtp_gated-md5.o `test -f 'md5.c' || echo './'`md5.c mv -f .deps/smtp_gated-md5.Tpo .deps/smtp_gated-md5.Po make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' 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 -Wall -MT smtp_gated-spool.o -MD -MP -MF .deps/smtp_gated-spool.Tpo -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=] log_action(LOG_DEBUG, "DATA:SCANNING size=%d, src=%s, ident=%s", ~^ %ld data->size, data->origin_str, data->ident); ~~~~~~~~~~ spool.c:203:42: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t {aka long unsigned int}' [-Wformat=] log_action(LOG_INFO, "SCAN:CLEAN size=%d, time=%d, src=%s, ident=%s", ~^ %ld data->size, scan_time, data->origin_str, data->ident); ~~~~~~~~~~ spool.c:206:44: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t {aka long unsigned int}' [-Wformat=] log_action(LOG_INFO, "SCAN:SKIPPED size=%d, src=%s, ident=%s", ~^ %ld data->size, data->origin_str, data->ident); ~~~~~~~~~~ spool.c:213:45: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t {aka long unsigned int}' [-Wformat=] log_action(LOG_WARNING, "SCAN:VIRUS size=%d, time=%d, src=%s, ident=%s, virus=%s", ~^ %ld data->size, scan_time, data->origin_str, data->ident, scan_result_string); ~~~~~~~~~~ spool.c:223:47: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t {aka long unsigned int}' [-Wformat=] log_action(LOG_WARNING, "SCAN:TIMEOUT size=%d, time=%d, src=%s, ident=%s, result=%s", ~^ %ld data->size, scan_time, data->origin_str, data->ident, scan_result_string); ~~~~~~~~~~ spool.c:233:42: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t {aka long unsigned int}' [-Wformat=] log_action(LOG_ERR, "SCAN:FAILED size=%d, time=%d, src=%s, ident=%s, result=%s", ~^ %ld data->size, scan_time, data->origin_str, data->ident, scan_result_string); ~~~~~~~~~~ spool.c:249:45: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t {aka long unsigned int}' [-Wformat=] log_action(LOG_INFO, "SPAM:SKIPPED size=%d, src=%s, ident=%s, load=%f", ~^ %ld data->size, data->origin_str, data->ident, cur_load); ~~~~~~~~~~ spool.c:297:37: warning: format '%d' expects argument of type 'int', but argument 4 has type 'size_t {aka long unsigned int}' [-Wformat=] log_action(level, "SPAM:%s size=%d, time=%d, src=%s, ident=%s, score=%f", ~^ %ld scan_result_string, data->size, scan_time, data->origin_str, ~~~~~~~~~~ spool.c:301:45: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t {aka long unsigned int}' [-Wformat=] log_action(LOG_INFO, "SPAM:SKIPPED size=%d, src=%s, ident=%s", ~^ %ld data->size, data->origin_str, data->ident); ~~~~~~~~~~ mv -f .deps/smtp_gated-spool.Tpo .deps/smtp_gated-spool.Po make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' 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 -Wall -MT smtp_gated-ratelimit.o -MD -MP -MF .deps/smtp_gated-ratelimit.Tpo -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] #warning TODO:ratelimit_string() not implemented ^~~~~~~ mv -f .deps/smtp_gated-ratelimit.Tpo .deps/smtp_gated-ratelimit.Po make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' gcc -DMD5_TEST -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -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 -lspf2 -lpcre make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' 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 -Wall -MT smtp_gated-regex.o -MD -MP -MF .deps/smtp_gated-regex.Tpo -c -o smtp_gated-regex.o `test -f 'regex.c' || echo './'`regex.c mv -f .deps/smtp_gated-regex.Tpo .deps/smtp_gated-regex.Po make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -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 -lspf2 -lpcre make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' 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 -Wall -MT smtp_gated-util.o -MD -MP -MF .deps/smtp_gated-util.Tpo -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=] log_action(LOG_CRIT, "shmget(%d) failed: %s", size, strerror(errno)); ~^ %ld util.c: At top level: util.c:1021:2: warning: #warning openf(): TODO? [-Wcpp] #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] cat_ptr = strncpy(tmp, inet_ntoa(*(struct in_addr *) p->u.inet), sizeof(tmp)); ^ mv -f .deps/smtp_gated-util.Tpo .deps/smtp_gated-util.Po make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' 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 -Wall -MT smtp_gated-spf.o -MD -MP -MF .deps/smtp_gated-spf.Tpo -c -o smtp_gated-spf.o `test -f 'spf.c' || echo './'`spf.c mv -f .deps/smtp_gated-spf.Tpo .deps/smtp_gated-spf.Po make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' 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 -Wall -MT smtp_gated-smtp-gated.o -MD -MP -MF .deps/smtp_gated-smtp-gated.Tpo -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] #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] #warning TEST:RATELIMIT_MAILFROM_REJECTS ^~~~~~~ smtp-gated.c:1957:2: warning: #warning TEST:RATELIMIT_RCPTTO_REJECTS [-Wcpp] #warning TEST:RATELIMIT_RCPTTO_REJECTS ^~~~~~~ smtp-gated.c:1988:2: warning: #warning TODO:AUTH_SKIP_DIRECT [-Wcpp] #warning TODO:AUTH_SKIP_DIRECT ^~~~~~~ smtp-gated.c: In function 'connection': smtp-gated.c:2498:2: warning: #warning TEST:ratelimit_ip [-Wcpp] #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 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 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] write(data->server, buffer, size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smtp-gated.c:1107:5: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(data->client, buffer, size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ At top level: smtp-gated.c:109:18: warning: 'one' defined but not used [-Wunused-const-variable=] static const int one = 1; ^~~ smtp-gated.c: In function 'main': smtp-gated.c:3244:3: warning: 'hostslot' may be used uninitialized in this function [-Wmaybe-uninitialized] host_inc(connections[slot].src, hostslot); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mv -f .deps/smtp_gated-smtp-gated.Tpo .deps/smtp_gated-smtp-gated.Po make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' gcc -I../ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -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 -lspf2 -lpcre smtp_gated-smtp-gated.o: In function `client_callback': /home/pterjan/rpmbuild/BUILD/smtp-gated-1.4.20.0/src/smtp-gated.c:1643: undefined reference to `cleanup_exit' smtp_gated-smtp-gated.o: In function `connection': /home/pterjan/rpmbuild/BUILD/smtp-gated-1.4.20.0/src/smtp-gated.c:2491: undefined reference to `cleanup_exit' smtp_gated-smtp-gated.o: In function `post_config': /home/pterjan/rpmbuild/BUILD/smtp-gated-1.4.20.0/src/smtp-gated.c:2698: undefined reference to `cleanup_exit' smtp_gated-smtp-gated.o: In function `main': /home/pterjan/rpmbuild/BUILD/smtp-gated-1.4.20.0/src/smtp-gated.c:3011: undefined reference to `cleanup_exit' /home/pterjan/rpmbuild/BUILD/smtp-gated-1.4.20.0/src/smtp-gated.c:3015: undefined reference to `cleanup_exit' smtp_gated-smtp-gated.o:/home/pterjan/rpmbuild/BUILD/smtp-gated-1.4.20.0/src/smtp-gated.c:3054: more undefined references to `cleanup_exit' follow collect2: error: ld returned 1 exit status make[2]: *** [Makefile:362: smtp-gated] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/smtp-gated-1.4.20.0/src' make[1]: *** [Makefile:315: all-recursive] Error 1 make: *** [Makefile:253: all] Error 2 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.yhMOw3 (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.yhMOw3 (%build) I: [iurt_root_command] ERROR: chroot