D: [iurt_root_command] chroot warning: %make is deprecated, use %make_build instead Installing /home/iurt/rpmbuild/SRPMS/wmsysmon-0.7.8-1.mga8.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.5wIwlP + umask 022 + cd /home/iurt/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/iurt/rpmbuild/BUILD + rm -rf wmsysmon-0.7.8 + /usr/bin/gzip -dc /home/iurt/rpmbuild/SOURCES/wmsysmon-0.7.8.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd wmsysmon-0.7.8 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /home/iurt/rpmbuild/SOURCES/0001-Don-t-assume-that-that-variables-from-proc-vmstat-oc.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /home/iurt/rpmbuild/SOURCES/0002-Don-t-assume-that-that-variables-from-proc-meminfo-o.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /home/iurt/rpmbuild/SOURCES/0003-Install-bin-directory-and-do-not-set-owner-and-group.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.dtiUXN + umask 022 + cd /home/iurt/rpmbuild/BUILD + cd wmsysmon-0.7.8 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd src + /usr/bin/make -O -j8 'CFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -DHI_INTS' 'LDFLAGS= -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -lX11 -lXext -lXpm -lm' cc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -DHI_INTS -c -o cpu_linux.o cpu_linux.c cpu_linux.c: In function 'cpu_get_usage': cpu_linux.c:58:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 58 | fscanf(fp, "%*s %d %d %d %d", &cpu, &nice, &system, &idle); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cpu_linux.c: In function 'set_pidlist_from_namelist': cpu_linux.c:139:5: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] 139 | chdir("/proc"); | ^~~~~~~~~~~~~~ cpu_linux.c:146:3: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 146 | fscanf(fp, "%*d (%[^)]", comm); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cpu_linux.c: In function 'get_cpuusage_bypid': cpu_linux.c:175:2: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 175 | fscanf(fp, "%*d %*s %*s %*d %*d %*d %*d %*d %*d %*d %*d %*d %*d %d %d ", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 176 | &utime, &stime); | ~~~~~~~~~~~~~~~ cc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -DHI_INTS -c -o wmgeneral.o wmgeneral.c cc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -DHI_INTS -c -o wmsysmon.o wmsysmon.c wmsysmon.c: In function 'wmsysmon_routine': wmsysmon.c:292:3: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 292 | fscanf(fp, "%ld", &start_time); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -lX11 -lXext -lXpm -lm wmgeneral.o wmsysmon.o cpu_linux.o -lXpm -lXext -lX11 -lm -o wmsysmon /usr/bin/ld: wmsysmon.o:/home/iurt/rpmbuild/BUILD/wmsysmon-0.7.8/src/wmgeneral.h:41: multiple definition of `display'; wmgeneral.o:/home/iurt/rpmbuild/BUILD/wmsysmon-0.7.8/src/wmgeneral.h:41: first defined here collect2: error: ld returned 1 exit status make: *** [Makefile:13: wmsysmon] Error 1 error: Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.dtiUXN (%build) RPM build errors: %make is deprecated, use %make_build instead Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.dtiUXN (%build) I: [iurt_root_command] ERROR: chroot