D: [iurt_root_command] chroot warning: %patchN is deprecated (4 usages found), use %patch N (or %patch -P N) Installing /home/pterjan/rpmbuild/SRPMS/linux_pcnfsd2-1.6-6.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.VdaFLh + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf linux_pcnfsd2 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/linux_pcnfsd2.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd linux_pcnfsd2 + rm -rf /home/pterjan/rpmbuild/BUILD/linux_pcnfsd2-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/linux_pcnfsd2-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (linux_pcnfsd2.dif):' Patch #1 (linux_pcnfsd2.dif): + /usr/bin/patch --no-backup-if-mismatch -f -p0 --fuzz=0 patching file Makefile.linux patching file common.h patching file pcnfsd_misc.c patching file pcnfsd_print.c patching file pcnfsd_svc.c + echo 'Patch #2 (linux_pcnfsd2-format-security.patch):' Patch #2 (linux_pcnfsd2-format-security.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .FMT --fuzz=0 patching file pcnfsd_svc.c + echo 'Patch #3 (linux_pcnfsd2-libtirpc.patch):' Patch #3 (linux_pcnfsd2-libtirpc.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file Makefile.linux + echo 'Patch #4 (linux_pcnfsd2-1.6-mga-ipv6-rpc.patch):' Patch #4 (linux_pcnfsd2-1.6-mga-ipv6-rpc.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file pcnfsd_svc.c + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.LYLtsq + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd linux_pcnfsd2 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + make -f Makefile.linux gcc -c -O2 -fexpensive-optimizations -pipe -DOSVER_BSD386 -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 -I/usr/include/tirpc -o linux/pcnfsd_svc.o pcnfsd_svc.c pcnfsd_svc.c:43:8: error: type defaults to 'int' in declaration of '_msgout' [-Wimplicit-int] 43 | static _msgout(); | ^~~~~~~ pcnfsd_svc.c:65:1: error: return type defaults to 'int' [-Wimplicit-int] 65 | main() | ^~~~ pcnfsd_svc.c: In function 'main': pcnfsd_svc.c:107:7: warning: extra tokens at end of #else directive [-Wendif-labels] 107 | #else TIOCNOTTY | ^~~~~~~~~ pcnfsd_svc.c:109:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 109 | #endif TIOCNOTTY | ^~~~~~~~~ pcnfsd_svc.c:111:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 111 | #endif RPC_SVC_FG | ^~~~~~~~~~ pcnfsd_svc.c:168:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 168 | #endif RPC_SVC_FG | ^~~~~~~~~~ In file included from /usr/include/tirpc/rpc/rpc.h:63, from pcnfsd_svc.c:14: pcnfsd_svc.c: In function 'pcnfsdprog_1': /usr/include/tirpc/rpc/svc.h:171:47: error: passing argument 2 of '(bool_t (*)(struct __rpc_svcxprt *, bool_t (*)(XDR *, ...), void *))transp->xp_ops->xp_getargs' from incompatible pointer type [-Wincompatible-pointer-types] 171 | (*(xprt)->xp_ops->xp_getargs)((xprt), (xargs), (argsp)) | ^~~~~~~ | | | bool_t (*)() {aka int (*)()} pcnfsd_svc.c:227:14: note: in expansion of macro 'svc_getargs' 227 | if (!svc_getargs(transp, xdr_argument, (caddr_t)&argument)) { | ^~~~~~~~~~~ /usr/include/tirpc/rpc/svc.h:171:47: note: expected 'xdrproc_t' {aka 'int (*)(struct __rpc_xdr *, ...)'} but argument is of type 'bool_t (*)()' {aka 'int (*)()'} 171 | (*(xprt)->xp_ops->xp_getargs)((xprt), (xargs), (argsp)) | ^~~~~~~ pcnfsd_svc.c:227:14: note: in expansion of macro 'svc_getargs' 227 | if (!svc_getargs(transp, xdr_argument, (caddr_t)&argument)) { | ^~~~~~~~~~~ pcnfsd_svc.c:233:54: error: passing argument 2 of 'svc_sendreply' from incompatible pointer type [-Wincompatible-pointer-types] 233 | if (result != NULL && !svc_sendreply(transp, xdr_result, result)) { | ^~~~~~~~~~ | | | bool_t (*)() {aka int (*)()} /usr/include/tirpc/rpc/svc.h:286:42: note: expected 'xdrproc_t' {aka 'int (*)(struct __rpc_xdr *, ...)'} but argument is of type 'bool_t (*)()' {aka 'int (*)()'} 286 | extern bool_t svc_sendreply(SVCXPRT *, xdrproc_t, void *); | ^~~~~~~~~ /usr/include/tirpc/rpc/svc.h:181:48: error: passing argument 2 of '(bool_t (*)(struct __rpc_svcxprt *, bool_t (*)(XDR *, ...), void *))transp->xp_ops->xp_freeargs' from incompatible pointer type [-Wincompatible-pointer-types] 181 | (*(xprt)->xp_ops->xp_freeargs)((xprt), (xargs), (argsp)) | ^~~~~~~ | | | bool_t (*)() {aka int (*)()} pcnfsd_svc.c:236:14: note: in expansion of macro 'svc_freeargs' 236 | if (!svc_freeargs(transp, xdr_argument, (caddr_t)&argument)) { | ^~~~~~~~~~~~ /usr/include/tirpc/rpc/svc.h:181:48: note: expected 'xdrproc_t' {aka 'int (*)(struct __rpc_xdr *, ...)'} but argument is of type 'bool_t (*)()' {aka 'int (*)()'} 181 | (*(xprt)->xp_ops->xp_freeargs)((xprt), (xargs), (argsp)) | ^~~~~~~ pcnfsd_svc.c:236:14: note: in expansion of macro 'svc_freeargs' 236 | if (!svc_freeargs(transp, xdr_argument, (caddr_t)&argument)) { | ^~~~~~~~~~~~ pcnfsd_svc.c: In function 'pcnfsdprog_2': /usr/include/tirpc/rpc/svc.h:171:47: error: passing argument 2 of '(bool_t (*)(struct __rpc_svcxprt *, bool_t (*)(XDR *, ...), void *))transp->xp_ops->xp_getargs' from incompatible pointer type [-Wincompatible-pointer-types] 171 | (*(xprt)->xp_ops->xp_getargs)((xprt), (xargs), (argsp)) | ^~~~~~~ | | | bool_t (*)() {aka int (*)()} pcnfsd_svc.c:371:14: note: in expansion of macro 'svc_getargs' 371 | if (!svc_getargs(transp, xdr_argument, (caddr_t)&argument)) { | ^~~~~~~~~~~ /usr/include/tirpc/rpc/svc.h:171:47: note: expected 'xdrproc_t' {aka 'int (*)(struct __rpc_xdr *, ...)'} but argument is of type 'bool_t (*)()' {aka 'int (*)()'} 171 | (*(xprt)->xp_ops->xp_getargs)((xprt), (xargs), (argsp)) | ^~~~~~~ pcnfsd_svc.c:371:14: note: in expansion of macro 'svc_getargs' 371 | if (!svc_getargs(transp, xdr_argument, (caddr_t)&argument)) { | ^~~~~~~~~~~ pcnfsd_svc.c:377:54: error: passing argument 2 of 'svc_sendreply' from incompatible pointer type [-Wincompatible-pointer-types] 377 | if (result != NULL && !svc_sendreply(transp, xdr_result, result)) { | ^~~~~~~~~~ | | | bool_t (*)() {aka int (*)()} /usr/include/tirpc/rpc/svc.h:286:42: note: expected 'xdrproc_t' {aka 'int (*)(struct __rpc_xdr *, ...)'} but argument is of type 'bool_t (*)()' {aka 'int (*)()'} 286 | extern bool_t svc_sendreply(SVCXPRT *, xdrproc_t, void *); | ^~~~~~~~~ /usr/include/tirpc/rpc/svc.h:181:48: error: passing argument 2 of '(bool_t (*)(struct __rpc_svcxprt *, bool_t (*)(XDR *, ...), void *))transp->xp_ops->xp_freeargs' from incompatible pointer type [-Wincompatible-pointer-types] 181 | (*(xprt)->xp_ops->xp_freeargs)((xprt), (xargs), (argsp)) | ^~~~~~~ | | | bool_t (*)() {aka int (*)()} pcnfsd_svc.c:380:14: note: in expansion of macro 'svc_freeargs' 380 | if (!svc_freeargs(transp, xdr_argument, (caddr_t)&argument)) { | ^~~~~~~~~~~~ /usr/include/tirpc/rpc/svc.h:181:48: note: expected 'xdrproc_t' {aka 'int (*)(struct __rpc_xdr *, ...)'} but argument is of type 'bool_t (*)()' {aka 'int (*)()'} 181 | (*(xprt)->xp_ops->xp_freeargs)((xprt), (xargs), (argsp)) | ^~~~~~~ pcnfsd_svc.c:380:14: note: in expansion of macro 'svc_freeargs' 380 | if (!svc_freeargs(transp, xdr_argument, (caddr_t)&argument)) { | ^~~~~~~~~~~~ pcnfsd_svc.c: At top level: pcnfsd_svc.c:389:1: error: return type defaults to 'int' [-Wimplicit-int] 389 | _msgout(msg) | ^~~~~~~ pcnfsd_svc.c: In function 'closedown': pcnfsd_svc.c:422:7: warning: extra tokens at end of #else directive [-Wendif-labels] 422 | #else RLIMIT_NOFILE | ^~~~~~~~~~~~~ pcnfsd_svc.c:425:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 425 | #endif RLIMIT_NOFILE | ^~~~~~~~~~~~~ make: *** [Makefile.linux:53: linux/pcnfsd_svc.o] Error 1 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.LYLtsq (%build) RPM build warnings: %patchN is deprecated (4 usages found), use %patch N (or %patch -P N) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.LYLtsq (%build) I: [iurt_root_command] ERROR: chroot