Diff of the two buildlogs: -- --- b1/build.log 2021-07-12 06:30:21.006050254 +0000 +++ b2/build.log 2021-07-12 06:31:35.991231304 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Sun Aug 14 00:52:34 -12 2022 -I: pbuilder-time-stamp: 1660481554 +I: Current time: Mon Jul 12 20:30:24 +14 2021 +I: pbuilder-time-stamp: 1626071424 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/bullseye-reproducible-base.tgz] I: copying local configuration @@ -16,8 +16,8 @@ I: copying [./pads_1.2-12.debian.tar.xz] I: Extracting source gpgv: unknown type of key resource 'trustedkeys.kbx' -gpgv: keyblock resource '/tmp/dpkg-verify-sig.hN1GysIs/trustedkeys.kbx': General error -gpgv: Signature made Sun Jan 19 08:42:40 2020 -12 +gpgv: keyblock resource '/tmp/dpkg-verify-sig.eL697vgk/trustedkeys.kbx': General error +gpgv: Signature made Mon Jan 20 10:42:40 2020 +14 gpgv: using RSA key 9236557B170C87F8821C0AC3C1E0D92E986F7C7E gpgv: Can't check signature: No public key dpkg-source: warning: failed to verify signature on ./pads_1.2-12.dsc @@ -29,135 +29,169 @@ dpkg-source: info: applying fix_linker.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/24981/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/13868/tmp/hooks/D01_modify_environment starting +debug: Running on codethink12-arm64. +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/13868/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/13868/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='arm64' - DEBIAN_FRONTEND='noninteractive' + 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]="1" [2]="4" [3]="1" [4]="release" [5]="aarch64-unknown-linux-gnu") + BASH_VERSION='5.1.4(1)-release' + BUILDDIR=/build + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=arm64 + DEBIAN_FRONTEND=noninteractive DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all,-fixfilepath parallel=8' - DISTRIBUTION='' - HOME='/var/lib/jenkins' - HOST_ARCH='arm64' + DIRSTACK=() + DISTRIBUTION= + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/var/lib/jenkins + HOSTNAME=i-capture-the-hostname + HOSTTYPE=aarch64 + HOST_ARCH=arm64 IFS=' ' - 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='24981' - PS1='# ' - PS2='> ' + LANG=C + LANGUAGE=nl_BE:nl + LC_ALL=C + MACHTYPE=aarch64-unknown-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=13868 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.tdwX21tFC6/pbuilderrc_E5rS --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.tdwX21tFC6/b1 --logfile b1/build.log pads_1.2-12.dsc' - SUDO_GID='117' - SUDO_UID='110' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - USERNAME='root' - _='/usr/bin/systemd-run' - http_proxy='http://192.168.101.16: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.tdwX21tFC6/pbuilderrc_eOH4 --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.tdwX21tFC6/b2 --logfile b2/build.log --extrapackages usrmerge pads_1.2-12.dsc' + SUDO_GID=117 + SUDO_UID=110 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + USERNAME=root + _='I: set' + http_proxy=http://192.168.101.16:3128 I: uname -a - Linux codethink15-arm64 4.15.0-147-generic #151-Ubuntu SMP Fri Jun 18 19:18:37 UTC 2021 aarch64 GNU/Linux + Linux i-capture-the-hostname 4.15.0-147-generic #151-Ubuntu SMP Fri Jun 18 19:18:37 UTC 2021 aarch64 GNU/Linux I: ls -l /bin total 5252 - -rwxr-xr-x 1 root root 1282512 Jun 21 2021 bash - -rwxr-xr-x 3 root root 34808 Jul 20 2020 bunzip2 - -rwxr-xr-x 3 root root 34808 Jul 20 2020 bzcat - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzcmp -> bzdiff - -rwxr-xr-x 1 root root 2225 Jul 20 2020 bzdiff - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzegrep -> bzgrep - -rwxr-xr-x 1 root root 4877 Sep 4 2019 bzexe - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzfgrep -> bzgrep - -rwxr-xr-x 1 root root 3775 Jul 20 2020 bzgrep - -rwxr-xr-x 3 root root 34808 Jul 20 2020 bzip2 - -rwxr-xr-x 1 root root 14264 Jul 20 2020 bzip2recover - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzless -> bzmore - -rwxr-xr-x 1 root root 1297 Jul 20 2020 bzmore - -rwxr-xr-x 1 root root 39832 Sep 22 2020 cat - -rwxr-xr-x 1 root root 64512 Sep 22 2020 chgrp - -rwxr-xr-x 1 root root 60368 Sep 22 2020 chmod - -rwxr-xr-x 1 root root 64528 Sep 22 2020 chown - -rwxr-xr-x 1 root root 138896 Sep 22 2020 cp - -rwxr-xr-x 1 root root 129544 Dec 10 2020 dash - -rwxr-xr-x 1 root root 101384 Sep 22 2020 date - -rwxr-xr-x 1 root root 80984 Sep 22 2020 dd - -rwxr-xr-x 1 root root 89824 Sep 22 2020 df - -rwxr-xr-x 1 root root 143088 Sep 22 2020 dir - -rwxr-xr-x 1 root root 76152 Feb 7 2021 dmesg - lrwxrwxrwx 1 root root 8 Nov 6 2019 dnsdomainname -> hostname - lrwxrwxrwx 1 root root 8 Nov 6 2019 domainname -> hostname - -rwxr-xr-x 1 root root 35632 Sep 22 2020 echo - -rwxr-xr-x 1 root root 28 Nov 9 2020 egrep - -rwxr-xr-x 1 root root 31512 Sep 22 2020 false - -rwxr-xr-x 1 root root 28 Nov 9 2020 fgrep - -rwxr-xr-x 1 root root 64856 Feb 7 2021 findmnt - -rwsr-xr-x 1 root root 34824 Feb 26 2021 fusermount - -rwxr-xr-x 1 root root 178400 Nov 9 2020 grep - -rwxr-xr-x 2 root root 2346 Mar 2 2021 gunzip - -rwxr-xr-x 1 root root 6376 Mar 2 2021 gzexe - -rwxr-xr-x 1 root root 93744 Mar 2 2021 gzip - -rwxr-xr-x 1 root root 18440 Nov 6 2019 hostname - -rwxr-xr-x 1 root root 68720 Sep 22 2020 ln - -rwxr-xr-x 1 root root 52720 Feb 7 2020 login - -rwxr-xr-x 1 root root 143088 Sep 22 2020 ls - -rwxr-xr-x 1 root root 161960 Feb 7 2021 lsblk - -rwxr-xr-x 1 root root 85200 Sep 22 2020 mkdir - -rwxr-xr-x 1 root root 68744 Sep 22 2020 mknod - -rwxr-xr-x 1 root root 43976 Sep 22 2020 mktemp - -rwxr-xr-x 1 root root 51368 Feb 7 2021 more - -rwsr-xr-x 1 root root 51360 Feb 7 2021 mount - -rwxr-xr-x 1 root root 14496 Feb 7 2021 mountpoint - -rwxr-xr-x 1 root root 134808 Sep 22 2020 mv - lrwxrwxrwx 1 root root 8 Nov 6 2019 nisdomainname -> hostname - lrwxrwxrwx 1 root root 14 Apr 18 2021 pidof -> /sbin/killall5 - -rwxr-xr-x 1 root root 35720 Sep 22 2020 pwd - lrwxrwxrwx 1 root root 4 Jun 21 2021 rbash -> bash - -rwxr-xr-x 1 root root 43872 Sep 22 2020 readlink - -rwxr-xr-x 1 root root 68592 Sep 22 2020 rm - -rwxr-xr-x 1 root root 43880 Sep 22 2020 rmdir - -rwxr-xr-x 1 root root 19208 Sep 27 2020 run-parts - -rwxr-xr-x 1 root root 114016 Dec 22 2018 sed - lrwxrwxrwx 1 root root 4 Aug 12 03:47 sh -> dash - -rwxr-xr-x 1 root root 35656 Sep 22 2020 sleep - -rwxr-xr-x 1 root root 72640 Sep 22 2020 stty - -rwsr-xr-x 1 root root 67776 Feb 7 2021 su - -rwxr-xr-x 1 root root 35672 Sep 22 2020 sync - -rwxr-xr-x 1 root root 535768 Feb 16 2021 tar - -rwxr-xr-x 1 root root 10568 Sep 27 2020 tempfile - -rwxr-xr-x 1 root root 89120 Sep 22 2020 touch - -rwxr-xr-x 1 root root 31512 Sep 22 2020 true - -rwxr-xr-x 1 root root 14264 Feb 26 2021 ulockmgr_server - -rwsr-xr-x 1 root root 30880 Feb 7 2021 umount - -rwxr-xr-x 1 root root 35640 Sep 22 2020 uname - -rwxr-xr-x 2 root root 2346 Mar 2 2021 uncompress - -rwxr-xr-x 1 root root 143088 Sep 22 2020 vdir - -rwxr-xr-x 1 root root 59584 Feb 7 2021 wdctl - lrwxrwxrwx 1 root root 8 Nov 6 2019 ypdomainname -> hostname - -rwxr-xr-x 1 root root 1984 Mar 2 2021 zcat - -rwxr-xr-x 1 root root 1678 Mar 2 2021 zcmp - -rwxr-xr-x 1 root root 5880 Mar 2 2021 zdiff - -rwxr-xr-x 1 root root 29 Mar 2 2021 zegrep - -rwxr-xr-x 1 root root 29 Mar 2 2021 zfgrep - -rwxr-xr-x 1 root root 2081 Mar 2 2021 zforce - -rwxr-xr-x 1 root root 7585 Mar 2 2021 zgrep - -rwxr-xr-x 1 root root 2206 Mar 2 2021 zless - -rwxr-xr-x 1 root root 1842 Mar 2 2021 zmore - -rwxr-xr-x 1 root root 4553 Mar 2 2021 znew -I: user script /srv/workspace/pbuilder/24981/tmp/hooks/D02_print_environment finished + -rwxr-xr-x 1 root root 1282512 Jun 22 16:26 bash + -rwxr-xr-x 3 root root 34808 Jul 21 2020 bunzip2 + -rwxr-xr-x 3 root root 34808 Jul 21 2020 bzcat + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzcmp -> bzdiff + -rwxr-xr-x 1 root root 2225 Jul 21 2020 bzdiff + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzegrep -> bzgrep + -rwxr-xr-x 1 root root 4877 Sep 5 2019 bzexe + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzfgrep -> bzgrep + -rwxr-xr-x 1 root root 3775 Jul 21 2020 bzgrep + -rwxr-xr-x 3 root root 34808 Jul 21 2020 bzip2 + -rwxr-xr-x 1 root root 14264 Jul 21 2020 bzip2recover + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzless -> bzmore + -rwxr-xr-x 1 root root 1297 Jul 21 2020 bzmore + -rwxr-xr-x 1 root root 39832 Sep 23 2020 cat + -rwxr-xr-x 1 root root 64512 Sep 23 2020 chgrp + -rwxr-xr-x 1 root root 60368 Sep 23 2020 chmod + -rwxr-xr-x 1 root root 64528 Sep 23 2020 chown + -rwxr-xr-x 1 root root 138896 Sep 23 2020 cp + -rwxr-xr-x 1 root root 129544 Dec 11 2020 dash + -rwxr-xr-x 1 root root 101384 Sep 23 2020 date + -rwxr-xr-x 1 root root 80984 Sep 23 2020 dd + -rwxr-xr-x 1 root root 89824 Sep 23 2020 df + -rwxr-xr-x 1 root root 143088 Sep 23 2020 dir + -rwxr-xr-x 1 root root 76152 Feb 8 04:38 dmesg + lrwxrwxrwx 1 root root 8 Nov 8 2019 dnsdomainname -> hostname + lrwxrwxrwx 1 root root 8 Nov 8 2019 domainname -> hostname + -rwxr-xr-x 1 root root 35632 Sep 23 2020 echo + -rwxr-xr-x 1 root root 28 Nov 10 2020 egrep + -rwxr-xr-x 1 root root 31512 Sep 23 2020 false + -rwxr-xr-x 1 root root 28 Nov 10 2020 fgrep + -rwxr-xr-x 1 root root 64856 Feb 8 04:38 findmnt + -rwsr-xr-x 1 root root 34824 Feb 27 06:12 fusermount + -rwxr-xr-x 1 root root 178400 Nov 10 2020 grep + -rwxr-xr-x 2 root root 2346 Mar 3 13:30 gunzip + -rwxr-xr-x 1 root root 6376 Mar 3 13:30 gzexe + -rwxr-xr-x 1 root root 93744 Mar 3 13:30 gzip + -rwxr-xr-x 1 root root 18440 Nov 8 2019 hostname + -rwxr-xr-x 1 root root 68720 Sep 23 2020 ln + -rwxr-xr-x 1 root root 52720 Feb 8 2020 login + -rwxr-xr-x 1 root root 143088 Sep 23 2020 ls + -rwxr-xr-x 1 root root 161960 Feb 8 04:38 lsblk + -rwxr-xr-x 1 root root 85200 Sep 23 2020 mkdir + -rwxr-xr-x 1 root root 68744 Sep 23 2020 mknod + -rwxr-xr-x 1 root root 43976 Sep 23 2020 mktemp + -rwxr-xr-x 1 root root 51368 Feb 8 04:38 more + -rwsr-xr-x 1 root root 51360 Feb 8 04:38 mount + -rwxr-xr-x 1 root root 14496 Feb 8 04:38 mountpoint + -rwxr-xr-x 1 root root 134808 Sep 23 2020 mv + lrwxrwxrwx 1 root root 8 Nov 8 2019 nisdomainname -> hostname + lrwxrwxrwx 1 root root 14 Apr 19 05:38 pidof -> /sbin/killall5 + -rwxr-xr-x 1 root root 35720 Sep 23 2020 pwd + lrwxrwxrwx 1 root root 4 Jun 22 16:26 rbash -> bash + -rwxr-xr-x 1 root root 43872 Sep 23 2020 readlink + -rwxr-xr-x 1 root root 68592 Sep 23 2020 rm + -rwxr-xr-x 1 root root 43880 Sep 23 2020 rmdir + -rwxr-xr-x 1 root root 19208 Sep 28 2020 run-parts + -rwxr-xr-x 1 root root 114016 Dec 23 2018 sed + lrwxrwxrwx 1 root root 4 Jul 12 20:30 sh -> bash + lrwxrwxrwx 1 root root 4 Jul 11 23:25 sh.distrib -> dash + -rwxr-xr-x 1 root root 35656 Sep 23 2020 sleep + -rwxr-xr-x 1 root root 72640 Sep 23 2020 stty + -rwsr-xr-x 1 root root 67776 Feb 8 04:38 su + -rwxr-xr-x 1 root root 35672 Sep 23 2020 sync + -rwxr-xr-x 1 root root 535768 Feb 17 23:55 tar + -rwxr-xr-x 1 root root 10568 Sep 28 2020 tempfile + -rwxr-xr-x 1 root root 89120 Sep 23 2020 touch + -rwxr-xr-x 1 root root 31512 Sep 23 2020 true + -rwxr-xr-x 1 root root 14264 Feb 27 06:12 ulockmgr_server + -rwsr-xr-x 1 root root 30880 Feb 8 04:38 umount + -rwxr-xr-x 1 root root 35640 Sep 23 2020 uname + -rwxr-xr-x 2 root root 2346 Mar 3 13:30 uncompress + -rwxr-xr-x 1 root root 143088 Sep 23 2020 vdir + -rwxr-xr-x 1 root root 59584 Feb 8 04:38 wdctl + lrwxrwxrwx 1 root root 8 Nov 8 2019 ypdomainname -> hostname + -rwxr-xr-x 1 root root 1984 Mar 3 13:30 zcat + -rwxr-xr-x 1 root root 1678 Mar 3 13:30 zcmp + -rwxr-xr-x 1 root root 5880 Mar 3 13:30 zdiff + -rwxr-xr-x 1 root root 29 Mar 3 13:30 zegrep + -rwxr-xr-x 1 root root 29 Mar 3 13:30 zfgrep + -rwxr-xr-x 1 root root 2081 Mar 3 13:30 zforce + -rwxr-xr-x 1 root root 7585 Mar 3 13:30 zgrep + -rwxr-xr-x 1 root root 2206 Mar 3 13:30 zless + -rwxr-xr-x 1 root root 1842 Mar 3 13:30 zmore + -rwxr-xr-x 1 root root 4553 Mar 3 13:30 znew +I: user script /srv/workspace/pbuilder/13868/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -238,7 +272,7 @@ Get: 39 http://deb.debian.org/debian bullseye/main arm64 libpcre32-3 arm64 2:8.39-13 [229 kB] Get: 40 http://deb.debian.org/debian bullseye/main arm64 libpcrecpp0v5 arm64 2:8.39-13 [151 kB] Get: 41 http://deb.debian.org/debian bullseye/main arm64 libpcre3-dev arm64 2:8.39-13 [579 kB] -Fetched 21.4 MB in 1s (34.4 MB/s) +Fetched 21.4 MB in 1s (34.5 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package bsdextrautils. (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 ... 19646 files and directories currently installed.) @@ -418,8 +452,45 @@ Writing extended state information... Building tag database... -> Finished parsing the build-deps +Reading package lists... +Building dependency tree... +Reading state information... +The following additional packages will be installed: + libfile-find-rule-perl libnumber-compare-perl libtext-glob-perl +The following NEW packages will be installed: + libfile-find-rule-perl libnumber-compare-perl libtext-glob-perl usrmerge +0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. +Need to get 59.5 kB of archives. +After this operation, 157 kB of additional disk space will be used. +Get:1 http://deb.debian.org/debian bullseye/main arm64 libnumber-compare-perl all 0.03-1.1 [6956 B] +Get:2 http://deb.debian.org/debian bullseye/main arm64 libtext-glob-perl all 0.11-1 [8888 B] +Get:3 http://deb.debian.org/debian bullseye/main arm64 libfile-find-rule-perl all 0.34-1 [30.6 kB] +Get:4 http://deb.debian.org/debian bullseye/main arm64 usrmerge all 25 [13.0 kB] +debconf: delaying package configuration, since apt-utils is not installed +Fetched 59.5 kB in 0s (1050 kB/s) +Selecting previously unselected package libnumber-compare-perl. +(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 ... 21882 files and directories currently installed.) +Preparing to unpack .../libnumber-compare-perl_0.03-1.1_all.deb ... +Unpacking libnumber-compare-perl (0.03-1.1) ... +Selecting previously unselected package libtext-glob-perl. +Preparing to unpack .../libtext-glob-perl_0.11-1_all.deb ... +Unpacking libtext-glob-perl (0.11-1) ... +Selecting previously unselected package libfile-find-rule-perl. +Preparing to unpack .../libfile-find-rule-perl_0.34-1_all.deb ... +Unpacking libfile-find-rule-perl (0.34-1) ... +Selecting previously unselected package usrmerge. +Preparing to unpack .../archives/usrmerge_25_all.deb ... +Unpacking usrmerge (25) ... +Setting up libtext-glob-perl (0.11-1) ... +Setting up libnumber-compare-perl (0.03-1.1) ... +Setting up libfile-find-rule-perl (0.34-1) ... +Setting up usrmerge (25) ... +The system has been successfully converted. +Processing triggers for man-db (2.9.4-2) ... +Not building database; man-db/auto-update is not 'true'. I: Building the package -I: Running cd /build/pads-1.2/ && 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 > ../pads_1.2-12_source.changes +hostname: Temporary failure in name resolution +I: Running cd /build/pads-1.2/ && 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 > ../pads_1.2-12_source.changes dpkg-buildpackage: info: source package pads dpkg-buildpackage: info: source version 1.2-12 dpkg-buildpackage: info: source distribution unstable @@ -446,7 +517,7 @@ ./configure --build=aarch64-linux-gnu --prefix=/usr --includedir=\${prefix}/include --mandir=\${prefix}/share/man --infodir=\${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --disable-option-checking --disable-silent-rules --libdir=\${prefix}/lib/aarch64-linux-gnu --runstatedir=/run --disable-maintainer-mode --disable-dependency-tracking --sysconfdir=/etc/pads checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes -checking for a thread-safe mkdir -p... /bin/mkdir -p +checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes @@ -468,8 +539,8 @@ Configurating Passive Asset Dection System ... checking how to run the C preprocessor... gcc -E -checking for grep that handles long lines and -e... /bin/grep -checking for egrep... /bin/grep -E +checking for grep that handles long lines and -e... /usr/bin/grep +checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes @@ -571,6 +642,11 @@ ../../src/util.h:60:36: note: expected 'const unsigned char *' but argument is of type 'char *' 60 | char *hex2mac(unsigned const char *mac); | ~~~~~~~~~~~~~~~~~~~~~^~~ +In file included from ../../src/global.h:75, + from output.h:45, + from output-fifo.h:48, + from output-fifo.c:28: +output-fifo.c: In function 'init_output_fifo': output-screen.c:120:39: warning: pointer targets in passing argument 1 of 'hex2mac' differ in signedness [-Wpointer-sign] 120 | inet_ntoa(rec->ip_addr), hex2mac(rec->mac_addr)); | ~~~^~~~~~~~~~ @@ -584,11 +660,6 @@ ../../src/util.h:60:36: note: expected 'const unsigned char *' but argument is of type 'char *' 60 | char *hex2mac(unsigned const char *mac); | ~~~~~~~~~~~~~~~~~~~~~^~~ -In file included from ../../src/global.h:75, - from output.h:45, - from output-fifo.h:48, - from output-fifo.c:28: -output-fifo.c: In function 'init_output_fifo': ../../lib/bstring/bstrlib.h:131:97: warning: pointer targets in passing argument 1 of 'mkfifo' differ in signedness [-Wpointer-sign] 131 | #define bdataofse(b, o, e) (((b) == (void *)0 || (b)->data == (void*)0) ? (unsigned char *)(e) : ((b)->data) + (o)) | ^ @@ -946,53 +1017,29 @@ /usr/include/features.h:187:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 187 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ -monnet.c: In function 'parse_networks': -monnet.c:83:2: warning: value computed is not used [-Wunused-value] - 83 | *cmdline++; - | ^~~~~~~~~~ -packet.c: In function 'process_arp': -packet.c:160:39: warning: pointer targets in passing argument 2 of 'check_arp_asset' differ in signedness [-Wpointer-sign] - 160 | if (check_arp_asset(ip_addr, arph->arp_sha) == 1) { - | ~~~~^~~~~~~~~ - | | - | uint8_t * {aka unsigned char *} -In file included from packet.h:45, - from packet.c:28: -storage.h:58:51: note: expected 'char *' but argument is of type 'uint8_t *' {aka 'unsigned char *'} - 58 | int check_arp_asset (struct in_addr ip_addr, char mac_addr[MAC_LEN]); - | ~~~~~^~~~~~~~~~~~~~~~~ -packet.c:161:30: warning: pointer targets in passing argument 2 of 'add_arp_asset' differ in signedness [-Wpointer-sign] - 161 | add_arp_asset(ip_addr, arph->arp_sha, 0); - | ~~~~^~~~~~~~~ - | | - | uint8_t * {aka unsigned char *} -In file included from packet.h:45, - from packet.c:28: -storage.h:60:50: note: expected 'char *' but argument is of type 'uint8_t *' {aka 'unsigned char *'} - 60 | void add_arp_asset (struct in_addr ip_addr, char mac_addr[MAC_LEN], time_t discovered); - | ~~~~~^~~~~~~~~~~~~~~~~ -packet.c:162:33: warning: pointer targets in passing argument 2 of 'print_arp_asset' differ in signedness [-Wpointer-sign] - 162 | print_arp_asset (ip_addr, arph->arp_sha); - | ~~~~^~~~~~~~~ - | | - | uint8_t * {aka unsigned char *} -In file included from pads.h:52, - from util.h:42, - from mac-resolution.h:40, +storage.c: In function 'print_database': +storage.c:485:14: warning: pointer targets in passing argument 1 of 'hex2mac' differ in signedness [-Wpointer-sign] + 485 | hex2mac(arp->mac_addr), arp->discovered); + | ~~~^~~~~~~~~~ + | | + | char * +In file included from mac-resolution.h:40, from storage.h:38, - from packet.h:45, - from packet.c:28: -output/output.h:81:51: note: expected 'char *' but argument is of type 'uint8_t *' {aka 'unsigned char *'} - 81 | int print_arp_asset (struct in_addr ip_addr, char mac_addr[MAC_LEN]); - | ~~~~~^~~~~~~~~~~~~~~~~ -packet.c: In function 'process_tcp': -packet.c:225:11: warning: pointer targets in assignment from 'u_char *' {aka 'unsigned char *'} to 'char *' differ in signedness [-Wpointer-sign] - 225 | payload = (u_char *)(packet + sizeof(struct tcphdr) + len); - | ^ + from storage.c:27: +util.h:60:36: note: expected 'const unsigned char *' but argument is of type 'char *' + 60 | char *hex2mac(unsigned const char *mac); + | ~~~~~~~~~~~~~~~~~~~~~^~~ +pads.c: In function 'print_version': +pads.c:146:37: warning: macro "__DATE__" might prevent reproducible builds [-Wdate-time] + 146 | printf("Compiled - %s %s\n", __DATE__, __TIME__); + | ^~~~~~~~ +pads.c:146:47: warning: macro "__TIME__" might prevent reproducible builds [-Wdate-time] + 146 | printf("Compiled - %s %s\n", __DATE__, __TIME__); + | ^~~~~~~~ In file included from global.h:75, - from identification.h:35, - from identification.c:28: -identification.c: In function 'init_identification': + from util.h:41, + from util.c:28: +util.c: In function 'init_pid_file': ../lib/bstring/bstrlib.h:131:97: warning: pointer targets in passing argument 1 of 'fopen' differ in signedness [-Wpointer-sign] 131 | #define bdataofse(b, o, e) (((b) == (void *)0 || (b)->data == (void*)0) ? (unsigned char *)(e) : ((b)->data) + (o)) | ^ @@ -1004,87 +1051,18 @@ ../lib/bstring/bstrlib.h:134:30: note: in expansion of macro 'bdataofs' 134 | #define bdata(b) (bdataofs (b, 0)) | ^~~~~~~~ -identification.c:60:21: note: in expansion of macro 'bdata' - 60 | if ((fp = fopen(bdata(filename), "r")) == NULL) { +util.c:103:21: note: in expansion of macro 'bdata' + 103 | if ((fp = fopen(bdata(pid_file), "w")) != NULL) { | ^~~~~ -In file included from identification.h:32, - from identification.c:28: +In file included from util.h:32, + from util.c:28: /usr/include/stdio.h:246:44: note: expected 'const char * __restrict__' but argument is of type 'unsigned char *' 246 | extern FILE *fopen (const char *__restrict __filename, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ In file included from global.h:75, - from identification.h:35, - from identification.c:28: -identification.c: In function 'parse_raw_signature': -../lib/bstring/bstrlib.h:131:97: warning: pointer targets in passing argument 1 of 'pcre_compile' differ in signedness [-Wpointer-sign] - 131 | #define bdataofse(b, o, e) (((b) == (void *)0 || (b)->data == (void*)0) ? (unsigned char *)(e) : ((b)->data) + (o)) - | ^ - | | - | unsigned char * -../lib/bstring/bstrlib.h:132:30: note: in expansion of macro 'bdataofse' - 132 | #define bdataofs(b, o) (bdataofse ((b), (o), (void *)0)) - | ^~~~~~~~~ -../lib/bstring/bstrlib.h:134:30: note: in expansion of macro 'bdataofs' - 134 | #define bdata(b) (bdataofs (b, 0)) - | ^~~~~~~~ -identification.c:148:45: note: in expansion of macro 'bdata' - 148 | if ((sig->regex = pcre_compile (bdata(pcre_string), 0, &err, &erroffset, NULL)) == NULL) { - | ^~~~~ -In file included from global.h:73, - from identification.h:35, - from identification.c:28: -/usr/include/pcre.h:540:34: note: expected 'const char *' but argument is of type 'unsigned char *' - 540 | PCRE_EXP_DECL pcre *pcre_compile(const char *, int, const char **, int *, - | ^~~~~~~~~~~~ -In file included from global.h:75, - from identification.h:35, - from identification.c:28: -identification.c: In function 'get_app_name': -../lib/bstring/bstrlib.h:131:97: warning: pointer targets in passing argument 2 of 'strlcpy' differ in signedness [-Wpointer-sign] - 131 | #define bdataofse(b, o, e) (((b) == (void *)0 || (b)->data == (void*)0) ? (unsigned char *)(e) : ((b)->data) + (o)) - | ^ - | | - | unsigned char * -../lib/bstring/bstrlib.h:132:30: note: in expansion of macro 'bdataofse' - 132 | #define bdataofs(b, o) (bdataofse ((b), (o), (void *)0)) - | ^~~~~~~~~ -../lib/bstring/bstrlib.h:134:30: note: in expansion of macro 'bdataofs' - 134 | #define bdata(b) (bdataofs (b, 0)) - | ^~~~~~~~ -identification.c:314:22: note: in expansion of macro 'bdata' - 314 | strlcpy(app, bdata(sig->title.app), MAX_APP); - | ^~~~~ -In file included from identification.h:36, - from identification.c:28: -util.h:53:39: note: expected 'const char *' but argument is of type 'unsigned char *' - 53 | size_t strlcpy(char *dst, const char *src, size_t size); - | ~~~~~~~~~~~~^~~ -In file included from global.h:75, - from identification.h:35, - from identification.c:28: -../lib/bstring/bstrlib.h:131:97: warning: pointer targets in passing argument 2 of 'strlcat' differ in signedness [-Wpointer-sign] - 131 | #define bdataofse(b, o, e) (((b) == (void *)0 || (b)->data == (void*)0) ? (unsigned char *)(e) : ((b)->data) + (o)) - | ^ - | | - | unsigned char * -../lib/bstring/bstrlib.h:132:30: note: in expansion of macro 'bdataofse' - 132 | #define bdataofs(b, o) (bdataofse ((b), (o), (void *)0)) - | ^~~~~~~~~ -../lib/bstring/bstrlib.h:134:30: note: in expansion of macro 'bdataofs' - 134 | #define bdata(b) (bdataofs (b, 0)) - | ^~~~~~~~ -identification.c:319:26: note: in expansion of macro 'bdata' - 319 | strlcat(app, bdata(sig->title.ver), MAX_VER); - | ^~~~~ -In file included from identification.h:36, - from identification.c:28: -util.h:56:39: note: expected 'const char *' but argument is of type 'unsigned char *' - 56 | size_t strlcat(char *dst, const char *src, size_t len); - | ~~~~~~~~~~~~^~~ -In file included from global.h:75, - from identification.h:35, - from identification.c:28: -../lib/bstring/bstrlib.h:131:97: warning: pointer targets in passing argument 2 of 'strlcat' differ in signedness [-Wpointer-sign] + from util.h:41, + from util.c:28: +../lib/bstring/bstrlib.h:131:97: warning: pointer targets in passing argument 1 of 'getgrnam' differ in signedness [-Wpointer-sign] 131 | #define bdataofse(b, o, e) (((b) == (void *)0 || (b)->data == (void*)0) ? (unsigned char *)(e) : ((b)->data) + (o)) | ^ | | @@ -1095,21 +1073,14 @@ ../lib/bstring/bstrlib.h:134:30: note: in expansion of macro 'bdataofs' 134 | #define bdata(b) (bdataofs (b, 0)) | ^~~~~~~~ -identification.c:325:26: note: in expansion of macro 'bdata' - 325 | strlcat(app, bdata(sig->title.misc), MAX_MISC); - | ^~~~~ -In file included from identification.h:36, - from identification.c:28: -util.h:56:39: note: expected 'const char *' but argument is of type 'unsigned char *' - 56 | size_t strlcat(char *dst, const char *src, size_t len); - | ~~~~~~~~~~~~^~~ -pads.c: In function 'print_version': -pads.c:146:37: warning: macro "__DATE__" might prevent reproducible builds [-Wdate-time] - 146 | printf("Compiled - %s %s\n", __DATE__, __TIME__); - | ^~~~~~~~ -pads.c:146:47: warning: macro "__TIME__" might prevent reproducible builds [-Wdate-time] - 146 | printf("Compiled - %s %s\n", __DATE__, __TIME__); - | ^~~~~~~~ +util.c:115:32: note: in expansion of macro 'bdata' + 115 | if ((this_group = getgrnam(bdata(group))) == NULL) + | ^~~~~ +In file included from util.h:37, + from util.c:28: +/usr/include/grp.h:107:44: note: expected 'const char *' but argument is of type 'unsigned char *' + 107 | extern struct group *getgrnam (const char *__name); + | ~~~~~~~~~~~~^~~~~~ In file included from global.h:75, from pads.h:50, from pads.c:28: @@ -1173,6 +1144,23 @@ from pads.h:50, from pads.c:28: pads.c: In function 'end_pads': +In file included from global.h:75, + from util.h:41, + from util.c:28: +../lib/bstring/bstrlib.h:131:97: warning: pointer targets in passing argument 1 of 'getpwnam' differ in signedness [-Wpointer-sign] + 131 | #define bdataofse(b, o, e) (((b) == (void *)0 || (b)->data == (void*)0) ? (unsigned char *)(e) : ((b)->data) + (o)) + | ^ + | | + | unsigned char * +../lib/bstring/bstrlib.h:132:30: note: in expansion of macro 'bdataofse' + 132 | #define bdataofs(b, o) (bdataofse ((b), (o), (void *)0)) + | ^~~~~~~~~ +../lib/bstring/bstrlib.h:134:30: note: in expansion of macro 'bdataofs' + 134 | #define bdata(b) (bdataofs (b, 0)) + | ^~~~~~~~ +util.c:117:31: note: in expansion of macro 'bdata' + 117 | if ((this_user = getpwnam(bdata(user))) == NULL) + | ^~~~~ ../lib/bstring/bstrlib.h:131:97: warning: pointer targets in passing argument 1 of 'unlink' differ in signedness [-Wpointer-sign] 131 | #define bdataofse(b, o, e) (((b) == (void *)0 || (b)->data == (void*)0) ? (unsigned char *)(e) : ((b)->data) + (o)) | ^ @@ -1187,6 +1175,14 @@ pads.c:325:21: note: in expansion of macro 'bdata' 325 | if ((unlink(bdata(gc.pid_file))) != 0) | ^~~~~ +In file included from util.h:38, + from util.c:28: +/usr/include/pwd.h:116:45: note: expected 'const char *' but argument is of type 'unsigned char *' + 116 | extern struct passwd *getpwnam (const char *__name) __nonnull ((1)); + | ~~~~~~~~~~~~^~~~~~ +util.c:117:22: warning: null argument where non-null required (argument 1) [-Wnonnull] + 117 | if ((this_user = getpwnam(bdata(user))) == NULL) + | ^~~~~~~~ In file included from pads.h:45, from pads.c:28: /usr/include/unistd.h:825:32: note: expected 'const char *' but argument is of type 'unsigned char *' @@ -1198,8 +1194,7 @@ In file included from global.h:75, from util.h:41, from util.c:28: -util.c: In function 'init_pid_file': -../lib/bstring/bstrlib.h:131:97: warning: pointer targets in passing argument 1 of 'fopen' differ in signedness [-Wpointer-sign] +../lib/bstring/bstrlib.h:131:97: warning: pointer targets in passing argument 1 of 'chown' differ in signedness [-Wpointer-sign] 131 | #define bdataofse(b, o, e) (((b) == (void *)0 || (b)->data == (void*)0) ? (unsigned char *)(e) : ((b)->data) + (o)) | ^ | | @@ -1210,17 +1205,21 @@ ../lib/bstring/bstrlib.h:134:30: note: in expansion of macro 'bdataofs' 134 | #define bdata(b) (bdataofs (b, 0)) | ^~~~~~~~ -util.c:103:21: note: in expansion of macro 'bdata' - 103 | if ((fp = fopen(bdata(pid_file), "w")) != NULL) { - | ^~~~~ -In file included from util.h:32, +util.c:119:16: note: in expansion of macro 'bdata' + 119 | if ((chown(bdata(pid_file), this_user->pw_uid, this_group->gr_gid)) != 0) + | ^~~~~ +In file included from util.h:31, from util.c:28: -/usr/include/stdio.h:246:44: note: expected 'const char * __restrict__' but argument is of type 'unsigned char *' - 246 | extern FILE *fopen (const char *__restrict __filename, - | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ +/usr/include/unistd.h:473:31: note: expected 'const char *' but argument is of type 'unsigned char *' + 473 | extern int chown (const char *__file, __uid_t __owner, __gid_t __group) + | ~~~~~~~~~~~~^~~~~~ +util.c:119:10: warning: null argument where non-null required (argument 1) [-Wnonnull] + 119 | if ((chown(bdata(pid_file), this_user->pw_uid, this_group->gr_gid)) != 0) + | ^~~~~ In file included from global.h:75, from util.h:41, from util.c:28: +util.c: In function 'drop_privs': ../lib/bstring/bstrlib.h:131:97: warning: pointer targets in passing argument 1 of 'getgrnam' differ in signedness [-Wpointer-sign] 131 | #define bdataofse(b, o, e) (((b) == (void *)0 || (b)->data == (void*)0) ? (unsigned char *)(e) : ((b)->data) + (o)) | ^ @@ -1232,8 +1231,8 @@ ../lib/bstring/bstrlib.h:134:30: note: in expansion of macro 'bdataofs' 134 | #define bdata(b) (bdataofs (b, 0)) | ^~~~~~~~ -util.c:115:32: note: in expansion of macro 'bdata' - 115 | if ((this_group = getgrnam(bdata(group))) == NULL) +util.c:366:32: note: in expansion of macro 'bdata' + 366 | if ((this_group = getgrnam(bdata(newgroup))) == NULL) | ^~~~~ In file included from util.h:37, from util.c:28: @@ -1254,21 +1253,22 @@ ../lib/bstring/bstrlib.h:134:30: note: in expansion of macro 'bdataofs' 134 | #define bdata(b) (bdataofs (b, 0)) | ^~~~~~~~ -util.c:117:31: note: in expansion of macro 'bdata' - 117 | if ((this_user = getpwnam(bdata(user))) == NULL) +util.c:369:31: note: in expansion of macro 'bdata' + 369 | if ((this_user = getpwnam(bdata(newuser))) == NULL) | ^~~~~ In file included from util.h:38, from util.c:28: /usr/include/pwd.h:116:45: note: expected 'const char *' but argument is of type 'unsigned char *' 116 | extern struct passwd *getpwnam (const char *__name) __nonnull ((1)); | ~~~~~~~~~~~~^~~~~~ -util.c:117:22: warning: null argument where non-null required (argument 1) [-Wnonnull] - 117 | if ((this_user = getpwnam(bdata(user))) == NULL) +util.c:369:22: warning: null argument where non-null required (argument 1) [-Wnonnull] + 369 | if ((this_user = getpwnam(bdata(newuser))) == NULL) | ^~~~~~~~ In file included from global.h:75, - from util.h:41, - from util.c:28: -../lib/bstring/bstrlib.h:131:97: warning: pointer targets in passing argument 1 of 'chown' differ in signedness [-Wpointer-sign] + from identification.h:35, + from identification.c:28: +identification.c: In function 'init_identification': +../lib/bstring/bstrlib.h:131:97: warning: pointer targets in passing argument 1 of 'fopen' differ in signedness [-Wpointer-sign] 131 | #define bdataofse(b, o, e) (((b) == (void *)0 || (b)->data == (void*)0) ? (unsigned char *)(e) : ((b)->data) + (o)) | ^ | | @@ -1279,22 +1279,19 @@ ../lib/bstring/bstrlib.h:134:30: note: in expansion of macro 'bdataofs' 134 | #define bdata(b) (bdataofs (b, 0)) | ^~~~~~~~ -util.c:119:16: note: in expansion of macro 'bdata' - 119 | if ((chown(bdata(pid_file), this_user->pw_uid, this_group->gr_gid)) != 0) - | ^~~~~ -In file included from util.h:31, - from util.c:28: -/usr/include/unistd.h:473:31: note: expected 'const char *' but argument is of type 'unsigned char *' - 473 | extern int chown (const char *__file, __uid_t __owner, __gid_t __group) - | ~~~~~~~~~~~~^~~~~~ -util.c:119:10: warning: null argument where non-null required (argument 1) [-Wnonnull] - 119 | if ((chown(bdata(pid_file), this_user->pw_uid, this_group->gr_gid)) != 0) - | ^~~~~ +identification.c:60:21: note: in expansion of macro 'bdata' + 60 | if ((fp = fopen(bdata(filename), "r")) == NULL) { + | ^~~~~ +In file included from identification.h:32, + from identification.c:28: +/usr/include/stdio.h:246:44: note: expected 'const char * __restrict__' but argument is of type 'unsigned char *' + 246 | extern FILE *fopen (const char *__restrict __filename, + | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ In file included from global.h:75, - from util.h:41, - from util.c:28: -util.c: In function 'drop_privs': -../lib/bstring/bstrlib.h:131:97: warning: pointer targets in passing argument 1 of 'getgrnam' differ in signedness [-Wpointer-sign] + from identification.h:35, + from identification.c:28: +identification.c: In function 'parse_raw_signature': +../lib/bstring/bstrlib.h:131:97: warning: pointer targets in passing argument 1 of 'pcre_compile' differ in signedness [-Wpointer-sign] 131 | #define bdataofse(b, o, e) (((b) == (void *)0 || (b)->data == (void*)0) ? (unsigned char *)(e) : ((b)->data) + (o)) | ^ | | @@ -1305,18 +1302,20 @@ ../lib/bstring/bstrlib.h:134:30: note: in expansion of macro 'bdataofs' 134 | #define bdata(b) (bdataofs (b, 0)) | ^~~~~~~~ -util.c:366:32: note: in expansion of macro 'bdata' - 366 | if ((this_group = getgrnam(bdata(newgroup))) == NULL) - | ^~~~~ -In file included from util.h:37, - from util.c:28: -/usr/include/grp.h:107:44: note: expected 'const char *' but argument is of type 'unsigned char *' - 107 | extern struct group *getgrnam (const char *__name); - | ~~~~~~~~~~~~^~~~~~ +identification.c:148:45: note: in expansion of macro 'bdata' + 148 | if ((sig->regex = pcre_compile (bdata(pcre_string), 0, &err, &erroffset, NULL)) == NULL) { + | ^~~~~ +In file included from global.h:73, + from identification.h:35, + from identification.c:28: +/usr/include/pcre.h:540:34: note: expected 'const char *' but argument is of type 'unsigned char *' + 540 | PCRE_EXP_DECL pcre *pcre_compile(const char *, int, const char **, int *, + | ^~~~~~~~~~~~ In file included from global.h:75, - from util.h:41, - from util.c:28: -../lib/bstring/bstrlib.h:131:97: warning: pointer targets in passing argument 1 of 'getpwnam' differ in signedness [-Wpointer-sign] + from identification.h:35, + from identification.c:28: +identification.c: In function 'get_app_name': +../lib/bstring/bstrlib.h:131:97: warning: pointer targets in passing argument 2 of 'strlcpy' differ in signedness [-Wpointer-sign] 131 | #define bdataofse(b, o, e) (((b) == (void *)0 || (b)->data == (void*)0) ? (unsigned char *)(e) : ((b)->data) + (o)) | ^ | | @@ -1327,30 +1326,18 @@ ../lib/bstring/bstrlib.h:134:30: note: in expansion of macro 'bdataofs' 134 | #define bdata(b) (bdataofs (b, 0)) | ^~~~~~~~ -util.c:369:31: note: in expansion of macro 'bdata' - 369 | if ((this_user = getpwnam(bdata(newuser))) == NULL) - | ^~~~~ -In file included from util.h:38, - from util.c:28: -/usr/include/pwd.h:116:45: note: expected 'const char *' but argument is of type 'unsigned char *' - 116 | extern struct passwd *getpwnam (const char *__name) __nonnull ((1)); - | ~~~~~~~~~~~~^~~~~~ -util.c:369:22: warning: null argument where non-null required (argument 1) [-Wnonnull] - 369 | if ((this_user = getpwnam(bdata(newuser))) == NULL) - | ^~~~~~~~ -identification.c: In function 'parse_raw_signature': -identification.c:130:14: warning: 'title' may be used uninitialized in this function [-Wmaybe-uninitialized] - 130 | if (title->qty < 3) - | ~~~~~^~~~~ -identification.c:170:8: warning: 'pcre_string' may be used uninitialized in this function [-Wmaybe-uninitialized] - 170 | if (pcre_string != NULL) - | ^ -cat ./pads-report.pl >> pads-report +identification.c:314:22: note: in expansion of macro 'bdata' + 314 | strlcpy(app, bdata(sig->title.app), MAX_APP); + | ^~~~~ +In file included from identification.h:36, + from identification.c:28: +util.h:53:39: note: expected 'const char *' but argument is of type 'unsigned char *' + 53 | size_t strlcpy(char *dst, const char *src, size_t size); + | ~~~~~~~~~~~~^~~ In file included from global.h:75, - from mac-resolution.h:39, - from mac-resolution.c:34: -mac-resolution.c: In function 'init_mac_resolution': -../lib/bstring/bstrlib.h:131:97: warning: pointer targets in passing argument 1 of 'fopen' differ in signedness [-Wpointer-sign] + from identification.h:35, + from identification.c:28: +../lib/bstring/bstrlib.h:131:97: warning: pointer targets in passing argument 2 of 'strlcat' differ in signedness [-Wpointer-sign] 131 | #define bdataofse(b, o, e) (((b) == (void *)0 || (b)->data == (void*)0) ? (unsigned char *)(e) : ((b)->data) + (o)) | ^ | | @@ -1361,19 +1348,18 @@ ../lib/bstring/bstrlib.h:134:30: note: in expansion of macro 'bdataofs' 134 | #define bdata(b) (bdataofs (b, 0)) | ^~~~~~~~ -mac-resolution.c:63:21: note: in expansion of macro 'bdata' - 63 | if ((fp = fopen(bdata(filename), "r")) == NULL) { - | ^~~~~ -In file included from mac-resolution.h:38, - from mac-resolution.c:34: -/usr/include/stdio.h:246:44: note: expected 'const char * __restrict__' but argument is of type 'unsigned char *' - 246 | extern FILE *fopen (const char *__restrict __filename, - | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ +identification.c:319:26: note: in expansion of macro 'bdata' + 319 | strlcat(app, bdata(sig->title.ver), MAX_VER); + | ^~~~~ +In file included from identification.h:36, + from identification.c:28: +util.h:56:39: note: expected 'const char *' but argument is of type 'unsigned char *' + 56 | size_t strlcat(char *dst, const char *src, size_t len); + | ~~~~~~~~~~~~^~~ In file included from global.h:75, - from mac-resolution.h:39, - from mac-resolution.c:34: -mac-resolution.c: In function 'parse_raw_mac': -../lib/bstring/bstrlib.h:131:97: warning: pointer targets in passing argument 1 of 'sscanf' differ in signedness [-Wpointer-sign] + from identification.h:35, + from identification.c:28: +../lib/bstring/bstrlib.h:131:97: warning: pointer targets in passing argument 2 of 'strlcat' differ in signedness [-Wpointer-sign] 131 | #define bdataofse(b, o, e) (((b) == (void *)0 || (b)->data == (void*)0) ? (unsigned char *)(e) : ((b)->data) + (o)) | ^ | | @@ -1384,15 +1370,57 @@ ../lib/bstring/bstrlib.h:134:30: note: in expansion of macro 'bdataofs' 134 | #define bdata(b) (bdataofs (b, 0)) | ^~~~~~~~ -mac-resolution.c:103:16: note: in expansion of macro 'bdata' - 103 | if (sscanf(bdata(line), "%02X:%02X:%02X %80[^,\n],\n", &m1, &m2, &m3, vendor) != 4) - | ^~~~~ -In file included from mac-resolution.h:38, - from mac-resolution.c:34: -/usr/include/stdio.h:399:43: note: expected 'const char * __restrict__' but argument is of type 'unsigned char *' - 399 | extern int sscanf (const char *__restrict __s, - | ~~~~~~~~~~~~~~~~~~~~~~~^~~ -chmod +x pads-report +identification.c:325:26: note: in expansion of macro 'bdata' + 325 | strlcat(app, bdata(sig->title.misc), MAX_MISC); + | ^~~~~ +In file included from identification.h:36, + from identification.c:28: +util.h:56:39: note: expected 'const char *' but argument is of type 'unsigned char *' + 56 | size_t strlcat(char *dst, const char *src, size_t len); + | ~~~~~~~~~~~~^~~ +packet.c: In function 'process_arp': +packet.c:160:39: warning: pointer targets in passing argument 2 of 'check_arp_asset' differ in signedness [-Wpointer-sign] + 160 | if (check_arp_asset(ip_addr, arph->arp_sha) == 1) { + | ~~~~^~~~~~~~~ + | | + | uint8_t * {aka unsigned char *} +In file included from packet.h:45, + from packet.c:28: +storage.h:58:51: note: expected 'char *' but argument is of type 'uint8_t *' {aka 'unsigned char *'} + 58 | int check_arp_asset (struct in_addr ip_addr, char mac_addr[MAC_LEN]); + | ~~~~~^~~~~~~~~~~~~~~~~ +monnet.c: In function 'parse_networks': +monnet.c:83:2: warning: value computed is not used [-Wunused-value] + 83 | *cmdline++; + | ^~~~~~~~~~ +packet.c:161:30: warning: pointer targets in passing argument 2 of 'add_arp_asset' differ in signedness [-Wpointer-sign] + 161 | add_arp_asset(ip_addr, arph->arp_sha, 0); + | ~~~~^~~~~~~~~ + | | + | uint8_t * {aka unsigned char *} +In file included from packet.h:45, + from packet.c:28: +storage.h:60:50: note: expected 'char *' but argument is of type 'uint8_t *' {aka 'unsigned char *'} + 60 | void add_arp_asset (struct in_addr ip_addr, char mac_addr[MAC_LEN], time_t discovered); + | ~~~~~^~~~~~~~~~~~~~~~~ +packet.c:162:33: warning: pointer targets in passing argument 2 of 'print_arp_asset' differ in signedness [-Wpointer-sign] + 162 | print_arp_asset (ip_addr, arph->arp_sha); + | ~~~~^~~~~~~~~ + | | + | uint8_t * {aka unsigned char *} +In file included from pads.h:52, + from util.h:42, + from mac-resolution.h:40, + from storage.h:38, + from packet.h:45, + from packet.c:28: +output/output.h:81:51: note: expected 'char *' but argument is of type 'uint8_t *' {aka 'unsigned char *'} + 81 | int print_arp_asset (struct in_addr ip_addr, char mac_addr[MAC_LEN]); + | ~~~~~^~~~~~~~~~~~~~~~~ +packet.c: In function 'process_tcp': +packet.c:225:11: warning: pointer targets in assignment from 'u_char *' {aka 'unsigned char *'} to 'char *' differ in signedness [-Wpointer-sign] + 225 | payload = (u_char *)(packet + sizeof(struct tcphdr) + len); + | ^ In file included from global.h:75, from configuration.h:45, from configuration.c:28: @@ -1441,26 +1469,69 @@ monnet.h:48:28: note: expected 'char *' but argument is of type 'unsigned char *' 48 | void parse_networks (char *cmdline); | ~~~~~~^~~~~~~ -storage.c: In function 'print_database': -storage.c:485:14: warning: pointer targets in passing argument 1 of 'hex2mac' differ in signedness [-Wpointer-sign] - 485 | hex2mac(arp->mac_addr), arp->discovered); - | ~~~^~~~~~~~~~ - | | - | char * -In file included from mac-resolution.h:40, - from storage.h:38, - from storage.c:27: -util.h:60:36: note: expected 'const unsigned char *' but argument is of type 'char *' - 60 | char *hex2mac(unsigned const char *mac); - | ~~~~~~~~~~~~~~~~~~~~~^~~ -util.c: In function 'strlcat': -util.c:328:9: warning: 'tocopy' is used uninitialized in this function [-Wuninitialized] - 328 | while (tocopy-- && *dstptr) dstptr++; - | ^ +In file included from global.h:75, + from mac-resolution.h:39, + from mac-resolution.c:34: +mac-resolution.c: In function 'init_mac_resolution': +../lib/bstring/bstrlib.h:131:97: warning: pointer targets in passing argument 1 of 'fopen' differ in signedness [-Wpointer-sign] + 131 | #define bdataofse(b, o, e) (((b) == (void *)0 || (b)->data == (void*)0) ? (unsigned char *)(e) : ((b)->data) + (o)) + | ^ + | | + | unsigned char * +../lib/bstring/bstrlib.h:132:30: note: in expansion of macro 'bdataofse' + 132 | #define bdataofs(b, o) (bdataofse ((b), (o), (void *)0)) + | ^~~~~~~~~ +../lib/bstring/bstrlib.h:134:30: note: in expansion of macro 'bdataofs' + 134 | #define bdata(b) (bdataofs (b, 0)) + | ^~~~~~~~ +mac-resolution.c:63:21: note: in expansion of macro 'bdata' + 63 | if ((fp = fopen(bdata(filename), "r")) == NULL) { + | ^~~~~ +In file included from mac-resolution.h:38, + from mac-resolution.c:34: +/usr/include/stdio.h:246:44: note: expected 'const char * __restrict__' but argument is of type 'unsigned char *' + 246 | extern FILE *fopen (const char *__restrict __filename, + | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ +In file included from global.h:75, + from mac-resolution.h:39, + from mac-resolution.c:34: +mac-resolution.c: In function 'parse_raw_mac': +../lib/bstring/bstrlib.h:131:97: warning: pointer targets in passing argument 1 of 'sscanf' differ in signedness [-Wpointer-sign] + 131 | #define bdataofse(b, o, e) (((b) == (void *)0 || (b)->data == (void*)0) ? (unsigned char *)(e) : ((b)->data) + (o)) + | ^ + | | + | unsigned char * +../lib/bstring/bstrlib.h:132:30: note: in expansion of macro 'bdataofse' + 132 | #define bdataofs(b, o) (bdataofse ((b), (o), (void *)0)) + | ^~~~~~~~~ +../lib/bstring/bstrlib.h:134:30: note: in expansion of macro 'bdataofs' + 134 | #define bdata(b) (bdataofs (b, 0)) + | ^~~~~~~~ +mac-resolution.c:103:16: note: in expansion of macro 'bdata' + 103 | if (sscanf(bdata(line), "%02X:%02X:%02X %80[^,\n],\n", &m1, &m2, &m3, vendor) != 4) + | ^~~~~ +In file included from mac-resolution.h:38, + from mac-resolution.c:34: +/usr/include/stdio.h:399:43: note: expected 'const char * __restrict__' but argument is of type 'unsigned char *' + 399 | extern int sscanf (const char *__restrict __s, + | ~~~~~~~~~~~~~~~~~~~~~~~^~~ +identification.c: In function 'parse_raw_signature': +identification.c:130:14: warning: 'title' may be used uninitialized in this function [-Wmaybe-uninitialized] + 130 | if (title->qty < 3) + | ~~~~~^~~~~ +identification.c:170:8: warning: 'pcre_string' may be used uninitialized in this function [-Wmaybe-uninitialized] + 170 | if (pcre_string != NULL) + | ^ storage.c: In function 'find_asset': storage.c:403:12: warning: 'rec' may be used uninitialized in this function [-Wmaybe-uninitialized] 403 | Asset *rec; | ^~~ +cat ./pads-report.pl >> pads-report +chmod +x pads-report +util.c: In function 'strlcat': +util.c:328:9: warning: 'tocopy' is used uninitialized in this function [-Wuninitialized] + 328 | while (tocopy-- && *dstptr) dstptr++; + | ^ gcc -g -O2 -fdebug-prefix-map=/build/pads-1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -g -std=gnu89 -Wl,-z,relro -lpcre -o pads pads.o storage.o identification.o packet.o monnet.o mac-resolution.o configuration.o util.o ../lib/bstring/libbstring.a output/liboutput.a -lpcre -lpcap make[4]: Leaving directory '/build/pads-1.2/src' make[3]: Leaving directory '/build/pads-1.2/src' @@ -1519,11 +1590,11 @@ make[3]: Leaving directory '/build/pads-1.2/src/output' make[3]: Entering directory '/build/pads-1.2/src' make[4]: Entering directory '/build/pads-1.2/src' + /usr/bin/mkdir -p '/build/pads-1.2/debian/pads/usr/bin' make[4]: Nothing to be done for 'install-data-am'. - /bin/mkdir -p '/build/pads-1.2/debian/pads/usr/bin' - /bin/mkdir -p '/build/pads-1.2/debian/pads/usr/bin' - /usr/bin/install -c pads-report '/build/pads-1.2/debian/pads/usr/bin' + /usr/bin/mkdir -p '/build/pads-1.2/debian/pads/usr/bin' /usr/bin/install -c pads '/build/pads-1.2/debian/pads/usr/bin' + /usr/bin/install -c pads-report '/build/pads-1.2/debian/pads/usr/bin' make[4]: Leaving directory '/build/pads-1.2/src' make[3]: Leaving directory '/build/pads-1.2/src' make[2]: Leaving directory '/build/pads-1.2/src' @@ -1531,8 +1602,8 @@ make -j8 install DESTDIR=/build/pads-1.2/debian/pads AM_UPDATE_INFO_DIR=no -C etc make[2]: Entering directory '/build/pads-1.2/etc' make[3]: Entering directory '/build/pads-1.2/etc' + /usr/bin/mkdir -p '/build/pads-1.2/debian/pads/etc/pads' make[3]: Nothing to be done for 'install-data-am'. - /bin/mkdir -p '/build/pads-1.2/debian/pads/etc/pads' /usr/bin/install -c -m 644 pads.conf pads-signature-list pads-ether-codes '/build/pads-1.2/debian/pads/etc/pads' make[3]: Leaving directory '/build/pads-1.2/etc' make[2]: Leaving directory '/build/pads-1.2/etc' @@ -1566,12 +1637,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/13868/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/13868/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/24981 and its subdirectories -I: Current time: Sun Aug 14 00:53:19 -12 2022 -I: pbuilder-time-stamp: 1660481599 +I: removing directory /srv/workspace/pbuilder/13868 and its subdirectories +I: Current time: Mon Jul 12 20:31:34 +14 2021 +I: pbuilder-time-stamp: 1626071494