D: [iurt_root_command] chroot warning: %patchN is deprecated (2 usages found), use %patch N (or %patch -P N) sh: line 4: [: -j8: integer expression expected sh: line 4: [: -j8: integer expression expected Installing /home/pterjan/rpmbuild/SRPMS/perl-Net-Arping-0.20.0-29.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.UvGM9z + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf Net-Arping-0.02 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/Net-Arping-0.02.tar.bz2 + STATUS=0 + '[' 0 -ne 0 ']' + cd Net-Arping-0.02 + rm -rf /home/pterjan/rpmbuild/BUILD/Net-Arping-0.02-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/Net-Arping-0.02-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (perl-Net-Arping-0.02-overflow.patch):' Patch #0 (perl-Net-Arping-0.02-overflow.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p0 --fuzz=0 patching file Arping.xs + echo 'Patch #1 (perl-Net-Arping-0.02-ether_addr.patch):' Patch #1 (perl-Net-Arping-0.02-ether_addr.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file Arping.xs + 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.OqQrUf + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd Net-Arping-0.02 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + /usr/bin/perl Makefile.PL INSTALLDIRS=vendor Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for Net::Arping Writing MYMETA.yml and MYMETA.json + /usr/bin/make -O -j48 V=1 VERBOSE=1 'OPTIMIZE=-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' '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' cp Arping.pm blib/lib/Net/Arping.pm Running Mkbootstrap for Arping () chmod 644 "Arping.bs" "/usr/bin/perl5.38.2" -MExtUtils::Command::MM -e 'cp_nonempty' -- Arping.bs blib/arch/auto/Net/Arping/Arping.bs 644 "/usr/bin/perl5.38.2" "/usr/share/perl5/ExtUtils/xsubpp" -typemap '/usr/share/perl5/ExtUtils/typemap' Arping.xs > Arping.xsc Please specify prototyping behavior for Arping.xs (see perlxs manual) mv Arping.xsc Arping.c gcc -c -D_REENTRANT -D_GNU_SOURCE -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -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 -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 -DVERSION=\"0.02\" -DXS_VERSION=\"0.02\" -fPIC "-I/usr/lib64/perl5/CORE" -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DLIBNET_LIL_ENDIAN Arping.c In file included from /usr/include/sys/types.h:25, from /usr/lib64/perl5/CORE/perl.h:1068, from Arping.xs:15: /usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ Arping.xs: In function 'XS_Net__Arping_send_arp': Arping.xs:125:54: error: passing argument 2 of 'libnet_select_device' from incompatible pointer type [-Wincompatible-pointer-types] 125 | if(libnet_select_device(&sin,&device,err_buf) == -1) | ^~~~~~~ | | | u_char ** {aka unsigned char **} In file included from /usr/include/libnet.h:81, from Arping.xs:17: /usr/include/libnet/libnet-functions.h:194:5: note: expected 'char **' but argument is of type 'u_char **' {aka 'unsigned char **'} 194 | char **, | ^~~~~~~ make: *** [Makefile:343: Arping.o] Error 1 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.OqQrUf (%build) RPM build warnings: %patchN is deprecated (2 usages found), use %patch N (or %patch -P N) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.OqQrUf (%build) I: [iurt_root_command] ERROR: chroot