D: [iurt_root_command] chroot warning: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Installing /home/pterjan/rpmbuild/SRPMS/cups-drivers-pegg-0.23-18.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.gPZcjk + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf cups-drivers-pegg-0.23 + /usr/bin/mkdir -p cups-drivers-pegg-0.23 + cd cups-drivers-pegg-0.23 + rm -rf /home/pterjan/rpmbuild/BUILD/cups-drivers-pegg-0.23-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/cups-drivers-pegg-0.23-SPECPARTS + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/pegg-0.23.tar.bz2 + STATUS=0 + '[' 0 -ne 0 ']' + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/xbm2crw-0.4.tar.bz2 + STATUS=0 + '[' 0 -ne 0 ']' + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/cups2pegg-0.21a.tar.bz2 + STATUS=0 + '[' 0 -ne 0 ']' + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/pegg_el-0.11.tar.bz2 + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (cups-drivers-pegg-0.23-LDFLAGS.diff):' Patch #0 (cups-drivers-pegg-0.23-LDFLAGS.diff): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file pegg-0.23/Makefile patching file pegg_el-0.11/src/Makefile + xargs gunzip + find -name '*.1.gz' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.FYW0zI + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd cups-drivers-pegg-0.23 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + /usr/bin/make -O -j8 V=1 VERBOSE=1 -C pegg-0.23 'CFLAGS=-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' LIB_PATH=/usr/lib64 'LDFLAGS= -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags' make: Entering directory '/home/pterjan/rpmbuild/BUILD/cups-drivers-pegg-0.23/pegg-0.23' gcc -o pegg pegg.c -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 -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -I/usr/include -L/usr/lib64 -lusb pegg.c: In function 'main': pegg.c:115:9: error: implicit declaration of function 'strstr' [-Wimplicit-function-declaration] 115 | if (strstr(argv[i],"-w") != 0x00) { | ^~~~~~ pegg.c:48:1: note: include '' or provide a declaration of 'strstr' 47 | #include +++ |+#include 48 | pegg.c:115:9: warning: incompatible implicit declaration of built-in function 'strstr' [-Wbuiltin-declaration-mismatch] 115 | if (strstr(argv[i],"-w") != 0x00) { | ^~~~~~ pegg.c:115:9: note: include '' or provide a declaration of 'strstr' pegg.c:116:10: error: implicit declaration of function 'strtok'; did you mean 'strtoq'? [-Wimplicit-function-declaration] 116 | if(strtok(argv[i], "-w") != NULL) width = chr2int(strtok(argv[i], "-w")); | ^~~~~~ | strtoq pegg.c:116:32: warning: comparison between pointer and integer 116 | if(strtok(argv[i], "-w") != NULL) width = chr2int(strtok(argv[i], "-w")); | ^~ pegg.c:116:49: error: implicit declaration of function 'chr2int' [-Wimplicit-function-declaration] 116 | if(strtok(argv[i], "-w") != NULL) width = chr2int(strtok(argv[i], "-w")); | ^~~~~~~ pegg.c:118:9: warning: incompatible implicit declaration of built-in function 'strstr' [-Wbuiltin-declaration-mismatch] 118 | if (strstr(argv[i],"-d") != 0x00) { | ^~~~~~ pegg.c:118:9: note: include '' or provide a declaration of 'strstr' pegg.c:119:32: warning: comparison between pointer and integer 119 | if(strtok(argv[i], "-d") != NULL) density = chr2int(strtok(argv[i], "-d")); | ^~ pegg.c:121:9: warning: incompatible implicit declaration of built-in function 'strstr' [-Wbuiltin-declaration-mismatch] 121 | if (strstr(argv[i],"-o") != 0x00) { | ^~~~~~ pegg.c:121:9: note: include '' or provide a declaration of 'strstr' pegg.c:122:32: warning: comparison between pointer and integer 122 | if(strtok(argv[i], "-o") != NULL) pnm_filename = 2+strstr(argv[i], "-o"); | ^~ pegg.c:124:9: warning: incompatible implicit declaration of built-in function 'strstr' [-Wbuiltin-declaration-mismatch] 124 | if (strstr(argv[i],"-t") != 0x00) test = 1; | ^~~~~~ pegg.c:124:9: note: include '' or provide a declaration of 'strstr' pegg.c:129:4: error: implicit declaration of function 'display_printer_status' [-Wimplicit-function-declaration] 129 | display_printer_status(); | ^~~~~~~~~~~~~~~~~~~~~~ pegg.c:156:7: error: implicit declaration of function 'send_raw_data' [-Wimplicit-function-declaration] 156 | send_raw_data(data); | ^~~~~~~~~~~~~ make: *** [Makefile:32: pegg] Error 1 make: Leaving directory '/home/pterjan/rpmbuild/BUILD/cups-drivers-pegg-0.23/pegg-0.23' error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.FYW0zI (%build) RPM build warnings: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.FYW0zI (%build) I: [iurt_root_command] ERROR: chroot