D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/x125-0.2.3-16.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.TsBMCS + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf x125-0.2.3 + /usr/bin/mkdir -p x125-0.2.3 + cd x125-0.2.3 + rm -rf /home/pterjan/rpmbuild/BUILD/x125-0.2.3-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/x125-0.2.3-SPECPARTS + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/x125-drv-0.2.3.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/x125-drv-network-0.2.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/x125-0.2.3-LDFLAGS.diff + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.WNWUZz + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd x125-0.2.3 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd drv_x125/src + /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 x125_cmyk x125_cmyk.c x125_cmyk.c: In function 'put_block_verbatim': x125_cmyk.c:283:33: error: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] 283 | count = read( device, read_buffer, READ_BUFFER_SIZE ); | ^~~~ | fread x125_cmyk.c:287:38: error: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] 287 | if( (count = write( device, p, len )) <= 0 ) { | ^~~~~ | fwrite x125_cmyk.c: In function 'main': x125_cmyk.c:1111:21: error: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] 1111 | if (device) close(device); | ^~~~~ | pclose x125_cmyk.c: In function 'print': x125_cmyk.c:779:25: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 779 | fread(lbuf, 1, gs_width/2, in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x125_cmyk.c:989:33: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 989 | fread(lbuf, 1, gs_width/2, in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: *** [Makefile:6: x125_cmyk] Error 1 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.WNWUZz (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.WNWUZz (%build) I: [iurt_root_command] ERROR: chroot