+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/xosview.spec --define "debug_package %{nil}" --undefine _annotated_build --define "_missing_doc_files_terminate_build %{nil}" --define "_emacs_sitestartdir /usr/share/emacs/site-lisp/site-start.d" --define "_emacs_sitelispdir /usr/share/emacs/site-lisp" --nocheck ' mockbuild Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.2g4078 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf xosview-1.20 + /usr/bin/gzip -dc /builddir/build/SOURCES/xosview-1.20.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd xosview-1.20 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (xosview-1.11-app-def.patch):' Patch #0 (xosview-1.11-app-def.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Xrm.cc + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.0BLcDH + umask 022 + cd /builddir/build/BUILD + cd xosview-1.20 + make -j4 'OPTFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 ' g++ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I. -MMD -Ilinux/ -c -o Host.o Host.cc g++ -Wno-write-strings -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I. -MMD -Ilinux/ -c -o Xrm.o Xrm.cc g++ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I. -MMD -Ilinux/ -c -o bitfieldmeter.o bitfieldmeter.cc g++ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I. -MMD -Ilinux/ -c -o bitmeter.o bitmeter.cc awk -f defresources.awk Xdefaults > defaultstring.cc g++ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I. -MMD -Ilinux/ -c -o fieldmeter.o fieldmeter.cc g++ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I. -MMD -Ilinux/ -c -o fieldmeterdecay.o fieldmeterdecay.cc g++ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I. -MMD -Ilinux/ -c -o fieldmetergraph.o fieldmetergraph.cc g++ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I. -MMD -Ilinux/ -c -o llist.o llist.cc llist.cc: In member function 'int LList::restore(int, FILE*)': llist.cc:252:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result] fread ( &i, sizeof ( int ), 1, fp ); ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I. -MMD -Ilinux/ -c -o main.o main.cc g++ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I. -MMD -Ilinux/ -c -o meter.o meter.cc g++ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I. -MMD -Ilinux/ -c -o xosview.o xosview.cc g++ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I. -MMD -Ilinux/ -c -o xwin.o xwin.cc g++ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I. -MMD -Ilinux/ -c -o sensorfieldmeter.o sensorfieldmeter.cc g++ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I. -MMD -Ilinux/ -c -o linux/MeterMaker.o linux/MeterMaker.cc g++ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I. -MMD -Ilinux/ -c -o linux/btrymeter.o linux/btrymeter.cc g++ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I. -MMD -Ilinux/ -c -o linux/cpumeter.o linux/cpumeter.cc g++ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I. -MMD -Ilinux/ -c -o linux/diskmeter.o linux/diskmeter.cc linux/MeterMaker.cc: In member function 'void MeterMaker::makeMeters()': linux/MeterMaker.cc:43:6: warning: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 9 [-Wformat-truncation=] void MeterMaker::makeMeters(void){ ^~~~~~~~~~ linux/MeterMaker.cc:43:6: note: directive argument in the range [1, 2147483647] In file included from /usr/include/stdio.h:861:0, from ./llist.h:10, from ./pllist.h:10, from linux/MeterMaker.h:10, from linux/MeterMaker.cc:7: /usr/include/bits/stdio2.h:68:44: note: '__builtin___snprintf_chk' output between 9 and 18 bytes into a destination of size 16 __bos (__s), __fmt, __va_arg_pack ()); ^ linux/MeterMaker.cc:43:6: warning: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 9 [-Wformat-truncation=] void MeterMaker::makeMeters(void){ ^~~~~~~~~~ linux/MeterMaker.cc:43:6: note: directive argument in the range [1, 2147483647] In file included from /usr/include/stdio.h:861:0, from ./llist.h:10, from ./pllist.h:10, from linux/MeterMaker.h:10, from linux/MeterMaker.cc:7: /usr/include/bits/stdio2.h:68:44: note: '__builtin___snprintf_chk' output between 9 and 18 bytes into a destination of size 16 __bos (__s), __fmt, __va_arg_pack ()); ^ linux/MeterMaker.cc:43:6: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] void MeterMaker::makeMeters(void){ ^~~~~~~~~~ In file included from /usr/include/stdio.h:861:0, from ./llist.h:10, from ./pllist.h:10, from linux/MeterMaker.h:10, from linux/MeterMaker.cc:7: /usr/include/bits/stdio2.h:68:44: note: '__builtin___snprintf_chk' output between 8 and 17 bytes into a destination of size 16 __bos (__s), __fmt, __va_arg_pack ()); ^ linux/MeterMaker.cc:43:6: warning: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 9 [-Wformat-truncation=] void MeterMaker::makeMeters(void){ ^~~~~~~~~~ linux/MeterMaker.cc:43:6: note: directive argument in the range [1, 2147483647] In file included from /usr/include/stdio.h:861:0, from ./llist.h:10, from ./pllist.h:10, from linux/MeterMaker.h:10, from linux/MeterMaker.cc:7: /usr/include/bits/stdio2.h:68:44: note: '__builtin___snprintf_chk' output between 9 and 18 bytes into a destination of size 16 __bos (__s), __fmt, __va_arg_pack ()); ^ linux/MeterMaker.cc:43:6: warning: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 4 [-Wformat-truncation=] void MeterMaker::makeMeters(void){ ^~~~~~~~~~ linux/MeterMaker.cc:43:6: note: directive argument in the range [1, 2147483647] In file included from /usr/include/stdio.h:861:0, from ./llist.h:10, from ./pllist.h:10, from linux/MeterMaker.h:10, from linux/MeterMaker.cc:7: /usr/include/bits/stdio2.h:68:44: note: '__builtin___snprintf_chk' output between 14 and 23 bytes into a destination of size 16 __bos (__s), __fmt, __va_arg_pack ()); ^ linux/MeterMaker.cc:43:6: warning: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 8 [-Wformat-truncation=] void MeterMaker::makeMeters(void){ ^~~~~~~~~~ linux/MeterMaker.cc:43:6: note: directive argument in the range [1, 2147483647] In file included from /usr/include/stdio.h:861:0, from ./llist.h:10, from ./pllist.h:10, from linux/MeterMaker.h:10, from linux/MeterMaker.cc:7: /usr/include/bits/stdio2.h:68:44: note: '__builtin___snprintf_chk' output between 10 and 19 bytes into a destination of size 16 __bos (__s), __fmt, __va_arg_pack ()); ^ linux/MeterMaker.cc:43:6: warning: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 8 [-Wformat-truncation=] void MeterMaker::makeMeters(void){ ^~~~~~~~~~ linux/MeterMaker.cc:43:6: note: directive argument in the range [1, 2147483647] In file included from /usr/include/stdio.h:861:0, from ./llist.h:10, from ./pllist.h:10, from linux/MeterMaker.h:10, from linux/MeterMaker.cc:7: /usr/include/bits/stdio2.h:68:44: note: '__builtin___snprintf_chk' output between 10 and 19 bytes into a destination of size 16 __bos (__s), __fmt, __va_arg_pack ()); ^ linux/MeterMaker.cc:43:6: warning: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 3 [-Wformat-truncation=] void MeterMaker::makeMeters(void){ ^~~~~~~~~~ linux/MeterMaker.cc:43:6: note: directive argument in the range [1, 2147483647] In file included from /usr/include/stdio.h:861:0, from ./llist.h:10, from ./pllist.h:10, from linux/MeterMaker.h:10, from linux/MeterMaker.cc:7: /usr/include/bits/stdio2.h:68:44: note: '__builtin___snprintf_chk' output between 15 and 24 bytes into a destination of size 16 __bos (__s), __fmt, __va_arg_pack ()); ^ linux/btrymeter.cc: In static member function 'static bool BtryMeter::has_syspower()': linux/btrymeter.cc:109:6: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 56 [-Wformat-truncation=] bool BtryMeter::has_syspower( void ){ ^~~~~~~~~ In file included from /usr/include/stdio.h:861:0, from /usr/include/c++/7/cstdio:42, from /usr/include/c++/7/ext/string_conversions.h:43, from /usr/include/c++/7/bits/basic_string.h:6349, from /usr/include/c++/7/string:52, from /usr/include/c++/7/bits/locale_classes.h:40, from /usr/include/c++/7/bits/ios_base.h:41, from /usr/include/c++/7/ios:42, from /usr/include/c++/7/ostream:38, from /usr/include/c++/7/iostream:39, from ./Xrm.h:12, from ./xwin.h:4, from ./xosview.h:10, from ./meter.h:10, from ./fieldmeter.h:10, from linux/btrymeter.h:10, from linux/btrymeter.cc:7: /usr/include/bits/stdio2.h:68:44: note: '__builtin___snprintf_chk' output between 25 and 280 bytes into a destination of size 80 __bos (__s), __fmt, __va_arg_pack ()); ^ g++ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I. -MMD -Ilinux/ -c -o linux/intmeter.o linux/intmeter.cc g++ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I. -MMD -Ilinux/ -c -o linux/intratemeter.o linux/intratemeter.cc g++ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I. -MMD -Ilinux/ -c -o linux/lmstemp.o linux/lmstemp.cc g++ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I. -MMD -Ilinux/ -c -o linux/loadmeter.o linux/loadmeter.cc g++ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I. -MMD -Ilinux/ -c -o linux/memmeter.o linux/memmeter.cc g++ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I. -MMD -Ilinux/ -c -o linux/netmeter.o linux/netmeter.cc g++ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I. -MMD -Ilinux/ -c -o linux/nfsmeter.o linux/nfsmeter.cc g++ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I. -MMD -Ilinux/ -c -o linux/pagemeter.o linux/pagemeter.cc g++ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I. -MMD -Ilinux/ -c -o linux/raidmeter.o linux/raidmeter.cc linux/netmeter.cc: In member function 'void NetMeter::getSysStats(long long unsigned int&, long long unsigned int&)': linux/netmeter.cc:119:6: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 113 [-Wformat-truncation=] void NetMeter::getSysStats( unsigned long long &totin, unsigned long long &totout ){ ^~~~~~~~ In file included from /usr/include/stdio.h:861:0, from /usr/include/c++/7/cstdio:42, from /usr/include/c++/7/ext/string_conversions.h:43, from /usr/include/c++/7/bits/basic_string.h:6349, from /usr/include/c++/7/string:52, from /usr/include/c++/7/bits/locale_classes.h:40, from /usr/include/c++/7/bits/ios_base.h:41, from /usr/include/c++/7/ios:42, from /usr/include/c++/7/ostream:38, from /usr/include/c++/7/iostream:39, from ./Xrm.h:12, from ./xwin.h:4, from ./xosview.h:10, from ./meter.h:10, from ./fieldmeter.h:10, from ./fieldmeterdecay.h:19, from ./fieldmetergraph.h:15, from linux/netmeter.h:10, from linux/netmeter.cc:10: /usr/include/bits/stdio2.h:68:44: note: '__builtin___snprintf_chk' output between 36 and 291 bytes into a destination of size 128 __bos (__s), __fmt, __va_arg_pack ()); ^ linux/netmeter.cc:119:6: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 113 [-Wformat-truncation=] void NetMeter::getSysStats( unsigned long long &totin, unsigned long long &totout ){ ^~~~~~~~ In file included from /usr/include/stdio.h:861:0, from /usr/include/c++/7/cstdio:42, from /usr/include/c++/7/ext/string_conversions.h:43, from /usr/include/c++/7/bits/basic_string.h:6349, from /usr/include/c++/7/string:52, from /usr/include/c++/7/bits/locale_classes.h:40, from /usr/include/c++/7/bits/ios_base.h:41, from /usr/include/c++/7/ios:42, from /usr/include/c++/7/ostream:38, from /usr/include/c++/7/iostream:39, from ./Xrm.h:12, from ./xwin.h:4, from ./xosview.h:10, from ./meter.h:10, from ./fieldmeter.h:10, from ./fieldmeterdecay.h:19, from ./fieldmetergraph.h:15, from linux/netmeter.h:10, from linux/netmeter.cc:10: /usr/include/bits/stdio2.h:68:44: note: '__builtin___snprintf_chk' output between 36 and 291 bytes into a destination of size 128 __bos (__s), __fmt, __va_arg_pack ()); ^ g++ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I. -MMD -Ilinux/ -c -o linux/serialmeter.o linux/serialmeter.cc linux/nfsmeter.cc: In member function 'virtual void NFSDStats::checkevent()': linux/nfsmeter.cc:96:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (t < 0) ^~ linux/nfsmeter.cc:99:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' maxpackets_ = MAX(netcnt, calls) - _lastNetCnt; ^~~~~~~~~~~ linux/nfsmeter.cc: In member function 'virtual void NFSStats::checkevent()': linux/nfsmeter.cc:178:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (t < 0) ^~ linux/nfsmeter.cc:181:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' maxpackets_ = calls - _lastcalls; ^~~~~~~~~~~ linux/serialmeter.cc:34:10: fatal error: sys/io.h: No such file or directory #include ^~~~~~~~~~ compilation terminated. make: *** [: linux/serialmeter.o] Error 1 make: *** Waiting for unfinished jobs.... error: Bad exit status from /var/tmp/rpm-tmp.0BLcDH (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.0BLcDH (%build) ++ cleanup ++ set +e ++ sync ++ sleep 5 ++ sync ++ poweroff Terminated +++ cleanup +++ set +e +++ sync ++++ cleanup ++++ set +e ++++ sync ++++ sleep 5 ++++ sync ++++ poweroff