D: [iurt_root_command] chroot warning: line 24: It's not recommended to have unversioned Obsoletes: Obsoletes: ghostscript-utils Lexmark-printer-maintenance Installing /home/pterjan/rpmbuild/SRPMS/printer-tools-2008-17.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.f1cnRG + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf printer-tools-2008 + /usr/bin/mkdir -p printer-tools-2008 + cd printer-tools-2008 + rm -rf /home/pterjan/rpmbuild/BUILD/printer-tools-2008-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/printer-tools-2008-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cp /home/pterjan/rpmbuild/SOURCES/hp1000fw hp1000fw + cp /home/pterjan/rpmbuild/SOURCES/usb_id_test.c usb_id_test.c + cp /home/pterjan/rpmbuild/SOURCES/getusbprinterid.pl getusbprinterid + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.cxLuJS + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd printer-tools-2008 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + gcc -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 -o usb_id_test usb_id_test.c usb_id_test.c: In function 'main': usb_id_test.c:55:3: error: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] 55 | close (fd); | ^~~~~ | pclose error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.cxLuJS (%build) RPM build warnings: line 24: It's not recommended to have unversioned Obsoletes: Obsoletes: ghostscript-utils Lexmark-printer-maintenance RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.cxLuJS (%build) I: [iurt_root_command] ERROR: chroot