Input buildinfo: https://buildinfos.debian.net/buildinfo-pool/a/acpitool/acpitool_0.5.1-6_amd64.buildinfo Use metasnap for getting required timestamps New buildinfo file: /tmp/acpitool-0.5.1-60k2iz565/acpitool_0.5.1-6_amd64.buildinfo Get source package info: acpitool=0.5.1-6 Source URL: http://snapshot.notset.fr/mr/package/acpitool/0.5.1-6/srcfiles?fileinfo=1 env -i PATH=/usr/sbin:/usr/bin:/sbin:/bin TMPDIR=/tmp mmdebstrap --arch=amd64 --include=autoconf=2.69-11.1 automake=1:1.16.1-4 autopoint=0.19.8.1-10 autotools-dev=20180224.1 base-files=11 base-passwd=3.5.47 bash=5.0-6 binutils=2.34-6 binutils-common=2.34-6 binutils-x86-64-linux-gnu=2.34-6 bsdmainutils=11.1.2+b1 bsdutils=1:2.34-0.1 build-essential=12.8 bzip2=1.0.8-2 coreutils=8.30-3+b1 cpp=4:9.2.1-3.1 cpp-9=9.3.0-10 dash=0.5.10.2-7 debconf=1.5.73 debhelper=12.10 debianutils=4.9.1 dh-autoreconf=19 dh-strip-nondeterminism=1.7.0-1 diffstat=1.63-1 diffutils=1:3.7-3 dpkg=1.19.7 dpkg-dev=1.19.7 dwz=0.13-5 ed=1.16-1 fdisk=2.34-0.1 file=1:5.38-4 findutils=4.7.0-1 g++=4:9.2.1-3.1 g++-9=9.3.0-10 gcc=4:9.2.1-3.1 gcc-10-base=10-20200402-1 gcc-9=9.3.0-10 gcc-9-base=9.3.0-10 gettext=0.19.8.1-10 gettext-base=0.19.8.1-10 grep=3.4-1 groff-base=1.22.4-4 gzip=1.10-2 hostname=3.23 init-system-helpers=1.57 intltool-debian=0.35.0+20060710.5 libacl1=2.2.53-6 libarchive-zip-perl=1.68-1 libasan5=9.3.0-10 libatomic1=10-20200402-1 libattr1=1:2.4.48-5 libaudit-common=1:2.8.5-3 libaudit1=1:2.8.5-3 libbinutils=2.34-6 libblkid1=2.34-0.1 libbsd0=0.10.0-1 libbz2-1.0=1.0.8-2 libc-bin=2.30-4 libc-dev-bin=2.30-4 libc6=2.30-4 libc6-dev=2.30-4 libcap-ng0=0.7.9-2.1+b2 libcc1-0=10-20200402-1 libcroco3=0.6.13-1 libcrypt-dev=1:4.4.16-1 libcrypt1=1:4.4.16-1 libctf-nobfd0=2.34-6 libctf0=2.34-6 libdb5.3=5.3.28+dfsg1-0.6 libdebconfclient0=0.251 libdebhelper-perl=12.10 libdpkg-perl=1.19.7 libelf1=0.176-1.1 libfdisk1=2.34-0.1 libffi7=3.3-4 libfile-stripnondeterminism-perl=1.7.0-1 libgcc-9-dev=9.3.0-10 libgcc-s1=10-20200402-1 libgcrypt20=1.8.5-5 libgdbm-compat4=1.18.1-5 libgdbm6=1.18.1-5 libglib2.0-0=2.64.1-1 libgmp10=2:6.2.0+dfsg-4 libgomp1=10-20200402-1 libgpg-error0=1.37-1 libicu63=63.2-3 libisl22=0.22.1-1 libitm1=10-20200402-1 liblsan0=10-20200402-1 liblz4-1=1.9.2-2 liblzma5=5.2.4-1+b1 libmagic-mgc=1:5.38-4 libmagic1=1:5.38-4 libmount1=2.34-0.1 libmpc3=1.1.0-1 libmpfr6=4.0.2-1 libncursesw6=6.2-1 libpam-modules=1.3.1-5 libpam-modules-bin=1.3.1-5 libpam-runtime=1.3.1-5 libpam0g=1.3.1-5 libpcre2-8-0=10.34-7 libpcre3=2:8.39-12+b1 libperl5.30=5.30.0-9 libpipeline1=1.5.2-2 libquadmath0=10-20200402-1 libseccomp2=2.4.3-1 libselinux1=3.0-1+b2 libsigsegv2=2.12-2 libsmartcols1=2.34-0.1 libstdc++-9-dev=9.3.0-10 libstdc++6=10-20200402-1 libsub-override-perl=0.09-2 libsystemd0=245.4-2 libtinfo6=6.2-1 libtool=2.4.6-14 libtsan0=10-20200402-1 libubsan1=10-20200402-1 libuchardet0=0.0.6-3 libudev1=245.4-2 libunistring2=0.9.10-2 libuuid1=2.34-0.1 libxml2=2.9.10+dfsg-4 linux-libc-dev=5.5.13-2 login=1:4.8.1-1 lsb-base=11.1.0 m4=1.4.18-4 make=4.2.1-1.2 man-db=2.9.1-1 mawk=1.3.4.20200120-2 ncurses-base=6.2-1 ncurses-bin=6.2-1 patch=2.7.6-6 perl=5.30.0-9 perl-base=5.30.0-9 perl-modules-5.30=5.30.0-9 po-debconf=1.0.21 quilt=0.66-1 sed=4.7-1 sensible-utils=0.0.12+nmu1 sysvinit-utils=2.96-3 tar=1.30+dfsg-7 util-linux=2.34-0.1 xz-utils=5.2.4-1+b1 zlib1g=1:1.2.11.dfsg-2 --variant=apt --aptopt=Acquire::Check-Valid-Until "false" --aptopt=Acquire::http::Dl-Limit "1000"; --aptopt=Acquire::https::Dl-Limit "1000"; --aptopt=Acquire::Retries "5"; --aptopt=APT::Get::allow-downgrades "true"; --keyring=/usr/share/keyrings/ --essential-hook=chroot "$1" sh -c "apt-get --yes install fakeroot util-linux" --essential-hook=copy-in /usr/share/keyrings/debian-archive-bullseye-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-security-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-stable.gpg /usr/share/keyrings/debian-archive-buster-automatic.gpg /usr/share/keyrings/debian-archive-buster-security-automatic.gpg /usr/share/keyrings/debian-archive-buster-stable.gpg /usr/share/keyrings/debian-archive-keyring.gpg /usr/share/keyrings/debian-archive-removed-keys.gpg /usr/share/keyrings/debian-archive-stretch-automatic.gpg /usr/share/keyrings/debian-archive-stretch-security-automatic.gpg /usr/share/keyrings/debian-archive-stretch-stable.gpg /usr/share/keyrings/debian-ports-archive-keyring-removed.gpg /usr/share/keyrings/debian-ports-archive-keyring.gpg /usr/share/keyrings/debian-keyring.gpg /etc/apt/trusted.gpg.d/ --essential-hook=chroot "$1" sh -c "rm /etc/apt/sources.list && echo 'deb http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb-src http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb http://snapshot.notset.fr/archive/debian/20200410T084926Z/ unstable main' >> /etc/apt/sources.list && apt-get update" --customize-hook=chroot "$1" useradd --no-create-home -d /nonexistent -p "" builduser -s /bin/bash --customize-hook=chroot "$1" env sh -c "apt-get source --only-source -d acpitool=0.5.1-6 && mkdir -p /build/acpitool-n5GnJl && dpkg-source --no-check -x /*.dsc /build/acpitool-n5GnJl/acpitool-0.5.1 && chown -R builduser:builduser /build/acpitool-n5GnJl" --customize-hook=chroot "$1" env --unset=TMPDIR runuser builduser -c "cd /build/acpitool-n5GnJl/acpitool-0.5.1 && env DEB_BUILD_OPTIONS="parallel=4" LC_ALL="C.UTF-8" SOURCE_DATE_EPOCH="1586259478" dpkg-buildpackage -uc -a amd64 --build=any" --customize-hook=sync-out /build/acpitool-n5GnJl /tmp/acpitool-0.5.1-60k2iz565 bullseye /dev/null deb http://snapshot.notset.fr/archive/debian/20200410T084926Z unstable main I: automatically chosen mode: root I: chroot architecture amd64 is equal to the host's architecture I: automatically chosen format: tar I: using /tmp/mmdebstrap.aedmk94F1c as tempdir I: running apt-get update... I: downloading packages with apt... I: extracting archives... I: installing essential packages... I: running --essential-hook in shell: sh -c 'chroot "$1" sh -c "apt-get --yes install fakeroot util-linux"' exec /tmp/mmdebstrap.aedmk94F1c Reading package lists... Building dependency tree... util-linux is already the newest version (2.34-0.1). The following NEW packages will be installed: fakeroot libfakeroot 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 132 kB of archives. After this operation, 393 kB of additional disk space will be used. Get:1 http://snapshot.notset.fr/archive/debian/20200410T084926Z unstable/main amd64 libfakeroot amd64 1.24-1 [45.7 kB] Get:2 http://snapshot.notset.fr/archive/debian/20200410T084926Z unstable/main amd64 fakeroot amd64 1.24-1 [85.9 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 132 kB in 0s (806 kB/s) Selecting previously unselected package libfakeroot:amd64. (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 ... 4505 files and directories currently installed.) Preparing to unpack .../libfakeroot_1.24-1_amd64.deb ... Unpacking libfakeroot:amd64 (1.24-1) ... Selecting previously unselected package fakeroot. Preparing to unpack .../fakeroot_1.24-1_amd64.deb ... Unpacking fakeroot (1.24-1) ... Setting up libfakeroot:amd64 (1.24-1) ... Setting up fakeroot (1.24-1) ... update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode Processing triggers for libc-bin (2.30-4) ... I: running special hook: copy-in /usr/share/keyrings/debian-archive-bullseye-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-security-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-stable.gpg /usr/share/keyrings/debian-archive-buster-automatic.gpg /usr/share/keyrings/debian-archive-buster-security-automatic.gpg /usr/share/keyrings/debian-archive-buster-stable.gpg /usr/share/keyrings/debian-archive-keyring.gpg /usr/share/keyrings/debian-archive-removed-keys.gpg /usr/share/keyrings/debian-archive-stretch-automatic.gpg /usr/share/keyrings/debian-archive-stretch-security-automatic.gpg /usr/share/keyrings/debian-archive-stretch-stable.gpg /usr/share/keyrings/debian-ports-archive-keyring-removed.gpg /usr/share/keyrings/debian-ports-archive-keyring.gpg /usr/share/keyrings/debian-keyring.gpg /etc/apt/trusted.gpg.d/ I: running --essential-hook in shell: sh -c 'chroot "$1" sh -c "rm /etc/apt/sources.list && echo 'deb http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb-src http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb http://snapshot.notset.fr/archive/debian/20200410T084926Z/ unstable main' >> /etc/apt/sources.list && apt-get update"' exec /tmp/mmdebstrap.aedmk94F1c Get:1 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm InRelease [81.6 kB] Hit:2 http://snapshot.notset.fr/archive/debian/20200410T084926Z unstable InRelease Ign:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources Ign:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages Ign:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources Ign:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages Ign:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources Ign:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages Get:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources [11.4 MB] Get:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages [11.1 MB] Fetched 22.6 MB in 19s (1170 kB/s) Reading package lists... I: installing remaining packages inside the chroot... I: running --customize-hook in shell: sh -c 'chroot "$1" useradd --no-create-home -d /nonexistent -p "" builduser -s /bin/bash' exec /tmp/mmdebstrap.aedmk94F1c I: running --customize-hook in shell: sh -c 'chroot "$1" env sh -c "apt-get source --only-source -d acpitool=0.5.1-6 && mkdir -p /build/acpitool-n5GnJl && dpkg-source --no-check -x /*.dsc /build/acpitool-n5GnJl/acpitool-0.5.1 && chown -R builduser:builduser /build/acpitool-n5GnJl"' exec /tmp/mmdebstrap.aedmk94F1c Reading package lists... NOTICE: 'acpitool' packaging is maintained in the 'Git' version control system at: https://salsa.debian.org/debian/acpitool.git Please use: git clone https://salsa.debian.org/debian/acpitool.git to retrieve the latest (possibly unreleased) updates to the package. Need to get 143 kB of source archives. Get:1 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main acpitool 0.5.1-6 (dsc) [1852 B] Get:2 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main acpitool 0.5.1-6 (tar) [131 kB] Get:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main acpitool 0.5.1-6 (diff) [10.8 kB] Fetched 143 kB in 0s (774 kB/s) Download complete and in download only mode W: Download is performed unsandboxed as root as file 'acpitool_0.5.1-6.dsc' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) dpkg-source: info: extracting acpitool in /build/acpitool-n5GnJl/acpitool-0.5.1 dpkg-source: info: unpacking acpitool_0.5.1.orig.tar.gz dpkg-source: info: unpacking acpitool_0.5.1-6.debian.tar.xz dpkg-source: info: using patch list from debian/patches/series dpkg-source: info: applying ac_adapter.patch dpkg-source: info: applying battery.patch dpkg-source: info: applying kernel3.patch dpkg-source: info: applying wakeup.patch dpkg-source: info: applying 0001-Do-not-assume-fixed-line-lengths-for-proc-acpi-wakeu.patch dpkg-source: info: applying typos.patch dpkg-source: info: applying fix-typos-in-source.patch I: running --customize-hook in shell: sh -c 'chroot "$1" env --unset=TMPDIR runuser builduser -c "cd /build/acpitool-n5GnJl/acpitool-0.5.1 && env DEB_BUILD_OPTIONS="parallel=4" LC_ALL="C.UTF-8" SOURCE_DATE_EPOCH="1586259478" dpkg-buildpackage -uc -a amd64 --build=any"' exec /tmp/mmdebstrap.aedmk94F1c dpkg-buildpackage: info: source package acpitool dpkg-buildpackage: info: source version 0.5.1-6 dpkg-buildpackage: info: source distribution unstable dpkg-buildpackage: info: source changed by Seunghun Han dpkg-source --before-build . dpkg-buildpackage: info: host architecture amd64 debian/rules clean dh clean debian/rules override_dh_auto_clean make[1]: Entering directory '/build/acpitool-n5GnJl/acpitool-0.5.1' dh_auto_clean rm -f config.guess config.sub make[1]: Leaving directory '/build/acpitool-n5GnJl/acpitool-0.5.1' dh_clean debian/rules binary-arch dh binary-arch dh_update_autotools_config -a dh_autoreconf -a aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in' automake: warning: autoconf input should be named 'configure.ac', not 'configure.in' configure.in:4: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated. For more info, see: configure.in:4: https://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation configure.in:10: installing './compile' configure.in:6: installing './config.guess' configure.in:6: installing './config.sub' automake: warning: autoconf input should be named 'configure.ac', not 'configure.in' debian/rules override_dh_auto_configure make[1]: Entering directory '/build/acpitool-n5GnJl/acpitool-0.5.1' cp -f /usr/share/misc/config.guess . cp -f /usr/share/misc/config.sub . dh_auto_configure ./configure --build=x86_64-linux-gnu --prefix=/usr --includedir=\${prefix}/include --mandir=\${prefix}/share/man --infodir=\${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --disable-silent-rules --libdir=\${prefix}/lib/x86_64-linux-gnu --runstatedir=/run --disable-maintainer-mode --disable-dependency-tracking configure: WARNING: unrecognized options: --disable-maintainer-mode checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking for g++... g++ checking whether the C++ compiler works... yes checking for C++ compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking whether make supports the include directive... yes (GNU style) checking dependency style of g++... none 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 whether gcc understands -c and -o together... yes 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... /bin/grep checking for egrep... /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 that generated files are newer than configure... done 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 configure: WARNING: unrecognized options: --disable-maintainer-mode +-----------------------------------------------------------------------------------+ | Run make && make install when the configure script has finished without problems. | +-----------------------------------------------------------------------------------+ make[1]: Leaving directory '/build/acpitool-n5GnJl/acpitool-0.5.1' dh_auto_build -a make -j4 make[1]: Entering directory '/build/acpitool-n5GnJl/acpitool-0.5.1' make all-recursive make[2]: Entering directory '/build/acpitool-n5GnJl/acpitool-0.5.1' Making all in src make[3]: Entering directory '/build/acpitool-n5GnJl/acpitool-0.5.1/src' g++ -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/acpitool-n5GnJl/acpitool-0.5.1=. -fstack-protector-strong -Wformat -Werror=format-security -c -o main.o main.cpp g++ -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/acpitool-n5GnJl/acpitool-0.5.1=. -fstack-protector-strong -Wformat -Werror=format-security -c -o acpitool.o acpitool.cpp g++ -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/acpitool-n5GnJl/acpitool-0.5.1=. -fstack-protector-strong -Wformat -Werror=format-security -c -o ac_adapter.o ac_adapter.cpp g++ -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/acpitool-n5GnJl/acpitool-0.5.1=. -fstack-protector-strong -Wformat -Werror=format-security -c -o toshiba.o toshiba.cpp 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"; | ^~~~~~~~~~~~~~~~~ acpitool.cpp:70:17: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 70 | filename2 = "/sys/module/acpi/parameters/acpica_version"; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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"; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ acpitool.cpp: In function ‘int Set_Kernel_Version()’: acpitool.cpp:190:16: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 190 | filename = "/proc/sys/kernel/osrelease"; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ acpitool.cpp: In function ‘int Do_Thermal_Info(int, int)’: acpitool.cpp:231:15: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 231 | dirname = "/proc/acpi/thermal_zone/"; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ acpitool.cpp: In function ‘int Do_Fan_Info(int)’: acpitool.cpp:365:12: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 365 | dirname = "/proc/acpi/fan/"; | ^~~~~~~~~~~~~~~~~ acpitool.cpp: In function ‘int Show_WakeUp_Devices(int)’: acpitool.cpp:422:16: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 422 | filename = "/proc/acpi/wakeup"; | ^~~~~~~~~~~~~~~~~~~ acpitool.cpp: In function ‘int Toggle_WakeUp_Device(int, int)’: acpitool.cpp:467:16: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 467 | filename = "/proc/acpi/wakeup"; | ^~~~~~~~~~~~~~~~~~~ acpitool.cpp: In function ‘int Do_Suspend(int)’: acpitool.cpp:534:16: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 534 | filename = "/proc/acpi/sleep"; // nice default values // | ^~~~~~~~~~~~~~~~~~ acpitool.cpp:535:11: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 535 | str = "3"; | ^~~ acpitool.cpp:541:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 541 | filename = "/sys/power/state"; | ^~~~~~~~~~~~~~~~~~ acpitool.cpp:542:13: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 542 | str = "mem"; | ^~~~~ acpitool.cpp:545:31: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 545 | case 4 : if(Kernel_24) str = "4"; | ^~~ acpitool.cpp:548:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 548 | filename = "/sys/power/state"; | ^~~~~~~~~~~~~~~~~~ acpitool.cpp:549:13: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 549 | str = "disk"; | ^~~~~~ 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"; | ^~~~~~~~~~~~~~~~~~~~ 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/"; | ^~~~~~~~~~~~~~~~~~~~~~~~ ac_adapter.cpp: In function ‘int Do_AC_Info_Proc(int)’: ac_adapter.cpp:99:15: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 99 | dirname = "/proc/acpi/ac_adapter/"; | ^~~~~~~~~~~~~~~~~~~~~~~~ ac_adapter.cpp: In function ‘int Do_AC_Info_Sys()’: ac_adapter.cpp:157:15: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 157 | dirname = "/sys/class/power_supply/"; //find all entries in this dir | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ac_adapter.cpp:225:31: warning: format ‘%[^ ’ expects a matching ‘char*’ argument [-Wformat=] 225 | sscanf(str, "%[^=]s %*s %[^\n]", attr); | ~~~^~ | | | char* 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"; | ^~~~~~~~~~~~~~~~~~~~~~~~ ac_adapter.cpp:226:38: warning: format ‘%[^ ’ expects a matching ‘char*’ argument [-Wformat=] 226 | sscanf(str, "%*[^=] %*c %s %[^\n]",temp); | ~~~^~ | | | char* 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"; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ac_adapter.cpp:183:13: 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:12: 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 Has_ACPI(char*)’: acpitool.cpp:66:14: warning: control reaches end of non-void function [-Wreturn-type] 66 | ifstream file_in, file2_in; | ^~~~~~~ acpitool.cpp: In function ‘int Do_Thermal_Info(int, int)’: acpitool.cpp:323:9: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] 323 | fgets(str, 120, fp); | ~~~~~^~~~~~~~~~~~~~ ac_adapter.cpp:176:42: 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:867, from /usr/include/c++/9/cstdio:42, from /usr/include/c++/9/ext/string_conversions.h:43, from /usr/include/c++/9/bits/basic_string.h:6493, from /usr/include/c++/9/string:55, from /usr/include/c++/9/bits/locale_classes.h:40, from /usr/include/c++/9/bits/ios_base.h:41, from /usr/include/c++/9/ios:42, from /usr/include/c++/9/ostream:38, from /usr/include/c++/9/iostream:39, from ac_adapter.cpp:35: /usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 30 and 285 bytes into a destination of size 100 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/acpitool-n5GnJl/acpitool-0.5.1=. -fstack-protector-strong -Wformat -Werror=format-security -c -o asus.o asus.cpp g++ -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/acpitool-n5GnJl/acpitool-0.5.1=. -fstack-protector-strong -Wformat -Werror=format-security -c -o thinkpad.o thinkpad.cpp g++ -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/acpitool-n5GnJl/acpitool-0.5.1=. -fstack-protector-strong -Wformat -Werror=format-security -c -o cpu.o cpu.cpp asus.cpp: In function ‘int Has_Asus_ACPI()’: asus.cpp:50:16: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 50 | filename = "/proc/acpi/asus"; | ^~~~~~~~~~~~~~~~~ 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"; | ^~~~~~~~~~~~~~~~~~~~~ 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"; | ^~~~~~~~~~~~~~~~~~~~~ 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"; | ^~~~~~~~~~~~~~~~~~~~~~ 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"; | ^~~~~~~~~~~~~~~~~~~~~~ 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"; | ^~~~~~~~~~~~~~~~~~~~~ asus.cpp: In function ‘int Set_MLed(int)’: 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"; | ^~~~~~~~~~~~~~~~~~~~~~ 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"; | ^~~~~~~~~~~~~~~~~~~~ acpitool.cpp:254:76: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 231 [-Wformat-truncation=] 254 | snprintf(tmp_fname, sizeof (tmp_fname) - 1, "/proc/acpi/thermal_zone/%s/state", name); | ^~ In file included from /usr/include/stdio.h:867, from /usr/include/c++/9/cstdio:42, from /usr/include/c++/9/ext/string_conversions.h:43, from /usr/include/c++/9/bits/basic_string.h:6493, from /usr/include/c++/9/string:55, from /usr/include/c++/9/bits/locale_classes.h:40, from /usr/include/c++/9/bits/ios_base.h:41, from /usr/include/c++/9/ios:42, from /usr/include/c++/9/ostream:38, from /usr/include/c++/9/iostream:39, from acpitool.cpp:37: /usr/include/x86_64-linux-gnu/bits/stdio2.h:67:35: note: ‘__builtin___snprintf_chk’ output between 31 and 286 bytes into a destination of size 255 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ acpitool.cpp:257:76: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 231 [-Wformat-truncation=] 257 | snprintf(tmp_fname, sizeof (tmp_fname) - 1, "/proc/acpi/thermal_zone/%s/temperature", name); | ^~ In file included from /usr/include/stdio.h:867, from /usr/include/c++/9/cstdio:42, from /usr/include/c++/9/ext/string_conversions.h:43, from /usr/include/c++/9/bits/basic_string.h:6493, from /usr/include/c++/9/string:55, from /usr/include/c++/9/bits/locale_classes.h:40, from /usr/include/c++/9/bits/ios_base.h:41, from /usr/include/c++/9/ios:42, from /usr/include/c++/9/ostream:38, from /usr/include/c++/9/iostream:39, from acpitool.cpp:37: /usr/include/x86_64-linux-gnu/bits/stdio2.h:67:35: note: ‘__builtin___snprintf_chk’ output between 37 and 292 bytes into a destination of size 255 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ acpitool.cpp:260:76: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 231 [-Wformat-truncation=] 260 | snprintf(tmp_fname, sizeof (tmp_fname) - 1, "/proc/acpi/thermal_zone/%s/trip_points", name); | ^~ In file included from /usr/include/stdio.h:867, from /usr/include/c++/9/cstdio:42, from /usr/include/c++/9/ext/string_conversions.h:43, from /usr/include/c++/9/bits/basic_string.h:6493, from /usr/include/c++/9/string:55, from /usr/include/c++/9/bits/locale_classes.h:40, from /usr/include/c++/9/bits/ios_base.h:41, from /usr/include/c++/9/ios:42, from /usr/include/c++/9/ostream:38, from /usr/include/c++/9/iostream:39, from acpitool.cpp:37: /usr/include/x86_64-linux-gnu/bits/stdio2.h:67:35: note: ‘__builtin___snprintf_chk’ output between 37 and 292 bytes into a destination of size 255 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cpu.cpp: In function ‘int Show_CPU_Info()’: cpu.cpp:107:12: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 107 | dirname = "/proc/acpi/processor/"; //find all entries in this dir // | ^~~~~~~~~~~~~~~~~~~~~~~ g++ -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/acpitool-n5GnJl/acpitool-0.5.1=. -fstack-protector-strong -Wformat -Werror=format-security -c -o battery.o battery.cpp cpu.cpp:64:31: 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:8: 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:8: 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:8: 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:8: 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:31: 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:12: 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:10: 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:10: 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:10: 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:10: 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:11: 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:14: 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:14: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] 289 | fgets(str, 100, throt_fp); | ~~~~~^~~~~~~~~~~~~~~~~~~~ g++ -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/acpitool-n5GnJl/acpitool-0.5.1=. -fstack-protector-strong -Wformat -Werror=format-security -c -o freq.o freq.cpp 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:13: 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:8: 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:9: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] 844 | fscanf(powertype_fp, "%s", str); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ freq.cpp: In function ‘int Get_Min_Freq()’: freq.cpp:97:9: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] 97 | fscanf(freqinfo_fp, "%s", str); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ freq.cpp: In function ‘int Get_Max_Freq()’: freq.cpp:121:9: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] 121 | fscanf(freqinfo_fp, "%s", str); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ freq.cpp: In function ‘int Get_Current_Freq()’: freq.cpp:144:9: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] 144 | fscanf(freqinfo_fp, "%s", str); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ freq.cpp: In function ‘int Get_Governor(char*)’: freq.cpp:166:9: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] 166 | fscanf(freqinfo_fp, "%s", str); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ freq.cpp: In function ‘int Get_Driver(char*)’: freq.cpp:189:9: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] 189 | fscanf(freqinfo_fp, "%s", str); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ battery.cpp: In function ‘int Get_Battery_Info_from_Sys(int, Battery_Info*, int)’: battery.cpp:567:42: 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:867, from /usr/include/c++/9/cstdio:42, from /usr/include/c++/9/ext/string_conversions.h:43, from /usr/include/c++/9/bits/basic_string.h:6493, from /usr/include/c++/9/string:55, from /usr/include/c++/9/bits/locale_classes.h:40, from /usr/include/c++/9/bits/ios_base.h:41, from /usr/include/c++/9/ios:42, from /usr/include/c++/9/ostream:38, from /usr/include/c++/9/iostream:39, from battery.cpp:38: /usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 30 and 285 bytes into a destination of size 100 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -g -O2 -fdebug-prefix-map=/build/acpitool-n5GnJl/acpitool-0.5.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o acpitool main.o acpitool.o ac_adapter.o toshiba.o asus.o thinkpad.o cpu.o battery.o freq.o make[3]: Leaving directory '/build/acpitool-n5GnJl/acpitool-0.5.1/src' Making all in man make[3]: Entering directory '/build/acpitool-n5GnJl/acpitool-0.5.1/man' make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/build/acpitool-n5GnJl/acpitool-0.5.1/man' make[3]: Entering directory '/build/acpitool-n5GnJl/acpitool-0.5.1' make[3]: Leaving directory '/build/acpitool-n5GnJl/acpitool-0.5.1' make[2]: Leaving directory '/build/acpitool-n5GnJl/acpitool-0.5.1' make[1]: Leaving directory '/build/acpitool-n5GnJl/acpitool-0.5.1' dh_auto_test -a make -j4 check VERBOSE=1 make[1]: Entering directory '/build/acpitool-n5GnJl/acpitool-0.5.1' Making check in src make[2]: Entering directory '/build/acpitool-n5GnJl/acpitool-0.5.1/src' make[2]: Nothing to be done for 'check'. make[2]: Leaving directory '/build/acpitool-n5GnJl/acpitool-0.5.1/src' Making check in man make[2]: Entering directory '/build/acpitool-n5GnJl/acpitool-0.5.1/man' make[2]: Nothing to be done for 'check'. make[2]: Leaving directory '/build/acpitool-n5GnJl/acpitool-0.5.1/man' make[2]: Entering directory '/build/acpitool-n5GnJl/acpitool-0.5.1' make[2]: Leaving directory '/build/acpitool-n5GnJl/acpitool-0.5.1' make[1]: Leaving directory '/build/acpitool-n5GnJl/acpitool-0.5.1' create-stamp debian/debhelper-build-stamp dh_testroot -a dh_prep -a debian/rules override_dh_auto_install make[1]: Entering directory '/build/acpitool-n5GnJl/acpitool-0.5.1' /usr/bin/make DESTDIR=/build/acpitool-n5GnJl/acpitool-0.5.1/debian/acpitool install make[2]: Entering directory '/build/acpitool-n5GnJl/acpitool-0.5.1' Making install in src make[3]: Entering directory '/build/acpitool-n5GnJl/acpitool-0.5.1/src' make[4]: Entering directory '/build/acpitool-n5GnJl/acpitool-0.5.1/src' /bin/mkdir -p '/build/acpitool-n5GnJl/acpitool-0.5.1/debian/acpitool/usr/bin' /usr/bin/install -c acpitool '/build/acpitool-n5GnJl/acpitool-0.5.1/debian/acpitool/usr/bin' make[4]: Nothing to be done for 'install-data-am'. make[4]: Leaving directory '/build/acpitool-n5GnJl/acpitool-0.5.1/src' make[3]: Leaving directory '/build/acpitool-n5GnJl/acpitool-0.5.1/src' Making install in man make[3]: Entering directory '/build/acpitool-n5GnJl/acpitool-0.5.1/man' make[4]: Entering directory '/build/acpitool-n5GnJl/acpitool-0.5.1/man' make[4]: Nothing to be done for 'install-exec-am'. /bin/mkdir -p '/build/acpitool-n5GnJl/acpitool-0.5.1/debian/acpitool/usr/share/man/man1' /usr/bin/install -c -m 644 acpitool.1 '/build/acpitool-n5GnJl/acpitool-0.5.1/debian/acpitool/usr/share/man/man1' make[4]: Leaving directory '/build/acpitool-n5GnJl/acpitool-0.5.1/man' make[3]: Leaving directory '/build/acpitool-n5GnJl/acpitool-0.5.1/man' make[3]: Entering directory '/build/acpitool-n5GnJl/acpitool-0.5.1' make[4]: Entering directory '/build/acpitool-n5GnJl/acpitool-0.5.1' make[4]: Nothing to be done for 'install-exec-am'. make[4]: Nothing to be done for 'install-data-am'. make[4]: Leaving directory '/build/acpitool-n5GnJl/acpitool-0.5.1' make[3]: Leaving directory '/build/acpitool-n5GnJl/acpitool-0.5.1' make[2]: Leaving directory '/build/acpitool-n5GnJl/acpitool-0.5.1' make[1]: Leaving directory '/build/acpitool-n5GnJl/acpitool-0.5.1' dh_installdocs -a dh_installchangelogs -a dh_installman -a dh_perl -a dh_link -a dh_strip_nondeterminism -a dh_compress -a dh_fixperms -a dh_missing -a dh_dwz -a dh_strip -a dh_makeshlibs -a dh_shlibdeps -a dh_installdeb -a dh_gencontrol -a dh_md5sums -a dh_builddeb -a dpkg-deb: building package 'acpitool-dbgsym' in '../acpitool-dbgsym_0.5.1-6_amd64.deb'. dpkg-deb: building package 'acpitool' in '../acpitool_0.5.1-6_amd64.deb'. dpkg-genbuildinfo --build=any dpkg-genchanges --build=any >../acpitool_0.5.1-6_amd64.changes dpkg-genchanges: info: binary-only arch-specific upload (source code and arch-indep packages not included) dpkg-source --after-build . dpkg-buildpackage: info: binary-only upload (no source included) I: running special hook: sync-out /build/acpitool-n5GnJl /tmp/acpitool-0.5.1-60k2iz565 I: cleaning package lists and apt cache... I: creating tarball... I: done I: removing tempdir /tmp/mmdebstrap.aedmk94F1c... I: success in 305.9273 seconds md5: acpitool-dbgsym_0.5.1-6_amd64.deb: OK md5: acpitool_0.5.1-6_amd64.deb: OK sha1: acpitool-dbgsym_0.5.1-6_amd64.deb: OK sha1: acpitool_0.5.1-6_amd64.deb: OK sha256: acpitool-dbgsym_0.5.1-6_amd64.deb: OK sha256: acpitool_0.5.1-6_amd64.deb: OK Checksums: OK