D: [iurt_root_command] chroot Building target platforms: x86_64 Building for target x86_64 sh: line 4: [: -j8: integer expression expected Installing /home/pterjan/rpmbuild/SRPMS/xsysinfo-1.7-38.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.Cga7uP sh: line 4: [: -j8: integer expression expected Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.MdnP2K + umask 022 + cd /home/pterjan/rpmbuild/BUILD/xsysinfo-1.7-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/xsysinfo-1.7-build + rm -rf xsysinfo-1.7 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/xsysinfo-1.7.tar.bz2 + STATUS=0 + '[' 0 -ne 0 ']' + cd xsysinfo-1.7 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (xsysinfo-1.7-imake.patch):' Patch #0 (xsysinfo-1.7-imake.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file Imakefile + echo 'Patch #1 (xsysinfo-1.7-xf4.patch):' Patch #1 (xsysinfo-1.7-xf4.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file Imakefile + echo 'Patch #2 (xsysinfo-1.7-includes.patch):' Patch #2 (xsysinfo-1.7-includes.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .includes --fuzz=0 patching file sysinfo.c patching file xsysinfo.c + make clean rm -f xsysinfo rm -f *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut "#"* + 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.mhjDBU + umask 022 + cd /home/pterjan/rpmbuild/BUILD/xsysinfo-1.7-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 xsysinfo-1.7 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + xmkmf mv -f Makefile Makefile.bak imake -DUseInstalled -I/usr/share/X11/config + /usr/bin/make -O -j48 V=1 VERBOSE=1 'CDEBUGFLAGS=-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' 'EXTRA_LDOPTIONS=-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' 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 -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 -DALLOW_EMPTY_SEGMENTS -DUSE_MILLI_SECONDS -c -o BarGauge.o BarGauge.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:28, from BarGauge.c:35: /usr/include/features.h:199:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 199 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ BarGauge.c:107:17: error: initialization of 'void (*)(struct _WidgetRec *, struct _WidgetRec *, struct *, Cardinal *)' {aka 'void (*)(struct _WidgetRec *, struct _WidgetRec *, struct *, unsigned int *)'} from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 107 | Initialize, /* initialize */ | ^~~~~~~~~~ BarGauge.c:107:17: note: (near initialization for 'barGaugeClassRec.core_class.initialize') BarGauge.c:95:13: note: 'Initialize' declared here 95 | static void Initialize(), Destroy(), Redisplay(); | ^~~~~~~~~~ BarGauge.c:120:17: error: initialization of 'void (*)(struct _WidgetRec *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 120 | Destroy, /* destroy */ | ^~~~~~~ BarGauge.c:120:17: note: (near initialization for 'barGaugeClassRec.core_class.destroy') BarGauge.c:95:27: note: 'Destroy' declared here 95 | static void Initialize(), Destroy(), Redisplay(); | ^~~~~~~ BarGauge.c:122:17: error: initialization of 'void (*)(struct _WidgetRec *, XEvent *, struct _XRegion *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 122 | Redisplay, /* expose */ | ^~~~~~~~~ BarGauge.c:122:17: note: (near initialization for 'barGaugeClassRec.core_class.expose') BarGauge.c:95:38: note: 'Redisplay' declared here 95 | static void Initialize(), Destroy(), Redisplay(); | ^~~~~~~~~ BarGauge.c:123:17: error: initialization of 'Boolean (*)(struct _WidgetRec *, struct _WidgetRec *, struct _WidgetRec *, struct *, Cardinal *)' {aka 'char (*)(struct _WidgetRec *, struct _WidgetRec *, struct _WidgetRec *, struct *, unsigned int *)'} from incompatible pointer type 'Boolean (*)(void)' {aka 'char (*)(void)'} [-Wincompatible-pointer-types] 123 | SetValues, /* set_values */ | ^~~~~~~~~ BarGauge.c:123:17: note: (near initialization for 'barGaugeClassRec.core_class.set_values') BarGauge.c:96:16: note: 'SetValues' declared here 96 | static Boolean SetValues(); | ^~~~~~~~~ BarGauge.c: In function 'Initialize': BarGauge.c:151:13: warning: old-style function definition [-Wold-style-definition] 151 | static void Initialize (greq, gnew) | ^~~~~~~~~~ BarGauge.c:162:27: error: passing argument 3 of 'XtAppAddTimeOut' from incompatible pointer type [-Wincompatible-pointer-types] 162 | draw_it, (XtPointer) gnew ); | ^~~~~~~ | | | void (*)(void) In file included from /usr/include/X11/IntrinsicP.h:51, from BarGauge.c:36: /usr/include/X11/Intrinsic.h:999:5: note: expected 'XtTimerCallbackProc' {aka 'void (*)(void *, long unsigned int *)'} but argument is of type 'void (*)(void)' 999 | XtTimerCallbackProc /* proc */, | ^~~~~~~~~~~~~~~~~~~ BarGauge.c:148:13: note: 'draw_it' declared here 148 | static void draw_it(); | ^~~~~~~ /usr/include/X11/Intrinsic.h:318:16: note: 'XtTimerCallbackProc' declared here 318 | typedef void (*XtTimerCallbackProc)( | ^~~~~~~~~~~~~~~~~~~ BarGauge.c: In function 'Destroy': BarGauge.c:180:13: warning: old-style function definition [-Wold-style-definition] 180 | static void Destroy (gw) | ^~~~~~~ BarGauge.c: In function 'Redisplay': BarGauge.c:200:13: warning: old-style function definition [-Wold-style-definition] 200 | static void Redisplay(w, event, region) | ^~~~~~~~~ BarGauge.c:205:16: error: too many arguments to function 'repaint_window'; expected 0, have 1 205 | (void) repaint_window ((BarGaugeWidget)w); | ^~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~ BarGauge.c:97:13: note: declared here 97 | static void repaint_window(); | ^~~~~~~~~~~~~~ BarGauge.c: In function 'draw_it': BarGauge.c:210:1: warning: old-style function definition [-Wold-style-definition] 210 | draw_it(client_data, id) | ^~~~~~~ BarGauge.c:220:72: error: passing argument 3 of 'XtAppAddTimeOut' from incompatible pointer type [-Wincompatible-pointer-types] 220 | w->bar_gauge.update*MS_PER_SEC,draw_it, | ^~~~~~~ | | | void (*)(void) /usr/include/X11/Intrinsic.h:999:5: note: expected 'XtTimerCallbackProc' {aka 'void (*)(void *, long unsigned int *)'} but argument is of type 'void (*)(void)' 999 | XtTimerCallbackProc /* proc */, | ^~~~~~~~~~~~~~~~~~~ BarGauge.c:210:1: note: 'draw_it' declared here 210 | draw_it(client_data, id) | ^~~~~~~ /usr/include/X11/Intrinsic.h:318:16: note: 'XtTimerCallbackProc' declared here 318 | typedef void (*XtTimerCallbackProc)( | ^~~~~~~~~~~~~~~~~~~ BarGauge.c:231:17: error: too many arguments to function 'repaint_window'; expected 0, have 1 231 | repaint_window(w); | ^~~~~~~~~~~~~~ ~ BarGauge.c:97:13: note: declared here 97 | static void repaint_window(); | ^~~~~~~~~~~~~~ BarGauge.c: In function 'repaint_window': BarGauge.c:235:1: warning: old-style function definition [-Wold-style-definition] 235 | repaint_window(w) | ^~~~~~~~~~~~~~ BarGauge.c: In function 'SetValues': BarGauge.c:305:16: warning: old-style function definition [-Wold-style-definition] 305 | static Boolean SetValues (current, request, new) | ^~~~~~~~~ BarGauge.c:325:42: error: passing argument 3 of 'XtAppAddTimeOut' from incompatible pointer type [-Wincompatible-pointer-types] 325 | draw_it, (XtPointer)w); | ^~~~~~~ | | | void (*)(void) /usr/include/X11/Intrinsic.h:999:5: note: expected 'XtTimerCallbackProc' {aka 'void (*)(void *, long unsigned int *)'} but argument is of type 'void (*)(void)' 999 | XtTimerCallbackProc /* proc */, | ^~~~~~~~~~~~~~~~~~~ BarGauge.c:210:1: note: 'draw_it' declared here 210 | draw_it(client_data, id) | ^~~~~~~ /usr/include/X11/Intrinsic.h:318:16: note: 'XtTimerCallbackProc' declared here 318 | typedef void (*XtTimerCallbackProc)( | ^~~~~~~~~~~~~~~~~~~ make: *** [: BarGauge.o] Error 1 make: *** Waiting for unfinished jobs.... 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 -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 -DALLOW_EMPTY_SEGMENTS -DUSE_MILLI_SECONDS -c -o sysinfo.o sysinfo.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:28, from sysinfo.c:26: /usr/include/features.h:199:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 199 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ sysinfo.c: In function 'get_total_procs': sysinfo.c:223:37: warning: '%d' directive writing between 1 and 10 bytes into a region of size 4 [-Wformat-overflow=] 223 | sprintf(cpu_num,"cpu%d ", count); | ^~ sysinfo.c:223:33: note: directive argument in the range [1, 2147483647] 223 | sprintf(cpu_num,"cpu%d ", count); | ^~~~~~~~ In file included from /usr/include/stdio.h:970: In function 'sprintf', inlined from 'get_total_procs' at sysinfo.c:223:3: /usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 6 and 15 bytes into a destination of size 7 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ 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 -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 -DALLOW_EMPTY_SEGMENTS -DUSE_MILLI_SECONDS -c -o xsysinfo.o xsysinfo.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 xsysinfo.c:24: /usr/include/features.h:199:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 199 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ xsysinfo.c: In function 'getloadavgCB': xsysinfo.c:106:13: warning: old-style function definition [-Wold-style-definition] 106 | static void getloadavgCB( widget, client_data, call_data ) | ^~~~~~~~~~~~ xsysinfo.c: In function 'getloadCB': xsysinfo.c:115:13: warning: old-style function definition [-Wold-style-definition] 115 | static void getloadCB( widget, client_data, call_data ) | ^~~~~~~~~ xsysinfo.c: In function 'getmemCB': xsysinfo.c:144:13: warning: old-style function definition [-Wold-style-definition] 144 | static void getmemCB( widget, client_data, call_data ) | ^~~~~~~~ xsysinfo.c: In function 'getswapCB': xsysinfo.c:168:13: warning: old-style function definition [-Wold-style-definition] 168 | static void getswapCB( widget, client_data, call_data ) | ^~~~~~~~~ xsysinfo.c: In function 'create_gauge': xsysinfo.c:190:15: warning: old-style function definition [-Wold-style-definition] 190 | static Widget create_gauge( name, parent, segs, valueproc, client_data ) | ^~~~~~~~~~~~ xsysinfo.c: In function 'create_app': xsysinfo.c:225:13: warning: old-style function definition [-Wold-style-definition] 225 | static void create_app( top ) | ^~~~~~~~~~ xsysinfo.c: In function 'main': xsysinfo.c:330:1: warning: old-style function definition [-Wold-style-definition] 330 | main( argc, argv ) | ^~~~ xsysinfo.c:271:53: warning: '%d' directive writing between 1 and 10 bytes into a region of size 4 [-Wformat-overflow=] 271 | sprintf(bufptr, "cpu%d ", i); | ^~ In function 'create_app', inlined from 'main' at xsysinfo.c:359:2: xsysinfo.c:271:49: note: directive argument in the range [0, 2147483646] 271 | sprintf(bufptr, "cpu%d ", i); | ^~~~~~~~ In file included from /usr/include/stdio.h:970, from xsysinfo.c:29: In function 'sprintf', inlined from 'create_app' at xsysinfo.c:271:5, inlined from 'main' at xsysinfo.c:359:2: /usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 6 and 15 bytes into a destination of size 7 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.mhjDBU (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.mhjDBU (%build) I: [iurt_root_command] ERROR: chroot