Diff of the two buildlogs: -- --- b1/build.log 2023-05-10 08:05:54.708633734 +0000 +++ b2/build.log 2023-05-10 08:06:23.391378534 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Tue Jun 11 02:28:18 -12 2024 -I: pbuilder-time-stamp: 1718116098 +I: Current time: Wed May 10 22:05:56 +14 2023 +I: pbuilder-time-stamp: 1683705956 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/bookworm-reproducible-base.tgz] I: copying local configuration @@ -16,7 +16,7 @@ I: copying [./recoverdm_0.20.orig.tar.gz] I: copying [./recoverdm_0.20-8.debian.tar.xz] I: Extracting source -gpgv: Signature made Mon Sep 20 12:50:35 2021 -12 +gpgv: Signature made Tue Sep 21 14:50:35 2021 +14 gpgv: using RSA key 357DCB0EEC95A01AEBA1F0D2DE63B9C704EBE9EF gpgv: Can't check signature: No public key dpkg-source: warning: cannot verify inline signature for ./recoverdm_0.20-8.dsc: no acceptable signature found @@ -30,135 +30,167 @@ dpkg-source: info: applying 40_dev-c.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/1316047/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/666520/tmp/hooks/D01_modify_environment starting +debug: Running on ionos1-amd64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 May 10 22:06 /bin/sh -> /bin/bash +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/666520/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/666520/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='bookworm' - HOME='/root' - HOST_ARCH='amd64' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="15" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") + BASH_VERSION='5.2.15(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=bookworm + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='fc3d799e56c94832abacab3a1eaeedfa' - 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='1316047' - PS1='# ' - PS2='> ' + INVOCATION_ID=2304d539d0434bf890872b7c0fdb7045 + 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=666520 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.dQfBLZMV/pbuilderrc_vnDs --distribution bookworm --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bookworm-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.dQfBLZMV/b1 --logfile b1/build.log recoverdm_0.20-8.dsc' - SUDO_GID='111' - SUDO_UID='106' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://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/r-b-build.dQfBLZMV/pbuilderrc_WfvO --distribution bookworm --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bookworm-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.dQfBLZMV/b2 --logfile b2/build.log --extrapackages usrmerge recoverdm_0.20-8.dsc' + SUDO_GID=110 + SUDO_UID=105 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://78.137.99.97:3128 I: uname -a - Linux ionos15-amd64 6.1.0-0.deb11.6-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.15-1~bpo11+1 (2023-03-16) x86_64 GNU/Linux + Linux i-capture-the-hostname 5.10.0-22-amd64 #1 SMP Debian 5.10.178-3 (2023-04-22) x86_64 GNU/Linux I: ls -l /bin total 5632 - -rwxr-xr-x 1 root root 1265648 Apr 23 2023 bash - -rwxr-xr-x 3 root root 39224 Sep 18 2022 bunzip2 - -rwxr-xr-x 3 root root 39224 Sep 18 2022 bzcat - lrwxrwxrwx 1 root root 6 Sep 18 2022 bzcmp -> bzdiff - -rwxr-xr-x 1 root root 2225 Sep 18 2022 bzdiff - lrwxrwxrwx 1 root root 6 Sep 18 2022 bzegrep -> bzgrep - -rwxr-xr-x 1 root root 4893 Nov 27 2021 bzexe - lrwxrwxrwx 1 root root 6 Sep 18 2022 bzfgrep -> bzgrep - -rwxr-xr-x 1 root root 3775 Sep 18 2022 bzgrep - -rwxr-xr-x 3 root root 39224 Sep 18 2022 bzip2 - -rwxr-xr-x 1 root root 14568 Sep 18 2022 bzip2recover - lrwxrwxrwx 1 root root 6 Sep 18 2022 bzless -> bzmore - -rwxr-xr-x 1 root root 1297 Sep 18 2022 bzmore - -rwxr-xr-x 1 root root 44016 Sep 20 2022 cat - -rwxr-xr-x 1 root root 68656 Sep 20 2022 chgrp - -rwxr-xr-x 1 root root 64496 Sep 20 2022 chmod - -rwxr-xr-x 1 root root 72752 Sep 20 2022 chown - -rwxr-xr-x 1 root root 151152 Sep 20 2022 cp - -rwxr-xr-x 1 root root 125640 Jan 5 2023 dash - -rwxr-xr-x 1 root root 121904 Sep 20 2022 date - -rwxr-xr-x 1 root root 89240 Sep 20 2022 dd - -rwxr-xr-x 1 root root 102200 Sep 20 2022 df - -rwxr-xr-x 1 root root 151344 Sep 20 2022 dir - -rwxr-xr-x 1 root root 88656 Mar 22 2023 dmesg - lrwxrwxrwx 1 root root 8 Dec 19 2022 dnsdomainname -> hostname - lrwxrwxrwx 1 root root 8 Dec 19 2022 domainname -> hostname - -rwxr-xr-x 1 root root 43856 Sep 20 2022 echo - -rwxr-xr-x 1 root root 41 Jan 24 2023 egrep - -rwxr-xr-x 1 root root 35664 Sep 20 2022 false - -rwxr-xr-x 1 root root 41 Jan 24 2023 fgrep - -rwxr-xr-x 1 root root 85600 Mar 22 2023 findmnt - -rwsr-xr-x 1 root root 35128 Mar 22 2023 fusermount - -rwxr-xr-x 1 root root 203152 Jan 24 2023 grep - -rwxr-xr-x 2 root root 2346 Apr 9 2022 gunzip - -rwxr-xr-x 1 root root 6447 Apr 9 2022 gzexe - -rwxr-xr-x 1 root root 98136 Apr 9 2022 gzip - -rwxr-xr-x 1 root root 22680 Dec 19 2022 hostname - -rwxr-xr-x 1 root root 72824 Sep 20 2022 ln - -rwxr-xr-x 1 root root 53024 Mar 23 2023 login - -rwxr-xr-x 1 root root 151344 Sep 20 2022 ls - -rwxr-xr-x 1 root root 207168 Mar 22 2023 lsblk - -rwxr-xr-x 1 root root 97552 Sep 20 2022 mkdir - -rwxr-xr-x 1 root root 72912 Sep 20 2022 mknod - -rwxr-xr-x 1 root root 43952 Sep 20 2022 mktemp - -rwxr-xr-x 1 root root 59712 Mar 22 2023 more - -rwsr-xr-x 1 root root 59704 Mar 22 2023 mount - -rwxr-xr-x 1 root root 18744 Mar 22 2023 mountpoint - -rwxr-xr-x 1 root root 142968 Sep 20 2022 mv - lrwxrwxrwx 1 root root 8 Dec 19 2022 nisdomainname -> hostname - lrwxrwxrwx 1 root root 14 Apr 2 2023 pidof -> /sbin/killall5 - -rwxr-xr-x 1 root root 43952 Sep 20 2022 pwd - lrwxrwxrwx 1 root root 4 Apr 23 2023 rbash -> bash - -rwxr-xr-x 1 root root 52112 Sep 20 2022 readlink - -rwxr-xr-x 1 root root 72752 Sep 20 2022 rm - -rwxr-xr-x 1 root root 56240 Sep 20 2022 rmdir - -rwxr-xr-x 1 root root 27560 Nov 2 2022 run-parts - -rwxr-xr-x 1 root root 126424 Jan 5 2023 sed - lrwxrwxrwx 1 root root 4 Jan 5 2023 sh -> dash - -rwxr-xr-x 1 root root 43888 Sep 20 2022 sleep - -rwxr-xr-x 1 root root 85008 Sep 20 2022 stty - -rwsr-xr-x 1 root root 72000 Mar 22 2023 su - -rwxr-xr-x 1 root root 39824 Sep 20 2022 sync - -rwxr-xr-x 1 root root 531984 Apr 6 2023 tar - -rwxr-xr-x 1 root root 14520 Nov 2 2022 tempfile - -rwxr-xr-x 1 root root 109616 Sep 20 2022 touch - -rwxr-xr-x 1 root root 35664 Sep 20 2022 true - -rwxr-xr-x 1 root root 14568 Mar 22 2023 ulockmgr_server - -rwsr-xr-x 1 root root 35128 Mar 22 2023 umount - -rwxr-xr-x 1 root root 43888 Sep 20 2022 uname - -rwxr-xr-x 2 root root 2346 Apr 9 2022 uncompress - -rwxr-xr-x 1 root root 151344 Sep 20 2022 vdir - -rwxr-xr-x 1 root root 72024 Mar 22 2023 wdctl - lrwxrwxrwx 1 root root 8 Dec 19 2022 ypdomainname -> hostname - -rwxr-xr-x 1 root root 1984 Apr 9 2022 zcat - -rwxr-xr-x 1 root root 1678 Apr 9 2022 zcmp - -rwxr-xr-x 1 root root 6460 Apr 9 2022 zdiff - -rwxr-xr-x 1 root root 29 Apr 9 2022 zegrep - -rwxr-xr-x 1 root root 29 Apr 9 2022 zfgrep - -rwxr-xr-x 1 root root 2081 Apr 9 2022 zforce - -rwxr-xr-x 1 root root 8103 Apr 9 2022 zgrep - -rwxr-xr-x 1 root root 2206 Apr 9 2022 zless - -rwxr-xr-x 1 root root 1842 Apr 9 2022 zmore - -rwxr-xr-x 1 root root 4577 Apr 9 2022 znew -I: user script /srv/workspace/pbuilder/1316047/tmp/hooks/D02_print_environment finished + -rwxr-xr-x 1 root root 1265648 Apr 24 11:23 bash + -rwxr-xr-x 3 root root 39224 Sep 19 2022 bunzip2 + -rwxr-xr-x 3 root root 39224 Sep 19 2022 bzcat + lrwxrwxrwx 1 root root 6 Sep 19 2022 bzcmp -> bzdiff + -rwxr-xr-x 1 root root 2225 Sep 19 2022 bzdiff + lrwxrwxrwx 1 root root 6 Sep 19 2022 bzegrep -> bzgrep + -rwxr-xr-x 1 root root 4893 Nov 28 2021 bzexe + lrwxrwxrwx 1 root root 6 Sep 19 2022 bzfgrep -> bzgrep + -rwxr-xr-x 1 root root 3775 Sep 19 2022 bzgrep + -rwxr-xr-x 3 root root 39224 Sep 19 2022 bzip2 + -rwxr-xr-x 1 root root 14568 Sep 19 2022 bzip2recover + lrwxrwxrwx 1 root root 6 Sep 19 2022 bzless -> bzmore + -rwxr-xr-x 1 root root 1297 Sep 19 2022 bzmore + -rwxr-xr-x 1 root root 44016 Sep 21 2022 cat + -rwxr-xr-x 1 root root 68656 Sep 21 2022 chgrp + -rwxr-xr-x 1 root root 64496 Sep 21 2022 chmod + -rwxr-xr-x 1 root root 72752 Sep 21 2022 chown + -rwxr-xr-x 1 root root 151152 Sep 21 2022 cp + -rwxr-xr-x 1 root root 125640 Jan 6 03:20 dash + -rwxr-xr-x 1 root root 121904 Sep 21 2022 date + -rwxr-xr-x 1 root root 89240 Sep 21 2022 dd + -rwxr-xr-x 1 root root 102200 Sep 21 2022 df + -rwxr-xr-x 1 root root 151344 Sep 21 2022 dir + -rwxr-xr-x 1 root root 88656 Mar 24 00:02 dmesg + lrwxrwxrwx 1 root root 8 Dec 20 03:33 dnsdomainname -> hostname + lrwxrwxrwx 1 root root 8 Dec 20 03:33 domainname -> hostname + -rwxr-xr-x 1 root root 43856 Sep 21 2022 echo + -rwxr-xr-x 1 root root 41 Jan 25 04:43 egrep + -rwxr-xr-x 1 root root 35664 Sep 21 2022 false + -rwxr-xr-x 1 root root 41 Jan 25 04:43 fgrep + -rwxr-xr-x 1 root root 85600 Mar 24 00:02 findmnt + -rwsr-xr-x 1 root root 35128 Mar 23 22:35 fusermount + -rwxr-xr-x 1 root root 203152 Jan 25 04:43 grep + -rwxr-xr-x 2 root root 2346 Apr 10 2022 gunzip + -rwxr-xr-x 1 root root 6447 Apr 10 2022 gzexe + -rwxr-xr-x 1 root root 98136 Apr 10 2022 gzip + -rwxr-xr-x 1 root root 22680 Dec 20 03:33 hostname + -rwxr-xr-x 1 root root 72824 Sep 21 2022 ln + -rwxr-xr-x 1 root root 53024 Mar 24 02:40 login + -rwxr-xr-x 1 root root 151344 Sep 21 2022 ls + -rwxr-xr-x 1 root root 207168 Mar 24 00:02 lsblk + -rwxr-xr-x 1 root root 97552 Sep 21 2022 mkdir + -rwxr-xr-x 1 root root 72912 Sep 21 2022 mknod + -rwxr-xr-x 1 root root 43952 Sep 21 2022 mktemp + -rwxr-xr-x 1 root root 59712 Mar 24 00:02 more + -rwsr-xr-x 1 root root 59704 Mar 24 00:02 mount + -rwxr-xr-x 1 root root 18744 Mar 24 00:02 mountpoint + -rwxr-xr-x 1 root root 142968 Sep 21 2022 mv + lrwxrwxrwx 1 root root 8 Dec 20 03:33 nisdomainname -> hostname + lrwxrwxrwx 1 root root 14 Apr 3 20:25 pidof -> /sbin/killall5 + -rwxr-xr-x 1 root root 43952 Sep 21 2022 pwd + lrwxrwxrwx 1 root root 4 Apr 24 11:23 rbash -> bash + -rwxr-xr-x 1 root root 52112 Sep 21 2022 readlink + -rwxr-xr-x 1 root root 72752 Sep 21 2022 rm + -rwxr-xr-x 1 root root 56240 Sep 21 2022 rmdir + -rwxr-xr-x 1 root root 27560 Nov 3 2022 run-parts + -rwxr-xr-x 1 root root 126424 Jan 6 09:55 sed + lrwxrwxrwx 1 root root 9 May 10 22:06 sh -> /bin/bash + -rwxr-xr-x 1 root root 43888 Sep 21 2022 sleep + -rwxr-xr-x 1 root root 85008 Sep 21 2022 stty + -rwsr-xr-x 1 root root 72000 Mar 24 00:02 su + -rwxr-xr-x 1 root root 39824 Sep 21 2022 sync + -rwxr-xr-x 1 root root 531984 Apr 7 04:25 tar + -rwxr-xr-x 1 root root 14520 Nov 3 2022 tempfile + -rwxr-xr-x 1 root root 109616 Sep 21 2022 touch + -rwxr-xr-x 1 root root 35664 Sep 21 2022 true + -rwxr-xr-x 1 root root 14568 Mar 23 22:35 ulockmgr_server + -rwsr-xr-x 1 root root 35128 Mar 24 00:02 umount + -rwxr-xr-x 1 root root 43888 Sep 21 2022 uname + -rwxr-xr-x 2 root root 2346 Apr 10 2022 uncompress + -rwxr-xr-x 1 root root 151344 Sep 21 2022 vdir + -rwxr-xr-x 1 root root 72024 Mar 24 00:02 wdctl + lrwxrwxrwx 1 root root 8 Dec 20 03:33 ypdomainname -> hostname + -rwxr-xr-x 1 root root 1984 Apr 10 2022 zcat + -rwxr-xr-x 1 root root 1678 Apr 10 2022 zcmp + -rwxr-xr-x 1 root root 6460 Apr 10 2022 zdiff + -rwxr-xr-x 1 root root 29 Apr 10 2022 zegrep + -rwxr-xr-x 1 root root 29 Apr 10 2022 zfgrep + -rwxr-xr-x 1 root root 2081 Apr 10 2022 zforce + -rwxr-xr-x 1 root root 8103 Apr 10 2022 zgrep + -rwxr-xr-x 1 root root 2206 Apr 10 2022 zless + -rwxr-xr-x 1 root root 1842 Apr 10 2022 zmore + -rwxr-xr-x 1 root root 4577 Apr 10 2022 znew +I: user script /srv/workspace/pbuilder/666520/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -224,7 +256,7 @@ Get: 28 http://deb.debian.org/debian bookworm/main amd64 intltool-debian all 0.35.0+20060710.6 [22.9 kB] Get: 29 http://deb.debian.org/debian bookworm/main amd64 po-debconf all 1.0.21+nmu1 [248 kB] Get: 30 http://deb.debian.org/debian bookworm/main amd64 debhelper all 13.11.4 [942 kB] -Fetched 18.7 MB in 0s (73.5 MB/s) +Fetched 18.7 MB in 0s (78.0 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package sensible-utils. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19596 files and directories currently installed.) @@ -358,8 +390,19 @@ Writing extended state information... Building tag database... -> Finished parsing the build-deps +Reading package lists... +Building dependency tree... +Reading state information... +usrmerge is already the newest version (35). +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 && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../recoverdm_0.20-8_source.changes +I: user script /srv/workspace/pbuilder/666520/tmp/hooks/A99_set_merged_usr starting +Re-configuring usrmerge... +removed '/etc/unsupported-skip-usrmerge-conversion' +The system has been successfully converted. +I: user script /srv/workspace/pbuilder/666520/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +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 && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../recoverdm_0.20-8_source.changes dpkg-buildpackage: info: source package recoverdm dpkg-buildpackage: info: source version 0.20-8 dpkg-buildpackage: info: source distribution unstable @@ -369,7 +412,7 @@ 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' @@ -380,7 +423,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 @@ -388,162 +431,6 @@ 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 utils.o utils.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 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 -io.c: In function 'READ': -io.c:30:52: 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:29: 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:29: 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:126:35: 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:39: 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:43: 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:35: 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:24: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] - 181 | nbytes -= rc; - | ^~ -recoverdm.c: In function 'lba_to_msf': -recoverdm.c:55:27: warning: conversion from 'off64_t' {aka 'long int'} to 'unsigned char' may change value [-Wconversion] - 55 | *minute = (lba + 150) / (60 * 75); - | ^ -utils.c: In function 'mymalloc': -recoverdm.c:57:27: warning: conversion from 'off64_t' {aka 'long int'} to 'unsigned char' may change value [-Wconversion] - 57 | *second = (lba + 150) / 75; - | ^ -utils.c:21:28: 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, ...); - | ~~~~~~^~~~~~ -recoverdm.c:59:26: warning: conversion from 'off64_t' {aka 'long int'} to 'unsigned char' may change value [-Wconversion] - 59 | *frame = (lba + 150); - | ^ -recoverdm.c:63:27: warning: conversion from 'off64_t' {aka 'long int'} to 'unsigned char' may change value [-Wconversion] - 63 | *minute = (lba + 450150) / (60 * 75); - | ^ -utils.c: In function 'myrealloc': -utils.c:30:28: 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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -error.h:1:23: note: expected 'char *' but argument is of type 'const char *' - 1 | void error_exit(char *format, ...); - | ~~~~~~^~~~~~ -recoverdm.c:65:27: warning: conversion from 'off64_t' {aka 'long int'} to 'unsigned char' may change value [-Wconversion] - 65 | *second = (lba + 450150) / 75; - | ^ -recoverdm.c:67:26: warning: conversion from 'off64_t' {aka 'long int'} to 'unsigned char' may change value [-Wconversion] - 67 | *frame = (lba + 450150); - | ^ -utils.c: In function 'get_filesize': -utils.c:40:28: 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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -error.h:1:23: note: expected 'char *' but argument is of type 'const char *' - 1 | void error_exit(char *format, ...); - | ~~~~~~^~~~~~ -recoverdm.c: In function 'create_sector': -recoverdm.c:75:57: 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:36: note: expected 'char *' but argument is of type 'const char *' - 1 | void * mymalloc(size_t size, char *what); - | ~~~~~~^~~~ -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:38: note: in expansion of macro 'min' - 51 | size_t sector_size = min(block_size, 512); - | ^~~ -recoverdm.c:107:53: warning: conversion from 'int' to 'short int' may change value [-Wconversion] - 107 | chosen_byte_count = count[loop2]; - | ^~~~~ -utils.c:56:58: 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 -recoverdm.c:108:47: warning: conversion from 'int' to 'short int' may change value [-Wconversion] - 108 | chosen_byte = loop2; - | ^~~~~ -utils.c:68:28: 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; - | ^~ -recoverdm.c:126:44: warning: conversion from 'short int' to 'char' may change value [-Wconversion] - 126 | sector_out[loop] = chosen_byte; - | ^~~~~~~~~~~ -utils.c:68:31: 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': -recoverdm.c:149:44: 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]; - | ^~~~~~~ -utils.c:78:28: 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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -error.h:1:23: note: expected 'char *' but argument is of type 'const char *' - 1 | void error_exit(char *format, ...); - | ~~~~~~^~~~~~ -recoverdm.c: In function 'get_raw_cd': -recoverdm.c:169:71: 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:88: 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"); - | ^~~~~~~~~~~~ -utils.h:1:36: note: expected 'char *' but argument is of type 'const char *' - 1 | void * mymalloc(size_t size, char *what); - | ~~~~~~^~~~ -recoverdm.c:174:74: warning: passing argument 2 of 'mymalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 174 | sector_list[loop] = (char *)mymalloc(block_size, "sector"); - | ^~~~~~~~ -utils.h:1:36: note: expected 'char *' but argument is of type 'const char *' - 1 | void * mymalloc(size_t size, char *what); - | ~~~~~~^~~~ -recoverdm.c:184:43: 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:36: warning: conversion from 'int' to 'char' may change value [-Wconversion] - 235 | dev_type = atoi(optarg); - | ^~~~ -recoverdm.c:256:37: warning: conversion from 'int' to 'char' may change value [-Wconversion] - 256 | n_retries = atoi(optarg); - | ^~~~ -recoverdm.c:262:36: warning: conversion from 'int' to 'char' may change value [-Wconversion] - 262 | cd_speed = atoi(optarg); - | ^~~~ -recoverdm.c:265:44: warning: conversion from 'int' to 'char' may change value [-Wconversion] - 265 | n_raw_cd_retries = atoi(optarg); - | ^~~~ mergebad.c: In function 'find_image_without_badblock': mergebad.c:45:64: 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); @@ -551,18 +438,6 @@ | | | | long long int off64_t {aka long int} | %ld -recoverdm.c:307:47: warning: passing argument 2 of 'mymalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 307 | buffer = (char *)mymalloc(block_size, "sectorbuffer"); - | ^~~~~~~~~~~~~~ -utils.h:1:36: note: expected 'char *' but argument is of type 'const char *' - 1 | void * mymalloc(size_t size, char *what); - | ~~~~~~^~~~ -recoverdm.c:308:48: warning: passing argument 2 of 'mymalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 308 | buffer2 = (char *)mymalloc(block_size, "sectorbuffer for retries"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -utils.h:1:36: note: expected 'char *' but argument is of type 'const char *' - 1 | void * mymalloc(size_t size, char *what); - | ~~~~~~^~~~ mergebad.c:59:53: 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); | ~~~^ ~~~~~~~~~~ @@ -582,13 +457,6 @@ | | | | long long int off64_t {aka long int} | %ld -recoverdm.c:361:28: 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 mergebad.c:118:53: 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); | ~~~^ ~~~~~~~~~~ @@ -608,21 +476,12 @@ | | off64_t {aka long int} | long long int | %ld -recoverdm.c:388:45: 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 mergebad.c:148:69: 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 -recoverdm.c:445:91: 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); - | ^ mergebad.c: In function 'read_mapfile': mergebad.c:189:32: 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); @@ -631,13 +490,6 @@ | | off64_t * {aka long int *} | long long int * | %ld -recoverdm.c:445:63: 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 mergebad.c:191:67: 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"); | ^ @@ -654,9 +506,6 @@ | | | | long long int off64_t {aka long int} | %ld -recoverdm.c:440:38: warning: variable 'ok' set but not used [-Wunused-but-set-variable] - 440 | char ok = 1; - | ^~ mergebad.c:196:45: 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); | ~~~^ ~~~~~~~~~~ @@ -727,21 +576,66 @@ | | | | long long int off64_t {aka long int} | %ld +io.c: In function 'READ': +io.c:30:52: 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, ...); + | ~~~~~~^~~~~~ +utils.c: In function 'mymalloc': mergebad.c:419:65: 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"); | ^~~~~~ +utils.c:21:28: 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, ...); + | ~~~~~~^~~~~~ +io.c:42:29: warning: conversion to 'long unsigned int' from 'ssize_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] + 42 | len -= rc; + | ^~ mergebad.c:419:73: 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"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ utils.h:1:36: note: expected 'char *' but argument is of type 'const char *' 1 | void * mymalloc(size_t size, char *what); | ~~~~~~^~~~ +utils.c: In function 'myrealloc': +utils.c:30:28: 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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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': +io.c: In function 'WRITE': +utils.c:40:28: 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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mergebad.c:425:44: 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"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +io.c:75:29: warning: conversion to 'long unsigned int' from 'ssize_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] + 75 | len -= rc; + | ^~ +error.h:1:23: note: expected 'char *' but argument is of type 'const char *' + 1 | void error_exit(char *format, ...); + | ~~~~~~^~~~~~ 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:38: note: in expansion of macro 'min' + 51 | size_t sector_size = min(block_size, 512); + | ^~~ mergebad.c:437:58: 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); | ~~~^ ~~~~~~ @@ -749,12 +643,38 @@ | | off64_t {aka long int} | long long int | %ld +utils.c:56:58: 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:28: 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:31: 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; + | ^~~~~~~~~~~ +io.c: In function 'phantom_write': mergebad.c:437:63: 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 +io.c:126:35: warning: conversion from 'ssize_t' {aka 'long int'} to 'int' may change value [-Wconversion] + 126 | if ((rc = WRITE(fd, in, move_a_little)) <= 0) + | ^~~~~ +utils.c: In function 'myseek': +utils.c:78:28: 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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +error.h:1:23: note: expected 'char *' but argument is of type 'const char *' + 1 | void error_exit(char *format, ...); + | ~~~~~~^~~~~~ +io.c:132:39: 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; + | ^~ mergebad.c:443:57: 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); | ~~~^ ~~~~~~~~~~ @@ -762,15 +682,24 @@ | | off64_t {aka long int} | long long int | %ld +io.c:163:43: warning: conversion from 'ssize_t' {aka 'long int'} to 'int' may change value [-Wconversion] + 163 | if ((rc = WRITE(fd, in, 512)) <= 0) + | ^~~~~ mergebad.c:447:44: 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"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error.h:1:23: note: expected 'char *' but argument is of type 'const char *' 1 | void error_exit(char *format, ...); | ~~~~~~^~~~~~ +io.c:172:35: warning: conversion from 'ssize_t' {aka 'long int'} to 'int' may change value [-Wconversion] + 172 | if ((rc = WRITE(fd, in, nbytes)) <= 0) + | ^~~~~ mergebad.c:455:50: 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"); | ^~~~~~~~~~ +io.c:181:24: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] + 181 | nbytes -= rc; + | ^~ mergebad.c:455:62: warning: passing argument 2 of 'mymalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 455 | output_buffer = mymalloc(n_to_guess, "guessed bytes"); | ^~~~~~~~~~~~~~~ @@ -784,15 +713,129 @@ mergebad.c:189:17: 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 +recoverdm.c: In function 'lba_to_msf': +recoverdm.c:55:27: warning: conversion from 'off64_t' {aka 'long int'} to 'unsigned char' may change value [-Wconversion] + 55 | *minute = (lba + 150) / (60 * 75); + | ^ +recoverdm.c:57:27: warning: conversion from 'off64_t' {aka 'long int'} to 'unsigned char' may change value [-Wconversion] + 57 | *second = (lba + 150) / 75; + | ^ +recoverdm.c:59:26: warning: conversion from 'off64_t' {aka 'long int'} to 'unsigned char' may change value [-Wconversion] + 59 | *frame = (lba + 150); + | ^ +recoverdm.c:63:27: warning: conversion from 'off64_t' {aka 'long int'} to 'unsigned char' may change value [-Wconversion] + 63 | *minute = (lba + 450150) / (60 * 75); + | ^ +recoverdm.c:65:27: warning: conversion from 'off64_t' {aka 'long int'} to 'unsigned char' may change value [-Wconversion] + 65 | *second = (lba + 450150) / 75; + | ^ +recoverdm.c:67:26: 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:57: 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:36: note: expected 'char *' but argument is of type 'const char *' + 1 | void * mymalloc(size_t size, char *what); + | ~~~~~~^~~~ +recoverdm.c:107:53: warning: conversion from 'int' to 'short int' may change value [-Wconversion] + 107 | chosen_byte_count = count[loop2]; + | ^~~~~ +recoverdm.c:108:47: warning: conversion from 'int' to 'short int' may change value [-Wconversion] + 108 | chosen_byte = loop2; + | ^~~~~ +recoverdm.c:126:44: warning: conversion from 'short int' to 'char' may change value [-Wconversion] + 126 | sector_out[loop] = chosen_byte; + | ^~~~~~~~~~~ +recoverdm.c:149:44: 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:71: 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:88: 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"); + | ^~~~~~~~~~~~ +utils.h:1:36: note: expected 'char *' but argument is of type 'const char *' + 1 | void * mymalloc(size_t size, char *what); + | ~~~~~~^~~~ +recoverdm.c:174:74: warning: passing argument 2 of 'mymalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 174 | sector_list[loop] = (char *)mymalloc(block_size, "sector"); + | ^~~~~~~~ +utils.h:1:36: note: expected 'char *' but argument is of type 'const char *' + 1 | void * mymalloc(size_t size, char *what); + | ~~~~~~^~~~ +recoverdm.c:184:43: 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:36: warning: conversion from 'int' to 'char' may change value [-Wconversion] + 235 | dev_type = atoi(optarg); + | ^~~~ +recoverdm.c:256:37: warning: conversion from 'int' to 'char' may change value [-Wconversion] + 256 | n_retries = atoi(optarg); + | ^~~~ +recoverdm.c:262:36: warning: conversion from 'int' to 'char' may change value [-Wconversion] + 262 | cd_speed = atoi(optarg); + | ^~~~ +recoverdm.c:265:44: warning: conversion from 'int' to 'char' may change value [-Wconversion] + 265 | n_raw_cd_retries = atoi(optarg); + | ^~~~ +recoverdm.c:307:47: warning: passing argument 2 of 'mymalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 307 | buffer = (char *)mymalloc(block_size, "sectorbuffer"); + | ^~~~~~~~~~~~~~ +utils.h:1:36: note: expected 'char *' but argument is of type 'const char *' + 1 | void * mymalloc(size_t size, char *what); + | ~~~~~~^~~~ +recoverdm.c:308:48: warning: passing argument 2 of 'mymalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 308 | buffer2 = (char *)mymalloc(block_size, "sectorbuffer for retries"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~ +utils.h:1:36: note: expected 'char *' but argument is of type 'const char *' + 1 | void * mymalloc(size_t size, char *what); + | ~~~~~~^~~~ +recoverdm.c:361:28: 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:45: 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:91: 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:63: 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:38: warning: variable 'ok' set but not used [-Wunused-but-set-variable] + 440 | char ok = 1; + | ^~ cc -Wall -W mergebad.o io.o utils.o error.o -Wl,-z,relro -Wl,-z,now -o mergebad +cc -Wall -W recoverdm.o dev.o io.o utils.o error.o -Wl,-z,relro -Wl,-z,now -o recoverdm make[1]: Leaving directory '/build/recoverdm-0.20' dh_auto_test create-stamp debian/debhelper-build-stamp dh_prep dh_installdirs dh_auto_install --destdir=debian/recoverdm/ - 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 @@ -826,12 +869,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: not including original source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/666520/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/666520/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/1316047 and its subdirectories -I: Current time: Tue Jun 11 02:29:02 -12 2024 -I: pbuilder-time-stamp: 1718116142 +I: removing directory /srv/workspace/pbuilder/666520 and its subdirectories +I: Current time: Wed May 10 22:06:23 +14 2023 +I: pbuilder-time-stamp: 1683705983