D: [iurt_root_command] chroot Building target platforms: x86_64 Building for target x86_64 Installing /home/pterjan/rpmbuild/SRPMS/ngrep-1.47-6.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.nDlWJD Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.VzKO1F + umask 022 + cd /home/pterjan/rpmbuild/BUILD/ngrep-1.47-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/ngrep-1.47-build + rm -rf ngrep-1_47 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/ngrep-1_47.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd ngrep-1_47 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/ngrep-1.47-upstream-fixes.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/ngrep-1.47-pcre2.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/ngrep-tcpkill-c99.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + rm -r regex-0.12 + cp -af /usr/lib/rpm/mageia/config.guess /usr/lib/rpm/mageia/config.sub . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.gpUd4p + umask 022 + cd /home/pterjan/rpmbuild/BUILD/ngrep-1.47-build + 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 + cd ngrep-1_47 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + autoreconf -vfi autoreconf: export WARNINGS= autoreconf: warning: autoconf input should be named 'configure.ac', not 'configure.in' autoreconf: Entering directory '.' autoreconf: configure.in: not using Gettext autoreconf: running: aclocal --force aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in' autoreconf: configure.in: tracing autoreconf: configure.in: not using Libtool autoreconf: configure.in: not using Intltool autoreconf: configure.in: not using Gtkdoc autoreconf: running: /usr/bin/autoconf --force configure.in:14: warning: The macro 'AC_CANONICAL_SYSTEM' is obsolete. configure.in:14: You should run autoupdate. ./lib/autoconf/general.m4:2081: AC_CANONICAL_SYSTEM is expanded from... configure.in:14: the top level configure.in:16: warning: The macro 'AC_HEADER_STDC' is obsolete. configure.in:16: You should run autoupdate. ./lib/autoconf/headers.m4:663: AC_HEADER_STDC is expanded from... configure.in:16: the top level autoreconf: running: /usr/bin/autoheader --force autoheader: warning: autoconf input should be named 'configure.ac', not 'configure.in' autoreconf: configure.in: not using Automake autoreconf: Leaving directory '.' + 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 + 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-pcre2 --enable-ipv6 --with-pcap-includes=/usr/include/pcap --enable-tcpkill --disable-pcap-restart configure: WARNING: unrecognized options: --disable-dependency-tracking Configuring System ... checking build system type... x86_64-mageia-linux-gnu checking host system type... x86_64-mageia-linux-gnu checking target system type... x86_64-mageia-linux-gnu checking for x86_64-mageia-linux-gnu-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 the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for libnet_init in -lnet... yes Configuring Network Grep ... checking for a complete set of pcap headers... checking how to run the C preprocessor... gcc -E checking for egrep -e... (cached) /usr/bin/grep -E found /usr/include/pcap checking for pcap_open_live in -lpcap... yes checking for BPF include path... pcap/bpf.h checking for DLT_LINUX_SLL in pcap/bpf.h... yes checking for DLT_LOOP in pcap/bpf.h... yes checking for DLT_IEEE802_11 in pcap/bpf.h... yes checking for DLT_IEEE802_11_RADIO in pcap/bpf.h... yes checking for DLT_RAW in pcap/bpf.h... yes checking for DLT_PFLOG in pcap/bpf.h... yes checking for DLT_IPNET in pcap/bpf.h... yes CONFIG: IPv6 support enabled CONFIG: privilege dropping enabled (using nobody) CONFIG: using PCRE2 regex library CONFIG: tcpkill feature enabled CONFIG: automatically including VLAN frames configure: creating ./config.status config.status: creating Makefile config.status: creating config.h configure: WARNING: unrecognized options: --disable-dependency-tracking + /usr/bin/make -O -j16 V=1 VERBOSE=1 STRIPFLAG= gcc -DHAVE_CONFIG_H -DLINUX -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -D_BSD_SOURCE=1 -D__FAVOR_BSD=1 -I/usr/include/pcap -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 -g -c tcpkill.c In file included from /usr/include/sys/types.h:25, from tcpkill.c:11: /usr/include/features.h:199:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 199 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ tcpkill.c: In function 'tcpkill_kill': tcpkill.c:71:31: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'uint32_t' {aka 'unsigned int'} [-Wformat=] 71 | fprintf(stderr, "%s R %lu:%lu(0) win 0\n", ctext, seq, seq); | ~~^ ~~~ | | | | long unsigned int uint32_t {aka unsigned int} | %u tcpkill.c:71:35: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'uint32_t' {aka 'unsigned int'} [-Wformat=] 71 | fprintf(stderr, "%s R %lu:%lu(0) win 0\n", ctext, seq, seq); | ~~^ ~~~ | | | | long unsigned int uint32_t {aka unsigned int} | %u tcpkill.c: In function 'tcpkill_init': tcpkill.c:81:3: warning: 'pcap_lookupdev' is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations] 81 | if ((intf = pcap_lookupdev(ebuf)) == NULL) | ^~ In file included from tcpkill.c:19: /usr/include/pcap/pcap.h:444:18: note: declared here 444 | PCAP_API char *pcap_lookupdev(char *); | ^~~~~~~~~~~~~~ gcc -DHAVE_CONFIG_H -DLINUX -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -D_BSD_SOURCE=1 -D__FAVOR_BSD=1 -I/usr/include/pcap -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 -g -c ngrep.c In file included from /usr/include/getopt.h:24, from ngrep.c:34: /usr/include/features.h:199:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 199 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ ngrep.c:153:26: error: initialization of 'int8_t (*)(void)' {aka 'signed char (*)(void)'} from incompatible pointer type 'int8_t (*)(unsigned char *, uint32_t, uint16_t *, uint16_t *)' {aka 'signed char (*)(unsigned char *, unsigned int, short unsigned int *, short unsigned int *)'} [-Wincompatible-pointer-types] 153 | int8_t (*match_func)() = &blank_match_func; | ^ In file included from ngrep.c:101: ngrep.h:135:8: note: 'blank_match_func' declared here 135 | int8_t blank_match_func(unsigned char *, uint32_t, uint16_t *, uint16_t *); | ^~~~~~~~~~~~~~~~ ngrep.c:184:48: error: initialization of 'void (*)(void)' from incompatible pointer type 'void (*)(struct pcap_pkthdr *)' [-Wincompatible-pointer-types] 184 | void (*print_time)() = NULL, (*dump_delay)() = dump_delay_proc_init; | ^~~~~~~~~~~~~~~~~~~~ ngrep.h:130:6: note: 'dump_delay_proc_init' declared here 130 | void dump_delay_proc_init(struct pcap_pkthdr *); | ^~~~~~~~~~~~~~~~~~~~ ngrep.c: In function 'main': ngrep.c:297:32: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 297 | if (print_time == &print_time_diff) { | ^~ ngrep.c:298:32: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(struct pcap_pkthdr *)' [-Wincompatible-pointer-types] 298 | print_time = print_time_offset; | ^ ngrep.h:139:6: note: 'print_time_offset' declared here 139 | void print_time_offset (struct pcap_pkthdr *); | ^~~~~~~~~~~~~~~~~ ngrep.c:301:32: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(struct pcap_pkthdr *)' [-Wincompatible-pointer-types] 301 | print_time = &print_time_diff; | ^ ngrep.h:138:6: note: 'print_time_diff' declared here 138 | void print_time_diff (struct pcap_pkthdr *); | ^~~~~~~~~~~~~~~ ngrep.c:311:28: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(struct pcap_pkthdr *)' [-Wincompatible-pointer-types] 311 | print_time = &print_time_absolute; | ^ ngrep.h:137:6: note: 'print_time_absolute' declared here 137 | void print_time_absolute(struct pcap_pkthdr *); | ^~~~~~~~~~~~~~~~~~~ ngrep.c: In function 'setup_pcap_source': ngrep.c:458:13: warning: 'pcap_lookupdev' is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations] 458 | pcap_lookupdev(pc_err); | ^~~~~~~~~~~~~~ In file included from ngrep.c:83: /usr/include/pcap/pcap.h:444:18: note: declared here 444 | PCAP_API char *pcap_lookupdev(char *); | ^~~~~~~~~~~~~~ ngrep.c: In function 'setup_matcher': ngrep.c:639:20: error: assignment to 'int8_t (*)(void)' {aka 'signed char (*)(void)'} from incompatible pointer type 'int8_t (*)(unsigned char *, uint32_t, uint16_t *, uint16_t *)' {aka 'signed char (*)(unsigned char *, unsigned int, short unsigned int *, short unsigned int *)'} [-Wincompatible-pointer-types] 639 | match_func = &bin_match_func; | ^ ngrep.h:134:8: note: 'bin_match_func' declared here 134 | int8_t bin_match_func (unsigned char *, uint32_t, uint16_t *, uint16_t *); | ^~~~~~~~~~~~~~ ngrep.c:729:20: error: assignment to 'int8_t (*)(void)' {aka 'signed char (*)(void)'} from incompatible pointer type 'int8_t (*)(unsigned char *, uint32_t, uint16_t *, uint16_t *)' {aka 'signed char (*)(unsigned char *, unsigned int, short unsigned int *, short unsigned int *)'} [-Wincompatible-pointer-types] 729 | match_func = &re_match_func; | ^ ngrep.h:133:8: note: 're_match_func' declared here 133 | int8_t re_match_func (unsigned char *, uint32_t, uint16_t *, uint16_t *); | ^~~~~~~~~~~~~ ngrep.c: In function 'dump_packet': ngrep.c:946:21: error: too many arguments to function 'match_func'; expected 0, have 4 946 | if ((len > 0 && match_func(data, len, &match_index, &match_size) == invert_match) && !keep_matching) | ^~~~~~~~~~ ~~~~ ngrep.c:950:9: error: too many arguments to function 'dump_delay'; expected 0, have 1 950 | dump_delay(h); | ^~~~~~~~~~ ~ ngrep.c:973:9: error: too many arguments to function 'print_time'; expected 0, have 1 973 | print_time(h); | ^~~~~~~~~~ ~ ngrep.c: In function 'dump_delay_proc_init': ngrep.c:1326:16: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(struct pcap_pkthdr *)' [-Wincompatible-pointer-types] 1326 | dump_delay = &dump_delay_proc; | ^ ngrep.h:131:6: note: 'dump_delay_proc' declared here 131 | void dump_delay_proc (struct pcap_pkthdr *); | ^~~~~~~~~~~~~~~ ngrep.c:1331:5: error: too many arguments to function 'dump_delay'; expected 0, have 1 1331 | dump_delay(h); | ^~~~~~~~~~ ~ make: *** [Makefile:51: ngrep.o] Error 1 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.gpUd4p (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.gpUd4p (%build) I: [iurt_root_command] ERROR: chroot