D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/lexmark7000linux-990516-19.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.05wiXV + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf lexmark7000linux-990516 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/lexmark7000linux-990516.tar.bz2 + STATUS=0 + '[' 0 -ne 0 ']' + cd lexmark7000linux-990516 + rm -rf /home/pterjan/rpmbuild/BUILD/lexmark7000linux-990516-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/lexmark7000linux-990516-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + perl -pi -e 's@-o root -g root@@' Makefile + perl -pi -e 's@-s @@' Makefile + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.z8fAh0 + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd lexmark7000linux-990516 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + make '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' 'LDFLAGS= -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags' cc -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 -c -o pbm2l7k.o pbm2l7k.c pbm2l7k.c: In function 'parse_pbm_header': pbm2l7k.c:156:7: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 156 | fgets(buf,1023,f); /* skip comment line(s) */ | ^~~~~~~~~~~~~~~~~ cc -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 -c -o lxmisc.o lxmisc.c cc -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags pbm2l7k.o lxmisc.o -o pbm2l7k cc -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 -c -o pnmraw2cmyk.o pnmraw2cmyk.c pnmraw2cmyk.c: In function 'pbmgray2mono': pnmraw2cmyk.c:172:7: error: implicit declaration of function 'dither_black' [-Wimplicit-function-declaration] 172 | dither_black(mem,i,width,width,omem); | ^~~~~~~~~~~~ pnmraw2cmyk.c: In function 'main': pnmraw2cmyk.c:354:10: error: implicit declaration of function 'dither_cmyk' [-Wimplicit-function-declaration] 354 | dither_cmyk(lines, /* input row */ | ^~~~~~~~~~~ pnmraw2cmyk.c: In function 'parse_pnm_header': pnmraw2cmyk.c:84:4: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 84 | fgets(buf,1023,f); /* skip comment line(s) */ | ^~~~~~~~~~~~~~~~~ pnmraw2cmyk.c:94:7: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 94 | fgets(buf,64,stdin); // scanf corrupts \n !!! | ^~~~~~~~~~~~~~~~~~~ make: *** [: pnmraw2cmyk.o] Error 1 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.z8fAh0 (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.z8fAh0 (%build) I: [iurt_root_command] ERROR: chroot