Mock Version: 1.4.9 Mock Version: 1.4.9 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/acpitool.spec'], chrootPath='/var/lib/mock/f29-build-11548-5223/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8', 'http_proxy': 'http://192.168.0.254:3128', 'https_proxy': 'http://192.168.0.254:3128'}shell=Falselogger=timeout=345600uid=998gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/acpitool.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8', 'http_proxy': 'http://192.168.0.254:3128', 'https_proxy': 'http://192.168.0.254:3128'} and shell False Building target platforms: riscv64 Building for target riscv64 Wrote: /builddir/build/SRPMS/acpitool-0.5.1-16.fc29.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/acpitool.spec'], chrootPath='/var/lib/mock/f29-build-11548-5223/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8', 'http_proxy': 'http://192.168.0.254:3128', 'https_proxy': 'http://192.168.0.254:3128'}shell=Falselogger=timeout=345600uid=998gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/acpitool.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8', 'http_proxy': 'http://192.168.0.254:3128', 'https_proxy': 'http://192.168.0.254:3128'} and shell False Building target platforms: riscv64 Building for target riscv64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.0H2vuQ + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf acpitool-0.5.1 + /usr/bin/bzip2 -dc /builddir/build/SOURCES/acpitool-0.5.1.tar.bz2 + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd acpitool-0.5.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.JUDD7W + umask 022 + cd /builddir/build/BUILD + cd acpitool-0.5.1 + CFLAGS='-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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + '[' 1 = 1 ']' BUILDSTDERR: +++ dirname ./configure BUILDSTDERR: ++ find . -name config.guess -o -name config.sub + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) BUILDSTDERR: ++ basename ./config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./config.sub BUILDSTDERR: ++ basename ./config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub '/usr/lib/rpm/redhat/config.sub' -> './config.sub' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) BUILDSTDERR: ++ basename ./config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./config.guess BUILDSTDERR: ++ basename ./config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config.guess '/usr/lib/rpm/redhat/config.guess' -> './config.guess' + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' ']' BUILDSTDERR: ++ find . -name ltmain.sh + ./configure --build=riscv64-koji-linux-gnu --host=riscv64-koji-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking build system type... riscv64-koji-linux-gnu checking host system type... riscv64-koji-linux-gnu checking for riscv64-koji-linux-gnu-g++... no checking for riscv64-koji-linux-gnu-c++... no checking for riscv64-koji-linux-gnu-gpp... no checking for riscv64-koji-linux-gnu-aCC... no checking for riscv64-koji-linux-gnu-CC... no checking for riscv64-koji-linux-gnu-cxx... no checking for riscv64-koji-linux-gnu-cc++... no checking for riscv64-koji-linux-gnu-cl.exe... no checking for riscv64-koji-linux-gnu-FCC... no checking for riscv64-koji-linux-gnu-KCC... no checking for riscv64-koji-linux-gnu-RCC... no checking for riscv64-koji-linux-gnu-xlC_r... no checking for riscv64-koji-linux-gnu-xlC... no checking for g++... g++ checking for C++ compiler default output file name... a.out checking whether the C++ compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for style of include used by make... GNU checking dependency style of g++... none checking for riscv64-koji-linux-gnu-gcc... no checking for gcc... gcc checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking dependency style of gcc... none checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for unistd.h... (cached) yes checking for an ANSI C-conforming const... yes checking whether closedir returns void... no checking for strdup... yes checking for memset... yes checking for strtol... yes checking for a BSD-compatible install... /usr/bin/install -c configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating man/Makefile config.status: creating config.h config.status: executing depfiles commands +-----------------------------------------------------------------------------------+ | Run make && make install when the configure script has finished without problems. | +-----------------------------------------------------------------------------------+ + make -j4 make all-recursive make[1]: Entering directory '/builddir/build/BUILD/acpitool-0.5.1' Making all in src make[2]: Entering directory '/builddir/build/BUILD/acpitool-0.5.1/src' g++ -DHAVE_CONFIG_H -I. -I. -I.. -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c -o main.o main.cpp g++ -DHAVE_CONFIG_H -I. -I. -I.. -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c -o acpitool.o acpitool.cpp g++ -DHAVE_CONFIG_H -I. -I. -I.. -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c -o ac_adapter.o ac_adapter.cpp g++ -DHAVE_CONFIG_H -I. -I. -I.. -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c -o toshiba.o toshiba.cpp BUILDSTDERR: toshiba.cpp: In function 'int Has_Toshiba_ACPI()': BUILDSTDERR: toshiba.cpp:50:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] BUILDSTDERR: filename = "/proc/acpi/toshiba"; BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: ac_adapter.cpp: In function 'int Do_AC_Info(int)': BUILDSTDERR: ac_adapter.cpp:62:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] BUILDSTDERR: dirname = "/proc/acpi/ac_adapter/"; BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: ac_adapter.cpp:53:37: warning: unused variable 'str' [-Wunused-variable] BUILDSTDERR: char *dirname, filename[4][50], str[40]; BUILDSTDERR: ^~~ BUILDSTDERR: ac_adapter.cpp: In function 'int Do_AC_Info_Proc(int)': BUILDSTDERR: ac_adapter.cpp:99:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] BUILDSTDERR: dirname = "/proc/acpi/ac_adapter/"; BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: ac_adapter.cpp: In function 'int Do_AC_Info_Sys()': BUILDSTDERR: ac_adapter.cpp:157:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] BUILDSTDERR: dirname = "/sys/class/power_supply/"; //find all entries in this dir BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: toshiba.cpp: In function 'int Do_Toshiba_Fan_Info()': BUILDSTDERR: toshiba.cpp:87:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] BUILDSTDERR: filename = "/proc/acpi/toshiba/fan"; BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: ac_adapter.cpp:223:23: warning: format '%[^ BUILDSTDERR: ' expects a matching 'char*' argument [-Wformat=] BUILDSTDERR: sscanf(str, "%*[^=] %*c %s %[^\n]",temp); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: ac_adapter.cpp:153:23: warning: unused variable 'start' [-Wunused-variable] BUILDSTDERR: int ac_count = 0, start = 0, findex = 0; BUILDSTDERR: ^~~~~ BUILDSTDERR: toshiba.cpp: In function 'int Do_LCD_Info()': BUILDSTDERR: toshiba.cpp:137:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] BUILDSTDERR: filename = "/proc/acpi/toshiba/lcd"; BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: toshiba.cpp: In function 'int Force_Fan(int)': BUILDSTDERR: toshiba.cpp:171:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] BUILDSTDERR: filename = "/proc/acpi/toshiba/fan"; BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: toshiba.cpp: In function 'int Set_LCD_Level(int)': BUILDSTDERR: toshiba.cpp:205:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] BUILDSTDERR: filename = "/proc/acpi/toshiba/lcd"; BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: toshiba.cpp: In function 'int Do_Video_Info()': BUILDSTDERR: toshiba.cpp:236:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] BUILDSTDERR: filename = "/proc/acpi/toshiba/video"; BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: acpitool.cpp: In function 'int Has_ACPI(char*)': BUILDSTDERR: acpitool.cpp:69:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] BUILDSTDERR: filename = "/proc/acpi/info"; BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: acpitool.cpp:70:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] BUILDSTDERR: filename2 = "/sys/module/acpi/parameters/acpica_version"; BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: acpitool.cpp: In function 'int Get_Kernel_Version(char*, int)': BUILDSTDERR: acpitool.cpp:142:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] BUILDSTDERR: filename = "/proc/sys/kernel/osrelease"; BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: acpitool.cpp: In function 'int Set_Kernel_Version()': BUILDSTDERR: acpitool.cpp:190:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] BUILDSTDERR: filename = "/proc/sys/kernel/osrelease"; BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: acpitool.cpp: In function 'int Do_Thermal_Info(int, int)': BUILDSTDERR: acpitool.cpp:232:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] BUILDSTDERR: dirname = "/proc/acpi/thermal_zone/"; BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: acpitool.cpp: In function 'int Do_Fan_Info(int)': BUILDSTDERR: acpitool.cpp:366:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] BUILDSTDERR: dirname = "/proc/acpi/fan/"; BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: acpitool.cpp: In function 'int Show_WakeUp_Devices(int)': BUILDSTDERR: acpitool.cpp:422:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] BUILDSTDERR: filename = "/proc/acpi/wakeup"; BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: ac_adapter.cpp:183:13: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fscanf(temp_fp, "%s", str); BUILDSTDERR: ~~~~~~^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: ac_adapter.cpp:215:12: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets(str, 100, power_fp); /* just skip the first 5 lines */ BUILDSTDERR: ~~~~~^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: ac_adapter.cpp:218:8: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets(str, 100, power_fp); BUILDSTDERR: ~~~~~^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: acpitool.cpp: In function 'int Toggle_WakeUp_Device(int, int)': BUILDSTDERR: acpitool.cpp:469:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] BUILDSTDERR: filename = "/proc/acpi/wakeup"; BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: acpitool.cpp: In function 'int Do_Suspend(int)': BUILDSTDERR: acpitool.cpp:535:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] BUILDSTDERR: filename = "/proc/acpi/sleep"; // nice default values // BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: acpitool.cpp:536:11: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] BUILDSTDERR: str = "3"; BUILDSTDERR: ^~~ BUILDSTDERR: acpitool.cpp:542:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] BUILDSTDERR: filename = "/sys/power/state"; BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: acpitool.cpp:543:13: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] BUILDSTDERR: str = "mem"; BUILDSTDERR: ^~~~~ BUILDSTDERR: acpitool.cpp:546:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] BUILDSTDERR: case 4 : if(Kernel_24) str = "4"; BUILDSTDERR: ^~~ BUILDSTDERR: acpitool.cpp:549:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] BUILDSTDERR: filename = "/sys/power/state"; BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: acpitool.cpp:550:13: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] BUILDSTDERR: str = "disk"; BUILDSTDERR: ^~~~~~ g++ -DHAVE_CONFIG_H -I. -I. -I.. -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c -o asus.o asus.cpp BUILDSTDERR: acpitool.cpp: In function 'int Has_ACPI(char*)': BUILDSTDERR: acpitool.cpp:66:14: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: ifstream file_in, file2_in; BUILDSTDERR: ^~~~~~~ BUILDSTDERR: ac_adapter.cpp:176:17: warning: '%s' directive writing up to 255 bytes into a region of size 76 [-Wformat-overflow=] BUILDSTDERR: sprintf(temp, "/sys/class/power_supply/%s/type", name); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:861, BUILDSTDERR: from /usr/include/c++/8/cstdio:42, BUILDSTDERR: from /usr/include/c++/8/ext/string_conversions.h:43, BUILDSTDERR: from /usr/include/c++/8/bits/basic_string.h:6361, BUILDSTDERR: from /usr/include/c++/8/string:52, BUILDSTDERR: from /usr/include/c++/8/bits/locale_classes.h:40, BUILDSTDERR: from /usr/include/c++/8/bits/ios_base.h:41, BUILDSTDERR: from /usr/include/c++/8/ios:42, BUILDSTDERR: from /usr/include/c++/8/ostream:38, BUILDSTDERR: from /usr/include/c++/8/iostream:39, BUILDSTDERR: from ac_adapter.cpp:35: BUILDSTDERR: /usr/include/bits/stdio2.h:36:34: note: '__builtin___sprintf_chk' output between 30 and 285 bytes into a destination of size 100 BUILDSTDERR: return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: acpitool.cpp: In function 'int Do_Thermal_Info(int, int)': BUILDSTDERR: acpitool.cpp:324:9: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets(str, 120, fp); BUILDSTDERR: ~~~~~^~~~~~~~~~~~~~ g++ -DHAVE_CONFIG_H -I. -I. -I.. -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c -o thinkpad.o thinkpad.cpp g++ -DHAVE_CONFIG_H -I. -I. -I.. -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c -o cpu.o cpu.cpp BUILDSTDERR: acpitool.cpp:255:51: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 231 [-Wformat-truncation=] BUILDSTDERR: snprintf(tmp_fname, sizeof (tmp_fname) - 1, "/proc/acpi/thermal_zone/%s/state", name); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:861, BUILDSTDERR: from /usr/include/c++/8/cstdio:42, BUILDSTDERR: from /usr/include/c++/8/ext/string_conversions.h:43, BUILDSTDERR: from /usr/include/c++/8/bits/basic_string.h:6361, BUILDSTDERR: from /usr/include/c++/8/string:52, BUILDSTDERR: from /usr/include/c++/8/bits/locale_classes.h:40, BUILDSTDERR: from /usr/include/c++/8/bits/ios_base.h:41, BUILDSTDERR: from /usr/include/c++/8/ios:42, BUILDSTDERR: from /usr/include/c++/8/ostream:38, BUILDSTDERR: from /usr/include/c++/8/iostream:39, BUILDSTDERR: from acpitool.cpp:37: BUILDSTDERR: /usr/include/bits/stdio2.h:67:35: note: '__builtin___snprintf_chk' output between 31 and 286 bytes into a destination of size 255 BUILDSTDERR: return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: acpitool.cpp:258:51: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 231 [-Wformat-truncation=] BUILDSTDERR: snprintf(tmp_fname, sizeof (tmp_fname) - 1, "/proc/acpi/thermal_zone/%s/temperature", name); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:861, BUILDSTDERR: from /usr/include/c++/8/cstdio:42, BUILDSTDERR: from /usr/include/c++/8/ext/string_conversions.h:43, BUILDSTDERR: from /usr/include/c++/8/bits/basic_string.h:6361, BUILDSTDERR: from /usr/include/c++/8/string:52, BUILDSTDERR: from /usr/include/c++/8/bits/locale_classes.h:40, BUILDSTDERR: from /usr/include/c++/8/bits/ios_base.h:41, BUILDSTDERR: from /usr/include/c++/8/ios:42, BUILDSTDERR: from /usr/include/c++/8/ostream:38, BUILDSTDERR: from /usr/include/c++/8/iostream:39, BUILDSTDERR: from acpitool.cpp:37: BUILDSTDERR: /usr/include/bits/stdio2.h:67:35: note: '__builtin___snprintf_chk' output between 37 and 292 bytes into a destination of size 255 BUILDSTDERR: return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: acpitool.cpp:261:51: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 231 [-Wformat-truncation=] BUILDSTDERR: snprintf(tmp_fname, sizeof (tmp_fname) - 1, "/proc/acpi/thermal_zone/%s/trip_points", name); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:861, BUILDSTDERR: from /usr/include/c++/8/cstdio:42, BUILDSTDERR: from /usr/include/c++/8/ext/string_conversions.h:43, BUILDSTDERR: from /usr/include/c++/8/bits/basic_string.h:6361, BUILDSTDERR: from /usr/include/c++/8/string:52, BUILDSTDERR: from /usr/include/c++/8/bits/locale_classes.h:40, BUILDSTDERR: from /usr/include/c++/8/bits/ios_base.h:41, BUILDSTDERR: from /usr/include/c++/8/ios:42, BUILDSTDERR: from /usr/include/c++/8/ostream:38, BUILDSTDERR: from /usr/include/c++/8/iostream:39, BUILDSTDERR: from acpitool.cpp:37: BUILDSTDERR: /usr/include/bits/stdio2.h:67:35: note: '__builtin___snprintf_chk' output between 37 and 292 bytes into a destination of size 255 BUILDSTDERR: return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: asus.cpp: In function 'int Has_Asus_ACPI()': BUILDSTDERR: asus.cpp:50:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] BUILDSTDERR: filename = "/proc/acpi/asus"; BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: asus.cpp: In function 'int Do_Asus_LCD_Info()': BUILDSTDERR: asus.cpp:87:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] BUILDSTDERR: filename = "/proc/acpi/asus/brn"; BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: asus.cpp: In function 'int Set_Asus_LCD_Level(int)': BUILDSTDERR: asus.cpp:121:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] BUILDSTDERR: filename = "/proc/acpi/asus/brn"; BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: asus.cpp: In function 'int Do_Asus_Video_Info()': BUILDSTDERR: asus.cpp:149:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] BUILDSTDERR: filename = "/proc/acpi/asus/disp"; BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: asus.cpp: In function 'int Do_Asus_Info()': BUILDSTDERR: asus.cpp:204:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] BUILDSTDERR: filename = "/proc/acpi/asus/info"; BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: asus.cpp: In function 'int Set_Asus_LCD_State(int)': BUILDSTDERR: asus.cpp:268:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] BUILDSTDERR: filename = "/proc/acpi/asus/lcd"; BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: asus.cpp: In function 'int Set_MLed(int)': BUILDSTDERR: asus.cpp:293:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] BUILDSTDERR: filename = "/proc/acpi/asus/mled"; BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: asus.cpp: In function 'int Set_WLed(int)': BUILDSTDERR: asus.cpp:318:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] BUILDSTDERR: filename = "/proc/acpi/asus/wled"; BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: thinkpad.cpp: In function 'int Has_Thinkpad_ACPI()': BUILDSTDERR: thinkpad.cpp:17:13: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] BUILDSTDERR: filename = "/proc/acpi/ibm"; BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: thinkpad.cpp: In function 'int Eject_Thinkpad_Bay()': BUILDSTDERR: thinkpad.cpp:38:13: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] BUILDSTDERR: filename = "/proc/acpi/ibm/bay"; BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: thinkpad.cpp: In function 'int Set_Thinkpad_LCD_Level(int)': BUILDSTDERR: thinkpad.cpp:59:13: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] BUILDSTDERR: filename = "/proc/acpi/ibm/brightness"; BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: thinkpad.cpp: In function 'int Do_Thinkpad_Fan_Info()': BUILDSTDERR: thinkpad.cpp:85:13: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] BUILDSTDERR: filename = "/proc/acpi/ibm/fan"; BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~ g++ -DHAVE_CONFIG_H -I. -I. -I.. -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c -o battery.o battery.cpp BUILDSTDERR: cpu.cpp: In function 'int Show_CPU_Info()': BUILDSTDERR: cpu.cpp:107:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] BUILDSTDERR: dirname = "/proc/acpi/processor/"; //find all entries in this dir // BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: cpu.cpp:55:16: warning: variable 'bm_activity' set but not used [-Wunused-but-set-variable] BUILDSTDERR: long long int bm_activity; BUILDSTDERR: ^~~~~~~~~~~ g++ -DHAVE_CONFIG_H -I. -I. -I.. -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c -o freq.o freq.cpp BUILDSTDERR: cpu.cpp:64:31: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: for(int t=0; t<4; t++) fgets(str, 299, cpuinfo_fp); // skip 4 lines // BUILDSTDERR: ~~~~~^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: cpu.cpp:65:8: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets(str, 299, cpuinfo_fp); BUILDSTDERR: ~~~~~^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: cpu.cpp:69:8: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets(str, 299, cpuinfo_fp); BUILDSTDERR: ~~~~~^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: cpu.cpp:70:8: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets(str, 299, cpuinfo_fp); BUILDSTDERR: ~~~~~^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: cpu.cpp:81:8: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets(str, 299, cpuinfo_fp); BUILDSTDERR: ~~~~~^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: cpu.cpp:86:31: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: for(int t=0; t<5; t++) fgets(str, 299, cpuinfo_fp); // we can skip at least 5 lines to reach Bogomips line// BUILDSTDERR: ~~~~~^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: cpu.cpp:90:12: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets(str, 299, cpuinfo_fp); // different for Amd64, Opteron, Core Duo, P4 with Ht, ... // BUILDSTDERR: ~~~~~^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: cpu.cpp:213:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets(str, 100, power_fp); // active state BUILDSTDERR: ~~~~~^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: cpu.cpp:220:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets(str, 100, power_fp); // max_cstate BUILDSTDERR: ~~~~~^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: cpu.cpp:229:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets(str, 100, power_fp); // bus master activity BUILDSTDERR: ~~~~~^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: cpu.cpp:236:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets(str, 100, power_fp); // states (line contains no information) BUILDSTDERR: ~~~~~^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: cpu.cpp:239:11: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets(str, 130, power_fp); // cstate Cx BUILDSTDERR: ~~~~~^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: cpu.cpp:285:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets(str, 100, throt_fp); // active state BUILDSTDERR: ~~~~~^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: cpu.cpp:289:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets(str, 100, throt_fp); BUILDSTDERR: ~~~~~^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: battery.cpp: In function 'int Do_Battery_Stuff(int, int, int)': BUILDSTDERR: battery.cpp:69:23: warning: variable 'Use_Sys' set but not used [-Wunused-but-set-variable] BUILDSTDERR: int Use_Proc = 0, Use_Sys = 0; BUILDSTDERR: ^~~~~~~ BUILDSTDERR: battery.cpp: In function 'int Get_Battery_Info_from_Proc(int, Battery_Info*, int)': BUILDSTDERR: battery.cpp:338:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] BUILDSTDERR: dirname = "/proc/acpi/battery/"; //find all entries in this dir BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: battery.cpp: In function 'int Get_Battery_Info_from_Sys(int, Battery_Info*, int)': BUILDSTDERR: battery.cpp:521:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] BUILDSTDERR: dirname = "/sys/class/power_supply/"; //find all entries in this dir BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: battery.cpp:626:22: warning: format '%[^ BUILDSTDERR: ' expects a matching 'char*' argument [-Wformat=] BUILDSTDERR: sscanf(str, "%*[^=] %*c %s %[^\n]",temp); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: battery.cpp:655:22: warning: format '%[^ BUILDSTDERR: ' expects a matching 'char*' argument [-Wformat=] BUILDSTDERR: sscanf(str, "%*[^=] %*c %s %[^\n]",temp); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: battery.cpp:676:22: warning: format '%[^ BUILDSTDERR: ' expects a matching 'char*' argument [-Wformat=] BUILDSTDERR: sscanf(str, "%*[^=] %*c %s %[^\n]",temp); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: battery.cpp:689:22: warning: format '%[^ BUILDSTDERR: ' expects a matching 'char*' argument [-Wformat=] BUILDSTDERR: sscanf(str, "%*[^=] %*c %s %[^\n]",temp); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: battery.cpp:702:22: warning: format '%[^ BUILDSTDERR: ' expects a matching 'char*' argument [-Wformat=] BUILDSTDERR: sscanf(str, "%*[^=] %*c %s %[^\n]",temp); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: battery.cpp:718:22: warning: format '%[^ BUILDSTDERR: ' expects a matching 'char*' argument [-Wformat=] BUILDSTDERR: sscanf(str, "%*[^=] %*c %s %[^\n]",temp); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: battery.cpp:734:22: warning: format '%[^ BUILDSTDERR: ' expects a matching 'char*' argument [-Wformat=] BUILDSTDERR: sscanf(str, "%*[^=] %*c %s %[^\n]",temp); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: battery.cpp:767:22: warning: format '%[^ BUILDSTDERR: ' expects a matching 'char*' argument [-Wformat=] BUILDSTDERR: sscanf(str, "%*[^=] %*c %s %[^\n]",temp); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: battery.cpp: In function 'int Count_Batteries_ProcFS()': BUILDSTDERR: battery.cpp:788:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] BUILDSTDERR: dirname = "/proc/acpi/battery/"; BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: battery.cpp: In function 'int Count_Batteries_SysFS()': BUILDSTDERR: battery.cpp:837:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] BUILDSTDERR: dirname = "/sys/class/power_supply/"; BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: battery.cpp: In function 'int Get_Battery_Info_from_Sys(int, Battery_Info*, int)': BUILDSTDERR: battery.cpp:553:13: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fscanf(temp_fp, "%s", str); BUILDSTDERR: ~~~~~~^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: battery.cpp:618:11: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets(str, 100, power_fp); /* skip first 5 lines */ BUILDSTDERR: ~~~~~^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: battery.cpp:622:11: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets(str, 100, power_fp); BUILDSTDERR: ~~~~~^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: battery.cpp:633:7: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets(str, 100, power_fp); BUILDSTDERR: ~~~~~^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: battery.cpp:651:7: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets(str, 100, power_fp); BUILDSTDERR: ~~~~~^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: battery.cpp:667:7: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets(str, 100, power_fp); /* skip 1 line */ BUILDSTDERR: ~~~~~^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: battery.cpp:672:7: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets(str, 100, power_fp); BUILDSTDERR: ~~~~~^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: battery.cpp:685:7: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets(str, 100, power_fp); BUILDSTDERR: ~~~~~^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: battery.cpp:698:7: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets(str, 100, power_fp); BUILDSTDERR: ~~~~~^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: battery.cpp:714:7: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets(str, 100, power_fp); BUILDSTDERR: ~~~~~^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: battery.cpp:730:7: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets(str, 100, power_fp); BUILDSTDERR: ~~~~~^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: battery.cpp:745:7: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets(str, 100, power_fp); BUILDSTDERR: ~~~~~^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: battery.cpp:759:7: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets(str, 100, power_fp); BUILDSTDERR: ~~~~~^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: battery.cpp:763:7: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets(str, 100, power_fp); BUILDSTDERR: ~~~~~^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: battery.cpp: In function 'int Count_Batteries_SysFS()': BUILDSTDERR: battery.cpp:883:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fscanf(powertype_fp, "%s", str); BUILDSTDERR: ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: freq.cpp: In function 'int Get_Min_Freq()': BUILDSTDERR: freq.cpp:97:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fscanf(freqinfo_fp, "%s", str); BUILDSTDERR: ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: freq.cpp: In function 'int Get_Max_Freq()': BUILDSTDERR: freq.cpp:121:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fscanf(freqinfo_fp, "%s", str); BUILDSTDERR: ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: freq.cpp: In function 'int Get_Current_Freq()': BUILDSTDERR: freq.cpp:144:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fscanf(freqinfo_fp, "%s", str); BUILDSTDERR: ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: freq.cpp: In function 'int Get_Governor(char*)': BUILDSTDERR: freq.cpp:166:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fscanf(freqinfo_fp, "%s", str); BUILDSTDERR: ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: freq.cpp: In function 'int Get_Driver(char*)': BUILDSTDERR: freq.cpp:189:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fscanf(freqinfo_fp, "%s", str); BUILDSTDERR: ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: battery.cpp: In function 'int Get_Battery_Info_from_Sys(int, Battery_Info*, int)': BUILDSTDERR: battery.cpp:545:17: warning: '%s' directive writing up to 255 bytes into a region of size 76 [-Wformat-overflow=] BUILDSTDERR: sprintf(temp, "/sys/class/power_supply/%s/type", name); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:861, BUILDSTDERR: from /usr/include/c++/8/cstdio:42, BUILDSTDERR: from /usr/include/c++/8/ext/string_conversions.h:43, BUILDSTDERR: from /usr/include/c++/8/bits/basic_string.h:6361, BUILDSTDERR: from /usr/include/c++/8/string:52, BUILDSTDERR: from /usr/include/c++/8/bits/locale_classes.h:40, BUILDSTDERR: from /usr/include/c++/8/bits/ios_base.h:41, BUILDSTDERR: from /usr/include/c++/8/ios:42, BUILDSTDERR: from /usr/include/c++/8/ostream:38, BUILDSTDERR: from /usr/include/c++/8/iostream:39, BUILDSTDERR: from battery.cpp:38: BUILDSTDERR: /usr/include/bits/stdio2.h:36:34: note: '__builtin___sprintf_chk' output between 30 and 285 bytes into a destination of size 100 BUILDSTDERR: return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/string.h:494, BUILDSTDERR: from /usr/include/c++/8/cstring:42, BUILDSTDERR: from battery.cpp:35: BUILDSTDERR: In function 'char* strncpy(char*, const char*, size_t)', BUILDSTDERR: inlined from 'int Get_Battery_Info_from_Sys(int, Battery_Info*, int)' at battery.cpp:690:17: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:34: warning: 'char* __builtin___strncpy_chk(char*, const char*, long unsigned int, long unsigned int)' writing 12 bytes into a region of size 10 overflows the destination [-Wstringop-overflow=] BUILDSTDERR: return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In function 'char* strncpy(char*, const char*, size_t)', BUILDSTDERR: inlined from 'int Get_Battery_Info_from_Sys(int, Battery_Info*, int)' at battery.cpp:703:17: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:34: warning: 'char* __builtin___strncpy_chk(char*, const char*, long unsigned int, long unsigned int)' writing 12 bytes into a region of size 10 overflows the destination [-Wstringop-overflow=] BUILDSTDERR: return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In function 'char* strncpy(char*, const char*, size_t)', BUILDSTDERR: inlined from 'int Get_Battery_Info_from_Sys(int, Battery_Info*, int)' at battery.cpp:719:17: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:34: warning: 'char* __builtin___strncpy_chk(char*, const char*, long unsigned int, long unsigned int)' writing 12 bytes into a region of size 10 overflows the destination [-Wstringop-overflow=] BUILDSTDERR: return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In function 'char* strncpy(char*, const char*, size_t)', BUILDSTDERR: inlined from 'int Get_Battery_Info_from_Sys(int, Battery_Info*, int)' at battery.cpp:735:17: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:34: warning: 'char* __builtin___strncpy_chk(char*, const char*, long unsigned int, long unsigned int)' writing 12 bytes into a region of size 10 overflows the destination [-Wstringop-overflow=] BUILDSTDERR: return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o acpitool main.o acpitool.o ac_adapter.o toshiba.o asus.o thinkpad.o cpu.o battery.o freq.o make[2]: Leaving directory '/builddir/build/BUILD/acpitool-0.5.1/src' Making all in man make[2]: Entering directory '/builddir/build/BUILD/acpitool-0.5.1/man' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/builddir/build/BUILD/acpitool-0.5.1/man' make[2]: Entering directory '/builddir/build/BUILD/acpitool-0.5.1' make[2]: Leaving directory '/builddir/build/BUILD/acpitool-0.5.1' make[1]: Leaving directory '/builddir/build/BUILD/acpitool-0.5.1' + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.7UHdYV + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/acpitool-0.5.1-16.fc29.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/acpitool-0.5.1-16.fc29.riscv64 BUILDSTDERR: ++ dirname /builddir/build/BUILDROOT/acpitool-0.5.1-16.fc29.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/acpitool-0.5.1-16.fc29.riscv64 + cd acpitool-0.5.1 + rm -fr /builddir/build/BUILDROOT/acpitool-0.5.1-16.fc29.riscv64 + make install DESTDIR=/builddir/build/BUILDROOT/acpitool-0.5.1-16.fc29.riscv64 Making install in src make[1]: Entering directory '/builddir/build/BUILD/acpitool-0.5.1/src' make[2]: Entering directory '/builddir/build/BUILD/acpitool-0.5.1/src' test -z "/usr/bin" || mkdir -p -- "/builddir/build/BUILDROOT/acpitool-0.5.1-16.fc29.riscv64/usr/bin" /usr/bin/install -c 'acpitool' '/builddir/build/BUILDROOT/acpitool-0.5.1-16.fc29.riscv64/usr/bin/acpitool' make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/builddir/build/BUILD/acpitool-0.5.1/src' make[1]: Leaving directory '/builddir/build/BUILD/acpitool-0.5.1/src' Making install in man make[1]: Entering directory '/builddir/build/BUILD/acpitool-0.5.1/man' make[2]: Entering directory '/builddir/build/BUILD/acpitool-0.5.1/man' make[2]: Nothing to be done for 'install-exec-am'. test -z "/usr/share/man/man1" || mkdir -p -- "/builddir/build/BUILDROOT/acpitool-0.5.1-16.fc29.riscv64/usr/share/man/man1" /usr/bin/install -c -m 644 './acpitool.1' '/builddir/build/BUILDROOT/acpitool-0.5.1-16.fc29.riscv64/usr/share/man/man1/acpitool.1' make[2]: Leaving directory '/builddir/build/BUILD/acpitool-0.5.1/man' make[1]: Leaving directory '/builddir/build/BUILD/acpitool-0.5.1/man' make[1]: Entering directory '/builddir/build/BUILD/acpitool-0.5.1' make[2]: Entering directory '/builddir/build/BUILD/acpitool-0.5.1' make[2]: Nothing to be done for 'install-exec-am'. make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/builddir/build/BUILD/acpitool-0.5.1' make[1]: Leaving directory '/builddir/build/BUILD/acpitool-0.5.1' + /usr/lib/rpm/find-debuginfo.sh -j4 --strict-build-id -m -i --build-id-seed 0.5.1-16.fc29 --unique-debug-suffix -0.5.1-16.fc29.riscv64 --unique-debug-src-base acpitool-0.5.1-16.fc29.riscv64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/acpitool-0.5.1 extracting debug info from /builddir/build/BUILDROOT/acpitool-0.5.1-16.fc29.riscv64/usr/bin/acpitool /usr/lib/rpm/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. BUILDSTDERR: 212 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig BUILDSTDERR: /sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf: No such file or directory + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Processing files: acpitool-0.5.1-16.fc29.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.g2gohk + umask 022 + cd /builddir/build/BUILD + cd acpitool-0.5.1 + DOCDIR=/builddir/build/BUILDROOT/acpitool-0.5.1-16.fc29.riscv64/usr/share/doc/acpitool + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/acpitool-0.5.1-16.fc29.riscv64/usr/share/doc/acpitool + cp -pr AUTHORS /builddir/build/BUILDROOT/acpitool-0.5.1-16.fc29.riscv64/usr/share/doc/acpitool + cp -pr ChangeLog /builddir/build/BUILDROOT/acpitool-0.5.1-16.fc29.riscv64/usr/share/doc/acpitool + cp -pr COPYING /builddir/build/BUILDROOT/acpitool-0.5.1-16.fc29.riscv64/usr/share/doc/acpitool + cp -pr INSTALL /builddir/build/BUILDROOT/acpitool-0.5.1-16.fc29.riscv64/usr/share/doc/acpitool + cp -pr README /builddir/build/BUILDROOT/acpitool-0.5.1-16.fc29.riscv64/usr/share/doc/acpitool + cp -pr TODO /builddir/build/BUILDROOT/acpitool-0.5.1-16.fc29.riscv64/usr/share/doc/acpitool + exit 0 Provides: acpitool = 0.5.1-16.fc29 acpitool(riscv-64) = 0.5.1-16.fc29 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: ld-linux-riscv64-lp64d.so.1()(64bit) ld-linux-riscv64-lp64d.so.1(GLIBC_2.27)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) libgcc_s.so.1()(64bit) libgcc_s.so.1(GCC_3.0)(64bit) libm.so.6()(64bit) libstdc++.so.6()(64bit) libstdc++.so.6(CXXABI_1.3)(64bit) libstdc++.so.6(CXXABI_1.3.9)(64bit) libstdc++.so.6(GLIBCXX_3.4)(64bit) libstdc++.so.6(GLIBCXX_3.4.11)(64bit) libstdc++.so.6(GLIBCXX_3.4.9)(64bit) rtld(GNU_HASH) Processing files: acpitool-debugsource-0.5.1-16.fc29.riscv64 Provides: acpitool-debugsource = 0.5.1-16.fc29 acpitool-debugsource(riscv-64) = 0.5.1-16.fc29 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: acpitool-debuginfo-0.5.1-16.fc29.riscv64 Provides: acpitool-debuginfo = 0.5.1-16.fc29 acpitool-debuginfo(riscv-64) = 0.5.1-16.fc29 debuginfo(build-id) = 4558920979fb21e4e6cb578ac5e5629bd4338d96 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: acpitool-debugsource(riscv-64) = 0.5.1-16.fc29 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/acpitool-0.5.1-16.fc29.riscv64 Wrote: /builddir/build/RPMS/acpitool-0.5.1-16.fc29.riscv64.rpm Wrote: /builddir/build/RPMS/acpitool-debugsource-0.5.1-16.fc29.riscv64.rpm Wrote: /builddir/build/RPMS/acpitool-debuginfo-0.5.1-16.fc29.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.5gAjiH + umask 022 + cd /builddir/build/BUILD + cd acpitool-0.5.1 + rm -fr /builddir/build/BUILDROOT/acpitool-0.5.1-16.fc29.riscv64 + exit 0 Child return code was: 0