Input buildinfo: https://buildinfos.debian.net/buildinfo-pool/s/smstools/smstools_3.1.21-4+b1_amd64.buildinfo Use metasnap for getting required timestamps New buildinfo file: /tmp/smstools-3.1.21-4+b1lvyka559/smstools_3.1.21-4+b1_amd64.buildinfo Get source package info: smstools=3.1.21-4 Source URL: http://snapshot.notset.fr/mr/package/smstools/3.1.21-4/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.2-3 autopoint=0.19.8.1-10 autotools-dev=20180224.1 base-files=11 base-passwd=3.5.47 bash=5.0-7 binutils=2.35-1 binutils-common=2.35-1 binutils-x86-64-linux-gnu=2.35-1 bsdextrautils=2.36-2 bsdutils=1:2.36-2 build-essential=12.8 bzip2=1.0.8-4 coreutils=8.32-3 cpp=4:10.1.0-1 cpp-10=10.2.0-5 dash=0.5.10.2-7 debconf=1.5.74 debhelper=13.2 debianutils=4.11 dh-autoreconf=19 dh-strip-nondeterminism=1.9.0-1 diffstat=1.63-1 diffutils=1:3.7-3 dpkg=1.20.5 dpkg-dev=1.20.5 dwz=0.13-5 ed=1.16-1 file=1:5.38-5 findutils=4.7.0-1 g++=4:10.1.0-1 g++-10=10.2.0-5 gcc=4:10.1.0-1 gcc-10=10.2.0-5 gcc-10-base=10.2.0-5 gettext=0.19.8.1-10 gettext-base=0.19.8.1-10 grep=3.4-1 groff-base=1.22.4-5 gzip=1.10-2 hostname=3.23 init-system-helpers=1.58 intltool-debian=0.35.0+20060710.5 libacl1=2.2.53-8 libarchive-zip-perl=1.68-1 libasan6=10.2.0-5 libatomic1=10.2.0-5 libattr1=1:2.4.48-5 libaudit-common=1:2.8.5-3 libaudit1=1:2.8.5-3+b1 libbinutils=2.35-1 libblkid1=2.36-2 libbz2-1.0=1.0.8-4 libc-bin=2.31-3 libc-dev-bin=2.31-3 libc6=2.31-3 libc6-dev=2.31-3 libcap-ng0=0.7.9-2.2 libcc1-0=10.2.0-5 libcroco3=0.6.13-1 libcrypt-dev=1:4.4.16-1 libcrypt1=1:4.4.16-1 libctf-nobfd0=2.35-1 libctf0=2.35-1 libdb5.3=5.3.28+dfsg1-0.6 libdebconfclient0=0.253 libdebhelper-perl=13.2 libdpkg-perl=1.20.5 libelf1=0.180-1+b1 libffi7=3.3-4 libfile-stripnondeterminism-perl=1.9.0-1 libgcc-10-dev=10.2.0-5 libgcc-s1=10.2.0-5 libgcrypt20=1.8.6-2 libgdbm-compat4=1.18.1-5 libgdbm6=1.18.1-5 libglib2.0-0=2.64.4-1 libgmp10=2:6.2.0+dfsg-6 libgomp1=10.2.0-5 libgpg-error0=1.38-2 libicu67=67.1-3 libisl22=0.22.1-1 libitm1=10.2.0-5 liblsan0=10.2.0-5 liblz4-1=1.9.2-2 liblzma5=5.2.4-1+b1 libmagic-mgc=1:5.38-5 libmagic1=1:5.38-5 libmm-dev=1.4.2-6 libmm14=1.4.2-6 libmount1=2.36-2 libmpc3=1.2.0~rc1-1 libmpfr6=4.1.0-3 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-13 libperl5.30=5.30.3-4 libpipeline1=1.5.2-2 libquadmath0=10.2.0-5 libseccomp2=2.4.3-1+b1 libselinux1=3.1-2 libsigsegv2=2.12-2 libsmartcols1=2.36-2 libstdc++-10-dev=10.2.0-5 libstdc++6=10.2.0-5 libsub-override-perl=0.09-2 libsystemd0=246-2 libtinfo6=6.2-1 libtool=2.4.6-14 libtsan0=10.2.0-5 libubsan1=10.2.0-5 libuchardet0=0.0.7-1 libudev1=246-2 libunistring2=0.9.10-4 libuuid1=2.36-2 libxml2=2.9.10+dfsg-5+b1 libzstd1=1.4.5+dfsg-4 linux-libc-dev=5.7.10-1 login=1:4.8.1-1 lsb-base=11.1.0 m4=1.4.18-4 make=4.3-4 man-db=2.9.3-2 mawk=1.3.4.20200120-2 ncurses-base=6.2-1 ncurses-bin=6.2-1 patch=2.7.6-6 perl=5.30.3-4 perl-base=5.30.3-4 perl-modules-5.30=5.30.3-4 po-debconf=1.0.21 quilt=0.66-2.1 sed=4.7-1 sensible-utils=0.0.12+nmu1 sysvinit-utils=2.96-3 tar=1.30+dfsg-7 util-linux=2.36-2 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/20200813T085340Z/ 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 smstools=3.1.21-4 && mkdir -p /build/smstools-k23nB0 && dpkg-source --no-check -x /*.dsc /build/smstools-k23nB0/smstools-3.1.21 && cd /build/smstools-k23nB0/smstools-3.1.21 && { printf '%s' 'smstools (3.1.21-4+b1) sid; urgency=low, binary-only=yes * Binary-only non-maintainer upload for amd64; no source changes. * Rebuild on buildd -- amd64 Build Daemon (x86-grnet-01) Tue, 11 Aug 2020 19:21:53 +0000 '; cat debian/changelog; } > debian/changelog.debrebuild && mv debian/changelog.debrebuild debian/changelog && chown -R builduser:builduser /build/smstools-k23nB0" --customize-hook=chroot "$1" env --unset=TMPDIR runuser builduser -c "cd /build/smstools-k23nB0/smstools-3.1.21 && env DEB_BUILD_OPTIONS="parallel=4" LANG="C.UTF-8" LC_ALL="C.UTF-8" SOURCE_DATE_EPOCH="1597173713" dpkg-buildpackage -uc -a amd64 --build=any" --customize-hook=sync-out /build/smstools-k23nB0 /tmp/smstools-3.1.21-4+b1lvyka559 bullseye /dev/null deb http://snapshot.notset.fr/archive/debian/20200813T085340Z 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.eS5PIU5Nhe 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.eS5PIU5Nhe Reading package lists... Building dependency tree... util-linux is already the newest version (2.36-2). 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/20200813T085340Z unstable/main amd64 libfakeroot amd64 1.24-1 [45.7 kB] Get:2 http://snapshot.notset.fr/archive/debian/20200813T085340Z 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 (1074 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 ... 4578 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.31-3) ... 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/20200813T085340Z/ unstable main' >> /etc/apt/sources.list && apt-get update"' exec /tmp/mmdebstrap.eS5PIU5Nhe Get:1 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm InRelease [81.6 kB] Hit:2 http://snapshot.notset.fr/archive/debian/20200813T085340Z 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 21s (1083 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.eS5PIU5Nhe I: running --customize-hook in shell: sh -c 'chroot "$1" env sh -c "apt-get source --only-source -d smstools=3.1.21-4 && mkdir -p /build/smstools-k23nB0 && dpkg-source --no-check -x /*.dsc /build/smstools-k23nB0/smstools-3.1.21 && cd /build/smstools-k23nB0/smstools-3.1.21 && { printf '%s' 'smstools (3.1.21-4+b1) sid; urgency=low, binary-only=yes * Binary-only non-maintainer upload for amd64; no source changes. * Rebuild on buildd -- amd64 Build Daemon (x86-grnet-01) Tue, 11 Aug 2020 19:21:53 +0000 '; cat debian/changelog; } > debian/changelog.debrebuild && mv debian/changelog.debrebuild debian/changelog && chown -R builduser:builduser /build/smstools-k23nB0"' exec /tmp/mmdebstrap.eS5PIU5Nhe Reading package lists... NOTICE: 'smstools' packaging is maintained in the 'Git' version control system at: https://salsa.debian.org/debian-mobcom-team/smstools.git Please use: git clone https://salsa.debian.org/debian-mobcom-team/smstools.git to retrieve the latest (possibly unreleased) updates to the package. Need to get 399 kB of source archives. Get:1 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main smstools 3.1.21-4 (dsc) [2134 B] Get:2 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main smstools 3.1.21-4 (tar) [357 kB] Get:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main smstools 3.1.21-4 (diff) [40.2 kB] Fetched 399 kB in 0s (886 kB/s) Download complete and in download only mode W: Download is performed unsandboxed as root as file 'smstools_3.1.21-4.dsc' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) dpkg-source: info: extracting smstools in /build/smstools-k23nB0/smstools-3.1.21 dpkg-source: info: unpacking smstools_3.1.21.orig.tar.gz dpkg-source: info: unpacking smstools_3.1.21-4.debian.tar.xz dpkg-source: info: using patch list from debian/patches/series dpkg-source: info: applying enable-statistics.patch dpkg-source: info: applying fix-makefile-override.patch dpkg-source: info: applying hardening.patch dpkg-source: info: applying spelling.patch dpkg-source: info: applying gawk-path-fix.patch dpkg-source: info: applying kfreebsd.patch dpkg-source: info: applying gcc10.patch I: running --customize-hook in shell: sh -c 'chroot "$1" env --unset=TMPDIR runuser builduser -c "cd /build/smstools-k23nB0/smstools-3.1.21 && env DEB_BUILD_OPTIONS="parallel=4" LANG="C.UTF-8" LC_ALL="C.UTF-8" SOURCE_DATE_EPOCH="1597173713" dpkg-buildpackage -uc -a amd64 --build=any"' exec /tmp/mmdebstrap.eS5PIU5Nhe dpkg-buildpackage: info: source package smstools dpkg-buildpackage: info: source version 3.1.21-4+b1 dpkg-buildpackage: info: source distribution sid dpkg-buildpackage: info: source changed by amd64 Build Daemon (x86-grnet-01) dpkg-source --before-build . dpkg-buildpackage: info: host architecture amd64 fakeroot debian/rules clean dh clean dh_auto_clean make -j4 clean make[1]: Entering directory '/build/smstools-k23nB0/smstools-3.1.21' cd src && make -w -j4 --jobserver-auth=3,4 clean make[2]: Entering directory '/build/smstools-k23nB0/smstools-3.1.21/src' make[2]: warning: -j4 forced in submake: resetting jobserver mode. rm -f *.o smsd *.exe *~ make[2]: Leaving directory '/build/smstools-k23nB0/smstools-3.1.21/src' make[1]: Leaving directory '/build/smstools-k23nB0/smstools-3.1.21' dh_clean debian/rules build-arch dh build-arch dh_update_autotools_config -a dh_autoreconf -a dh_auto_configure -a dh_auto_build -a make -j4 "INSTALL=install --strip-program=true" make[1]: Entering directory '/build/smstools-k23nB0/smstools-3.1.21' cd src && make -w -j4 --jobserver-auth=3,4 -- INSTALL=install\ --strip-program=true make[2]: Entering directory '/build/smstools-k23nB0/smstools-3.1.21/src' make[2]: warning: -j4 forced in submake: resetting jobserver mode. cc -D NUMBER_OF_MODEMS=64 `dpkg-buildflags --get CFLAGS` `dpkg-buildflags --get CPPFLAGS` -W -Wall -D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -c -o extras.o extras.c cc -D NUMBER_OF_MODEMS=64 `dpkg-buildflags --get CFLAGS` `dpkg-buildflags --get CPPFLAGS` -W -Wall -D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -c -o locking.o locking.c cc -D NUMBER_OF_MODEMS=64 `dpkg-buildflags --get CFLAGS` `dpkg-buildflags --get CPPFLAGS` -W -Wall -D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -c -o cfgfile.o cfgfile.c cc -D NUMBER_OF_MODEMS=64 `dpkg-buildflags --get CFLAGS` `dpkg-buildflags --get CPPFLAGS` -W -Wall -D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -c -o logging.o logging.c locking.c: In function ‘lockfile’: locking.c:52:7: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 52 | write(lockfile, pid, strlen(pid)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ logging.c: In function ‘writelogfile’: logging.c:216:7: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 216 | write(Filehandle,text2,strlen(text2)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ logging.c: In function ‘flush_smart_logging’: logging.c:305:5: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 305 | write(Filehandle_trouble, trouble_logging_buffer, strlen(trouble_logging_buffer)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ logging.c:314:7: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 314 | write(Filehandle_trouble, text2, strlen(text2)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ logging.c:334:7: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 334 | write(Filehandle_trouble, text2, strlen(text2)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -D NUMBER_OF_MODEMS=64 `dpkg-buildflags --get CFLAGS` `dpkg-buildflags --get CPPFLAGS` -W -Wall -D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -c -o alarm.o alarm.c extras.c: In function ‘write_pid’: extras.c:1252:5: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1252 | write(pidfile, pid, strlen(pid)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -D NUMBER_OF_MODEMS=64 `dpkg-buildflags --get CFLAGS` `dpkg-buildflags --get CPPFLAGS` -W -Wall -D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -c -o smsd_cfg.o smsd_cfg.c cc -D NUMBER_OF_MODEMS=64 `dpkg-buildflags --get CFLAGS` `dpkg-buildflags --get CPPFLAGS` -W -Wall -D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -c -o charset.o charset.c cc -D NUMBER_OF_MODEMS=64 `dpkg-buildflags --get CFLAGS` `dpkg-buildflags --get CPPFLAGS` -W -Wall -D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -c -o stats.o stats.c extras.c: In function ‘my_system’: extras.c:1077:35: warning: ‘/smsd_’ directive output may be truncated writing 6 bytes into a region of size between 0 and 4095 [-Wformat-truncation=] 1077 | snprintf(tmp1, sizeof(tmp1), ">%s/smsd_%s_1.XXXXXX", tmpdir, info); | ^~~~~~ In file included from /usr/include/stdio.h:867, from extras.h:18, from extras.c:30: /usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output 17 or more bytes (assuming 4112) into a destination of size 4096 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ extras.c:1087:34: warning: ‘%s’ directive output may be truncated writing up to 4095 bytes into a region of size 4094 [-Wformat-truncation=] 1087 | snprintf(tmp2, sizeof(tmp2), "2>%s/smsd_%s_2.XXXXXX", tmpdir, info); | ^~ ~~~~~~ In file included from /usr/include/stdio.h:867, from extras.h:18, from extras.c:30: /usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output 18 or more bytes (assuming 4113) into a destination of size 4096 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smsd_cfg.c: In function ‘startup_check’: smsd_cfg.c:3737:17: warning: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 3737 | read(fd, tmp, sizeof(tmp)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ stats.c: In function ‘loadstats’: stats.c:200:7: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 200 | fread(tmp, strlen(statistics_current_version) +1, 1, fp); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ stats.c:206:9: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 206 | fread(&saved_time, sizeof(time_t), 1, fp); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ stats.c:207:9: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 207 | fread(&start_time, sizeof(time_t), 1, fp); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ stats.c:212:11: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 212 | fread(statistics[i], sizeof(_stats), 1, fp); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ stats.c: In function ‘savestats’: stats.c:168:26: warning: ‘/stats.tmp’ directive writing 10 bytes into a region of size between 1 and 4096 [-Wformat-overflow=] 168 | sprintf(filename, "%s/stats.tmp", d_stats); | ^~~~~~~~~~ In file included from /usr/include/stdio.h:867, from stats.c:15: /usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output between 11 and 4106 bytes into a destination of size 4096 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ stats.c: In function ‘loadstats’: stats.c:197:26: warning: ‘/stats.tmp’ directive writing 10 bytes into a region of size between 1 and 4096 [-Wformat-overflow=] 197 | sprintf(filename, "%s/stats.tmp", d_stats); | ^~~~~~~~~~ In file included from /usr/include/stdio.h:867, from stats.c:15: /usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output between 11 and 4106 bytes into a destination of size 4096 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ extras.c: In function ‘make_datetime_string’: extras.c:1670:41: warning: ‘%03d’ directive output may be truncated writing between 3 and 8 bytes into a region of size 7 [-Wformat-truncation=] 1670 | snprintf(buffer, sizeof(buffer), "%03d", (int)tv.tv_usec / 1000); | ^~~~ extras.c:1670:40: note: directive argument in the range [-2147483, 2147483] 1670 | snprintf(buffer, sizeof(buffer), "%03d", (int)tv.tv_usec / 1000); | ^~~~~~ In file included from /usr/include/stdio.h:867, from extras.h:18, from extras.c:30: /usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 4 and 9 bytes into a destination of size 7 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from extras.c:18: In function ‘strncpy’, inlined from ‘make_datetime_string’ at extras.c:1671:7: /usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ extras.c: In function ‘make_datetime_string’: extras.c:1671:7: note: length computed here 1671 | strncpy(p, buffer, strlen(buffer)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from extras.c:18: In function ‘strncpy’, inlined from ‘make_datetime_string’ at extras.c:1666:7: /usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ extras.c: In function ‘make_datetime_string’: extras.c:1666:7: note: length computed here 1666 | strncpy(p, buffer, strlen(buffer)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ stats.c: In function ‘update_message_counter’: stats.c:338:29: warning: ‘.counter’ directive writing 8 bytes into a region of size between 0 and 4095 [-Wformat-overflow=] 338 | sprintf(filename, "%s/%s.counter", d_stats, modemname); | ^~~~~~~~ In file included from /usr/include/stdio.h:867, from stats.c:15: /usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output 10 or more bytes (assuming 4105) into a destination of size 4096 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ stats.c: In function ‘write_status’: stats.c:390:29: warning: ‘/status.tmp’ directive writing 11 bytes into a region of size between 1 and 4096 [-Wformat-overflow=] 390 | sprintf(fname_tmp, "%s/status.tmp", d_stats); | ^~~~~~~~~~~ In file included from /usr/include/stdio.h:867, from stats.c:15: /usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output between 12 and 4107 bytes into a destination of size 4096 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ stats.c:481:27: warning: ‘/status’ directive writing 7 bytes into a region of size between 1 and 4096 [-Wformat-overflow=] 481 | sprintf(fname, "%s/status", d_stats); | ^~~~~~~ In file included from /usr/include/stdio.h:867, from stats.c:15: /usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output between 8 and 4103 bytes into a destination of size 4096 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ charset.c: In function ‘decode_7bit_packed’: charset.c:904:42: warning: ‘%s’ directive output may be truncated writing up to 511 bytes into a region of size between 509 and 510 [-Wformat-truncation=] 904 | snprintf(buffer2, sizeof(buffer2), "%02X%s", septets, buffer); | ^~ ~~~~~~ In file included from /usr/include/stdio.h:867, from charset.c:16: /usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 3 and 515 bytes into a destination of size 512 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -D NUMBER_OF_MODEMS=64 `dpkg-buildflags --get CFLAGS` `dpkg-buildflags --get CPPFLAGS` -W -Wall -D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -c -o blacklist.o blacklist.c cc -D NUMBER_OF_MODEMS=64 `dpkg-buildflags --get CFLAGS` `dpkg-buildflags --get CPPFLAGS` -W -Wall -D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -c -o whitelist.o whitelist.c cc -D NUMBER_OF_MODEMS=64 `dpkg-buildflags --get CFLAGS` `dpkg-buildflags --get CPPFLAGS` -W -Wall -D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -c -o modeminit.o modeminit.c cc -D NUMBER_OF_MODEMS=64 `dpkg-buildflags --get CFLAGS` `dpkg-buildflags --get CPPFLAGS` -W -Wall -D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -c -o pdu.o pdu.c cc -D NUMBER_OF_MODEMS=64 `dpkg-buildflags --get CFLAGS` `dpkg-buildflags --get CPPFLAGS` -W -Wall -D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -c -o charshift.o charshift.c modeminit.c: In function ‘talk_with_modem’: modeminit.c:2628:9: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 2628 | write(STDOUT_FILENO, tmp, n); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ smsd_cfg.c: In function ‘readcfg’: smsd_cfg.c:2669:77: warning: ‘%s’ directive output may be truncated writing up to 4095 bytes into a region of size 256 [-Wformat-truncation=] 2669 | snprintf(communicate_a_keys[key], sizeof(communicate_a_keys[0]), "%s", value); | ^~ ~~~~~ In file included from /usr/include/stdio.h:867, from smsd_cfg.c:15: /usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: ‘__builtin_snprintf’ output between 1 and 4096 bytes into a destination of size 256 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ modeminit.c: In function ‘initmodem’: modeminit.c:2055:34: warning: ‘%s’ directive writing up to 499 bytes into a region of size 90 [-Wformat-overflow=] 2055 | sprintf(command, "AT+CSCA=\"+%s\"\r", answer); | ^~ ~~~~~~ In file included from /usr/include/stdio.h:867, from modeminit.c:30: /usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output between 13 and 512 bytes into a destination of size 100 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ modeminit.c:2096:49: warning: ‘%s’ directive output may be truncated writing up to 499 bytes into a region of size 100 [-Wformat-truncation=] 2096 | snprintf(DEVICE.imei, sizeof(DEVICE.imei), "%s", answer); | ^~ ~~~~~~ In file included from /usr/include/stdio.h:867, from modeminit.c:30: /usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: ‘__builtin_snprintf’ output between 1 and 500 bytes into a destination of size 100 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smsd_cfg.c: In function ‘startup_check’: smsd_cfg.c:3477:57: warning: ‘%s’ directive output may be truncated writing up to 4095 bytes into a region of size 16 [-Wformat-truncation=] 3477 | snprintf(queues[x].numbers[y - 1], SIZE_NUM, "%s", tmp); | ^~ ~~~ In file included from /usr/include/stdio.h:867, from smsd_cfg.c:15: /usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: ‘__builtin_snprintf’ output between 1 and 4096 bytes into a destination of size 16 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smsd_cfg.c:3704:28: warning: ‘/smsd_data.XXXXXX’ directive writing 17 bytes into a region of size between 1 and 4096 [-Wformat-overflow=] 3704 | sprintf(tmp_data, "%s/smsd_data.XXXXXX", tmpdir); | ^~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:867, from smsd_cfg.c:15: /usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output between 18 and 4113 bytes into a destination of size 4096 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smsd_cfg.c:3713:32: warning: ‘/smsd_script.XXXXXX’ directive writing 19 bytes into a region of size between 1 and 4096 [-Wformat-overflow=] 3713 | sprintf(tmp_script, "%s/smsd_script.XXXXXX", d_incoming); | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:867, from smsd_cfg.c:15: /usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output between 20 and 4115 bytes into a destination of size 4096 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from smsd_cfg.c:31: smsd_cfg.h:35:32: warning: ‘%s’ directive writing up to 2991359 bytes into a region of size between 0 and 4095 [-Wformat-overflow=] 35 | #define CONCATENATED_DIR_FNAME "%s/%s-concatenated" | ^~~~~~~~~~~~~~~~~~~~ smsd_cfg.c:3797:24: note: in expansion of macro ‘CONCATENATED_DIR_FNAME’ 3797 | sprintf(fname, CONCATENATED_DIR_FNAME, d_incoming, devices[x].name); | ^~~~~~~~~~~~~~~~~~~~~~ smsd_cfg.h:35:36: note: format string is defined here 35 | #define CONCATENATED_DIR_FNAME "%s/%s-concatenated" | ^~ In file included from /usr/include/stdio.h:867, from smsd_cfg.c:15: /usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output between 15 and 2995469 bytes into a destination of size 4096 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from smsd_cfg.c:31: smsd_cfg.h:35:32: warning: ‘%s’ directive writing up to 2991359 bytes into a region of size between 0 and 4095 [-Wformat-overflow=] 35 | #define CONCATENATED_DIR_FNAME "%s/%s-concatenated" | ^~~~~~~~~~~~~~~~~~~~ smsd_cfg.c:3808:26: note: in expansion of macro ‘CONCATENATED_DIR_FNAME’ 3808 | sprintf(tmp, CONCATENATED_DIR_FNAME, d_saved, devices[x].name); | ^~~~~~~~~~~~~~~~~~~~~~ smsd_cfg.h:35:36: note: format string is defined here 35 | #define CONCATENATED_DIR_FNAME "%s/%s-concatenated" | ^~ In file included from /usr/include/stdio.h:867, from smsd_cfg.c:15: /usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output between 15 and 2995469 bytes into a destination of size 4096 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc `mm-config --cflags` -D NUMBER_OF_MODEMS=64 `dpkg-buildflags --get CFLAGS` `dpkg-buildflags --get CPPFLAGS` -W -Wall -D_FILE_OFFSET_BITS=64 -o smsd smsd.c extras.o locking.o cfgfile.o logging.o alarm.o smsd_cfg.o charset.o stats.o blacklist.o whitelist.o modeminit.o pdu.o charshift.o `mm-config --ldflags --libs` `dpkg-buildflags --get LDFLAGS` -z now -z relro smsd.c: In function ‘received2file’: smsd.c:3445:15: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 3445 | write(ftmp, st, strlen(st)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ smsd.c: In function ‘cmd_to_modem’: smsd.c:6025:9: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6025 | write(fd, answer, strlen(answer)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smsd.c:6026:9: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6026 | write(fd, "\n", 1); | ^~~~~~~~~~~~~~~~~~ smsd.c:6069:13: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6069 | write(fd, buffer, strlen(buffer)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smsd.c: In function ‘main’: smsd.c:7918:5: warning: ignoring return value of ‘dup’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 7918 | dup(i); | ^~~~~~ smsd.c:7919:5: warning: ignoring return value of ‘dup’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 7919 | dup(i); | ^~~~~~ smsd.c:7987:7: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 7987 | system(command); | ^~~~~~~~~~~~~~~ smsd.c: In function ‘change_headers’: smsd.c:977:28: warning: ‘/smsd.XXXXXX’ directive writing 12 bytes into a region of size between 8 and 4103 [-Wformat-overflow=] 977 | sprintf(tmp_filename, "%s/smsd.XXXXXX", tmpdir); | ^~~~~~~~~~~~ In file included from /usr/include/stdio.h:867, from smsd.c:19: /usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output between 13 and 4108 bytes into a destination of size 4103 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from smsd.c:40: smsd.c: In function ‘received2file’: smsd_cfg.h:35:32: warning: ‘-concatenated’ directive writing 13 bytes into a region of size between 0 and 4095 [-Wformat-overflow=] 35 | #define CONCATENATED_DIR_FNAME "%s/%s-concatenated" | ^~~~~~~~~~~~~~~~~~~~ smsd.c:3282:29: note: in expansion of macro ‘CONCATENATED_DIR_FNAME’ 3282 | sprintf(con_filename, CONCATENATED_DIR_FNAME, (*d_saved)? d_saved : d_incoming, DEVICE.name); | ^~~~~~~~~~~~~~~~~~~~~~ smsd_cfg.h:35:38: note: format string is defined here 35 | #define CONCATENATED_DIR_FNAME "%s/%s-concatenated" | ^~~~~~~~~~~~~ In file included from /usr/include/stdio.h:867, from smsd.c:19: /usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output 15 or more bytes (assuming 4110) into a destination of size 4096 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smsd.c:3436:38: warning: ‘.XXXXXX’ directive writing 7 bytes into a region of size between 0 and 4095 [-Wformat-overflow=] 3436 | sprintf(tmp_filename,"%s/%s.XXXXXX",d_incoming,DEVICE.name); | ^~~~~~~ In file included from /usr/include/stdio.h:867, from smsd.c:19: /usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output 9 or more bytes (assuming 4104) into a destination of size 4096 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smsd.c: In function ‘exec_system’: smsd.c:305:50: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 247 [-Wformat-truncation=] 305 | snprintf(msg, sizeof(msg), "Smsd3: %s, %s", DEVICE.name, alert); | ^~ ~~~~~ In file included from /usr/include/stdio.h:867, from smsd.c:19: /usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output 10 or more bytes (assuming 265) into a destination of size 256 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smsd.c:332:82: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size between 205 and 236 [-Wformat-truncation=] 332 | snprintf(shared_buffer, SIZE_SHARED_BUFFER, "%s Sms3: mainprocess, %s", adminmessage_device, alert); | ^~ ~~~~~ In file included from /usr/include/stdio.h:867, from smsd.c:19: /usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 21 and 307 bytes into a destination of size 256 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smsd.c: In function ‘savephonecall’: smsd.c:2833:27: warning: ‘.XXXXXX’ directive writing 7 bytes into a region of size between 0 and 4095 [-Wformat-overflow=] 2833 | sprintf(filename, "%s/%s.XXXXXX", (*d_phonecalls)? d_phonecalls : d_incoming, DEVICE.name); | ^~~~~~~ In file included from /usr/include/stdio.h:867, from smsd.c:19: /usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output 9 or more bytes (assuming 4104) into a destination of size 4096 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smsd.c:2831:27: warning: ‘.’ directive writing 1 byte into a region of size between 0 and 4095 [-Wformat-overflow=] 2831 | sprintf(filename, "%s/%s.%s.XXXXXX", (*d_phonecalls)? d_phonecalls : d_incoming, DEVICE.name, timestamp); | ^ In file included from /usr/include/stdio.h:867, from smsd.c:19: /usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output 10 or more bytes (assuming 4185) into a destination of size 4096 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smsd.c:2829:25: warning: ‘%s’ directive writing up to 80 bytes into a region of size between 0 and 4095 [-Wformat-overflow=] 2829 | sprintf(filename, "%s/%s.%s.XXXXXX", (*d_phonecalls)? d_phonecalls : d_incoming, timestamp, DEVICE.name); | ^~ ~~~~~~~~~ In file included from /usr/include/stdio.h:867, from smsd.c:19: /usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output 10 or more bytes (assuming 4185) into a destination of size 4096 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from smsd.c:21: In function ‘strncpy’, inlined from ‘receivesms’ at smsd.c:3831:11: /usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output truncated before terminating nul copying 3 bytes from a string of the same length [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smsd.c: In function ‘cmd_to_modem.part.0’: smsd.c:6022:34: warning: ‘/smsd.XXXXXX’ directive writing 12 bytes into a region of size between 1 and 4096 [-Wformat-overflow=] 6022 | sprintf(tmp_filename, "%s/smsd.XXXXXX", tmpdir); | ^~~~~~~~~~~~ In file included from /usr/include/stdio.h:867, from smsd.c:19: /usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output between 13 and 4108 bytes into a destination of size 4096 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from smsd.c:40: smsd.c: In function ‘do_ic_purge’: smsd_cfg.h:35:32: warning: ‘-concatenated’ directive writing 13 bytes into a region of size between 0 and 4095 [-Wformat-overflow=] 35 | #define CONCATENATED_DIR_FNAME "%s/%s-concatenated" | ^~~~~~~~~~~~~~~~~~~~ smsd.c:6241:25: note: in expansion of macro ‘CONCATENATED_DIR_FNAME’ 6241 | sprintf(con_filename, CONCATENATED_DIR_FNAME, (*d_saved)? d_saved : d_incoming, DEVICE.name); | ^~~~~~~~~~~~~~~~~~~~~~ smsd_cfg.h:35:38: note: format string is defined here 35 | #define CONCATENATED_DIR_FNAME "%s/%s-concatenated" | ^~~~~~~~~~~~~ In file included from /usr/include/stdio.h:867, from smsd.c:19: /usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output 15 or more bytes (assuming 4110) into a destination of size 4096 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ smsd.c: In function ‘send1sms’: smsd.c:4857:11: warning: ‘eachpartlen’ may be used uninitialized in this function [-Wmaybe-uninitialized] 4857 | writelogfile(LOG_DEBUG, 0, "Splitting this message into %i parts of max %i characters%s.", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 4858 | parts, (alphabet == ALPHABET_UCS2)? eachpartlen /2 : eachpartlen, (alphabet == ALPHABET_UCS2)? " (unicode)" : ""); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/build/smstools-k23nB0/smstools-3.1.21/src' make[1]: Leaving directory '/build/smstools-k23nB0/smstools-3.1.21' dh_auto_test -a create-stamp debian/debhelper-build-stamp fakeroot debian/rules binary-arch dh binary-arch dh_testroot -a dh_prep -a dh_installdirs -a debian/rules override_dh_auto_install make[1]: Entering directory '/build/smstools-k23nB0/smstools-3.1.21' # Fix permissions chmod 644 scripts/smstest.php dh_auto_install make -j4 install DESTDIR=/build/smstools-k23nB0/smstools-3.1.21/debian/smstools AM_UPDATE_INFO_DIR=no "INSTALL=install --strip-program=true" make[2]: Entering directory '/build/smstools-k23nB0/smstools-3.1.21' cd src && make -w -j4 --jobserver-auth=3,4 -- INSTALL=install\ --strip-program=true AM_UPDATE_INFO_DIR=no DESTDIR=/build/smstools-k23nB0/smstools-3.1.21/debian/smstools make[3]: Entering directory '/build/smstools-k23nB0/smstools-3.1.21/src' make[3]: warning: -j4 forced in submake: resetting jobserver mode. make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/build/smstools-k23nB0/smstools-3.1.21/src' ./install.sh /usr/local/bin Installing binary program files /usr/local/bin/smsd cp: cannot create regular file '/usr/local/bin/smsd': Permission denied Installing some scripts /usr/local/bin/sendsms cp: cannot create regular file '/usr/local/bin/sendsms': Permission denied /usr/local/bin/sms2html cp: cannot create regular file '/usr/local/bin/sms2html': Permission denied /usr/local/bin/sms2unicode cp: cannot create regular file '/usr/local/bin/sms2unicode': Permission denied /usr/local/bin/unicode2sms cp: cannot create regular file '/usr/local/bin/unicode2sms': Permission denied Installing config file /etc/smsd.conf cp: cannot create regular file '/etc/smsd.conf': Permission denied Creating minimum spool directories Skipped /var/spool, directory already exists Creating directory /var/spool/sms mkdir: cannot create directory ‘/var/spool/sms’: Permission denied Creating directory /var/spool/sms/incoming mkdir: cannot create directory ‘/var/spool/sms/incoming’: No such file or directory Creating directory /var/spool/sms/outgoing mkdir: cannot create directory ‘/var/spool/sms/outgoing’: No such file or directory Creating directory /var/spool/sms/checked mkdir: cannot create directory ‘/var/spool/sms/checked’: No such file or directory Installing start-script /etc/init.d/sms3 cp: cannot create regular file '/etc/init.d/sms3': Permission denied Example script files are not installed automatically. Please dont forget to edit /etc/smsd.conf. make[2]: Leaving directory '/build/smstools-k23nB0/smstools-3.1.21' # Install changelogs dh_installchangelogs doc/history3.html make[1]: Leaving directory '/build/smstools-k23nB0/smstools-3.1.21' dh_install -a dh_installdocs -a dh_installchangelogs -a dh_installexamples -a dh_installman -a dh_installdebconf -a dh_installinit -a dh_installlogrotate -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 dpkg-gencontrol: warning: package smstools: substitution variable ${misc:Pre-Depends} unused, but is defined dpkg-gencontrol: warning: package smstools: substitution variable ${misc:Pre-Depends} unused, but is defined dh_md5sums -a dh_builddeb -a dpkg-deb: building package 'smstools-dbgsym' in '../smstools-dbgsym_3.1.21-4+b1_amd64.deb'. dpkg-deb: building package 'smstools' in '../smstools_3.1.21-4+b1_amd64.deb'. dpkg-genbuildinfo --build=any dpkg-genchanges --build=any >../smstools_3.1.21-4+b1_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/smstools-k23nB0 /tmp/smstools-3.1.21-4+b1lvyka559 I: cleaning package lists and apt cache... I: creating tarball... I: done I: removing tempdir /tmp/mmdebstrap.eS5PIU5Nhe... I: success in 310.9906 seconds md5: smstools-dbgsym_3.1.21-4+b1_amd64.deb: OK md5: Value of 'md5' differs for smstools_3.1.21-4+b1_amd64.deb md5: Size differs for smstools_3.1.21-4+b1_amd64.deb sha1: smstools-dbgsym_3.1.21-4+b1_amd64.deb: OK sha1: Value of 'sha1' differs for smstools_3.1.21-4+b1_amd64.deb sha1: Size differs for smstools_3.1.21-4+b1_amd64.deb sha256: smstools-dbgsym_3.1.21-4+b1_amd64.deb: OK sha256: Value of 'sha256' differs for smstools_3.1.21-4+b1_amd64.deb sha256: Size differs for smstools_3.1.21-4+b1_amd64.deb Checksums: FAIL diffoscope run passed