D: [iurt_root_command] chroot warning: %patchN is deprecated (2 usages found), use %patch N (or %patch -P N) Installing /home/pterjan/rpmbuild/SRPMS/xcpustate-2.9-15.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.o7Y6nI + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf xcpustate-2.9 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/xcpustate-2.9.tar.lzma + STATUS=0 + '[' 0 -ne 0 ']' + cd xcpustate-2.9 + rm -rf /home/pterjan/rpmbuild/BUILD/xcpustate-2.9-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/xcpustate-2.9-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #2 (xcpustate-2.5-6.0.patch):' Patch #2 (xcpustate-2.5-6.0.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .glibc --fuzz=0 patching file rstat.c + echo 'Patch #3 (xcpustate-2.9-missingheaders.patch):' Patch #3 (xcpustate-2.9-missingheaders.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .headers --fuzz=0 patching file s-linux.c + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.PW75vZ + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd xcpustate-2.9 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + xmkmf imake -DUseInstalled -I/usr/share/X11/config + sed -i 's! -s -m!-m!' Makefile + /usr/bin/make -O -j16 V=1 VERBOSE=1 'CDEBUGFLAGS=-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 -I/usr/include/tirpc' MANPATH=/usr/share/man SYS_LIBRARIES=-ltirpc gcc -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 -I/usr/include/tirpc -I/usr/include -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DRSTAT -c -o rstat.o rstat.c In file included from /usr/include/sys/types.h:25, from rstat.c:11: /usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ rstat.c: In function 'rstat_label_bars': rstat.c:108:1: error: type of 'nbars' defaults to 'int' [-Wimplicit-int] 108 | rstat_label_bars(nbars) | ^~~~~~~~~~~~~~~~ make: *** [: rstat.o] Error 1 make: *** Waiting for unfinished jobs.... gcc -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 -I/usr/include/tirpc -I/usr/include -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DRSTAT -c -o s.o s.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdlib.h:26, from s-linux.c:14, from s.c:87: /usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ s-linux.c: In function 'label_bars': s-linux.c:220:1: error: type of 'nbars' defaults to 'int' [-Wimplicit-int] 220 | label_bars(nbars) | ^~~~~~~~~~ s-linux.c: In function 'init_bars': s-linux.c:312:20: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 312 | fscanf(proc_stat, "%s %ld %ld %ld %ld", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 313 | dummy, &cp_time[0][0], &cp_time[0][1], &cp_time[0][2], | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 314 | &cp_time[0][3]); | ~~~~~~~~~~~~~~~ s-linux.c:319:17: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 319 | fscanf(proc_stat, "%s %ld %ld %ld %ld \n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 320 | dummy, &cp_old[i][0], &cp_old[i][1], &cp_old[i][2], | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 321 | &cp_old[i][3]); | ~~~~~~~~~~~~~~ s-linux.c: In function 'display_cpus': s-linux.c:344:20: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 344 | fscanf(proc_stat, "%s %ld %ld %ld %ld", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 345 | dummy, &cp_time[0][0], &cp_time[0][1], &cp_time[0][2], | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 346 | &cp_time[0][3]); | ~~~~~~~~~~~~~~~ s-linux.c:354:17: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 354 | fscanf(proc_stat, "%s %ld %ld %ld %ld", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 355 | dummy, &cp_time[i][0], &cp_time[i][1], &cp_time[i][2], | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 356 | &cp_time[i][3]); | ~~~~~~~~~~~~~~~ make: *** [: s.o] Error 1 gcc -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 -I/usr/include/tirpc -I/usr/include -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DRSTAT -c -o rstat_xdr.o rstat_xdr.c In file included from /usr/include/sys/types.h:25, from /usr/include/tirpc/rpc/types.h:41, from /usr/include/tirpc/rpc/rpc.h:38, from rstat.h:9, from rstat_xdr.c:12: /usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ rstat_xdr.c: In function 'xdr_statsvar': rstat_xdr.c:71:21: error: assignment to 'long int *' from incompatible pointer type 'int32_t *' {aka 'int *'} [-Wincompatible-pointer-types] 71 | buf = XDR_INLINE(xdrs, (11 + 3) * BYTES_PER_XDR_UNIT); | ^ rstat_xdr.c:134:21: error: assignment to 'long int *' from incompatible pointer type 'int32_t *' {aka 'int *'} [-Wincompatible-pointer-types] 134 | buf = XDR_INLINE(xdrs, (11 + 3) * BYTES_PER_XDR_UNIT); | ^ rstat_xdr.c: In function 'xdr_statstime': rstat_xdr.c:240:21: error: assignment to 'long int *' from incompatible pointer type 'int32_t *' {aka 'int *'} [-Wincompatible-pointer-types] 240 | buf = XDR_INLINE(xdrs, (10 + (RSTAT_CPUSTATES + RSTAT_DK_NDRIVE + 3)) * BYTES_PER_XDR_UNIT); | ^ rstat_xdr.c:316:21: error: assignment to 'long int *' from incompatible pointer type 'int32_t *' {aka 'int *'} [-Wincompatible-pointer-types] 316 | buf = XDR_INLINE(xdrs, (10 + (RSTAT_CPUSTATES + RSTAT_DK_NDRIVE + 3)) * BYTES_PER_XDR_UNIT); | ^ rstat_xdr.c: In function 'xdr_statsswtch': rstat_xdr.c:442:21: error: assignment to 'long int *' from incompatible pointer type 'int32_t *' {aka 'int *'} [-Wincompatible-pointer-types] 442 | buf = XDR_INLINE(xdrs, (10 + (RSTAT_CPUSTATES + RSTAT_DK_NDRIVE + 3)) * BYTES_PER_XDR_UNIT); | ^ rstat_xdr.c:516:21: error: assignment to 'long int *' from incompatible pointer type 'int32_t *' {aka 'int *'} [-Wincompatible-pointer-types] 516 | buf = XDR_INLINE(xdrs, (10 + (RSTAT_CPUSTATES + RSTAT_DK_NDRIVE + 3)) * BYTES_PER_XDR_UNIT); | ^ rstat_xdr.c: In function 'xdr_stats': rstat_xdr.c:638:21: error: assignment to 'long int *' from incompatible pointer type 'int32_t *' {aka 'int *'} [-Wincompatible-pointer-types] 638 | buf = XDR_INLINE(xdrs, (10 + (RSTAT_CPUSTATES + RSTAT_DK_NDRIVE)) * BYTES_PER_XDR_UNIT); | ^ rstat_xdr.c:696:21: error: assignment to 'long int *' from incompatible pointer type 'int32_t *' {aka 'int *'} [-Wincompatible-pointer-types] 696 | buf = XDR_INLINE(xdrs, (10 + (RSTAT_CPUSTATES + RSTAT_DK_NDRIVE)) * BYTES_PER_XDR_UNIT); | ^ make: *** [: rstat_xdr.o] Error 1 gcc -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 -I/usr/include/tirpc -I/usr/include -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DRSTAT -c -o xcpustate.o xcpustate.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:28, from xcpustate.c:8: /usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ xcpustate.c: In function 'usage': xcpustate.c:267:5: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 267 | exit(-1); | ^~~~ xcpustate.c:21:1: note: include '' or provide a declaration of 'exit' 20 | #include "patchlevel.h" +++ |+#include 21 | xcpustate.c:267:5: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 267 | exit(-1); | ^~~~ xcpustate.c:267:5: note: include '' or provide a declaration of 'exit' xcpustate.c: At top level: xcpustate.c:298:1: error: return type defaults to 'int' [-Wimplicit-int] 298 | main(argc, argv) | ^~~~ xcpustate.c: In function 'main': xcpustate.c:345:9: error: implicit declaration of function 'rstat_version' [-Wimplicit-function-declaration] 345 | rstat_version(); | ^~~~~~~~~~~~~ xcpustate.c:347:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 347 | exit(0); | ^~~~ xcpustate.c:347:9: note: include '' or provide a declaration of 'exit' xcpustate.c:411:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 411 | exit(-1); | ^~~~ xcpustate.c:411:9: note: include '' or provide a declaration of 'exit' xcpustate.c:431:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 431 | exit(-1); | ^~~~ xcpustate.c:431:9: note: include '' or provide a declaration of 'exit' xcpustate.c:105:64: error: implicit declaration of function 'rstat_bar_items' [-Wimplicit-function-declaration] 105 | #define barItems(n,ni) if(NULL==rstathost)bar_items(n,ni);else rstat_bar_items(n,ni) | ^~~~~~~~~~~~~~~ xcpustate.c:437:5: note: in expansion of macro 'barItems' 437 | barItems(nbars, nbaritems); | ^~~~~~~~ xcpustate.c: In function 'close_window': xcpustate.c:689:3: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 689 | exit(0); | ^~~~ xcpustate.c:689:3: note: include '' or provide a declaration of 'exit' make: *** [: xcpustate.o] Error 1 gcc -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 -I/usr/include/tirpc -I/usr/include -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DRSTAT -c -o rstat_clnt.o rstat_clnt.c In file included from /usr/include/sys/types.h:25, from /usr/include/tirpc/rpc/types.h:41, from /usr/include/tirpc/rpc/rpc.h:38, from rstat.h:9, from rstat_clnt.c:6: /usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ gcc -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 -I/usr/include/tirpc -I/usr/include -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DRSTAT -c -o Bar.o Bar.c In file included from /usr/include/sys/types.h:25, from /usr/include/X11/Xlib.h:38, from /usr/include/X11/Intrinsic.h:53, from /usr/include/X11/IntrinsicP.h:51, from Bar.c:6: /usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.PW75vZ (%build) RPM build warnings: %patchN is deprecated (2 usages found), use %patch N (or %patch -P N) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.PW75vZ (%build) I: [iurt_root_command] ERROR: chroot