Diff of the two buildlogs: -- --- b1/build.log 2024-05-26 20:00:10.803855541 +0000 +++ b2/build.log 2024-05-26 20:00:48.774241280 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Sun May 26 07:57:35 -12 2024 -I: pbuilder-time-stamp: 1716753455 +I: Current time: Sun Jun 29 16:23:11 +14 2025 +I: pbuilder-time-stamp: 1751163791 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration @@ -35,52 +35,84 @@ dpkg-source: info: applying more_than_4_entries_in_power_supply.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/2841179/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/1675319/tmp/hooks/D01_modify_environment starting +debug: Running on ionos5-amd64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Jun 29 02:23 /bin/sh -> /bin/bash +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/1675319/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/1675319/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='amd64' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=20 ' - DISTRIBUTION='unstable' - HOME='/root' - HOST_ARCH='amd64' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="21" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") + BASH_VERSION='5.2.21(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=amd64 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=42 ' + DIRSTACK=() + DISTRIBUTION=unstable + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='9d61567b100b4a37b19ad73f28607be4' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='2841179' - PS1='# ' - PS2='> ' + INVOCATION_ID=0c4055a628114e9a860afc600a12f850 + LANG=C + LANGUAGE=et_EE:et + LC_ALL=C + MACHTYPE=x86_64-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=1675319 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.GuvmPMBR/pbuilderrc_JjQN --distribution unstable --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.GuvmPMBR/b1 --logfile b1/build.log acpitool_0.5.1-7.dsc' - SUDO_GID='111' - SUDO_UID='106' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://46.16.76.132:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.GuvmPMBR/pbuilderrc_hSGA --distribution unstable --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.GuvmPMBR/b2 --logfile b2/build.log acpitool_0.5.1-7.dsc' + SUDO_GID=110 + SUDO_UID=105 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://213.165.73.152:3128 I: uname -a - Linux ionos11-amd64 6.1.0-21-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.90-1 (2024-05-03) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.7.12+bpo-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.7.12-1~bpo12+1 (2024-05-06) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 May 25 07:42 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/2841179/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Jun 27 14:06 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/1675319/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -150,7 +182,7 @@ Get: 30 http://deb.debian.org/debian unstable/main amd64 diffstat amd64 1.66-1 [34.0 kB] Get: 31 http://deb.debian.org/debian unstable/main amd64 ed amd64 1.20.2-2 [60.8 kB] Get: 32 http://deb.debian.org/debian unstable/main amd64 quilt all 0.68-1 [437 kB] -Fetched 19.5 MB in 4s (4837 kB/s) +Fetched 19.5 MB in 5s (4214 kB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package sensible-utils. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19718 files and directories currently installed.) @@ -293,7 +325,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/acpitool-0.5.1/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../acpitool_0.5.1-7_source.changes +I: user script /srv/workspace/pbuilder/1675319/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/1675319/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/acpitool-0.5.1/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../acpitool_0.5.1-7_source.changes dpkg-buildpackage: info: source package acpitool dpkg-buildpackage: info: source version 0.5.1-7 dpkg-buildpackage: info: source distribution unstable @@ -396,7 +432,7 @@ make[1]: Leaving directory '/build/reproducible-path/acpitool-0.5.1' dh_auto_build - make -j20 + make -j42 make[1]: Entering directory '/build/reproducible-path/acpitool-0.5.1' make all-recursive make[2]: Entering directory '/build/reproducible-path/acpitool-0.5.1' @@ -411,119 +447,6 @@ g++ -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/acpitool-0.5.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o cpu.o cpu.cpp g++ -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/acpitool-0.5.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o battery.o battery.cpp g++ -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/reproducible-path/acpitool-0.5.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o freq.o freq.cpp -toshiba.cpp: In function 'int Has_Toshiba_ACPI()': -toshiba.cpp:50:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 50 | filename = "/proc/acpi/toshiba"; - | ^~~~~~~~~~~~~~~~~~~~ -toshiba.cpp: In function 'int Do_Toshiba_Fan_Info()': -toshiba.cpp:87:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 87 | filename = "/proc/acpi/toshiba/fan"; - | ^~~~~~~~~~~~~~~~~~~~~~~~ -toshiba.cpp: In function 'int Do_LCD_Info()': -toshiba.cpp:137:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 137 | filename = "/proc/acpi/toshiba/lcd"; - | ^~~~~~~~~~~~~~~~~~~~~~~~ -toshiba.cpp: In function 'int Force_Fan(int)': -toshiba.cpp:171:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 171 | filename = "/proc/acpi/toshiba/fan"; - | ^~~~~~~~~~~~~~~~~~~~~~~~ -toshiba.cpp: In function 'int Set_LCD_Level(int)': -toshiba.cpp:205:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 205 | filename = "/proc/acpi/toshiba/lcd"; - | ^~~~~~~~~~~~~~~~~~~~~~~~ -toshiba.cpp: In function 'int Do_Video_Info()': -toshiba.cpp:236:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 236 | filename = "/proc/acpi/toshiba/video"; - | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -thinkpad.cpp: In function 'int Has_Thinkpad_ACPI()': -thinkpad.cpp:17:13: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 17 | filename = "/proc/acpi/ibm"; - | ^~~~~~~~~~~~~~~~ -thinkpad.cpp: In function 'int Eject_Thinkpad_Bay()': -thinkpad.cpp:38:13: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 38 | filename = "/proc/acpi/ibm/bay"; - | ^~~~~~~~~~~~~~~~~~~~ -thinkpad.cpp: In function 'int Set_Thinkpad_LCD_Level(int)': -thinkpad.cpp:59:13: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 59 | filename = "/proc/acpi/ibm/brightness"; - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -thinkpad.cpp: In function 'int Do_Thinkpad_Fan_Info()': -thinkpad.cpp:85:13: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 85 | filename = "/proc/acpi/ibm/fan"; - | ^~~~~~~~~~~~~~~~~~~~ -cpu.cpp: In function 'int Show_CPU_Info()': -cpu.cpp:107:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 107 | dirname = "/proc/acpi/processor/"; //find all entries in this dir // - | ^~~~~~~~~~~~~~~~~~~~~~~ -cpu.cpp:64:45: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 64 | for(int t=0; t<4; t++) fgets(str, 299, cpuinfo_fp); // skip 4 lines // - | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ -cpu.cpp:65:22: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 65 | fgets(str, 299, cpuinfo_fp); - | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ -cpu.cpp:69:22: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 69 | fgets(str, 299, cpuinfo_fp); - | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ -cpu.cpp:70:22: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 70 | fgets(str, 299, cpuinfo_fp); - | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ -cpu.cpp:81:22: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 81 | fgets(str, 299, cpuinfo_fp); - | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ -cpu.cpp:86:45: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 86 | for(int t=0; t<5; t++) fgets(str, 299, cpuinfo_fp); // we can skip at least 5 lines to reach Bogomips line// - | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ -cpu.cpp:90:26: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 90 | fgets(str, 299, cpuinfo_fp); // different for Amd64, Opteron, Core Duo, P4 with Ht, ... // - | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ -cpu.cpp:213:38: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 213 | fgets(str, 100, power_fp); // active state - | ~~~~~^~~~~~~~~~~~~~~~~~~~ -cpu.cpp:220:38: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 220 | fgets(str, 100, power_fp); // max_cstate - | ~~~~~^~~~~~~~~~~~~~~~~~~~ -cpu.cpp:229:38: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 229 | fgets(str, 100, power_fp); // bus master activity - | ~~~~~^~~~~~~~~~~~~~~~~~~~ -cpu.cpp:236:38: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 236 | fgets(str, 100, power_fp); // states (line contains no information) - | ~~~~~^~~~~~~~~~~~~~~~~~~~ -cpu.cpp:239:46: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 239 | fgets(str, 130, power_fp); // cstate Cx - | ~~~~~^~~~~~~~~~~~~~~~~~~~ -cpu.cpp:285:42: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 285 | fgets(str, 100, throt_fp); // active state - | ~~~~~^~~~~~~~~~~~~~~~~~~~ -cpu.cpp:289:42: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 289 | fgets(str, 100, throt_fp); - | ~~~~~^~~~~~~~~~~~~~~~~~~~ -battery.cpp: In function 'int Get_Battery_Info_from_Proc(int, Battery_Info*, int)': -battery.cpp:360:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 360 | dirname = "/proc/acpi/battery/"; //find all entries in this dir - | ^~~~~~~~~~~~~~~~~~~~~ -battery.cpp: In function 'int Get_Battery_Info_from_Sys(int, Battery_Info*, int)': -battery.cpp:543:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 543 | dirname = "/sys/class/power_supply/"; //find all entries in this dir - | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -battery.cpp: In function 'int Count_Batteries_ProcFS()': -battery.cpp:749:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 749 | dirname = "/proc/acpi/battery/"; - | ^~~~~~~~~~~~~~~~~~~~~ -battery.cpp: In function 'int Count_Batteries_SysFS()': -battery.cpp:798:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 798 | dirname = "/sys/class/power_supply/"; - | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -battery.cpp: In function 'int Get_Battery_Info_from_Sys(int, Battery_Info*, int)': -battery.cpp:575:27: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] - 575 | fscanf(temp_fp, "%s", str); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~ -battery.cpp:656:22: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 656 | fgets(str, 100, power_fp); - | ~~~~~^~~~~~~~~~~~~~~~~~~~ -battery.cpp: In function 'int Count_Batteries_SysFS()': -battery.cpp:844:23: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] - 844 | fscanf(powertype_fp, "%s", str); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ ac_adapter.cpp: In function 'int Do_AC_Info(int)': ac_adapter.cpp:62:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 62 | dirname = "/proc/acpi/ac_adapter/"; @@ -552,22 +475,66 @@ asus.cpp:50:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 50 | filename = "/proc/acpi/asus"; | ^~~~~~~~~~~~~~~~~ +toshiba.cpp: In function 'int Has_Toshiba_ACPI()': +toshiba.cpp:50:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 50 | filename = "/proc/acpi/toshiba"; + | ^~~~~~~~~~~~~~~~~~~~ +cpu.cpp: In function 'int Show_CPU_Info()': +cpu.cpp:107:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 107 | dirname = "/proc/acpi/processor/"; //find all entries in this dir // + | ^~~~~~~~~~~~~~~~~~~~~~~ +thinkpad.cpp: In function 'int Has_Thinkpad_ACPI()': +thinkpad.cpp:17:13: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 17 | filename = "/proc/acpi/ibm"; + | ^~~~~~~~~~~~~~~~ asus.cpp: In function 'int Do_Asus_LCD_Info()': asus.cpp:87:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 87 | filename = "/proc/acpi/asus/brn"; | ^~~~~~~~~~~~~~~~~~~~~ +toshiba.cpp: In function 'int Do_Toshiba_Fan_Info()': +toshiba.cpp:87:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 87 | filename = "/proc/acpi/toshiba/fan"; + | ^~~~~~~~~~~~~~~~~~~~~~~~ +thinkpad.cpp: In function 'int Eject_Thinkpad_Bay()': +thinkpad.cpp:38:13: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 38 | filename = "/proc/acpi/ibm/bay"; + | ^~~~~~~~~~~~~~~~~~~~ asus.cpp: In function 'int Set_Asus_LCD_Level(int)': asus.cpp:121:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 121 | filename = "/proc/acpi/asus/brn"; | ^~~~~~~~~~~~~~~~~~~~~ +toshiba.cpp: In function 'int Do_LCD_Info()': +toshiba.cpp:137:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 137 | filename = "/proc/acpi/toshiba/lcd"; + | ^~~~~~~~~~~~~~~~~~~~~~~~ +thinkpad.cpp: In function 'int Set_Thinkpad_LCD_Level(int)': +thinkpad.cpp:59:13: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 59 | filename = "/proc/acpi/ibm/brightness"; + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ +thinkpad.cpp: In function 'int Do_Thinkpad_Fan_Info()': +thinkpad.cpp:85:13: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 85 | filename = "/proc/acpi/ibm/fan"; + | ^~~~~~~~~~~~~~~~~~~~ asus.cpp: In function 'int Do_Asus_Video_Info()': asus.cpp:149:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 149 | filename = "/proc/acpi/asus/disp"; | ^~~~~~~~~~~~~~~~~~~~~~ +toshiba.cpp: In function 'int Force_Fan(int)': +toshiba.cpp:171:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 171 | filename = "/proc/acpi/toshiba/fan"; + | ^~~~~~~~~~~~~~~~~~~~~~~~ +toshiba.cpp: In function 'int Set_LCD_Level(int)': +toshiba.cpp:205:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 205 | filename = "/proc/acpi/toshiba/lcd"; + | ^~~~~~~~~~~~~~~~~~~~~~~~ asus.cpp: In function 'int Do_Asus_Info()': asus.cpp:204:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 204 | filename = "/proc/acpi/asus/info"; | ^~~~~~~~~~~~~~~~~~~~~~ +toshiba.cpp: In function 'int Do_Video_Info()': +toshiba.cpp:236:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 236 | filename = "/proc/acpi/toshiba/video"; + | ^~~~~~~~~~~~~~~~~~~~~~~~~~ asus.cpp: In function 'int Set_Asus_LCD_State(int)': asus.cpp:268:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 268 | filename = "/proc/acpi/asus/lcd"; @@ -576,44 +543,14 @@ asus.cpp:293:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 293 | filename = "/proc/acpi/asus/mled"; | ^~~~~~~~~~~~~~~~~~~~~~ -asus.cpp: In function 'int Set_WLed(int)': -asus.cpp:318:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 318 | filename = "/proc/acpi/asus/wled"; - | ^~~~~~~~~~~~~~~~~~~~~~ -ac_adapter.cpp:183:27: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] - 183 | fscanf(temp_fp, "%s", str); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~ -ac_adapter.cpp:219:26: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 219 | fgets(str, 100, power_fp); - | ~~~~~^~~~~~~~~~~~~~~~~~~~ -battery.cpp: In function 'int Get_Battery_Info_from_Sys(int, Battery_Info*, int)': -battery.cpp:567:56: warning: '%s' directive writing up to 255 bytes into a region of size 76 [-Wformat-overflow=] - 567 | sprintf(temp, "/sys/class/power_supply/%s/type", name); - | ^~ -In file included from /usr/include/stdio.h:964, - from /usr/include/c++/13/cstdio:42, - from /usr/include/c++/13/ext/string_conversions.h:45, - from /usr/include/c++/13/bits/basic_string.h:4109, - from /usr/include/c++/13/string:54, - from /usr/include/c++/13/bits/locale_classes.h:40, - from /usr/include/c++/13/bits/ios_base.h:41, - from /usr/include/c++/13/ios:44, - from /usr/include/c++/13/ostream:40, - from /usr/include/c++/13/iostream:41, - from battery.cpp:38: -In function 'int sprintf(char*, const char*, ...)', - inlined from 'int Get_Battery_Info_from_Sys(int, Battery_Info*, int)' at battery.cpp:567:10: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:34: note: '__builtin___sprintf_chk' output between 30 and 285 bytes into a destination of size 100 - 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 31 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 32 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ freq.cpp: In function 'int Get_Min_Freq()': freq.cpp:97:23: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 97 | fscanf(freqinfo_fp, "%s", str); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ +asus.cpp: In function 'int Set_WLed(int)': +asus.cpp:318:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 318 | filename = "/proc/acpi/asus/wled"; + | ^~~~~~~~~~~~~~~~~~~~~~ freq.cpp: In function 'int Get_Max_Freq()': freq.cpp:121:23: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 121 | fscanf(freqinfo_fp, "%s", str); @@ -630,68 +567,22 @@ freq.cpp:189:23: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 189 | fscanf(freqinfo_fp, "%s", str); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ -ac_adapter.cpp:176:56: warning: '%s' directive writing up to 255 bytes into a region of size 76 [-Wformat-overflow=] - 176 | sprintf(temp, "/sys/class/power_supply/%s/type", name); - | ^~ -In file included from /usr/include/stdio.h:964, - from /usr/include/c++/13/cstdio:42, - from /usr/include/c++/13/ext/string_conversions.h:45, - from /usr/include/c++/13/bits/basic_string.h:4109, - from /usr/include/c++/13/string:54, - from /usr/include/c++/13/bits/locale_classes.h:40, - from /usr/include/c++/13/bits/ios_base.h:41, - from /usr/include/c++/13/ios:44, - from /usr/include/c++/13/ostream:40, - from /usr/include/c++/13/iostream:41, - from ac_adapter.cpp:35: -In function 'int sprintf(char*, const char*, ...)', - inlined from 'int Do_AC_Info_Sys()' at ac_adapter.cpp:176:10: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:34: note: '__builtin___sprintf_chk' output between 30 and 285 bytes into a destination of size 100 - 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 31 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 32 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ -ac_adapter.cpp: In function 'int Do_AC_Info_Sys()': -ac_adapter.cpp:189:77: warning: '%s' directive writing up to 255 bytes into a region of size 106 [-Wformat-overflow=] - 189 | sprintf(filename[findex], "/sys/class/power_supply/%s/uevent", name); - | ^~ -In function 'int sprintf(char*, const char*, ...)', - inlined from 'int Do_AC_Info_Sys()' at ac_adapter.cpp:189:12: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:34: note: '__builtin___sprintf_chk' output between 32 and 287 bytes into a destination of size 130 - 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 31 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 32 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ -battery.cpp: In function 'int Get_Battery_Info_from_Proc(int, Battery_Info*, int)': -battery.cpp:385:67: warning: '%s' directive writing up to 255 bytes into a region of size 241 [-Wformat-overflow=] - 385 | sprintf(filename[findex], "/proc/acpi/battery/%s/info", name); - | ^~ -In function 'int sprintf(char*, const char*, ...)', - inlined from 'int Get_Battery_Info_from_Proc(int, Battery_Info*, int)' at battery.cpp:385:14: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:34: note: '__builtin___sprintf_chk' output between 25 and 280 bytes into a destination of size 260 - 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 31 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 32 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ battery.cpp: In function 'int Get_Battery_Info_from_Proc(int, Battery_Info*, int)': -battery.cpp:389:67: warning: '%s' directive writing up to 255 bytes into a region of size 241 [-Wformat-overflow=] - 389 | sprintf(filename[findex], "/proc/acpi/battery/%s/state", name); - | ^~ -In function 'int sprintf(char*, const char*, ...)', - inlined from 'int Get_Battery_Info_from_Proc(int, Battery_Info*, int)' at battery.cpp:389:14: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:34: note: '__builtin___sprintf_chk' output between 26 and 281 bytes into a destination of size 260 - 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 31 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 32 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ +battery.cpp:360:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 360 | dirname = "/proc/acpi/battery/"; //find all entries in this dir + | ^~~~~~~~~~~~~~~~~~~~~ +battery.cpp: In function 'int Get_Battery_Info_from_Sys(int, Battery_Info*, int)': +battery.cpp:543:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 543 | dirname = "/sys/class/power_supply/"; //find all entries in this dir + | ^~~~~~~~~~~~~~~~~~~~~~~~~~ +battery.cpp: In function 'int Count_Batteries_ProcFS()': +battery.cpp:749:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 749 | dirname = "/proc/acpi/battery/"; + | ^~~~~~~~~~~~~~~~~~~~~ +battery.cpp: In function 'int Count_Batteries_SysFS()': +battery.cpp:798:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 798 | dirname = "/sys/class/power_supply/"; + | ^~~~~~~~~~~~~~~~~~~~~~~~~~ acpitool.cpp: In function 'int Has_ACPI(char*)': acpitool.cpp:69:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 69 | filename = "/proc/acpi/info"; @@ -699,6 +590,12 @@ acpitool.cpp:70:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 70 | filename2 = "/sys/module/acpi/parameters/acpica_version"; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +ac_adapter.cpp:183:27: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] + 183 | fscanf(temp_fp, "%s", str); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~ +ac_adapter.cpp:219:26: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 219 | fgets(str, 100, power_fp); + | ~~~~~^~~~~~~~~~~~~~~~~~~~ acpitool.cpp: In function 'int Get_Kernel_Version(char*, int)': acpitool.cpp:142:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 142 | filename = "/proc/sys/kernel/osrelease"; @@ -745,6 +642,95 @@ acpitool.cpp:549:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 549 | str = "disk"; | ^~~~~~ +cpu.cpp:64:45: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 64 | for(int t=0; t<4; t++) fgets(str, 299, cpuinfo_fp); // skip 4 lines // + | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ +cpu.cpp:65:22: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 65 | fgets(str, 299, cpuinfo_fp); + | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ +cpu.cpp:69:22: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 69 | fgets(str, 299, cpuinfo_fp); + | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ +cpu.cpp:70:22: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 70 | fgets(str, 299, cpuinfo_fp); + | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ +cpu.cpp:81:22: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 81 | fgets(str, 299, cpuinfo_fp); + | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ +cpu.cpp:86:45: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 86 | for(int t=0; t<5; t++) fgets(str, 299, cpuinfo_fp); // we can skip at least 5 lines to reach Bogomips line// + | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ +cpu.cpp:90:26: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 90 | fgets(str, 299, cpuinfo_fp); // different for Amd64, Opteron, Core Duo, P4 with Ht, ... // + | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ +cpu.cpp:213:38: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 213 | fgets(str, 100, power_fp); // active state + | ~~~~~^~~~~~~~~~~~~~~~~~~~ +cpu.cpp:220:38: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 220 | fgets(str, 100, power_fp); // max_cstate + | ~~~~~^~~~~~~~~~~~~~~~~~~~ +cpu.cpp:229:38: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 229 | fgets(str, 100, power_fp); // bus master activity + | ~~~~~^~~~~~~~~~~~~~~~~~~~ +cpu.cpp:236:38: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 236 | fgets(str, 100, power_fp); // states (line contains no information) + | ~~~~~^~~~~~~~~~~~~~~~~~~~ +cpu.cpp:239:46: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 239 | fgets(str, 130, power_fp); // cstate Cx + | ~~~~~^~~~~~~~~~~~~~~~~~~~ +cpu.cpp:285:42: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 285 | fgets(str, 100, throt_fp); // active state + | ~~~~~^~~~~~~~~~~~~~~~~~~~ +cpu.cpp:289:42: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 289 | fgets(str, 100, throt_fp); + | ~~~~~^~~~~~~~~~~~~~~~~~~~ +battery.cpp: In function 'int Get_Battery_Info_from_Sys(int, Battery_Info*, int)': +battery.cpp:575:27: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] + 575 | fscanf(temp_fp, "%s", str); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~ +battery.cpp:656:22: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 656 | fgets(str, 100, power_fp); + | ~~~~~^~~~~~~~~~~~~~~~~~~~ +battery.cpp: In function 'int Count_Batteries_SysFS()': +battery.cpp:844:23: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] + 844 | fscanf(powertype_fp, "%s", str); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ +ac_adapter.cpp:176:56: warning: '%s' directive writing up to 255 bytes into a region of size 76 [-Wformat-overflow=] + 176 | sprintf(temp, "/sys/class/power_supply/%s/type", name); + | ^~ +In file included from /usr/include/stdio.h:964, + from /usr/include/c++/13/cstdio:42, + from /usr/include/c++/13/ext/string_conversions.h:45, + from /usr/include/c++/13/bits/basic_string.h:4109, + from /usr/include/c++/13/string:54, + from /usr/include/c++/13/bits/locale_classes.h:40, + from /usr/include/c++/13/bits/ios_base.h:41, + from /usr/include/c++/13/ios:44, + from /usr/include/c++/13/ostream:40, + from /usr/include/c++/13/iostream:41, + from ac_adapter.cpp:35: +In function 'int sprintf(char*, const char*, ...)', + inlined from 'int Do_AC_Info_Sys()' at ac_adapter.cpp:176:10: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:34: note: '__builtin___sprintf_chk' output between 30 and 285 bytes into a destination of size 100 + 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 31 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 32 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ +ac_adapter.cpp: In function 'int Do_AC_Info_Sys()': +ac_adapter.cpp:189:77: warning: '%s' directive writing up to 255 bytes into a region of size 106 [-Wformat-overflow=] + 189 | sprintf(filename[findex], "/sys/class/power_supply/%s/uevent", name); + | ^~ +In function 'int sprintf(char*, const char*, ...)', + inlined from 'int Do_AC_Info_Sys()' at ac_adapter.cpp:189:12: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:34: note: '__builtin___sprintf_chk' output between 32 and 287 bytes into a destination of size 130 + 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 31 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 32 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ acpitool.cpp: In function 'int Has_ACPI(char*)': acpitool.cpp:107:1: warning: control reaches end of non-void function [-Wreturn-type] 107 | } @@ -779,6 +765,56 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ +battery.cpp: In function 'int Get_Battery_Info_from_Sys(int, Battery_Info*, int)': +battery.cpp:567:56: warning: '%s' directive writing up to 255 bytes into a region of size 76 [-Wformat-overflow=] + 567 | sprintf(temp, "/sys/class/power_supply/%s/type", name); + | ^~ +In file included from /usr/include/stdio.h:964, + from /usr/include/c++/13/cstdio:42, + from /usr/include/c++/13/ext/string_conversions.h:45, + from /usr/include/c++/13/bits/basic_string.h:4109, + from /usr/include/c++/13/string:54, + from /usr/include/c++/13/bits/locale_classes.h:40, + from /usr/include/c++/13/bits/ios_base.h:41, + from /usr/include/c++/13/ios:44, + from /usr/include/c++/13/ostream:40, + from /usr/include/c++/13/iostream:41, + from battery.cpp:38: +In function 'int sprintf(char*, const char*, ...)', + inlined from 'int Get_Battery_Info_from_Sys(int, Battery_Info*, int)' at battery.cpp:567:10: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:34: note: '__builtin___sprintf_chk' output between 30 and 285 bytes into a destination of size 100 + 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 31 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 32 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ +battery.cpp: In function 'int Get_Battery_Info_from_Proc(int, Battery_Info*, int)': +battery.cpp:385:67: warning: '%s' directive writing up to 255 bytes into a region of size 241 [-Wformat-overflow=] + 385 | sprintf(filename[findex], "/proc/acpi/battery/%s/info", name); + | ^~ +In function 'int sprintf(char*, const char*, ...)', + inlined from 'int Get_Battery_Info_from_Proc(int, Battery_Info*, int)' at battery.cpp:385:14: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:34: note: '__builtin___sprintf_chk' output between 25 and 280 bytes into a destination of size 260 + 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 31 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 32 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ +battery.cpp: In function 'int Get_Battery_Info_from_Proc(int, Battery_Info*, int)': +battery.cpp:389:67: warning: '%s' directive writing up to 255 bytes into a region of size 241 [-Wformat-overflow=] + 389 | sprintf(filename[findex], "/proc/acpi/battery/%s/state", name); + | ^~ +In function 'int sprintf(char*, const char*, ...)', + inlined from 'int Get_Battery_Info_from_Proc(int, Battery_Info*, int)' at battery.cpp:389:14: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:34: note: '__builtin___sprintf_chk' output between 26 and 281 bytes into a destination of size 260 + 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 31 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 32 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ acpitool.cpp: In function 'int Do_Fan_Info(int)': acpitool.cpp:374:70: warning: '%s' directive writing up to 255 bytes into a region of size 185 [-Wformat-overflow=] 374 | sprintf(filename[fan_count], "/proc/acpi/fan/%s/state", name); @@ -853,7 +889,7 @@ make[2]: Leaving directory '/build/reproducible-path/acpitool-0.5.1' make[1]: Leaving directory '/build/reproducible-path/acpitool-0.5.1' dh_auto_test - make -j20 check "TESTSUITEFLAGS=-j20 --verbose" VERBOSE=1 + make -j42 check "TESTSUITEFLAGS=-j42 --verbose" VERBOSE=1 make[1]: Entering directory '/build/reproducible-path/acpitool-0.5.1' Making check in src make[2]: Entering directory '/build/reproducible-path/acpitool-0.5.1/src' @@ -922,12 +958,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: not including original source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/1675319/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/1675319/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/2841179 and its subdirectories -I: Current time: Sun May 26 08:00:09 -12 2024 -I: pbuilder-time-stamp: 1716753609 +I: removing directory /srv/workspace/pbuilder/1675319 and its subdirectories +I: Current time: Sun Jun 29 16:23:46 +14 2025 +I: pbuilder-time-stamp: 1751163826