D: [iurt_root_command] chroot warning: %patchN is deprecated (23 usages found), use %patch N (or %patch -P N) sh: line 4: [: -j8: integer expression expected sh: line 4: [: -j8: integer expression expected Installing /home/pterjan/rpmbuild/SRPMS/sysvinit-legacy-2.87-31.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.tUsh4g + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf sysvinit-2.87dsf + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/sysvinit-2.87.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd sysvinit-2.87dsf + rm -rf /home/pterjan/rpmbuild/BUILD/sysvinit-2.87dsf-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/sysvinit-2.87dsf-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (sysvinit-2.87-prefix.patch):' Patch #0 (sysvinit-2.87-prefix.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p0 -b --suffix .prefix --fuzz=0 patching file src/Makefile Hunk #1 succeeded at 129 (offset 2 lines). + echo 'Patch #1 (sysvinit-2.78-man.patch):' Patch #1 (sysvinit-2.78-man.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .manpatch --fuzz=0 patching file man/last.1 Hunk #1 succeeded at 62 (offset 2 lines). patching file man/init.8 Hunk #1 succeeded at 67 (offset 3 lines). patching file man/sulogin.8 + echo 'Patch #4 (sysvinit-2.86-autofsck.patch):' Patch #4 (sysvinit-2.86-autofsck.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .autofsck --fuzz=0 patching file src/shutdown.c + echo 'Patch #5 (sysvinit-2.86-loginshell.patch):' Patch #5 (sysvinit-2.86-loginshell.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .loginshell --fuzz=0 patching file src/init.c Hunk #1 succeeded at 1164 (offset 11 lines). + echo 'Patch #8 (sysvinit-2.86-inittab.patch):' Patch #8 (sysvinit-2.86-inittab.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .inittabdocs --fuzz=0 patching file man/inittab.5 + echo 'Patch #10 (sysvinit-2.87-pidof.patch):' Patch #10 (sysvinit-2.87-pidof.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .pidof --fuzz=0 patching file src/killall5.c + echo 'Patch #13 (sysvinit-2.86-single.patch):' Patch #13 (sysvinit-2.86-single.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .single --fuzz=0 patching file src/init.c Hunk #1 succeeded at 1162 (offset 9 lines). + echo 'Patch #16 (sysvinit-2.86-quiet.patch):' Patch #16 (sysvinit-2.86-quiet.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .quiet --fuzz=0 patching file src/init.c Hunk #1 succeeded at 120 (offset 3 lines). Hunk #2 succeeded at 1683 (offset 9 lines). Hunk #3 succeeded at 2435 (offset 9 lines). Hunk #4 succeeded at 2672 (offset 14 lines). + echo 'Patch #23 (sysvinit-2.86-pidof-man.patch):' Patch #23 (sysvinit-2.86-pidof-man.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .pidof --fuzz=0 patching file man/pidof.8 Hunk #1 succeeded at 50 (offset 7 lines). + echo 'Patch #24 (sysvinit-2.87-sulogin.patch):' Patch #24 (sysvinit-2.87-sulogin.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .sulogin --fuzz=0 patching file src/sulogin.c + echo 'Patch #25 (sysvinit-2.87-wide.patch):' Patch #25 (sysvinit-2.87-wide.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .wide --fuzz=0 patching file man/last.1 patching file src/last.c + echo 'Patch #26 (sysvinit-2.87-ipv6.patch):' Patch #26 (sysvinit-2.87-ipv6.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .ipv6 --fuzz=0 patching file src/last.c + echo 'Patch #27 (sysvinit-2.87-omit.patch):' Patch #27 (sysvinit-2.87-omit.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .omit --fuzz=0 patching file man/pidof.8 patching file src/killall5.c + echo 'Patch #100 (sysvinit-2.86-shutdown.patch):' Patch #100 (sysvinit-2.86-shutdown.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .shutdown --fuzz=0 patching file src/shutdown.c Hunk #3 succeeded at 536 (offset 6 lines). + echo 'Patch #101 (sysvinit-2.87-libcrypt.patch):' Patch #101 (sysvinit-2.87-libcrypt.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .libcrypt --fuzz=0 patching file src/Makefile + echo 'Patch #104 (sysvinit-2.85-walltty.patch):' Patch #104 (sysvinit-2.85-walltty.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .wall --fuzz=0 patching file src/dowall.c Hunk #1 succeeded at 207 (offset 18 lines). + echo 'Patch #105 (sysvinit-disable-respawn-more-quickly.patch):' Patch #105 (sysvinit-disable-respawn-more-quickly.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .disable-respawn-more-quickly --fuzz=0 patching file man/init.8 Hunk #1 succeeded at 270 (offset 12 lines). patching file src/init.h + echo 'Patch #106 (sysvinit-2.87-speedboot-ioctl.patch):' Patch #106 (sysvinit-2.87-speedboot-ioctl.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .speedboot-ioctl --fuzz=0 patching file src/init.c + echo 'Patch #200 (50_bootlogd_devsubdir.patch):' Patch #200 (50_bootlogd_devsubdir.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .bootlogd_devsubdir --fuzz=0 patching file src/bootlogd.c + echo 'Patch #201 (54_bootlogd_findptyfail.patch):' Patch #201 (54_bootlogd_findptyfail.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .bootlogd_findptyfail --fuzz=0 patching file src/bootlogd.c + echo 'Patch #202 (55_bootlogd_flush.patch):' Patch #202 (55_bootlogd_flush.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .bootlogd_flush --fuzz=0 patching file src/bootlogd.c Hunk #1 succeeded at 366 (offset 28 lines). Hunk #2 succeeded at 398 (offset 28 lines). + echo 'Patch #203 (sysvinit-2.87dsf-fix-ioctl.patch):' Patch #203 (sysvinit-2.87dsf-fix-ioctl.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .ioctl --fuzz=0 patching file src/bootlogd.c + echo 'Patch #300 (sysvinit-2.88-sysmacros.patch):' Patch #300 (sysvinit-2.88-sysmacros.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .sysmacros --fuzz=0 patching file src/bootlogd.c Hunk #1 succeeded at 23 (offset -9 lines). patching file src/mountpoint.c + RPM_EC=0 ++ jobs -p + exit 0 sh: line 4: [: -j8: integer expression expected Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.aLdgep + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd sysvinit-2.87dsf + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + /usr/bin/make -O -j48 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 -D_GNU_SOURCE' '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' -C src make: Entering directory '/home/pterjan/rpmbuild/BUILD/sysvinit-2.87dsf/src' 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 -D_GNU_SOURCE -c -o runlevel.o runlevel.c make: Leaving directory '/home/pterjan/rpmbuild/BUILD/sysvinit-2.87dsf/src' make: Entering directory '/home/pterjan/rpmbuild/BUILD/sysvinit-2.87dsf/src' gcc -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 runlevel runlevel.o make: Leaving directory '/home/pterjan/rpmbuild/BUILD/sysvinit-2.87dsf/src' make: Entering directory '/home/pterjan/rpmbuild/BUILD/sysvinit-2.87dsf/src' 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 -D_GNU_SOURCE -c -o ifdown.o ifdown.c make: Leaving directory '/home/pterjan/rpmbuild/BUILD/sysvinit-2.87dsf/src' make: Entering directory '/home/pterjan/rpmbuild/BUILD/sysvinit-2.87dsf/src' 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 -D_GNU_SOURCE -c -o mesg.o mesg.c make: Leaving directory '/home/pterjan/rpmbuild/BUILD/sysvinit-2.87dsf/src' make: Entering directory '/home/pterjan/rpmbuild/BUILD/sysvinit-2.87dsf/src' gcc -c -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 -D_GNU_SOURCE utmp.c make: Leaving directory '/home/pterjan/rpmbuild/BUILD/sysvinit-2.87dsf/src' make: Entering directory '/home/pterjan/rpmbuild/BUILD/sysvinit-2.87dsf/src' gcc -c -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 -D_GNU_SOURCE -DINIT_MAIN utmp.c -o init_utmp.o make: Leaving directory '/home/pterjan/rpmbuild/BUILD/sysvinit-2.87dsf/src' make: Entering directory '/home/pterjan/rpmbuild/BUILD/sysvinit-2.87dsf/src' 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 -D_GNU_SOURCE -c -o mountpoint.o mountpoint.c make: Leaving directory '/home/pterjan/rpmbuild/BUILD/sysvinit-2.87dsf/src' make: Entering directory '/home/pterjan/rpmbuild/BUILD/sysvinit-2.87dsf/src' 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 -D_GNU_SOURCE -c -o wall.o wall.c wall.c: In function 'main': wall.c:104:58: warning: format '%d' expects argument of type 'int', but argument 5 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] 104 | syslog(LOG_INFO, "wall: user %s broadcasted %d lines (%d chars)", | ~^ | | | int | %ld 105 | whoami, i, strlen(buf)); | ~~~~~~~~~~~ | | | size_t {aka long unsigned int} make: Leaving directory '/home/pterjan/rpmbuild/BUILD/sysvinit-2.87dsf/src' make: Entering directory '/home/pterjan/rpmbuild/BUILD/sysvinit-2.87dsf/src' gcc -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 mesg mesg.o make: Leaving directory '/home/pterjan/rpmbuild/BUILD/sysvinit-2.87dsf/src' make: Entering directory '/home/pterjan/rpmbuild/BUILD/sysvinit-2.87dsf/src' 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 -D_GNU_SOURCE -c -o halt.o halt.c halt.c: In function 'main': halt.c:232:15: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] 232 | (void)chdir("/"); | ^~~~~~~~~~ make: Leaving directory '/home/pterjan/rpmbuild/BUILD/sysvinit-2.87dsf/src' make: Entering directory '/home/pterjan/rpmbuild/BUILD/sysvinit-2.87dsf/src' gcc -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 mountpoint mountpoint.o make: Leaving directory '/home/pterjan/rpmbuild/BUILD/sysvinit-2.87dsf/src' make: Entering directory '/home/pterjan/rpmbuild/BUILD/sysvinit-2.87dsf/src' 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 -D_GNU_SOURCE -c -o dowall.o dowall.c dowall.c: In function 'wall': dowall.c:171:60: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 54 [-Wformat-truncation=] 171 | "\007\r\nBroadcast message from %s@%s %s(%s):\r\n\r\n", | ^~ 172 | user, hostname, tty, date); | ~~~~~~~~ In file included from /usr/include/stdio.h:980, from dowall.c:24: In function 'snprintf', inlined from 'wall' at dowall.c:170:3: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 36 or more bytes (assuming 291) into a destination of size 81 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:548, from dowall.c:21: In function 'strncat', inlined from 'wall' at dowall.c:194:4: /usr/include/bits/string_fortified.h:138:10: warning: '__builtin___strncat_chk' argument 2 declared attribute 'nonstring' [-Wstringop-overread] 138 | return __builtin___strncat_chk (__dest, __src, __len, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 139 | __glibc_objsize (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/utmp.h:29, from dowall.c:25: /usr/include/bits/utmp.h: In function 'wall': /usr/include/bits/utmp.h:62:8: note: argument 'ut_line' declared here 62 | char ut_line[UT_LINESIZE] | ^~~~~~~ make: Leaving directory '/home/pterjan/rpmbuild/BUILD/sysvinit-2.87dsf/src' make: Entering directory '/home/pterjan/rpmbuild/BUILD/sysvinit-2.87dsf/src' 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 -D_GNU_SOURCE -c -o hddown.o hddown.c make: Leaving directory '/home/pterjan/rpmbuild/BUILD/sysvinit-2.87dsf/src' make: Entering directory '/home/pterjan/rpmbuild/BUILD/sysvinit-2.87dsf/src' gcc -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 halt halt.o ifdown.o hddown.o utmp.o make: Leaving directory '/home/pterjan/rpmbuild/BUILD/sysvinit-2.87dsf/src' make: Entering directory '/home/pterjan/rpmbuild/BUILD/sysvinit-2.87dsf/src' gcc -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 wall dowall.o wall.o make: Leaving directory '/home/pterjan/rpmbuild/BUILD/sysvinit-2.87dsf/src' make: Entering directory '/home/pterjan/rpmbuild/BUILD/sysvinit-2.87dsf/src' gcc -c -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 -D_GNU_SOURCE sulogin.c sulogin.c: In function 'sushell': sulogin.c:311:15: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] 311 | (void)chdir(pwd->pw_dir); | ^~~~~~~~~~~~~~~~~~ sulogin.c:331:9: warning: ignoring return value of 'getcwd' declared with attribute 'warn_unused_result' [-Wunused-result] 331 | getcwd(home, sizeof(home)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ sulogin.c: In function 'main': sulogin.c:453:33: warning: ignoring return value of 'dup' declared with attribute 'warn_unused_result' [-Wunused-result] 453 | dup(fd); | ^~~~~~~ sulogin.c:454:33: warning: ignoring return value of 'dup' declared with attribute 'warn_unused_result' [-Wunused-result] 454 | dup(fd); | ^~~~~~~ make: Leaving directory '/home/pterjan/rpmbuild/BUILD/sysvinit-2.87dsf/src' make: Entering directory '/home/pterjan/rpmbuild/BUILD/sysvinit-2.87dsf/src' 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 -D_GNU_SOURCE -c -o utmpdump.o utmpdump.c make: Leaving directory '/home/pterjan/rpmbuild/BUILD/sysvinit-2.87dsf/src' make: Entering directory '/home/pterjan/rpmbuild/BUILD/sysvinit-2.87dsf/src' gcc -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 sulogin sulogin.o -Wl,-Bstatic -lcrypt -Wl,-Bdynamic /usr/bin/ld: /usr/lib/gcc/x86_64-mageia-linux/14/../../../../lib64/libcrypt.a(libcrypt_la-crypt-static.o): relocation R_X86_64_32 against `.bss' can not be used when making a PIE object; recompile with -fPIE /usr/bin/ld: failed to set dynamic section sizes: bad value collect2: error: ld returned 1 exit status make: *** [Makefile:93: sulogin] Error 1 make: Leaving directory '/home/pterjan/rpmbuild/BUILD/sysvinit-2.87dsf/src' make: *** Waiting for unfinished jobs.... make: Entering directory '/home/pterjan/rpmbuild/BUILD/sysvinit-2.87dsf/src' gcc -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 utmpdump utmpdump.o make: Leaving directory '/home/pterjan/rpmbuild/BUILD/sysvinit-2.87dsf/src' make: Entering directory '/home/pterjan/rpmbuild/BUILD/sysvinit-2.87dsf/src' 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 -D_GNU_SOURCE -c -o shutdown.o shutdown.c shutdown.c: In function 'spawn': shutdown.c:261:9: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] 261 | chdir("/"); | ^~~~~~~~~~ shutdown.c: In function 'main': shutdown.c:467:9: warning: ignoring return value of 'setuid' declared with attribute 'warn_unused_result' [-Wunused-result] 467 | setuid(geteuid()); | ^~~~~~~~~~~~~~~~~ shutdown.c:595:17: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 595 | fscanf(fp, "%d", &pid); | ^~~~~~~~~~~~~~~~~~~~~~ shutdown.c:684:9: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] 684 | chdir("/"); | ^~~~~~~~~~ make: Leaving directory '/home/pterjan/rpmbuild/BUILD/sysvinit-2.87dsf/src' make: Entering directory '/home/pterjan/rpmbuild/BUILD/sysvinit-2.87dsf/src' 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 -D_GNU_SOURCE -c -o bootlogd.o bootlogd.c bootlogd.c: In function 'findtty': bootlogd.c:117:17: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] 117 | chdir(olddir); | ^~~~~~~~~~~~~ bootlogd.c:132:33: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] 132 | chdir(olddir); | ^~~~~~~~~~~~~ bootlogd.c:143:33: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] 143 | chdir(olddir); | ^~~~~~~~~~~~~ bootlogd.c:148:33: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] 148 | chdir(olddir); | ^~~~~~~~~~~~~ bootlogd.c:155:9: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] 155 | chdir(olddir); | ^~~~~~~~~~~~~ make: Leaving directory '/home/pterjan/rpmbuild/BUILD/sysvinit-2.87dsf/src' make: Entering directory '/home/pterjan/rpmbuild/BUILD/sysvinit-2.87dsf/src' 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 -D_GNU_SOURCE -c -o last.o last.c In file included from /usr/include/string.h:548, from last.c:31: In function 'strncat', inlined from 'list' at last.c:367:2: /usr/include/bits/string_fortified.h:138:10: warning: '__builtin___strncat_chk' argument 2 declared attribute 'nonstring' [-Wstringop-overread] 138 | return __builtin___strncat_chk (__dest, __src, __len, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 139 | __glibc_objsize (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/utmp.h:29, from last.c:26: /usr/include/bits/utmp.h: In function 'list': /usr/include/bits/utmp.h:62:8: note: argument 'ut_line' declared here 62 | char ut_line[UT_LINESIZE] | ^~~~~~~ In function 'strncat', inlined from 'list' at last.c:452:3: /usr/include/bits/string_fortified.h:138:10: warning: '__builtin___strncat_chk' argument 2 declared attribute 'nonstring' [-Wstringop-overread] 138 | return __builtin___strncat_chk (__dest, __src, __len, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 139 | __glibc_objsize (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/bits/utmp.h: In function 'list': /usr/include/bits/utmp.h:68:8: note: argument 'ut_host' declared here 68 | char ut_host[UT_HOSTSIZE] | ^~~~~~~ make: Leaving directory '/home/pterjan/rpmbuild/BUILD/sysvinit-2.87dsf/src' make: Entering directory '/home/pterjan/rpmbuild/BUILD/sysvinit-2.87dsf/src' 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 -D_GNU_SOURCE -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 killall5.c -o killall5 killall5.c: In function 'readproc': killall5.c:226:25: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 226 | fgets(buf, sizeof(buf), fp); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ killall5.c:221:49: warning: '/stat' directive output may be truncated writing 5 bytes into a region of size between 1 and 256 [-Wformat-truncation=] 221 | snprintf(path, sizeof(path), "%s/stat", d->d_name); | ^~~~~ In file included from /usr/include/stdio.h:980, from killall5.c:31: In function 'snprintf', inlined from 'readproc' at killall5.c:221:3: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 6 and 261 bytes into a destination of size 256 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ killall5.c: In function 'readproc': killall5.c:276:49: warning: '/cmdline' directive output may be truncated writing 8 bytes into a region of size between 1 and 256 [-Wformat-truncation=] 276 | snprintf(path, sizeof(path), "%s/cmdline", d->d_name); | ^~~~~~~~ In function 'snprintf', inlined from 'readproc' at killall5.c:276:3: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 9 and 264 bytes into a destination of size 256 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ killall5.c: In function 'readproc': killall5.c:322:53: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 250 [-Wformat-truncation=] 322 | snprintf(path, sizeof(path), "/proc/%s/exe", d->d_name); | ^~ In function 'snprintf', inlined from 'readproc' at killall5.c:322:3: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 11 and 266 bytes into a destination of size 256 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ make: Leaving directory '/home/pterjan/rpmbuild/BUILD/sysvinit-2.87dsf/src' make: Entering directory '/home/pterjan/rpmbuild/BUILD/sysvinit-2.87dsf/src' gcc -c -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 -D_GNU_SOURCE init.c init.c: In function 'get_record': init.c:358:33: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 358 | fscanf(f, "%c\n", &runlevel); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ init.c:361:33: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 361 | fscanf(f, "%c\n", &thislevel); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ init.c:364:33: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 364 | fscanf(f, "%c\n", &prevlevel); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ init.c:367:33: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 367 | fscanf(f, "%u\n", &got_signals); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ init.c:370:33: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 370 | fscanf(f, "%d\n", &wrote_wtmp_reboot); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ init.c:373:33: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 373 | fscanf(f, "%d\n", &wrote_utmp_reboot); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ init.c:376:33: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 376 | fscanf(f, "%d\n", &sltime); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ init.c:379:33: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 379 | fscanf(f, "%d\n", &did_boot); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ init.c:398:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 398 | fscanf(f, "%d\n", &(p->pid)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ init.c:401:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 401 | fscanf(f, "%u\n", &(p->exstat)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ init.c: In function 'coredump': init.c:628:9: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] 628 | chdir("/"); | ^~~~~~~~~~ init.c: In function 'print': init.c:739:17: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 739 | write(fd, s, strlen(s)); | ^~~~~~~~~~~~~~~~~~~~~~~ init.c: In function 'spawn': init.c:978:33: warning: ignoring return value of 'dup' declared with attribute 'warn_unused_result' [-Wunused-result] 978 | dup(f); | ^~~~~~ init.c:979:33: warning: ignoring return value of 'dup' declared with attribute 'warn_unused_result' [-Wunused-result] 979 | dup(f); | ^~~~~~ init.c:1038:25: warning: ignoring return value of 'dup' declared with attribute 'warn_unused_result' [-Wunused-result] 1038 | dup(f); | ^~~~~~ init.c:1039:25: warning: ignoring return value of 'dup' declared with attribute 'warn_unused_result' [-Wunused-result] 1039 | dup(f); | ^~~~~~ init.c: In function 'ask_runlevel': init.c:1560:17: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 1560 | write(fd, prompt, sizeof(prompt) - 1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ init.c:1562:17: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 1562 | read(fd, buf, sizeof(buf)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ init.c: In function 'make_pipe': init.c:1831:9: warning: ignoring return value of 'pipe' declared with attribute 'warn_unused_result' [-Wunused-result] 1831 | pipe(fds); | ^~~~~~~~~ init.c:1836:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 1836 | write(fds[1], Signature, 8); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ init.c: In function 'process_signals': init.c:2266:17: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 2266 | read(fd, &c, 1); | ^~~~~~~~~~~~~~~ make: Leaving directory '/home/pterjan/rpmbuild/BUILD/sysvinit-2.87dsf/src' error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.aLdgep (%build) RPM build warnings: %patchN is deprecated (23 usages found), use %patch N (or %patch -P N) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.aLdgep (%build) I: [iurt_root_command] ERROR: chroot