D: [iurt_root_command] chroot warning: %patchN is deprecated (10 usages found), use %patch N (or %patch -P N) Installing /home/pterjan/rpmbuild/SRPMS/rdist-6.1.5-36.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.vfn0Ye + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf rdist-6.1.5 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/rdist-6.1.5.tar.bz2 + STATUS=0 + '[' 0 -ne 0 ']' + cd rdist-6.1.5 + rm -rf /home/pterjan/rpmbuild/BUILD/rdist-6.1.5-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/rdist-6.1.5-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (rdist-6.1.5-linux.patch):' Patch #0 (rdist-6.1.5-linux.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .linux --fuzz=0 patching file config/os-linux.h patching file mf/Makefile.var + echo 'Patch #1 (rdist-6.1.5-links.patch):' Patch #1 (rdist-6.1.5-links.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p0 -b --suffix .links --fuzz=0 patching file src/client.c patching file src/docmd.c patching file include/defs.h + echo 'Patch #2 (rdist-6.1.5-oldpath.patch):' Patch #2 (rdist-6.1.5-oldpath.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .oldpath --fuzz=0 patching file config/config.h patching file doc/rdist.man patching file README + echo 'Patch #3 (rdist-6.1.5-environ.patch):' Patch #3 (rdist-6.1.5-environ.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p0 -b --suffix .environ --fuzz=0 patching file src/setargs.c + echo 'Patch #4 (rdist-6.1.5-build-os-type-linux-is-not-svr4.patch):' Patch #4 (rdist-6.1.5-build-os-type-linux-is-not-svr4.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .ostype --fuzz=0 patching file build/os-type + echo 'Patch #5 (rdist-6.1.5-tmpfile.patch):' Patch #5 (rdist-6.1.5-tmpfile.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .tmpfile --fuzz=0 patching file src/message.c + echo 'Patch #6 (rdist-6.1.5-optflags.patch):' Patch #6 (rdist-6.1.5-optflags.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .optflags --fuzz=0 patching file Makefile.local + echo 'Patch #7 (rdist-6.1.5-bison.patch):' Patch #7 (rdist-6.1.5-bison.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .bison --fuzz=0 patching file src/gram.y + echo 'Patch #8 (rdist-6.1.5-varargs.patch):' Patch #8 (rdist-6.1.5-varargs.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .varargs --fuzz=0 patching file config/os-linux.h + echo 'Patch #9 (rdist-6.1.5-lfs.patch):' Patch #9 (rdist-6.1.5-lfs.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .lfs --fuzz=0 patching file src/client.c patching file src/server.c patching file include/defs.h patching file Makefile.local + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.qPTNmQ + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd rdist-6.1.5 + '[' 1 -eq 1 ']' + '[' 1 -eq 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' + export CFLAGS + CXXFLAGS='-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' + export CXXFLAGS + FFLAGS='-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 ' + export FFLAGS + FCFLAGS='-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 ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + 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' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + /usr/bin/make Making "all" in "src" make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/rdist-6.1.5/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/rdist-6.1.5/src' bison -y -d gram.y gram.y:73.1-5: warning: POSIX Yacc does not support %term [-Wyacc] 73 | %term ARROW 1 | ^~~~~ gram.y:74.1-5: warning: POSIX Yacc does not support %term [-Wyacc] 74 | %term COLON 2 | ^~~~~ gram.y:75.1-5: warning: POSIX Yacc does not support %term [-Wyacc] 75 | %term DCOLON 3 | ^~~~~ gram.y:76.1-5: warning: POSIX Yacc does not support %term [-Wyacc] 76 | %term NAME 4 | ^~~~~ gram.y:77.1-5: warning: POSIX Yacc does not support %term [-Wyacc] 77 | %term STRING 5 | ^~~~~ gram.y:78.1-5: warning: POSIX Yacc does not support %term [-Wyacc] 78 | %term INSTALL 6 | ^~~~~ gram.y:79.1-5: warning: POSIX Yacc does not support %term [-Wyacc] 79 | %term NOTIFY 7 | ^~~~~ gram.y:80.1-5: warning: POSIX Yacc does not support %term [-Wyacc] 80 | %term EXCEPT 8 | ^~~~~ gram.y:81.1-5: warning: POSIX Yacc does not support %term [-Wyacc] 81 | %term PATTERN 9 | ^~~~~ gram.y:82.1-5: warning: POSIX Yacc does not support %term [-Wyacc] 82 | %term SPECIAL 10 | ^~~~~ gram.y:83.1-5: warning: POSIX Yacc does not support %term [-Wyacc] 83 | %term CMDSPECIAL 11 | ^~~~~ gram.y:84.1-5: warning: POSIX Yacc does not support %term [-Wyacc] 84 | %term OPTION 12 | ^~~~~ gram.y:93.16-21: warning: POSIX yacc reserves %type to nonterminals [-Wyacc] 93 | %type OPTION options | ^~~~~~ gram.y:94.16-19: warning: POSIX yacc reserves %type to nonterminals [-Wyacc] 94 | %type NAME STRING | ^~~~ gram.y:94.21-26: warning: POSIX yacc reserves %type to nonterminals [-Wyacc] 94 | %type NAME STRING | ^~~~~~ gram.y:95.16-22: warning: POSIX yacc reserves %type to nonterminals [-Wyacc] 95 | %type INSTALL NOTIFY EXCEPT PATTERN SPECIAL CMDSPECIAL cmdli... | ^~~~~~~ gram.y:95.24-29: warning: POSIX yacc reserves %type to nonterminals [-Wyacc] 95 | %type INSTALL NOTIFY EXCEPT PATTERN SPECIAL CMDSPECIAL cmdli... | ^~~~~~ gram.y:95.31-36: warning: POSIX yacc reserves %type to nonterminals [-Wyacc] 95 | %type INSTALL NOTIFY EXCEPT PATTERN SPECIAL CMDSPECIAL cmdli... | ^~~~~~ gram.y:95.38-44: warning: POSIX yacc reserves %type to nonterminals [-Wyacc] 95 | %type INSTALL NOTIFY EXCEPT PATTERN SPECIAL CMDSPECIAL cmdli... | ^~~~~~~ gram.y:95.46-52: warning: POSIX yacc reserves %type to nonterminals [-Wyacc] 95 | %type INSTALL NOTIFY EXCEPT PATTERN SPECIAL CMDSPECIAL cmdli... | ^~~~~~~ gram.y:95.54-63: warning: POSIX yacc reserves %type to nonterminals [-Wyacc] 95 | %type INSTALL NOTIFY EXCEPT PATTERN SPECIAL CMDSPECIAL cmdli... | ^~~~~~~~~~ mv -f y.tab.c gram.c 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 -DOS_H=\"os-linux.h\" -O2 -g -pipe -Wall -D_POSIX_SOURCE -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I. -I../include -I../config -c -o gram.o gram.c In file included from gram.y:62: ../include/defs.h:353:33: warning: conflicting types for built-in function 'log'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 353 | extern void log(); | ^~~ ../include/defs.h:82:1: note: 'log' is declared in header '' 81 | #include +++ |+#include 82 | #endif y.tab.c: In function 'yyparse': y.tab.c:1170:16: error: implicit declaration of function 'yylex' [-Wimplicit-function-declaration] gram.y:108:25: error: implicit declaration of function 'insert'; did you mean 'isset'? [-Wimplicit-function-declaration] 108 | insert((char *)NULL, $1, $3, $4); | ^~~~~~ | isset gram.y:114:25: error: implicit declaration of function 'append' [-Wimplicit-function-declaration] 114 | append((char *)NULL, $1, $3, $4); | ^~~~~~ gram.y:180:45: error: implicit declaration of function 'yyerror'; did you mean 'yyerrok'? [-Wimplicit-function-declaration] 180 | yyerror("only one name allowed\n"); | ^~~~~~~ | yyerrok gram.y: At top level: gram.y:243:1: error: return type defaults to 'int' [-Wimplicit-int] 243 | yylex() | ^~~~~ gram.y:424:1: error: return type defaults to 'int' [-Wimplicit-int] 424 | insert(label, files, hosts, subcmds) | ^~~~~~ gram.y:478:1: error: return type defaults to 'int' [-Wimplicit-int] 478 | append(label, files, stamp, subcmds) | ^~~~~~ gram.y:504:1: error: return type defaults to 'int' [-Wimplicit-int] 504 | yyerror(s) | ^~~~~~~ gram.y: In function 'insert': gram.y:472:1: warning: control reaches end of non-void function [-Wreturn-type] 472 | } | ^ gram.y: In function 'append': gram.y:499:1: warning: control reaches end of non-void function [-Wreturn-type] 499 | } | ^ gram.y: In function 'yyerror': gram.y:508:1: warning: control reaches end of non-void function [-Wreturn-type] 508 | } | ^ gram.y: At top level: gram.y:49:13: warning: 'copyright' defined but not used [-Wunused-variable] 49 | static char copyright[] = | ^~~~~~~~~ gram.y:47:15: warning: 'sccsid' defined but not used [-Wunused-variable] 47 | static char *sccsid = "@(#)gram.y 5.2 (Berkeley) 85/06/21"; | ^~~~~~ gram.y:44:13: warning: 'RCSid' defined but not used [-Wunused-variable] 44 | static char RCSid[] = | ^~~~~ make[2]: *** [: gram.o] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/rdist-6.1.5/src' make[1]: *** [Makefile:16: all] Error 2 make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/rdist-6.1.5/src' Making "all" in "config" make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/rdist-6.1.5/config' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/rdist-6.1.5/config' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/rdist-6.1.5/config' make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/rdist-6.1.5/config' Making "all" in "doc" make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/rdist-6.1.5/doc' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/rdist-6.1.5/doc' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/rdist-6.1.5/doc' make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/rdist-6.1.5/doc' Making "all" in "support" make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/rdist-6.1.5/support' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/rdist-6.1.5/support' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/rdist-6.1.5/support' make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/rdist-6.1.5/support' Making "all" in "mf" make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/rdist-6.1.5/mf' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/rdist-6.1.5/mf' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.gj80Sd + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' /home/pterjan/rpmbuild/BUILDROOT/rdist-6.1.5-36.mga10.x86_64 '!=' / ']' + rm -rf /home/pterjan/rpmbuild/BUILDROOT/rdist-6.1.5-36.mga10.x86_64 ++ dirname /home/pterjan/rpmbuild/BUILDROOT/rdist-6.1.5-36.mga10.x86_64 + mkdir -p /home/pterjan/rpmbuild/BUILDROOT + mkdir /home/pterjan/rpmbuild/BUILDROOT/rdist-6.1.5-36.mga10.x86_64 + cd rdist-6.1.5 + '[' 1 -eq 1 ']' + install -d /home/pterjan/rpmbuild/BUILDROOT/rdist-6.1.5-36.mga10.x86_64/usr/bin + install -d /home/pterjan/rpmbuild/BUILDROOT/rdist-6.1.5-36.mga10.x86_64/usr/sbin + install -d /home/pterjan/rpmbuild/BUILDROOT/rdist-6.1.5-36.mga10.x86_64/usr/share/man/man1 /home/pterjan/rpmbuild/BUILDROOT/rdist-6.1.5-36.mga10.x86_64/usr/share/man/man8 + install -m 0755 src/rdist /home/pterjan/rpmbuild/BUILDROOT/rdist-6.1.5-36.mga10.x86_64/usr/bin install: cannot stat 'src/rdist': No such file or directory error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.gj80Sd (%install) RPM build warnings: %patchN is deprecated (10 usages found), use %patch N (or %patch -P N) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.gj80Sd (%install) I: [iurt_root_command] ERROR: chroot