D: [iurt_root_command] chroot warning: %patchN is deprecated (3 usages found), use %patch N (or %patch -P N) Installing /home/pterjan/rpmbuild/SRPMS/ppmtocpva-1.0-21.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.E5ECoL + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf ppmtocpva-1.0 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/ppmtocpva-1.0.tar.bz2 + STATUS=0 + '[' 0 -ne 0 ']' + cd ppmtocpva-1.0 + rm -rf /home/pterjan/rpmbuild/BUILD/ppmtocpva-1.0-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/ppmtocpva-1.0-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (ppmtocpva-1.0-includes.patch):' Patch #0 (ppmtocpva-1.0-includes.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .includes --fuzz=0 patching file ppmtocpva.c + echo 'Patch #1 (ppmtocpva-1.0-netpbm.patch):' Patch #1 (ppmtocpva-1.0-netpbm.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file Makefile + echo 'Patch #2 (ppmtocpva-1.0-LDFLAGS.diff):' Patch #2 (ppmtocpva-1.0-LDFLAGS.diff): + /usr/bin/patch --no-backup-if-mismatch -f -p0 --fuzz=0 patching file Makefile + chmod 644 Makefile README cpva-colour ppmtocpva.c ppmtocpva.c.includes + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.7g9plS + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd ppmtocpva-1.0 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + /usr/bin/make -O -j16 V=1 VERBOSE=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' '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' gcc -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 -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 -o ppmtocpva ppmtocpva.c -lnetpbm -lm ppmtocpva.c: In function 'main': ppmtocpva.c:1021:16: warning: too many arguments for format [-Wformat-extra-args] 1021 | pm_error("can't allocate space for row", 0,0,0,0,0); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ppmtocpva.c:1039:21: error: implicit declaration of function 'time' [-Wimplicit-function-declaration] 1039 | srandom( (int) ( time( 0 ) ^ getpid( ) ) ); | ^~~~ ppmtocpva.c:23:1: note: 'time' is defined in header ''; this is probably fixable by adding '#include ' 22 | #include +++ |+#include 23 | make: *** [Makefile:6: ppmtocpva] Error 1 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.7g9plS (%build) RPM build warnings: %patchN is deprecated (3 usages found), use %patch N (or %patch -P N) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.7g9plS (%build) I: [iurt_root_command] ERROR: chroot