D: [iurt_root_command] chroot Building target platforms: x86_64 Building for target x86_64 Installing /home/pterjan/rpmbuild/SRPMS/linux_pcnfsd2-1.6-7.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.SHkfGo Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.3lSqhH + umask 022 + cd /home/pterjan/rpmbuild/BUILD/linux_pcnfsd2-1.6-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/linux_pcnfsd2-1.6-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 + /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 + echo 'Patch #5 (linux_pcnfsd2-fix-build-with-gcc14.patch):' Patch #5 (linux_pcnfsd2-fix-build-with-gcc14.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file pcnfsd_svc.c patching file pcnfsd_xdr.c patching file pcnfsd_v1.c patching file pcnfsd_v2.c patching file pcnfsd_misc.c patching file pcnfsd_print.c patching file pcnfsd_clnt.c patching file pcnfsd_test.c + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.tcp2yL + umask 022 + cd /home/pterjan/rpmbuild/BUILD/linux_pcnfsd2-1.6-build + 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 + 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: In function 'msg_out': pcnfsd_svc.c:45:7: warning: old-style function definition [-Wold-style-definition] 45 | void msg_out(msg) char *msg; {_msgout(msg);} | ^~~~~~~ pcnfsd_svc.c:45:2: error: number of arguments doesn't match prototype 45 | void msg_out(msg) char *msg; {_msgout(msg);} | ^~~~ In file included from pcnfsd_svc.c:37: pcnfsd.h:504:14: error: prototype declaration 504 | extern void msg_out(); | ^~~~~~~ pcnfsd_svc.c:45:32: error: too many arguments to function '_msgout'; expected 0, have 1 45 | void msg_out(msg) char *msg; {_msgout(msg);} | ^~~~~~~ ~~~ pcnfsd_svc.c:43:12: note: declared here 43 | static int _msgout(); | ^~~~~~~ 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:120:25: error: too many arguments to function '_msgout'; expected 0, have 1 120 | _msgout("cannot create udp service."); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pcnfsd_svc.c:43:12: note: declared here 43 | static int _msgout(); | ^~~~~~~ pcnfsd_svc.c:125:67: error: passing argument 4 of 'svc_register' from incompatible pointer type [-Wincompatible-pointer-types] 125 | if (!svc_register(transp, PCNFSDPROG, PCNFSDVERS, pcnfsdprog_1, proto)) { | ^~~~~~~~~~~~ | | | void (*)(void) In file included from /usr/include/tirpc/rpc/svc.h:463, from /usr/include/tirpc/rpc/rpc.h:63, from pcnfsd_svc.c:14: /usr/include/tirpc/rpc/svc_soc.h:70:21: note: expected 'void (*)(struct svc_req *, SVCXPRT *)' {aka 'void (*)(struct svc_req *, struct __rpc_svcxprt *)'} but argument is of type 'void (*)(void)' 70 | void (*)(struct svc_req *, SVCXPRT *), int); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pcnfsd_svc.c:51:13: note: 'pcnfsdprog_1' declared here 51 | static void pcnfsdprog_1(); | ^~~~~~~~~~~~ pcnfsd_svc.c:126:25: error: too many arguments to function '_msgout'; expected 0, have 1 126 | _msgout("unable to register (PCNFSDPROG, PCNFSDVERS, udp)."); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pcnfsd_svc.c:43:12: note: declared here 43 | static int _msgout(); | ^~~~~~~ pcnfsd_svc.c:129:65: error: passing argument 4 of 'svc_register' from incompatible pointer type [-Wincompatible-pointer-types] 129 | if (!svc_register(transp, PCNFSDPROG, PCNFSDV2, pcnfsdprog_2, proto)) { | ^~~~~~~~~~~~ | | | void (*)(void) /usr/include/tirpc/rpc/svc_soc.h:70:21: note: expected 'void (*)(struct svc_req *, SVCXPRT *)' {aka 'void (*)(struct svc_req *, struct __rpc_svcxprt *)'} but argument is of type 'void (*)(void)' 70 | void (*)(struct svc_req *, SVCXPRT *), int); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pcnfsd_svc.c:52:13: note: 'pcnfsdprog_2' declared here 52 | static void pcnfsdprog_2(); | ^~~~~~~~~~~~ pcnfsd_svc.c:130:25: error: too many arguments to function '_msgout'; expected 0, have 1 130 | _msgout("unable to register (PCNFSDPROG, PCNFSDV2, udp)."); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pcnfsd_svc.c:43:12: note: declared here 43 | static int _msgout(); | ^~~~~~~ pcnfsd_svc.c:138:25: error: too many arguments to function '_msgout'; expected 0, have 1 138 | _msgout("cannot create tcp service."); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pcnfsd_svc.c:43:12: note: declared here 43 | static int _msgout(); | ^~~~~~~ pcnfsd_svc.c:143:67: error: passing argument 4 of 'svc_register' from incompatible pointer type [-Wincompatible-pointer-types] 143 | if (!svc_register(transp, PCNFSDPROG, PCNFSDVERS, pcnfsdprog_1, proto)) { | ^~~~~~~~~~~~ | | | void (*)(void) /usr/include/tirpc/rpc/svc_soc.h:70:21: note: expected 'void (*)(struct svc_req *, SVCXPRT *)' {aka 'void (*)(struct svc_req *, struct __rpc_svcxprt *)'} but argument is of type 'void (*)(void)' 70 | void (*)(struct svc_req *, SVCXPRT *), int); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pcnfsd_svc.c:51:13: note: 'pcnfsdprog_1' declared here 51 | static void pcnfsdprog_1(); | ^~~~~~~~~~~~ pcnfsd_svc.c:144:25: error: too many arguments to function '_msgout'; expected 0, have 1 144 | _msgout("unable to register (PCNFSDPROG, PCNFSDVERS, tcp)."); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pcnfsd_svc.c:43:12: note: declared here 43 | static int _msgout(); | ^~~~~~~ pcnfsd_svc.c:147:65: error: passing argument 4 of 'svc_register' from incompatible pointer type [-Wincompatible-pointer-types] 147 | if (!svc_register(transp, PCNFSDPROG, PCNFSDV2, pcnfsdprog_2, proto)) { | ^~~~~~~~~~~~ | | | void (*)(void) /usr/include/tirpc/rpc/svc_soc.h:70:21: note: expected 'void (*)(struct svc_req *, SVCXPRT *)' {aka 'void (*)(struct svc_req *, struct __rpc_svcxprt *)'} but argument is of type 'void (*)(void)' 70 | void (*)(struct svc_req *, SVCXPRT *), int); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pcnfsd_svc.c:52:13: note: 'pcnfsdprog_2' declared here 52 | static void pcnfsdprog_2(); | ^~~~~~~~~~~~ pcnfsd_svc.c:148:25: error: too many arguments to function '_msgout'; expected 0, have 1 148 | _msgout("unable to register (PCNFSDPROG, PCNFSDV2, tcp)."); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pcnfsd_svc.c:43:12: note: declared here 43 | static int _msgout(); | ^~~~~~~ pcnfsd_svc.c:154:17: error: too many arguments to function '_msgout'; expected 0, have 1 154 | _msgout("could not create a handle"); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ pcnfsd_svc.c:43:12: note: declared here 43 | static int _msgout(); | ^~~~~~~ pcnfsd_svc.c:158:40: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 158 | (void) signal(SIGALRM, closedown); | ^~~~~~~~~ | | | void (*)(void) In file included from /usr/include/sys/param.h:28, from /usr/include/tirpc/rpc/types.h:96, from /usr/include/tirpc/rpc/rpc.h:38: /usr/include/signal.h:88:57: note: expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'void (*)(void)' 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ pcnfsd_svc.c:53:13: note: 'closedown' declared here 53 | static void closedown(); | ^~~~~~~~~ /usr/include/signal.h:72:16: note: '__sighandler_t' declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ pcnfsd_svc.c:168:8: warning: extra tokens at end of '#endif' directive [-Wendif-labels] 168 | #endif RPC_SVC_FG | ^~~~~~~~~~ pcnfsd_svc.c:171:9: error: too many arguments to function '_msgout'; expected 0, have 1 171 | _msgout("svc_run returned"); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~ pcnfsd_svc.c:43:12: note: declared here 43 | static int _msgout(); | ^~~~~~~ pcnfsd_svc.c: In function 'pcnfsdprog_1': pcnfsd_svc.c:177:1: warning: old-style function definition [-Wold-style-definition] 177 | pcnfsdprog_1(rqstp, transp) | ^~~~~~~~~~~~ pcnfsd_svc.c:232:19: error: too many arguments to function 'local'; expected 0, have 2 232 | result = (*local)(&argument, rqstp); | ~^~~~~~~ ~~~~~~~~~ pcnfsd_svc.c:237:17: error: too many arguments to function '_msgout'; expected 0, have 1 237 | _msgout("unable to free arguments"); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~ pcnfsd_svc.c:43:12: note: declared here 43 | static int _msgout(); | ^~~~~~~ pcnfsd_svc.c: In function 'pcnfsdprog_2': pcnfsd_svc.c:245:1: warning: old-style function definition [-Wold-style-definition] 245 | pcnfsdprog_2(rqstp, transp) | ^~~~~~~~~~~~ pcnfsd_svc.c:376:19: error: too many arguments to function 'local'; expected 0, have 2 376 | result = (*local)(&argument, rqstp); | ~^~~~~~~ ~~~~~~~~~ pcnfsd_svc.c:381:17: error: too many arguments to function '_msgout'; expected 0, have 1 381 | _msgout("unable to free arguments"); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~ pcnfsd_svc.c:43:12: note: declared here 43 | static int _msgout(); | ^~~~~~~ pcnfsd_svc.c: In function '_msgout': pcnfsd_svc.c:389:5: warning: old-style function definition [-Wold-style-definition] 389 | int _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.tcp2yL (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.tcp2yL (%build) I: [iurt_root_command] ERROR: chroot