D: [iurt_root_command] chroot Building target platforms: x86_64 Building for target x86_64 sh: line 4: [: -j8: integer expression expected Installing /home/pterjan/rpmbuild/SRPMS/perl-Net-Patricia-1.220.0-22.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.n6Q0l0 sh: line 4: [: -j8: integer expression expected Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.2iJE5p + umask 022 + cd /home/pterjan/rpmbuild/BUILD/perl-Net-Patricia-1.220.0-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/perl-Net-Patricia-1.220.0-build + rm -rf Net-Patricia-1.22 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/Net-Patricia-1.22.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd Net-Patricia-1.22 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (Net-Patricia-1.22-Do-not-link-to-nsl-library.patch):' Patch #0 (Net-Patricia-1.22-Do-not-link-to-nsl-library.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file Makefile.PL + RPM_EC=0 ++ jobs -p + exit 0 sh: line 4: [: -j8: integer expression expected Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.em5Flq + umask 022 + cd /home/pterjan/rpmbuild/BUILD/perl-Net-Patricia-1.220.0-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 Net-Patricia-1.22 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + /usr/bin/perl Makefile.PL Checking if your kit is complete... Looks good MakeMaker (v7.70) Warning (non-fatal): Target 'dynamic' depends on targets in skipped section 'dynamic_lib' Warning (non-fatal): Target 'static' depends on targets in skipped section 'static_lib' Generating a Unix-style Makefile Writing Makefile for Net::Patricia::libpatricia Writing MYMETA.yml and MYMETA.json Generating a Unix-style Makefile Writing Makefile for Net::Patricia Writing MYMETA.yml and MYMETA.json + /usr/bin/make -O -j48 V=1 VERBOSE=1 cd libpatricia && make LIBPERL_A="libperl.a" LINKTYPE="dynamic" OPTIMIZE="-g" PREFIX="/usr/local" PASTHRU_DEFINE=' ' PASTHRU_INC=' ' Running Mkbootstrap for Patricia () chmod 644 "Patricia.bs" "/usr/bin/perl5.40.1" -MExtUtils::Command::MM -e 'cp_nonempty' -- Patricia.bs blib/arch/auto/Net/Patricia/Patricia.bs 644 cp Patricia.pm blib/lib/Net/Patricia.pm "/usr/bin/perl5.40.1" "/usr/share/perl5/ExtUtils/xsubpp" -typemap '/usr/share/perl5/ExtUtils/typemap' -typemap '/home/pterjan/rpmbuild/BUILD/perl-Net-Patricia-1.220.0-build/Net-Patricia-1.22/typemap' Patricia.xs > Patricia.xsc mv Patricia.xsc Patricia.c make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/perl-Net-Patricia-1.220.0-build/Net-Patricia-1.22/libpatricia' gcc -c -D_REENTRANT -D_GNU_SOURCE -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 -fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -DVERSION=\"\" -DXS_VERSION=\"\" -fPIC "-I/usr/lib64/perl5/CORE" patricia.c patricia.c: In function 'Clear_Patricia': patricia.c:381:21: error: too many arguments to function 'func'; expected 0, have 1 381 | func (Xrn->data); | ^~~~ ~~~~~~~~~ patricia.c: In function 'patricia_process': patricia.c:428:9: error: too many arguments to function 'func'; expected 0, have 2 428 | func (node->prefix, node->data); | ^~~~ ~~~~~~~~~~~~ patricia.c: In function 'patricia_walk_inorder': patricia.c:443:9: error: too many arguments to function 'func'; expected 0, have 2 443 | func(node->prefix, node->data); | ^~~~ ~~~~~~~~~~~~ make[1]: *** [Makefile:314: patricia.o] Error 1 make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/perl-Net-Patricia-1.220.0-build/Net-Patricia-1.22/libpatricia' make: *** [Makefile:1326: libpatricia/libpatricia.a] Error 2 make: *** Waiting for unfinished jobs.... gcc -c -D_REENTRANT -D_GNU_SOURCE -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 -fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -DVERSION=\"1.22\" -DXS_VERSION=\"1.22\" -fPIC "-I/usr/lib64/perl5/CORE" Patricia.c Patricia.xs: In function 'not_here': Patricia.xs:47:1: warning: old-style function definition [-Wold-style-definition] 47 | not_here(s) | ^~~~~~~~ Patricia.xs: In function 'constant': Patricia.xs:55:1: warning: old-style function definition [-Wold-style-definition] 55 | constant(name, arg) | ^~~~~~~~ Patricia.xs: In function 'XS_Net__Patricia_DESTROY': Patricia.xs:537:32: error: passing argument 2 of 'Destroy_Patricia' from incompatible pointer type [-Wincompatible-pointer-types] 537 | Destroy_Patricia(tree, deref_data); | ^~~~~~~~~~ | | | void (*)(SV *) {aka void (*)(struct sv *)} In file included from Patricia.xs:14: libpatricia/patricia.h:89:61: note: expected 'void_fn_t' {aka 'void (*)(void)'} but argument is of type 'void (*)(SV *)' {aka 'void (*)(struct sv *)'} 89 | void Destroy_Patricia (patricia_tree_t *patricia, void_fn_t func); | ~~~~~~~~~~^~~~ Patricia.xs:184:13: note: 'deref_data' declared here 184 | static void deref_data(SV *data) { | ^~~~~~~~~~ libpatricia/patricia.h:21:16: note: 'void_fn_t' declared here 21 | typedef void (*void_fn_t)(); | ^~~~~~~~~ make: *** [Makefile:338: Patricia.o] Error 1 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.em5Flq (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.em5Flq (%build) I: [iurt_root_command] ERROR: chroot