D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/netstat-nat-1.4.10-9.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.so2JsL + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + rm -rf /home/pterjan/rpmbuild/BUILDROOT/netstat-nat-1.4.10-9.mga10.x86_64 + cd /home/pterjan/rpmbuild/BUILD + rm -rf netstat-nat-1.4.10 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/netstat-nat-1.4.10.tar.bz2 + STATUS=0 + '[' 0 -ne 0 ']' + cd netstat-nat-1.4.10 + rm -rf /home/pterjan/rpmbuild/BUILD/netstat-nat-1.4.10-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/netstat-nat-1.4.10-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.5VUgJn + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd netstat-nat-1.4.10 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + CONFIGURE_TOP=. + '[' 1 = 1 ']' ++ find . -name config.guess -o -name 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 checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for x86_64-mageia-linux-gnu-gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether 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... none checking for a BSD-compatible install... /usr/bin/install -c 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 stdio.h usability... yes checking stdio.h presence... yes checking for stdio.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking for unistd.h... (cached) yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking for strings.h... (cached) yes checking net/if.h usability... yes checking net/if.h presence... yes checking for net/if.h... yes checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes configure: creating ./config.status config.status: creating Makefile config.status: executing depfiles commands + /usr/bin/make -O -j16 V=1 VERBOSE=1 make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/netstat-nat-1.4.10' gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"netstat-nat\" -DVERSION=\"1.4.10\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_NETDB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ARPA_INET_H=1 -DHAVE_ERRNO_H=1 -DHAVE_STRINGS_H=1 -DHAVE_NET_IF_H=1 -DHAVE_SYS_IOCTL_H=1 -I. -I. -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c netstat-nat.c netstat-nat.c: In function 'main': netstat-nat.c:283:42: warning: comparison between pointer and zero character constant [-Wpointer-compare] 283 | if (optarg == NULL || optarg == '\0') { | ^~ netstat-nat.c:283:35: note: did you mean to dereference the pointer? 283 | if (optarg == NULL || optarg == '\0') { | ^ netstat-nat.c: In function 'get_protocol': netstat-nat.c:530:9: error: implicit declaration of function 'string_search' [-Wimplicit-function-declaration] 530 | if (string_search(line, "tcp")) { | ^~~~~~~~~~~~~ netstat-nat.c: In function 'process_entry': netstat-nat.c:615:5: error: implicit declaration of function 'search_first_hit' [-Wimplicit-function-declaration] 615 | search_first_hit("src=", line, srcip_f); | ^~~~~~~~~~~~~~~~ netstat-nat.c:617:5: error: implicit declaration of function 'search_sec_hit' [-Wimplicit-function-declaration] 617 | search_sec_hit("src=", line, srcip_s); | ^~~~~~~~~~~~~~ netstat-nat.c: In function 'xcalloc': netstat-nat.c:824:45: warning: format '%i' expects argument of type 'int', but argument 2 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] 824 | printf("Could not allocate memory (%i bytes); %s.\n -- Exiting.\n", bufsize, strerror(errno)); | ~^ ~~~~~~~ | | | | int size_t {aka long unsigned int} | %li netstat-nat.c: In function 'xrealloc': netstat-nat.c:837:45: warning: format '%i' expects argument of type 'int', but argument 2 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] 837 | printf("Could not allocate memory (%i bytes); %s.\n -- Exiting.\n", newbufsize, strerror(errno)); | ~^ ~~~~~~~~~~ | | | | int size_t {aka long unsigned int} | %li make[1]: *** [Makefile:261: netstat-nat.o] Error 1 make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/netstat-nat-1.4.10' make: *** [Makefile:340: all-recursive] Error 1 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.5VUgJn (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.5VUgJn (%build) I: [iurt_root_command] ERROR: chroot