Input buildinfo: https://buildinfos.debian.net/buildinfo-pool/r/recoverdm/recoverdm_0.20-7_amd64.buildinfo Use metasnap for getting required timestamps New buildinfo file: /tmp/recoverdm-0.20-70k2rkd8i/recoverdm_0.20-7_amd64.buildinfo Get source package info: recoverdm=0.20-7 Source URL: http://snapshot.notset.fr/mr/package/recoverdm/0.20-7/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-3 binutils-common=2.34-3 binutils-x86-64-linux-gnu=2.34-3 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.2.1-30 dash=0.5.10.2-6 debconf=1.5.73 debhelper=12.9 debianutils=4.9.1 dh-autoreconf=19 dh-strip-nondeterminism=1.6.3-2 diffutils=1:3.7-3 dpkg=1.19.7 dpkg-dev=1.19.7 dwz=0.13-5 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.2.1-30 gcc=4:9.2.1-3.1 gcc-10-base=10-20200222-1 gcc-9=9.2.1-30 gcc-9-base=9.2.1-30 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-1 hostname=3.23 init-system-helpers=1.57 intltool-debian=0.35.0+20060710.5 libacl1=2.2.53-5 libarchive-zip-perl=1.67-2 libasan5=9.2.1-30 libatomic1=10-20200222-1 libattr1=1:2.4.48-5 libaudit-common=1:2.8.5-2 libaudit1=1:2.8.5-2+b1 libbinutils=2.34-3 libblkid1=2.34-0.1 libbsd0=0.10.0-1 libbz2-1.0=1.0.8-2 libc-bin=2.29-10 libc-dev-bin=2.29-10 libc6=2.29-10 libc6-dev=2.29-10 libcap-ng0=0.7.9-2.1+b1 libcc1-0=10-20200222-1 libcroco3=0.6.13-1 libcrypt-dev=1:4.4.10-10 libcrypt1=1:4.4.10-10 libctf-nobfd0=2.34-3 libctf0=2.34-3 libdb5.3=5.3.28+dfsg1-0.6 libdebconfclient0=0.251 libdebhelper-perl=12.9 libdpkg-perl=1.19.7 libelf1=0.176-1.1 libfdisk1=2.34-0.1 libffi7=3.3-3 libfile-stripnondeterminism-perl=1.6.3-2 libgcc-9-dev=9.2.1-30 libgcc-s1=10-20200222-1 libgcc1=1:10-20200222-1 libgcrypt20=1.8.5-5 libgdbm-compat4=1.18.1-5 libgdbm6=1.18.1-5 libglib2.0-0=2.62.5-1 libgmp10=2:6.2.0+dfsg-4 libgomp1=10-20200222-1 libgpg-error0=1.37-1 libicu63=63.2-2 libisl22=0.22.1-1 libitm1=10-20200222-1 liblsan0=10-20200222-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.1+20191019-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-20200222-1 libseccomp2=2.4.2-2 libselinux1=3.0-1+b1 libsigsegv2=2.12-2 libsmartcols1=2.34-0.1 libstdc++-9-dev=9.2.1-30 libstdc++6=10-20200222-1 libsub-override-perl=0.09-2 libsystemd0=244.3-1 libtinfo6=6.1+20191019-1 libtool=2.4.6-13 libtsan0=10-20200222-1 libubsan1=10-20200222-1 libuchardet0=0.0.6-3 libudev1=244.3-1 libunistring2=0.9.10-2 libuuid1=2.34-0.1 libxml2=2.9.10+dfsg-4 linux-libc-dev=5.4.19-1 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.1+20191019-1 ncurses-bin=6.1+20191019-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 sed=4.7-1 sensible-utils=0.0.12+nmu1 sysvinit-utils=2.96-2.1 tar=1.30+dfsg-6+b1 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/20200228T152819Z/ 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 recoverdm=0.20-7 && mkdir -p /build/recoverdm-yqCviL && dpkg-source --no-check -x /*.dsc /build/recoverdm-yqCviL/recoverdm-0.20 && chown -R builduser:builduser /build/recoverdm-yqCviL" --customize-hook=chroot "$1" env --unset=TMPDIR runuser builduser -c "cd /build/recoverdm-yqCviL/recoverdm-0.20 && env DEB_BUILD_OPTIONS="parallel=4" LC_ALL="C.UTF-8" SOURCE_DATE_EPOCH="1583004243" dpkg-buildpackage -uc -a amd64 --build=any" --customize-hook=sync-out /build/recoverdm-yqCviL /tmp/recoverdm-0.20-70k2rkd8i bullseye /dev/null deb http://snapshot.notset.fr/archive/debian/20200228T152819Z 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.rIdi2zJPNt 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.rIdi2zJPNt 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/20200228T152819Z unstable/main amd64 libfakeroot amd64 1.24-1 [45.7 kB] Get:2 http://snapshot.notset.fr/archive/debian/20200228T152819Z 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 (804 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 ... 4510 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.29-10) ... 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/20200228T152819Z/ unstable main' >> /etc/apt/sources.list && apt-get update"' exec /tmp/mmdebstrap.rIdi2zJPNt Get:1 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm InRelease [81.6 kB] Hit:2 http://snapshot.notset.fr/archive/debian/20200228T152819Z 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 20s (1108 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.rIdi2zJPNt I: running --customize-hook in shell: sh -c 'chroot "$1" env sh -c "apt-get source --only-source -d recoverdm=0.20-7 && mkdir -p /build/recoverdm-yqCviL && dpkg-source --no-check -x /*.dsc /build/recoverdm-yqCviL/recoverdm-0.20 && chown -R builduser:builduser /build/recoverdm-yqCviL"' exec /tmp/mmdebstrap.rIdi2zJPNt Reading package lists... NOTICE: 'recoverdm' packaging is maintained in the 'Git' version control system at: https://salsa.debian.org/pkg-security-team/recoverdm.git Please use: git clone https://salsa.debian.org/pkg-security-team/recoverdm.git to retrieve the latest (possibly unreleased) updates to the package. Need to get 19.4 kB of source archives. Get:1 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main recoverdm 0.20-7 (dsc) [1893 B] Get:2 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main recoverdm 0.20-7 (tar) [9946 B] Get:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main recoverdm 0.20-7 (diff) [7588 B] Fetched 19.4 kB in 0s (381 kB/s) Download complete and in download only mode W: Download is performed unsandboxed as root as file 'recoverdm_0.20-7.dsc' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) dpkg-source: info: extracting recoverdm in /build/recoverdm-yqCviL/recoverdm-0.20 dpkg-source: info: unpacking recoverdm_0.20.orig.tar.gz dpkg-source: info: unpacking recoverdm_0.20-7.debian.tar.xz dpkg-source: info: using patch list from debian/patches/series dpkg-source: info: applying 10_fix-makefile.patch dpkg-source: info: applying 20_fix-typo-binary.patch dpkg-source: info: applying 30-fix-BTS-mergebad-crash.patch dpkg-source: info: applying 40_dev-c.patch I: running --customize-hook in shell: sh -c 'chroot "$1" env --unset=TMPDIR runuser builduser -c "cd /build/recoverdm-yqCviL/recoverdm-0.20 && env DEB_BUILD_OPTIONS="parallel=4" LC_ALL="C.UTF-8" SOURCE_DATE_EPOCH="1583004243" dpkg-buildpackage -uc -a amd64 --build=any"' exec /tmp/mmdebstrap.rIdi2zJPNt dpkg-buildpackage: info: source package recoverdm dpkg-buildpackage: info: source version 0.20-7 dpkg-buildpackage: info: source distribution unstable dpkg-buildpackage: info: source changed by Thiago Andrade Marques dpkg-source --before-build . dpkg-buildpackage: info: host architecture amd64 debian/rules clean dh clean dh_auto_clean make -j4 clean make[1]: Entering directory '/build/recoverdm-yqCviL/recoverdm-0.20' rm -f recoverdm.o dev.o io.o utils.o error.o mergebad.o io.o utils.o error.o recoverdm mergebad core make[1]: Leaving directory '/build/recoverdm-yqCviL/recoverdm-0.20' dh_clean debian/rules binary-arch dh binary-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/recoverdm-yqCviL/recoverdm-0.20' cc -g -O2 -fdebug-prefix-map=/build/recoverdm-yqCviL/recoverdm-0.20=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wshadow -Wconversion -Wwrite-strings -Winline -O2 -DVERSION=\"0.20\" -Wdate-time -D_FORTIFY_SOURCE=2 -c -o recoverdm.o recoverdm.c cc -g -O2 -fdebug-prefix-map=/build/recoverdm-yqCviL/recoverdm-0.20=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wshadow -Wconversion -Wwrite-strings -Winline -O2 -DVERSION=\"0.20\" -Wdate-time -D_FORTIFY_SOURCE=2 -c -o dev.o dev.c cc -g -O2 -fdebug-prefix-map=/build/recoverdm-yqCviL/recoverdm-0.20=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wshadow -Wconversion -Wwrite-strings -Winline -O2 -DVERSION=\"0.20\" -Wdate-time -D_FORTIFY_SOURCE=2 -c -o io.o io.c cc -g -O2 -fdebug-prefix-map=/build/recoverdm-yqCviL/recoverdm-0.20=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wshadow -Wconversion -Wwrite-strings -Winline -O2 -DVERSION=\"0.20\" -Wdate-time -D_FORTIFY_SOURCE=2 -c -o utils.o utils.c recoverdm.c: In function ‘lba_to_msf’: recoverdm.c:55:13: warning: conversion from ‘off64_t’ {aka ‘long int’} to ‘unsigned char’ may change value [-Wconversion] 55 | *minute = (lba + 150) / (60 * 75); | ^ recoverdm.c:57:13: warning: conversion from ‘off64_t’ {aka ‘long int’} to ‘unsigned char’ may change value [-Wconversion] 57 | *second = (lba + 150) / 75; | ^ recoverdm.c:59:12: warning: conversion from ‘off64_t’ {aka ‘long int’} to ‘unsigned char’ may change value [-Wconversion] 59 | *frame = (lba + 150); | ^ recoverdm.c:63:13: warning: conversion from ‘off64_t’ {aka ‘long int’} to ‘unsigned char’ may change value [-Wconversion] 63 | *minute = (lba + 450150) / (60 * 75); | ^ recoverdm.c:65:13: warning: conversion from ‘off64_t’ {aka ‘long int’} to ‘unsigned char’ may change value [-Wconversion] 65 | *second = (lba + 450150) / 75; | ^ recoverdm.c:67:12: warning: conversion from ‘off64_t’ {aka ‘long int’} to ‘unsigned char’ may change value [-Wconversion] 67 | *frame = (lba + 450150); | ^ recoverdm.c: In function ‘create_sector’: recoverdm.c:75:50: warning: passing argument 2 of ‘mymalloc’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 75 | char *sector_out = (char *)mymalloc(block_size, "sector"); | ^~~~~~~~ In file included from recoverdm.c:13: utils.h:1:8: note: expected ‘char *’ but argument is of type ‘const char *’ 1 | void * mymalloc(size_t size, char *what); | ^~~~~~~~ recoverdm.c:107:25: warning: conversion from ‘int’ to ‘short int’ may change value [-Wconversion] 107 | chosen_byte_count = count[loop2]; | ^~~~~ recoverdm.c:108:19: warning: conversion from ‘int’ to ‘short int’ may change value [-Wconversion] 108 | chosen_byte = loop2; | ^~~~~ recoverdm.c:126:23: warning: conversion from ‘short int’ to ‘char’ may change value [-Wconversion] 126 | sector_out[loop] = chosen_byte; | ^~~~~~~~~~~ recoverdm.c:149:23: warning: conversion to ‘char’ from ‘unsigned char’ may change the sign of the result [-Wsign-conversion] 149 | sector_out[loop] = sectors[max_n_ok_index][loop]; | ^~~~~~~ recoverdm.c: In function ‘get_raw_cd’: recoverdm.c:169:57: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion] 169 | char **sector_list = (char **)mymalloc(sizeof(char *) * n_raw_retries, "sectorlist"); | ^ recoverdm.c:169:74: warning: passing argument 2 of ‘mymalloc’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 169 | char **sector_list = (char **)mymalloc(sizeof(char *) * n_raw_retries, "sectorlist"); | ^~~~~~~~~~~~ In file included from recoverdm.c:13: utils.h:1:8: note: expected ‘char *’ but argument is of type ‘const char *’ 1 | void * mymalloc(size_t size, char *what); | ^~~~~~~~ recoverdm.c:174:53: warning: passing argument 2 of ‘mymalloc’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 174 | sector_list[loop] = (char *)mymalloc(block_size, "sector"); | ^~~~~~~~ In file included from recoverdm.c:13: utils.h:1:8: note: expected ‘char *’ but argument is of type ‘const char *’ 1 | void * mymalloc(size_t size, char *what); | ^~~~~~~~ recoverdm.c:184:22: warning: passing argument 1 of ‘create_sector’ from incompatible pointer type [-Wincompatible-pointer-types] 184 | if (create_sector(sector_list, n_raw_retries, block_size, &dummy) == -1) | ^~~~~~~~~~~ | | | char ** recoverdm.c:71:35: note: expected ‘unsigned char **’ but argument is of type ‘char **’ 71 | int create_sector(unsigned char **sectors, int n_sectors, size_t block_size, char **psector_out) | ~~~~~~~~~~~~~~~~^~~~~~~ recoverdm.c: In function ‘main’: recoverdm.c:235:15: warning: conversion from ‘int’ to ‘char’ may change value [-Wconversion] 235 | dev_type = atoi(optarg); | ^~~~ recoverdm.c:256:16: warning: conversion from ‘int’ to ‘char’ may change value [-Wconversion] 256 | n_retries = atoi(optarg); | ^~~~ recoverdm.c:262:15: warning: conversion from ‘int’ to ‘char’ may change value [-Wconversion] 262 | cd_speed = atoi(optarg); | ^~~~ recoverdm.c:265:23: warning: conversion from ‘int’ to ‘char’ may change value [-Wconversion] 265 | n_raw_cd_retries = atoi(optarg); | ^~~~ recoverdm.c:307:40: warning: passing argument 2 of ‘mymalloc’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 307 | buffer = (char *)mymalloc(block_size, "sectorbuffer"); | ^~~~~~~~~~~~~~ In file included from recoverdm.c:13: utils.h:1:8: note: expected ‘char *’ but argument is of type ‘const char *’ 1 | void * mymalloc(size_t size, char *what); | ^~~~~~~~ recoverdm.c:308:41: warning: passing argument 2 of ‘mymalloc’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 308 | buffer2 = (char *)mymalloc(block_size, "sectorbuffer for retries"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from recoverdm.c:13: utils.h:1:8: note: expected ‘char *’ but argument is of type ‘const char *’ 1 | void * mymalloc(size_t size, char *what); | ^~~~~~~~ recoverdm.c:361:14: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘off64_t’ {aka ‘long int’} [-Wformat=] 361 | printf("%lld\r", curpos); | ~~~^ ~~~~~~ | | | | | off64_t {aka long int} | long long int | %ld recoverdm.c:388:24: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘off64_t’ {aka ‘long int’} [-Wformat=] 388 | printf("error at %lld bytes, retrying: %d\n", curpos, n); | ~~~^ ~~~~~~ | | | | long long int off64_t {aka long int} | %ld recoverdm.c:445:56: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion] 445 | fprintf(dsecfile, "%lld %ld\n", curpos, block_size*skip_value); | ^ recoverdm.c:445:28: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘off64_t’ {aka ‘long int’} [-Wformat=] 445 | fprintf(dsecfile, "%lld %ld\n", curpos, block_size*skip_value); | ~~~^ ~~~~~~ | | | | | off64_t {aka long int} | long long int | %ld recoverdm.c:440:10: warning: variable ‘ok’ set but not used [-Wunused-but-set-variable] 440 | char ok = 1; | ^~ io.c: In function ‘READ’: io.c:30:17: warning: passing argument 1 of ‘error_exit’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 30 | error_exit("unexpected error while reading: %s (%d)\n", strerror(errno), errno); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from io.c:12: error.h:1:23: note: expected ‘char *’ but argument is of type ‘const char *’ 1 | void error_exit(char *format, ...); | ~~~~~~^~~~~~ io.c:42:8: warning: conversion to ‘long unsigned int’ from ‘ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion] 42 | len -= rc; | ^~ io.c: In function ‘WRITE’: io.c:75:8: warning: conversion to ‘long unsigned int’ from ‘ssize_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion] 75 | len -= rc; | ^~ io.c: In function ‘phantom_write’: io.c:111:18: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘off64_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion] 111 | move_a_little = 512 - (curpos & 511); | ^~~ io.c:126:14: warning: conversion from ‘ssize_t’ {aka ‘long int’} to ‘int’ may change value [-Wconversion] 126 | if ((rc = WRITE(fd, in, move_a_little)) <= 0) | ^~~~~ io.c:132:18: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion] 132 | move_a_little -= rc; | ^~ io.c:163:15: warning: conversion from ‘ssize_t’ {aka ‘long int’} to ‘int’ may change value [-Wconversion] 163 | if ((rc = WRITE(fd, in, 512)) <= 0) | ^~~~~ io.c:172:14: warning: conversion from ‘ssize_t’ {aka ‘long int’} to ‘int’ may change value [-Wconversion] 172 | if ((rc = WRITE(fd, in, nbytes)) <= 0) | ^~~~~ io.c:181:10: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion] 181 | nbytes -= rc; | ^~ utils.c: In function ‘mymalloc’: utils.c:21:14: warning: passing argument 1 of ‘error_exit’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 21 | error_exit("failed to allocate %d bytes for %s\n", size, what); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from utils.c:15: error.h:1:23: note: expected ‘char *’ but argument is of type ‘const char *’ 1 | void error_exit(char *format, ...); | ~~~~~~^~~~~~ utils.c: In function ‘myrealloc’: utils.c:30:14: warning: passing argument 1 of ‘error_exit’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 30 | error_exit("failed to reallocate to %d bytes for %s\n", newsize, what); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from utils.c:15: error.h:1:23: note: expected ‘char *’ but argument is of type ‘const char *’ 1 | void error_exit(char *format, ...); | ~~~~~~^~~~~~ utils.c: In function ‘get_filesize’: utils.c:40:14: warning: passing argument 1 of ‘error_exit’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 40 | error_exit("Failed to retrieve length of file %s: %s (%d)\n", filename, strerror(errno), errno); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from utils.c:15: error.h:1:23: note: expected ‘char *’ but argument is of type ‘const char *’ 1 | void error_exit(char *format, ...); | ~~~~~~^~~~~~ In file included from utils.c:13: utils.c: In function ‘copy_block’: gen.h:1:25: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘off64_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion] 1 | #define min(x, y) ((x)<(y)?(x):(y)) | ^ utils.c:51:24: note: in expansion of macro ‘min’ 51 | size_t sector_size = min(block_size, 512); | ^~~ utils.c:56:37: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=] 56 | fprintf(stderr, "Failed to read %d bytes from inputfile: %s (%d)\n", sector_size, strerror(errno), errno); | ~^ ~~~~~~~~~~~ | | | | int size_t {aka long unsigned int} | %ld utils.c:68:14: warning: conversion to ‘long unsigned int’ from ‘off64_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion] 68 | block_size -= sector_size; | ^~ utils.c:68:17: warning: conversion to ‘off64_t’ {aka ‘long int’} from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion] 68 | block_size -= sector_size; | ^~~~~~~~~~~ utils.c: In function ‘myseek’: utils.c:78:14: warning: passing argument 1 of ‘error_exit’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 78 | error_exit("Failed to seek in file to offset %lld: %s (%d)\n", offset, strerror(errno), errno); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from utils.c:15: error.h:1:23: note: expected ‘char *’ but argument is of type ‘const char *’ 1 | void error_exit(char *format, ...); | ~~~~~~^~~~~~ cc -g -O2 -fdebug-prefix-map=/build/recoverdm-yqCviL/recoverdm-0.20=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wshadow -Wconversion -Wwrite-strings -Winline -O2 -DVERSION=\"0.20\" -Wdate-time -D_FORTIFY_SOURCE=2 -c -o error.o error.c cc -g -O2 -fdebug-prefix-map=/build/recoverdm-yqCviL/recoverdm-0.20=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wshadow -Wconversion -Wwrite-strings -Winline -O2 -DVERSION=\"0.20\" -Wdate-time -D_FORTIFY_SOURCE=2 -c -o mergebad.o mergebad.c mergebad.c: In function ‘find_image_without_badblock’: mergebad.c:45:50: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘off64_t’ {aka ‘long int’} [-Wformat=] 45 | printf("> find_image_without_badblock(%p %d %lld)\n", imgs, n_imgs, offset); | ~~~^ ~~~~~~ | | | | long long int off64_t {aka long int} | %ld mergebad.c:59:25: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘off64_t’ {aka ‘long int’} [-Wformat=] 59 | printf("= %d/%d, %lld - %lld\n", img_index, badblock_index, cur_offset, cur_bb_end); | ~~~^ ~~~~~~~~~~ | | | | long long int off64_t {aka long int} | %ld mergebad.c:59:32: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 5 has type ‘off64_t’ {aka ‘long int’} [-Wformat=] 59 | printf("= %d/%d, %lld - %lld\n", img_index, badblock_index, cur_offset, cur_bb_end); | ~~~^ ~~~~~~~~~~ | | | | long long int off64_t {aka long int} | %ld mergebad.c: In function ‘find_smallest_current_badblock’: mergebad.c:103:53: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘off64_t’ {aka ‘long int’} [-Wformat=] 103 | printf("> find_smallest_current_badblock(%p %d %lld %p %p)\n", imgs, n_imgs, offset, selected_image, selected_badblock); | ~~~^ ~~~~~~ | | | | long long int off64_t {aka long int} | %ld mergebad.c:118:25: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘off64_t’ {aka ‘long int’} [-Wformat=] 118 | printf("= %d/%d, %lld - %lld\n", img_index, badblock_index, cur_offset, cur_bb_end); | ~~~^ ~~~~~~~~~~ | | | | long long int off64_t {aka long int} | %ld mergebad.c:118:32: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 5 has type ‘off64_t’ {aka ‘long int’} [-Wformat=] 118 | printf("= %d/%d, %lld - %lld\n", img_index, badblock_index, cur_offset, cur_bb_end); | ~~~^ ~~~~~~~~~~ | | | | long long int off64_t {aka long int} | %ld mergebad.c:130:33: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘off64_t’ {aka ‘long int’} [-Wformat=] 130 | printf("= # bytes left: %lld\n", block_size_left); | ~~~^ ~~~~~~~~~~~~~~~ | | | | | off64_t {aka long int} | long long int | %ld mergebad.c:148:55: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘off64_t’ {aka ‘long int’} [-Wformat=] 148 | printf("> find_smallest_current_badblock: %d %d (%lld)\n", *selected_image, *selected_badblock, smallest_block_size); | ~~~^ ~~~~~~~~~~~~~~~~~~~ | | | | long long int off64_t {aka long int} | %ld mergebad.c: In function ‘read_mapfile’: mergebad.c:189:18: warning: format ‘%lld’ expects argument of type ‘long long int *’, but argument 3 has type ‘off64_t *’ {aka ‘long int *’} [-Wformat=] 189 | fscanf(fh, "%lld %d", &offset, &block_size); | ~~~^ ~~~~~~~ | | | | | off64_t * {aka long int *} | long long int * | %ld mergebad.c:191:53: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion] 191 | bbs = (badblock *)myrealloc(bbs, sizeof(badblock) * (n_bb + 1), "badblocks list"); | ^ mergebad.c:191:67: warning: passing argument 3 of ‘myrealloc’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 191 | bbs = (badblock *)myrealloc(bbs, sizeof(badblock) * (n_bb + 1), "badblocks list"); | ^~~~~~~~~~~~~~~~ In file included from mergebad.c:14: utils.h:2:8: note: expected ‘char *’ but argument is of type ‘const char *’ 2 | void * myrealloc(void *oldp, size_t newsize, char *what); | ^~~~~~~~~ mergebad.c:196:19: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘off64_t’ {aka ‘long int’} [-Wformat=] 196 | printf("%d] %lld %lld\n", n_bb, offset, block_size); | ~~~^ ~~~~~~ | | | | long long int off64_t {aka long int} | %ld mergebad.c:196:24: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘int’ [-Wformat=] 196 | printf("%d] %lld %lld\n", n_bb, offset, block_size); | ~~~^ ~~~~~~~~~~ | | | | long long int int | %d mergebad.c: In function ‘select_most_occuring_byte’: mergebad.c:228:20: warning: conversion from ‘int’ to ‘char’ may change value [-Wconversion] 228 | selected_byte = loop; | ^~~~ mergebad.c:235:14: warning: passing argument 1 of ‘error_exit’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 235 | error_exit("Internal error: no byte found!"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from mergebad.c:15: error.h:1:23: note: expected ‘char *’ but argument is of type ‘const char *’ 1 | void error_exit(char *format, ...); | ~~~~~~^~~~~~ mergebad.c: In function ‘main’: mergebad.c:272:41: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion] 272 | imgs = myrealloc(imgs, sizeof(image) * (n_imgs + 1), "image structure"); | ^ mergebad.c:272:57: warning: passing argument 3 of ‘myrealloc’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 272 | imgs = myrealloc(imgs, sizeof(image) * (n_imgs + 1), "image structure"); | ^~~~~~~~~~~~~~~~~ In file included from mergebad.c:14: utils.h:2:8: note: expected ‘char *’ but argument is of type ‘const char *’ 2 | void * myrealloc(void *oldp, size_t newsize, char *what); | ^~~~~~~~~ mergebad.c:293:33: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘off64_t’ {aka ‘long int’} [-Wformat=] 293 | printf("Adding image: %s/%lld number of badblocks: %d\n", imgs[n_imgs].filename, imgs[n_imgs].size, imgs[n_imgs].bb_list_size); | ~~~^ ~~~~~~~~~~~~~~~~~ | | | | long long int off64_t {aka long int} | %ld mergebad.c:321:29: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘off64_t’ {aka ‘long int’} [-Wformat=] 321 | printf("Length set to: %d\n", length); | ~^ ~~~~~~ | | | | int off64_t {aka long int} | %ld mergebad.c:363:60: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘off64_t’ {aka ‘long int’} [-Wformat=] 363 | printf("No filelength given, using length of file %s: %lld\n", imgs[0].filename, (length = get_filesize(imgs[0].filename))); | ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | long long int off64_t {aka long int} | %ld mergebad.c:371:31: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘off64_t’ {aka ‘long int’} [-Wformat=] 371 | printf("Current offset: %lld\n", offset); | ~~~^ ~~~~~~ | | | | | off64_t {aka long int} | long long int | %ld mergebad.c:394:26: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘off64_t’ {aka ‘long int’} [-Wformat=] 394 | printf("Will copy %lld bytes from file %s\n", n_bytes_to_copy, imgs[img_index].filename); | ~~~^ ~~~~~~~~~~~~~~~ | | | | long long int off64_t {aka long int} | %ld mergebad.c:402:53: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘off64_t’ {aka ‘long int’} [-Wformat=] 402 | fprintf(stderr, "There was a problem copying %lld bytes of data from file %s to the outputfile: %s (%d)\n", n_bytes_to_copy, imgs[img_index].filename, strerror(errno), errno); | ~~~^ ~~~~~~~~~~~~~~~ | | | | long long int off64_t {aka long int} | %ld mergebad.c:417:63: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘off64_t’ {aka ‘long int’} [-Wformat=] 417 | printf("No image without badblocks for current offset (%lld) found: \"guessing\" one or more bytes.\n", offset); | ~~~^ ~~~~~~ | | | | long long int off64_t {aka long int} | %ld mergebad.c:419:44: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion] 419 | guess_bytes = (unsigned char *)mymalloc(n_imgs, "temp buffer for bytes from each image to select from"); | ^~~~~~ mergebad.c:419:52: warning: passing argument 2 of ‘mymalloc’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 419 | guess_bytes = (unsigned char *)mymalloc(n_imgs, "temp buffer for bytes from each image to select from"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from mergebad.c:14: utils.h:1:8: note: expected ‘char *’ but argument is of type ‘const char *’ 1 | void * mymalloc(size_t size, char *what); | ^~~~~~~~ mergebad.c:425:16: warning: passing argument 1 of ‘error_exit’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 425 | error_exit("Internal error: could not find the badblock \"we're in\".\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from mergebad.c:15: error.h:1:23: note: expected ‘char *’ but argument is of type ‘const char *’ 1 | void error_exit(char *format, ...); | ~~~~~~^~~~~~ mergebad.c:437:30: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘off64_t’ {aka ‘long int’} [-Wformat=] 437 | fprintf(fh_map_file, "%lld %lld\n", offset, n_to_guess); | ~~~^ ~~~~~~ | | | | | off64_t {aka long int} | long long int | %ld mergebad.c:437:35: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘off64_t’ {aka ‘long int’} [-Wformat=] 437 | fprintf(fh_map_file, "%lld %lld\n", offset, n_to_guess); | ~~~^ ~~~~~~~~~~ | | | | long long int off64_t {aka long int} | %ld mergebad.c:443:29: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘off64_t’ {aka ‘long int’} [-Wformat=] 443 | printf("\"Guessing\" %lld bytes\n", n_to_guess); | ~~~^ ~~~~~~~~~~ | | | | | off64_t {aka long int} | long long int | %ld mergebad.c:447:16: warning: passing argument 1 of ‘error_exit’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 447 | error_exit("Number of \"bytes to guess\" less then 1!\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from mergebad.c:15: error.h:1:23: note: expected ‘char *’ but argument is of type ‘const char *’ 1 | void error_exit(char *format, ...); | ~~~~~~^~~~~~ mergebad.c:455:29: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘off64_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion] 455 | output_buffer = mymalloc(n_to_guess, "guessed bytes"); | ^~~~~~~~~~ mergebad.c:455:41: warning: passing argument 2 of ‘mymalloc’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 455 | output_buffer = mymalloc(n_to_guess, "guessed bytes"); | ^~~~~~~~~~~~~~~ In file included from mergebad.c:14: utils.h:1:8: note: expected ‘char *’ but argument is of type ‘const char *’ 1 | void * mymalloc(size_t size, char *what); | ^~~~~~~~ mergebad.c:478:45: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘off64_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion] 478 | if (phantom_write(fd_out, output_buffer, n_to_guess) != n_to_guess) | ^~~~~~~~~~ mergebad.c: In function ‘read_mapfile’: mergebad.c:189:3: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] 189 | fscanf(fh, "%lld %d", &offset, &block_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -Wall -W recoverdm.o dev.o io.o utils.o error.o -Wl,-z,relro -Wl,-z,now -o recoverdm cc -Wall -W mergebad.o io.o utils.o error.o -Wl,-z,relro -Wl,-z,now -o mergebad make[1]: Leaving directory '/build/recoverdm-yqCviL/recoverdm-0.20' dh_auto_test -a create-stamp debian/debhelper-build-stamp dh_testroot -a dh_prep -a dh_installdirs -a dh_auto_install -a make -j4 install DESTDIR=/build/recoverdm-yqCviL/recoverdm-0.20/debian/recoverdm AM_UPDATE_INFO_DIR=no "INSTALL=install --strip-program=true" make[1]: Entering directory '/build/recoverdm-yqCviL/recoverdm-0.20' cp recoverdm mergebad /build/recoverdm-yqCviL/recoverdm-0.20/debian/recoverdm/usr/bin echo echo Oh, blatant plug: http://keetweej.vanheusden.com/wishlist.html Oh, blatant plug: http://keetweej.vanheusden.com/wishlist.html make[1]: Leaving directory '/build/recoverdm-yqCviL/recoverdm-0.20' 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 'recoverdm-dbgsym' in '../recoverdm-dbgsym_0.20-7_amd64.deb'. dpkg-deb: building package 'recoverdm' in '../recoverdm_0.20-7_amd64.deb'. dpkg-genbuildinfo --build=any dpkg-genchanges --build=any >../recoverdm_0.20-7_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/recoverdm-yqCviL /tmp/recoverdm-0.20-70k2rkd8i I: cleaning package lists and apt cache... I: creating tarball... I: done I: removing tempdir /tmp/mmdebstrap.rIdi2zJPNt... I: success in 289.4997 seconds md5: recoverdm-dbgsym_0.20-7_amd64.deb: OK md5: recoverdm_0.20-7_amd64.deb: OK sha1: recoverdm-dbgsym_0.20-7_amd64.deb: OK sha1: recoverdm_0.20-7_amd64.deb: OK sha256: recoverdm-dbgsym_0.20-7_amd64.deb: OK sha256: recoverdm_0.20-7_amd64.deb: OK Checksums: OK