D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/cwtmp-3.4-11.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.PGIOYn + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf cwtmp-3.4 + /usr/bin/mkdir -p cwtmp-3.4 + cd cwtmp-3.4 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/cwtmp-3.4.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + rm -rf /home/pterjan/rpmbuild/BUILD/cwtmp-3.4-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/cwtmp-3.4-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.PM3r00 + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd cwtmp-3.4 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + /usr/bin/make -O -j8 V=1 VERBOSE=1 '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' 'LIBS= -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags' cc -DEXTENDED -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 nutmp.c nutmp.c: In function 'openUtmp': nutmp.c:234:17: error: implicit declaration of function 'testFileRead' [-Wimplicit-function-declaration] 234 | switch (testFileRead(utmpFile, offset, 0)) { | ^~~~~~~~~~~~ nutmp.c: In function 'getMaxPID': nutmp.c:805:13: error: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] 805 | read(fd, PIDLEN, buf) <= 1 || (maxPID = atol(buf)) < 1) | ^~~~ | fread nutmp.c:805:53: error: implicit declaration of function 'atol' [-Wimplicit-function-declaration] 805 | read(fd, PIDLEN, buf) <= 1 || (maxPID = atol(buf)) < 1) | ^~~~ make: *** [Makefile:19: nutmp.o] Error 1 make: *** Waiting for unfinished jobs.... cc -DEXTENDED -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 cwtmp.c cwtmp.c:65:1: error: return type defaults to 'int' [-Wimplicit-int] 65 | main(argc,argv) | ^~~~ cwtmp.c: In function 'main': cwtmp.c:481:41: error: implicit declaration of function 'ProcExists' [-Wimplicit-function-declaration] 481 | ux->ut_type == USER_PROCESS && !ProcExists(ux->ut_pid))) | ^~~~~~~~~~ cwtmp.c: In function 'ProcExists': cwtmp.c:583:5: error: type of 'PID' defaults to 'int' [-Wimplicit-int] 583 | int ProcExists(PID) { | ^~~~~~~~~~ make: *** [Makefile:16: cwtmp.o] Error 1 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 StrToArr.o StrToArr.c error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.PM3r00 (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.PM3r00 (%build) I: [iurt_root_command] ERROR: chroot