Diff of the two buildlogs: -- --- b1/build.log 2021-07-12 15:36:12.140430506 +0000 +++ b2/build.log 2021-07-12 15:36:38.943426671 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Sun Aug 14 09:58:10 -12 2022 -I: pbuilder-time-stamp: 1660514290 +I: Current time: Tue Jul 13 05:36:13 +14 2021 +I: pbuilder-time-stamp: 1626104173 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/buster-reproducible-base.tgz] I: copying local configuration @@ -17,7 +17,7 @@ I: Extracting source gpgv: unknown type of key resource 'trustedkeys.kbx' gpgv: keyblock resource '/root/.gnupg/trustedkeys.kbx': General error -gpgv: Signature made Fri Jan 18 09:28:01 2019 -12 +gpgv: Signature made Sat Jan 19 11:28:01 2019 +14 gpgv: using RSA key 05DB6A837E105F4B1D02C55FBBA9FAADCCFB4707 gpgv: Can't check signature: No public key dpkg-source: warning: failed to verify signature on ./recoverdm_0.20-6.dsc @@ -30,136 +30,170 @@ dpkg-source: info: applying 30-fix-BTS-mergebad-crash.patch I: using fakeroot in build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/24274/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/52123/tmp/hooks/D01_modify_environment starting +debug: Running on ionos11-amd64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +Removing 'diversion of /bin/sh to /bin/sh.distrib by dash' +Adding 'diversion of /bin/sh to /bin/sh.distrib by bash' +Removing 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash' +Adding 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by bash' +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/52123/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/52123/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='amd64' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=16' - DISTRIBUTION='' - HOME='/root' - HOST_ARCH='amd64' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="0" [2]="3" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") + BASH_VERSION='5.0.3(1)-release' + BUILDDIR=/build + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=amd64 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=15' + DIRSTACK=() + DISTRIBUTION= + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='acc5743a6eec4051b55c136a2219d951' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='24274' - PS1='# ' - PS2='> ' + INVOCATION_ID=9a62d3130a294defa7478776f53dc691 + LANG=C + LANGUAGE=et_EE:et + LC_ALL=C + MACHTYPE=x86_64-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=52123 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/tmp.Di4OmW4JSo/pbuilderrc_YoQA --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/buster-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.Di4OmW4JSo/b1 --logfile b1/build.log recoverdm_0.20-6.dsc' - SUDO_GID='110' - SUDO_UID='105' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://85.184.249.68:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/tmp.Di4OmW4JSo/pbuilderrc_VWpZ --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/buster-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.Di4OmW4JSo/b2 --logfile b2/build.log recoverdm_0.20-6.dsc' + SUDO_GID=111 + SUDO_UID=106 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://78.137.99.97:3128 I: uname -a - Linux ionos5-amd64 5.10.0-0.bpo.7-amd64 #1 SMP Debian 5.10.40-1~bpo10+1 (2021-06-04) x86_64 GNU/Linux + Linux i-capture-the-hostname 4.19.0-17-amd64 #1 SMP Debian 4.19.194-2 (2021-06-21) x86_64 GNU/Linux I: ls -l /bin total 5116 - -rwxr-xr-x 1 root root 1168776 Apr 17 2019 bash - -rwxr-xr-x 3 root root 38984 Jul 10 2019 bunzip2 - -rwxr-xr-x 3 root root 38984 Jul 10 2019 bzcat - lrwxrwxrwx 1 root root 6 Jul 10 2019 bzcmp -> bzdiff - -rwxr-xr-x 1 root root 2227 Jul 10 2019 bzdiff - lrwxrwxrwx 1 root root 6 Jul 10 2019 bzegrep -> bzgrep - -rwxr-xr-x 1 root root 4877 Jun 24 2019 bzexe - lrwxrwxrwx 1 root root 6 Jul 10 2019 bzfgrep -> bzgrep - -rwxr-xr-x 1 root root 3641 Jul 10 2019 bzgrep - -rwxr-xr-x 3 root root 38984 Jul 10 2019 bzip2 - -rwxr-xr-x 1 root root 14328 Jul 10 2019 bzip2recover - lrwxrwxrwx 1 root root 6 Jul 10 2019 bzless -> bzmore - -rwxr-xr-x 1 root root 1297 Jul 10 2019 bzmore - -rwxr-xr-x 1 root root 43744 Feb 28 2019 cat - -rwxr-xr-x 1 root root 64320 Feb 28 2019 chgrp - -rwxr-xr-x 1 root root 64288 Feb 28 2019 chmod - -rwxr-xr-x 1 root root 72512 Feb 28 2019 chown - -rwxr-xr-x 1 root root 146880 Feb 28 2019 cp - -rwxr-xr-x 1 root root 121464 Jan 17 2019 dash - -rwxr-xr-x 1 root root 109408 Feb 28 2019 date - -rwxr-xr-x 1 root root 76712 Feb 28 2019 dd - -rwxr-xr-x 1 root root 93744 Feb 28 2019 df - -rwxr-xr-x 1 root root 138856 Feb 28 2019 dir - -rwxr-xr-x 1 root root 84288 Jan 9 2019 dmesg - lrwxrwxrwx 1 root root 8 Sep 26 2018 dnsdomainname -> hostname - lrwxrwxrwx 1 root root 8 Sep 26 2018 domainname -> hostname - -rwxr-xr-x 1 root root 39520 Feb 28 2019 echo - -rwxr-xr-x 1 root root 28 Jan 7 2019 egrep - -rwxr-xr-x 1 root root 35424 Feb 28 2019 false - -rwxr-xr-x 1 root root 28 Jan 7 2019 fgrep - -rwxr-xr-x 1 root root 68880 Jan 9 2019 findmnt - -rwsr-xr-x 1 root root 34896 Apr 22 2020 fusermount - -rwxr-xr-x 1 root root 198976 Jan 7 2019 grep - -rwxr-xr-x 2 root root 2345 Jan 5 2019 gunzip - -rwxr-xr-x 1 root root 6375 Jan 5 2019 gzexe - -rwxr-xr-x 1 root root 98048 Jan 5 2019 gzip - -rwxr-xr-x 1 root root 26696 Sep 26 2018 hostname - -rwxr-xr-x 1 root root 68552 Feb 28 2019 ln - -rwxr-xr-x 1 root root 56760 Jul 26 2018 login - -rwxr-xr-x 1 root root 138856 Feb 28 2019 ls - -rwxr-xr-x 1 root root 108624 Jan 9 2019 lsblk - -rwxr-xr-x 1 root root 89088 Feb 28 2019 mkdir - -rwxr-xr-x 1 root root 68544 Feb 28 2019 mknod - -rwxr-xr-x 1 root root 43808 Feb 28 2019 mktemp - -rwxr-xr-x 1 root root 43008 Jan 9 2019 more - -rwsr-xr-x 1 root root 51280 Jan 9 2019 mount - -rwxr-xr-x 1 root root 14408 Jan 9 2019 mountpoint - -rwxr-xr-x 1 root root 138728 Feb 28 2019 mv - lrwxrwxrwx 1 root root 8 Sep 26 2018 nisdomainname -> hostname - lrwxrwxrwx 1 root root 14 Feb 14 2019 pidof -> /sbin/killall5 - -rwxr-xr-x 1 root root 39616 Feb 28 2019 pwd - lrwxrwxrwx 1 root root 4 Apr 17 2019 rbash -> bash - -rwxr-xr-x 1 root root 47776 Feb 28 2019 readlink - -rwxr-xr-x 1 root root 68416 Feb 28 2019 rm - -rwxr-xr-x 1 root root 47776 Feb 28 2019 rmdir - -rwxr-xr-x 1 root root 23312 Jan 21 2019 run-parts - -rwxr-xr-x 1 root root 122224 Dec 22 2018 sed - lrwxrwxrwx 1 root root 4 Aug 9 02:46 sh -> dash - -rwxr-xr-x 1 root root 39552 Feb 28 2019 sleep - -rwxr-xr-x 1 root root 80672 Feb 28 2019 stty - -rwsr-xr-x 1 root root 63568 Jan 9 2019 su - -rwxr-xr-x 1 root root 35488 Feb 28 2019 sync - -rwxr-xr-x 1 root root 445560 Apr 23 2019 tar - -rwxr-xr-x 1 root root 14440 Jan 21 2019 tempfile - -rwxr-xr-x 1 root root 97152 Feb 28 2019 touch - -rwxr-xr-x 1 root root 35424 Feb 28 2019 true - -rwxr-xr-x 1 root root 14328 Apr 22 2020 ulockmgr_server - -rwsr-xr-x 1 root root 34888 Jan 9 2019 umount - -rwxr-xr-x 1 root root 39584 Feb 28 2019 uname - -rwxr-xr-x 2 root root 2345 Jan 5 2019 uncompress - -rwxr-xr-x 1 root root 138856 Feb 28 2019 vdir - -rwxr-xr-x 1 root root 34896 Jan 9 2019 wdctl - -rwxr-xr-x 1 root root 946 Jan 21 2019 which - lrwxrwxrwx 1 root root 8 Sep 26 2018 ypdomainname -> hostname - -rwxr-xr-x 1 root root 1983 Jan 5 2019 zcat - -rwxr-xr-x 1 root root 1677 Jan 5 2019 zcmp - -rwxr-xr-x 1 root root 5879 Jan 5 2019 zdiff - -rwxr-xr-x 1 root root 29 Jan 5 2019 zegrep - -rwxr-xr-x 1 root root 29 Jan 5 2019 zfgrep - -rwxr-xr-x 1 root root 2080 Jan 5 2019 zforce - -rwxr-xr-x 1 root root 7584 Jan 5 2019 zgrep - -rwxr-xr-x 1 root root 2205 Jan 5 2019 zless - -rwxr-xr-x 1 root root 1841 Jan 5 2019 zmore - -rwxr-xr-x 1 root root 4552 Jan 5 2019 znew -I: user script /srv/workspace/pbuilder/24274/tmp/hooks/D02_print_environment finished + -rwxr-xr-x 1 root root 1168776 Apr 18 2019 bash + -rwxr-xr-x 3 root root 38984 Jul 11 2019 bunzip2 + -rwxr-xr-x 3 root root 38984 Jul 11 2019 bzcat + lrwxrwxrwx 1 root root 6 Jul 11 2019 bzcmp -> bzdiff + -rwxr-xr-x 1 root root 2227 Jul 11 2019 bzdiff + lrwxrwxrwx 1 root root 6 Jul 11 2019 bzegrep -> bzgrep + -rwxr-xr-x 1 root root 4877 Jun 25 2019 bzexe + lrwxrwxrwx 1 root root 6 Jul 11 2019 bzfgrep -> bzgrep + -rwxr-xr-x 1 root root 3641 Jul 11 2019 bzgrep + -rwxr-xr-x 3 root root 38984 Jul 11 2019 bzip2 + -rwxr-xr-x 1 root root 14328 Jul 11 2019 bzip2recover + lrwxrwxrwx 1 root root 6 Jul 11 2019 bzless -> bzmore + -rwxr-xr-x 1 root root 1297 Jul 11 2019 bzmore + -rwxr-xr-x 1 root root 43744 Mar 1 2019 cat + -rwxr-xr-x 1 root root 64320 Mar 1 2019 chgrp + -rwxr-xr-x 1 root root 64288 Mar 1 2019 chmod + -rwxr-xr-x 1 root root 72512 Mar 1 2019 chown + -rwxr-xr-x 1 root root 146880 Mar 1 2019 cp + -rwxr-xr-x 1 root root 121464 Jan 18 2019 dash + -rwxr-xr-x 1 root root 109408 Mar 1 2019 date + -rwxr-xr-x 1 root root 76712 Mar 1 2019 dd + -rwxr-xr-x 1 root root 93744 Mar 1 2019 df + -rwxr-xr-x 1 root root 138856 Mar 1 2019 dir + -rwxr-xr-x 1 root root 84288 Jan 10 2019 dmesg + lrwxrwxrwx 1 root root 8 Sep 27 2018 dnsdomainname -> hostname + lrwxrwxrwx 1 root root 8 Sep 27 2018 domainname -> hostname + -rwxr-xr-x 1 root root 39520 Mar 1 2019 echo + -rwxr-xr-x 1 root root 28 Jan 8 2019 egrep + -rwxr-xr-x 1 root root 35424 Mar 1 2019 false + -rwxr-xr-x 1 root root 28 Jan 8 2019 fgrep + -rwxr-xr-x 1 root root 68880 Jan 10 2019 findmnt + -rwsr-xr-x 1 root root 34896 Apr 23 2020 fusermount + -rwxr-xr-x 1 root root 198976 Jan 8 2019 grep + -rwxr-xr-x 2 root root 2345 Jan 6 2019 gunzip + -rwxr-xr-x 1 root root 6375 Jan 6 2019 gzexe + -rwxr-xr-x 1 root root 98048 Jan 6 2019 gzip + -rwxr-xr-x 1 root root 26696 Sep 27 2018 hostname + -rwxr-xr-x 1 root root 68552 Mar 1 2019 ln + -rwxr-xr-x 1 root root 56760 Jul 27 2018 login + -rwxr-xr-x 1 root root 138856 Mar 1 2019 ls + -rwxr-xr-x 1 root root 108624 Jan 10 2019 lsblk + -rwxr-xr-x 1 root root 89088 Mar 1 2019 mkdir + -rwxr-xr-x 1 root root 68544 Mar 1 2019 mknod + -rwxr-xr-x 1 root root 43808 Mar 1 2019 mktemp + -rwxr-xr-x 1 root root 43008 Jan 10 2019 more + -rwsr-xr-x 1 root root 51280 Jan 10 2019 mount + -rwxr-xr-x 1 root root 14408 Jan 10 2019 mountpoint + -rwxr-xr-x 1 root root 138728 Mar 1 2019 mv + lrwxrwxrwx 1 root root 8 Sep 27 2018 nisdomainname -> hostname + lrwxrwxrwx 1 root root 14 Feb 15 2019 pidof -> /sbin/killall5 + -rwxr-xr-x 1 root root 39616 Mar 1 2019 pwd + lrwxrwxrwx 1 root root 4 Apr 18 2019 rbash -> bash + -rwxr-xr-x 1 root root 47776 Mar 1 2019 readlink + -rwxr-xr-x 1 root root 68416 Mar 1 2019 rm + -rwxr-xr-x 1 root root 47776 Mar 1 2019 rmdir + -rwxr-xr-x 1 root root 23312 Jan 22 2019 run-parts + -rwxr-xr-x 1 root root 122224 Dec 23 2018 sed + lrwxrwxrwx 1 root root 4 Jul 13 05:36 sh -> bash + lrwxrwxrwx 1 root root 4 Jul 7 22:24 sh.distrib -> dash + -rwxr-xr-x 1 root root 39552 Mar 1 2019 sleep + -rwxr-xr-x 1 root root 80672 Mar 1 2019 stty + -rwsr-xr-x 1 root root 63568 Jan 10 2019 su + -rwxr-xr-x 1 root root 35488 Mar 1 2019 sync + -rwxr-xr-x 1 root root 445560 Apr 24 2019 tar + -rwxr-xr-x 1 root root 14440 Jan 22 2019 tempfile + -rwxr-xr-x 1 root root 97152 Mar 1 2019 touch + -rwxr-xr-x 1 root root 35424 Mar 1 2019 true + -rwxr-xr-x 1 root root 14328 Apr 23 2020 ulockmgr_server + -rwsr-xr-x 1 root root 34888 Jan 10 2019 umount + -rwxr-xr-x 1 root root 39584 Mar 1 2019 uname + -rwxr-xr-x 2 root root 2345 Jan 6 2019 uncompress + -rwxr-xr-x 1 root root 138856 Mar 1 2019 vdir + -rwxr-xr-x 1 root root 34896 Jan 10 2019 wdctl + -rwxr-xr-x 1 root root 946 Jan 22 2019 which + lrwxrwxrwx 1 root root 8 Sep 27 2018 ypdomainname -> hostname + -rwxr-xr-x 1 root root 1983 Jan 6 2019 zcat + -rwxr-xr-x 1 root root 1677 Jan 6 2019 zcmp + -rwxr-xr-x 1 root root 5879 Jan 6 2019 zdiff + -rwxr-xr-x 1 root root 29 Jan 6 2019 zegrep + -rwxr-xr-x 1 root root 29 Jan 6 2019 zfgrep + -rwxr-xr-x 1 root root 2080 Jan 6 2019 zforce + -rwxr-xr-x 1 root root 7584 Jan 6 2019 zgrep + -rwxr-xr-x 1 root root 2205 Jan 6 2019 zless + -rwxr-xr-x 1 root root 1841 Jan 6 2019 zmore + -rwxr-xr-x 1 root root 4552 Jan 6 2019 znew +I: user script /srv/workspace/pbuilder/52123/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -228,7 +262,7 @@ Get: 31 http://deb.debian.org/debian buster/main amd64 intltool-debian all 0.35.0+20060710.5 [26.8 kB] Get: 32 http://deb.debian.org/debian buster/main amd64 po-debconf all 1.0.21 [248 kB] Get: 33 http://deb.debian.org/debian buster/main amd64 debhelper all 12.1.1 [1016 kB] -Fetched 19.0 MB in 1s (32.5 MB/s) +Fetched 19.0 MB in 0s (57.8 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libbsd0: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 ... 19195 files and directories currently installed.) @@ -383,7 +417,7 @@ fakeroot is already the newest version (1.23-1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I: Building the package -I: Running cd /build/recoverdm-0.20/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b +I: Running cd /build/recoverdm-0.20/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b dpkg-buildpackage: info: source package recoverdm dpkg-buildpackage: info: source version 0.20-6 dpkg-buildpackage: info: source distribution unstable @@ -393,7 +427,7 @@ fakeroot debian/rules clean dh clean dh_auto_clean - make -j16 clean + make -j15 clean make[1]: Entering directory '/build/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-0.20' @@ -404,7 +438,7 @@ dh_autoreconf dh_auto_configure dh_auto_build - make -j16 "INSTALL=install --strip-program=true" + make -j15 "INSTALL=install --strip-program=true" make[1]: Entering directory '/build/recoverdm-0.20' cc -g -O2 -ffile-prefix-map=/build/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 -ffile-prefix-map=/build/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 @@ -413,15 +447,26 @@ cc -g -O2 -ffile-prefix-map=/build/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 -ffile-prefix-map=/build/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 recoverdm.c: In function 'lba_to_msf': +io.c: In function 'READ': recoverdm.c:55:13: warning: conversion from 'off64_t' {aka 'long int'} to 'unsigned char' may change value [-Wconversion] *minute = (lba + 150) / (60 * 75); ^ +io.c:30:17: warning: passing argument 1 of 'error_exit' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + error_exit("unexpected error while reading: %s (%d)\n", strerror(errno), errno); + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ recoverdm.c:57:13: warning: conversion from 'off64_t' {aka 'long int'} to 'unsigned char' may change value [-Wconversion] *second = (lba + 150) / 75; ^ +In file included from io.c:12: +error.h:1:23: note: expected 'char *' but argument is of type 'const char *' + void error_exit(char *format, ...); + ~~~~~~^~~~~~ recoverdm.c:59:12: warning: conversion from 'off64_t' {aka 'long int'} to 'unsigned char' may change value [-Wconversion] *frame = (lba + 150); ^ +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] + len -= rc; + ^~ recoverdm.c:63:13: warning: conversion from 'off64_t' {aka 'long int'} to 'unsigned char' may change value [-Wconversion] *minute = (lba + 450150) / (60 * 75); ^ @@ -432,25 +477,48 @@ *frame = (lba + 450150); ^ recoverdm.c: In function 'create_sector': +io.c: In function 'WRITE': recoverdm.c:75:50: warning: passing argument 2 of 'mymalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *sector_out = (char *)mymalloc(block_size, "sector"); ^~~~~~~~ +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] + len -= rc; + ^~ In file included from recoverdm.c:13: utils.h:1:8: note: expected 'char *' but argument is of type 'const char *' void * mymalloc(size_t size, char *what); ^~~~~~~~ +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] + move_a_little = 512 - (curpos & 511); + ^~~ +io.c:126:14: warning: conversion from 'ssize_t' {aka 'long int'} to 'int' may change value [-Wconversion] + if ((rc = WRITE(fd, in, move_a_little)) <= 0) + ^~~~~ recoverdm.c:107:25: warning: conversion from 'int' to 'short int' may change value [-Wconversion] chosen_byte_count = count[loop2]; ^~~~~ recoverdm.c:108:19: warning: conversion from 'int' to 'short int' may change value [-Wconversion] chosen_byte = loop2; ^~~~~ +io.c:132:18: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] + move_a_little -= rc; + ^~ recoverdm.c:126:23: warning: conversion from 'short int' to 'char' may change value [-Wconversion] sector_out[loop] = chosen_byte; ^~~~~~~~~~~ +io.c:163:15: warning: conversion from 'ssize_t' {aka 'long int'} to 'int' may change value [-Wconversion] + if ((rc = WRITE(fd, in, 512)) <= 0) + ^~~~~ recoverdm.c:149:23: warning: conversion to 'char' from 'unsigned char' may change the sign of the result [-Wsign-conversion] sector_out[loop] = sectors[max_n_ok_index][loop]; ^~~~~~~ +io.c:172:14: warning: conversion from 'ssize_t' {aka 'long int'} to 'int' may change value [-Wconversion] + 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] + nbytes -= rc; + ^~ 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] char **sector_list = (char **)mymalloc(sizeof(char *) * n_raw_retries, "sectorlist"); @@ -479,131 +547,6 @@ recoverdm.c:235:15: warning: conversion from 'int' to 'char' may change value [-Wconversion] dev_type = atoi(optarg); ^~~~ -recoverdm.c:256:16: warning: conversion from 'int' to 'char' may change value [-Wconversion] - n_retries = atoi(optarg); - ^~~~ -recoverdm.c:262:15: warning: conversion from 'int' to 'char' may change value [-Wconversion] - cd_speed = atoi(optarg); - ^~~~ -recoverdm.c:265:23: warning: conversion from 'int' to 'char' may change value [-Wconversion] - 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] - 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 *' - 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] - 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 *' - 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=] - printf("%lld\r", curpos); - ~~~^ ~~~~~~ - %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=] - printf("error at %lld bytes, retrying: %d\n", curpos, n); - ~~~^ ~~~~~~ - %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] - 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=] - fprintf(dsecfile, "%lld %ld\n", curpos, block_size*skip_value); - ~~~^ ~~~~~~ - %ld -recoverdm.c:440:10: warning: variable 'ok' set but not used [-Wunused-but-set-variable] - 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] - 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 *' - 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] - 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] - 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] - move_a_little = 512 - (curpos & 511); - ^~~ -io.c:126:14: warning: conversion from 'ssize_t' {aka 'long int'} to 'int' may change value [-Wconversion] - 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] - move_a_little -= rc; - ^~ -io.c:163:15: warning: conversion from 'ssize_t' {aka 'long int'} to 'int' may change value [-Wconversion] - 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] - 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] - 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] - 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 *' - 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] - 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 *' - 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] - 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 *' - 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] - #define min(x, y) ((x)<(y)?(x):(y)) - ^ -utils.c:51:24: note: in expansion of macro 'min' - 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=] - fprintf(stderr, "Failed to read %d bytes from inputfile: %s (%d)\n", sector_size, strerror(errno), errno); - ~^ ~~~~~~~~~~~ - %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] - 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] - 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] - 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 *' - void error_exit(char *format, ...); - ~~~~~~^~~~~~ dev.c: In function 'read_raw_cd': dev.c:174:2: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration] memcpy(whereto, &pframe[12 + 4], 2048); @@ -616,7 +559,16 @@ dev.c:174:2: memcpy(whereto, &pframe[12 + 4], 2048); ^~~~~~ +recoverdm.c:256:16: warning: conversion from 'int' to 'char' may change value [-Wconversion] + n_retries = atoi(optarg); + ^~~~ +recoverdm.c:262:15: warning: conversion from 'int' to 'char' may change value [-Wconversion] + cd_speed = atoi(optarg); + ^~~~ mergebad.c: In function 'find_image_without_badblock': +recoverdm.c:265:23: warning: conversion from 'int' to 'char' may change value [-Wconversion] + n_raw_cd_retries = atoi(optarg); + ^~~~ 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=] printf("> find_image_without_badblock(%p %d %lld)\n", imgs, n_imgs, offset); ~~~^ ~~~~~~ @@ -629,7 +581,21 @@ printf("= %d/%d, %lld - %lld\n", img_index, badblock_index, cur_offset, cur_bb_end); ~~~^ ~~~~~~~~~~ %ld +recoverdm.c:307:40: warning: passing argument 2 of 'mymalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 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 *' + 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] + buffer2 = (char *)mymalloc(block_size, "sectorbuffer for retries"); + ^~~~~~~~~~~~~~~~~~~~~~~~~~ mergebad.c: In function 'find_smallest_current_badblock': +In file included from recoverdm.c:13: +utils.h:1:8: note: expected 'char *' but argument is of type 'const char *' + void * mymalloc(size_t size, char *what); + ^~~~~~~~ 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=] printf("> find_smallest_current_badblock(%p %d %lld %p %p)\n", imgs, n_imgs, offset, selected_image, selected_badblock); ~~~^ ~~~~~~ @@ -646,10 +612,18 @@ printf("= # bytes left: %lld\n", block_size_left); ~~~^ ~~~~~~~~~~~~~~~ %ld +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=] + printf("%lld\r", curpos); + ~~~^ ~~~~~~ + %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=] printf("> find_smallest_current_badblock: %d %d (%lld)\n", *selected_image, *selected_badblock, smallest_block_size); ~~~^ ~~~~~~~~~~~~~~~~~~~ %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=] + printf("error at %lld bytes, retrying: %d\n", curpos, n); + ~~~^ ~~~~~~ + %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=] fscanf(fh, "%lld %d", &offset, &block_size); @@ -673,6 +647,9 @@ printf("%d] %lld %lld\n", n_bb, offset, block_size); ~~~^ ~~~~~~~~~~ %d +recoverdm.c:445:56: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] + fprintf(dsecfile, "%lld %ld\n", curpos, block_size*skip_value); + ^ mergebad.c: In function 'select_most_occuring_byte': mergebad.c:228:20: warning: conversion from 'int' to 'char' may change value [-Wconversion] selected_byte = loop; @@ -684,6 +661,10 @@ error.h:1:23: note: expected 'char *' but argument is of type 'const char *' void error_exit(char *format, ...); ~~~~~~^~~~~~ +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=] + fprintf(dsecfile, "%lld %ld\n", curpos, block_size*skip_value); + ~~~^ ~~~~~~ + %ld 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] imgs = myrealloc(imgs, sizeof(image) * (n_imgs + 1), "image structure"); @@ -695,6 +676,9 @@ utils.h:2:8: note: expected 'char *' but argument is of type 'const char *' void * myrealloc(void *oldp, size_t newsize, char *what); ^~~~~~~~~ +recoverdm.c:440:10: warning: variable 'ok' set but not used [-Wunused-but-set-variable] + char ok = 1; + ^~ 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=] printf("Adding image: %s/%lld number of badblocks: %d\n", imgs[n_imgs].filename, imgs[n_imgs].size, imgs[n_imgs].bb_list_size); ~~~^ ~~~~~~~~~~~~~~~~~ @@ -719,13 +703,29 @@ 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); ~~~^ ~~~~~~~~~~~~~~~ %ld +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] + error_exit("failed to allocate %d bytes for %s\n", size, what); + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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=] printf("No image without badblocks for current offset (%lld) found: \"guessing\" one or more bytes.\n", offset); ~~~^ ~~~~~~ %ld +In file included from utils.c:15: +error.h:1:23: note: expected 'char *' but argument is of type 'const char *' + void error_exit(char *format, ...); + ~~~~~~^~~~~~ mergebad.c:419:44: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] guess_bytes = (unsigned char *)mymalloc(n_imgs, "temp buffer for bytes from each image to select from"); ^~~~~~ +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] + 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 *' + void error_exit(char *format, ...); + ~~~~~~^~~~~~ mergebad.c:419:52: warning: passing argument 2 of 'mymalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] guess_bytes = (unsigned char *)mymalloc(n_imgs, "temp buffer for bytes from each image to select from"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -736,22 +736,48 @@ mergebad.c:425:16: warning: passing argument 1 of 'error_exit' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] error_exit("Internal error: could not find the badblock \"we're in\".\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +utils.c: In function 'get_filesize': In file included from mergebad.c:15: error.h:1:23: note: expected 'char *' but argument is of type 'const char *' void error_exit(char *format, ...); ~~~~~~^~~~~~ +utils.c:40:14: warning: passing argument 1 of 'error_exit' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 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 *' + void error_exit(char *format, ...); + ~~~~~~^~~~~~ +In file included from utils.c:13: +utils.c: In function 'copy_block': 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=] fprintf(fh_map_file, "%lld %lld\n", offset, n_to_guess); ~~~^ ~~~~~~ %ld +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] + #define min(x, y) ((x)<(y)?(x):(y)) + ^ +utils.c:51:24: note: in expansion of macro 'min' + size_t sector_size = min(block_size, 512); + ^~~ 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=] fprintf(fh_map_file, "%lld %lld\n", offset, n_to_guess); ~~~^ ~~~~~~~~~~ %ld +utils.c:56:37: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] + fprintf(stderr, "Failed to read %d bytes from inputfile: %s (%d)\n", sector_size, strerror(errno), errno); + ~^ ~~~~~~~~~~~ + %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=] printf("\"Guessing\" %lld bytes\n", n_to_guess); ~~~^ ~~~~~~~~~~ %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] + 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] + block_size -= sector_size; + ^~~~~~~~~~~ mergebad.c:447:16: warning: passing argument 1 of 'error_exit' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] error_exit("Number of \"bytes to guess\" less then 1!\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -762,6 +788,14 @@ 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] output_buffer = mymalloc(n_to_guess, "guessed bytes"); ^~~~~~~~~~ +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] + 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 *' + void error_exit(char *format, ...); + ~~~~~~^~~~~~ mergebad.c:455:41: warning: passing argument 2 of 'mymalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] output_buffer = mymalloc(n_to_guess, "guessed bytes"); ^~~~~~~~~~~~~~~ @@ -787,7 +821,7 @@ dh_prep dh_installdirs dh_auto_install - make -j16 install DESTDIR=/build/recoverdm-0.20/debian/recoverdm AM_UPDATE_INFO_DIR=no "INSTALL=install --strip-program=true" + make -j15 install DESTDIR=/build/recoverdm-0.20/debian/recoverdm AM_UPDATE_INFO_DIR=no "INSTALL=install --strip-program=true" make[1]: Entering directory '/build/recoverdm-0.20' cp recoverdm mergebad /build/recoverdm-0.20/debian/recoverdm/usr/bin echo @@ -819,12 +853,14 @@ dpkg-source --after-build . dpkg-buildpackage: info: binary-only upload (no source included) I: copying local configuration +I: user script /srv/workspace/pbuilder/52123/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/52123/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/24274 and its subdirectories -I: Current time: Sun Aug 14 09:59:12 -12 2022 -I: pbuilder-time-stamp: 1660514352 +I: removing directory /srv/workspace/pbuilder/52123 and its subdirectories +I: Current time: Tue Jul 13 05:36:38 +14 2021 +I: pbuilder-time-stamp: 1626104198