Diff of the two buildlogs: -- --- b1/build.log 2023-05-18 12:25:44.326925629 +0000 +++ b2/build.log 2023-05-18 12:27:07.079298401 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Wed Jun 19 06:47:33 -12 2024 -I: pbuilder-time-stamp: 1718822853 +I: Current time: Fri May 19 02:25:48 +14 2023 +I: pbuilder-time-stamp: 1684412748 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 [./pads_1.2.orig.tar.gz] I: copying [./pads_1.2-14.debian.tar.xz] I: Extracting source -gpgv: Signature made Thu Oct 13 01:17:01 2022 -12 +gpgv: Signature made Fri Oct 14 03:17:01 2022 +14 gpgv: using RSA key B23862C415D6565A4E86CBD7579C160D4C9E23E8 gpgv: Can't check signature: No public key dpkg-source: warning: cannot verify inline signature for ./pads_1.2-14.dsc: no acceptable signature found @@ -28,52 +28,84 @@ 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/4277/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/29621/tmp/hooks/D01_modify_environment starting +debug: Running on codethink10-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 +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 May 19 02:26 /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/29621/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/29621/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: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]="aarch64-unknown-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=arm64 + DEBIAN_FRONTEND=noninteractive DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=8 ' - DISTRIBUTION='bookworm' - HOME='/var/lib/jenkins' - HOST_ARCH='arm64' + DIRSTACK=() + DISTRIBUTION=bookworm + 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='4277' - 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=29621 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.dtoPXNdZ/pbuilderrc_pQZV --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.dtoPXNdZ/b1 --logfile b1/build.log pads_1.2-14.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/r-b-build.dtoPXNdZ/pbuilderrc_Nz0F --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.dtoPXNdZ/b2 --logfile b2/build.log --extrapackages usrmerge pads_1.2-14.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-211-generic #222-Ubuntu SMP Tue Apr 18 18:58:27 UTC 2023 aarch64 GNU/Linux + Linux i-capture-the-hostname 4.15.0-211-generic #222-Ubuntu SMP Tue Apr 18 18:58:27 UTC 2023 aarch64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Jun 17 04:47 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/4277/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 May 18 00:24 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/29621/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -158,7 +190,7 @@ Get: 43 http://deb.debian.org/debian bookworm/main arm64 libpcre32-3 arm64 2:8.39-15 [226 kB] Get: 44 http://deb.debian.org/debian bookworm/main arm64 libpcrecpp0v5 arm64 2:8.39-15 [142 kB] Get: 45 http://deb.debian.org/debian bookworm/main arm64 libpcre3-dev arm64 2:8.39-15 [584 kB] -Fetched 20.8 MB in 0s (42.2 MB/s) +Fetched 20.8 MB in 1s (40.0 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package sgml-base. (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 ... 19616 files and directories currently installed.) @@ -353,8 +385,17 @@ 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/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-14_source.changes +I: user script /srv/workspace/pbuilder/29621/tmp/hooks/A99_set_merged_usr starting +Re-configuring usrmerge... +I: user script /srv/workspace/pbuilder/29621/tmp/hooks/A99_set_merged_usr finished +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-14_source.changes dpkg-buildpackage: info: source package pads dpkg-buildpackage: info: source version 1.2-14 dpkg-buildpackage: info: source distribution unstable @@ -686,6 +727,45 @@ ../../src/util.h:59:26: note: expected 'const char *' but argument is of type 'unsigned char *' 59 | void mac2hex(const char *mac, char *dst, int len); | ~~~~~~~~~~~~^~~ +output-csv.c: In function 'print_arp_asset_csv': +output-csv.c:280:54: warning: pointer targets in passing argument 1 of 'hex2mac' differ in signedness [-Wpointer-sign] + 280 | bdata(rec->mac_resolved), hex2mac(rec->mac_addr), rec->discovered); + | ~~~^~~~~~~~~~ + | | + | char * +../../src/util.h:60:36: note: expected 'const unsigned char *' but argument is of type 'char *' + 60 | char *hex2mac(unsigned const char *mac); + | ~~~~~~~~~~~~~~~~~~~~~^~~ +output-csv.c:283:28: warning: pointer targets in passing argument 1 of 'hex2mac' differ in signedness [-Wpointer-sign] + 283 | hex2mac(rec->mac_addr), rec->discovered); + | ~~~^~~~~~~~~~ + | | + | char * +../../src/util.h:60:36: note: expected 'const unsigned char *' but argument is of type 'char *' + 60 | char *hex2mac(unsigned const char *mac); + | ~~~~~~~~~~~~~~~~~~~~~^~~ +output-screen.c: In function 'print_arp_asset_screen': +output-screen.c:117:53: warning: pointer targets in passing argument 1 of 'hex2mac' differ in signedness [-Wpointer-sign] + 117 | inet_ntoa(rec->ip_addr), hex2mac(rec->mac_addr), bdata(rec->mac_resolved)); + | ~~~^~~~~~~~~~ + | | + | char * +In file included from ../../src/mac-resolution.h:40, + from ../../src/storage.h:38, + from output.h:46, + from output-screen.h:46, + from output-screen.c:27: +../../src/util.h:60:36: note: expected 'const unsigned char *' but argument is of type 'char *' + 60 | char *hex2mac(unsigned const char *mac); + | ~~~~~~~~~~~~~~~~~~~~~^~~ +output-screen.c:120:53: warning: pointer targets in passing argument 1 of 'hex2mac' differ in signedness [-Wpointer-sign] + 120 | inet_ntoa(rec->ip_addr), hex2mac(rec->mac_addr)); + | ~~~^~~~~~~~~~ + | | + | char * +../../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, @@ -753,45 +833,6 @@ ../../src/util.h:60:36: note: expected 'const unsigned char *' but argument is of type 'char *' 60 | char *hex2mac(unsigned const char *mac); | ~~~~~~~~~~~~~~~~~~~~~^~~ -output-csv.c: In function 'print_arp_asset_csv': -output-csv.c:280:54: warning: pointer targets in passing argument 1 of 'hex2mac' differ in signedness [-Wpointer-sign] - 280 | bdata(rec->mac_resolved), hex2mac(rec->mac_addr), rec->discovered); - | ~~~^~~~~~~~~~ - | | - | char * -../../src/util.h:60:36: note: expected 'const unsigned char *' but argument is of type 'char *' - 60 | char *hex2mac(unsigned const char *mac); - | ~~~~~~~~~~~~~~~~~~~~~^~~ -output-csv.c:283:28: warning: pointer targets in passing argument 1 of 'hex2mac' differ in signedness [-Wpointer-sign] - 283 | hex2mac(rec->mac_addr), rec->discovered); - | ~~~^~~~~~~~~~ - | | - | char * -../../src/util.h:60:36: note: expected 'const unsigned char *' but argument is of type 'char *' - 60 | char *hex2mac(unsigned const char *mac); - | ~~~~~~~~~~~~~~~~~~~~~^~~ -output-screen.c: In function 'print_arp_asset_screen': -output-screen.c:117:53: warning: pointer targets in passing argument 1 of 'hex2mac' differ in signedness [-Wpointer-sign] - 117 | inet_ntoa(rec->ip_addr), hex2mac(rec->mac_addr), bdata(rec->mac_resolved)); - | ~~~^~~~~~~~~~ - | | - | char * -In file included from ../../src/mac-resolution.h:40, - from ../../src/storage.h:38, - from output.h:46, - from output-screen.h:46, - from output-screen.c:27: -../../src/util.h:60:36: note: expected 'const unsigned char *' but argument is of type 'char *' - 60 | char *hex2mac(unsigned const char *mac); - | ~~~~~~~~~~~~~~~~~~~~~^~~ -output-screen.c:120:53: warning: pointer targets in passing argument 1 of 'hex2mac' differ in signedness [-Wpointer-sign] - 120 | inet_ntoa(rec->ip_addr), hex2mac(rec->mac_addr)); - | ~~~^~~~~~~~~~ - | | - | char * -../../src/util.h:60:36: note: expected 'const unsigned char *' but argument is of type 'char *' - 60 | char *hex2mac(unsigned const char *mac); - | ~~~~~~~~~~~~~~~~~~~~~^~~ output.c: In function 'print_arp_asset': output.c:210:18: warning: 'rec' may be used uninitialized [-Wmaybe-uninitialized] 210 | (*head->plugin->print_arp)(rec); @@ -812,7 +853,6 @@ gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/pads-1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -g -std=gnu89 -c -o monnet.o monnet.c gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/pads-1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -g -std=gnu89 -c -o mac-resolution.o mac-resolution.c gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/pads-1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -g -std=gnu89 -c -o configuration.o configuration.c -gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/pads-1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -g -std=gnu89 -c -o util.o util.c In file included from /usr/include/netinet/in.h:21, from global.h:69, from packet.h:44, @@ -820,116 +860,7 @@ /usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ -In file included from global.h:75, - 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)) - | ^ - | | - | 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:60:21: note: in expansion of macro 'bdata' - 60 | if ((fp = fopen(bdata(filename), "r")) == NULL) { - | ^~~~~ -In file included from identification.h:32: -/usr/include/stdio.h:258:44: note: expected 'const char * __restrict__' but argument is of type 'unsigned char *' - 258 | extern FILE *fopen (const char *__restrict __filename, - | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ -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: -/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 *, - | ^~~~~~~~~~~~ -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: -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); - | ~~~~~~~~~~~~^~~ -../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); - | ^~~~~ -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); - | ~~~~~~~~~~~~^~~ -../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:325:26: note: in expansion of macro 'bdata' - 325 | strlcat(app, bdata(sig->title.misc), MAX_MISC); - | ^~~~~ -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); - | ~~~~~~~~~~~~^~~ -storage.c: In function 'print_database': -storage.c:485:28: 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); - | ~~~~~~~~~~~~~~~~~~~~~^~~ -monnet.c: In function 'parse_networks': -monnet.c:83:9: warning: value computed is not used [-Wunused-value] - 83 | *cmdline++; - | ^~~~~~~~~~ +gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/pads-1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -g -std=gnu89 -c -o util.o util.c packet.c: In function 'process_arp': packet.c:160:46: 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) { @@ -964,53 +895,10 @@ packet.c:225:25: 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: -configuration.c: In function 'init_configuration': -../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)) - | ^~~~~~~~ -configuration.c:47:21: note: in expansion of macro 'bdata' - 47 | if ((fp = fopen(bdata(filename), "r")) == NULL) { - | ^~~~~ -In file included from configuration.h:44: -/usr/include/stdio.h:258:44: note: expected 'const char * __restrict__' but argument is of type 'unsigned char *' - 258 | extern FILE *fopen (const char *__restrict __filename, - | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ 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__); | ^~~~~~~~ -configuration.c: In function 'parse_line': -../lib/bstring/bstrlib.h:131:97: warning: pointer targets in passing argument 1 of 'parse_networks' 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)) - | ^~~~~~~~ -configuration.c:150:24: note: in expansion of macro 'bdata' - 150 | parse_networks(bdata(value)); - | ^~~~~ -In file included from pads.h:56, - from util.h:42, - from configuration.h:46: -monnet.h:48:28: note: expected 'char *' but argument is of type 'unsigned char *' - 48 | void parse_networks (char *cmdline); - | ~~~~~~^~~~~~~ pads.c:146:47: warning: macro "__TIME__" might prevent reproducible builds [-Wdate-time] 146 | printf("Compiled - %s %s\n", __DATE__, __TIME__); | ^~~~~~~~ @@ -1085,6 +973,40 @@ /usr/include/unistd.h:858:12: note: in a call to function 'unlink' declared 'nonnull' 858 | extern int unlink (const char *__name) __THROW __nonnull ((1)); | ^~~~~~ +storage.c: In function 'print_database': +storage.c:485:28: 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); + | ~~~~~~~~~~~~~~~~~~~~~^~~ +In file included from global.h:75, + from configuration.h:45, + from configuration.c:28: +configuration.c: In function 'init_configuration': +../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)) + | ^~~~~~~~ +configuration.c:47:21: note: in expansion of macro 'bdata' + 47 | if ((fp = fopen(bdata(filename), "r")) == NULL) { + | ^~~~~ +In file included from configuration.h:44: +/usr/include/stdio.h:258:44: note: expected 'const char * __restrict__' but argument is of type 'unsigned char *' + 258 | extern FILE *fopen (const char *__restrict __filename, + | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ In file included from global.h:75, from mac-resolution.h:39, from mac-resolution.c:34: @@ -1125,19 +1047,27 @@ /usr/include/stdio.h:423:43: note: expected 'const char * __restrict__' but argument is of type 'unsigned char *' 423 | extern int sscanf (const char *__restrict __s, | ~~~~~~~~~~~~~~~~~~~~~~~^~~ -identification.c: In function 'parse_raw_signature': -identification.c:130:14: warning: 'title' may be used uninitialized [-Wmaybe-uninitialized] - 130 | if (title->qty < 3) - | ~~~~~^~~~~ -identification.c:94:22: note: 'title' was declared here - 94 | struct bstrList *title; - | ^~~~~ -identification.c:170:8: warning: 'pcre_string' may be used uninitialized [-Wmaybe-uninitialized] - 170 | if (pcre_string != NULL) - | ^ -identification.c:96:13: note: 'pcre_string' was declared here - 96 | bstring pcre_string; - | ^~~~~~~~~~~ +configuration.c: In function 'parse_line': +../lib/bstring/bstrlib.h:131:97: warning: pointer targets in passing argument 1 of 'parse_networks' 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)) + | ^~~~~~~~ +configuration.c:150:24: note: in expansion of macro 'bdata' + 150 | parse_networks(bdata(value)); + | ^~~~~ +In file included from pads.h:56, + from util.h:42, + from configuration.h:46: +monnet.h:48:28: note: expected 'char *' but argument is of type 'unsigned char *' + 48 | void parse_networks (char *cmdline); + | ~~~~~~^~~~~~~ In file included from global.h:75, from util.h:41, from util.c:28: @@ -1226,6 +1156,10 @@ /usr/include/unistd.h:493:12: note: in a call to function 'chown' declared 'nonnull' 493 | extern int chown (const char *__file, __uid_t __owner, __gid_t __group) | ^~~~~ +monnet.c: In function 'parse_networks': +monnet.c:83:9: warning: value computed is not used [-Wunused-value] + 83 | *cmdline++; + | ^~~~~~~~~~ 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)) @@ -1267,7 +1201,43 @@ /usr/include/pwd.h:116:23: note: in a call to function 'getpwnam' declared 'nonnull' 116 | extern struct passwd *getpwnam (const char *__name) __nonnull ((1)); | ^~~~~~~~ -cat ./pads-report.pl >> pads-report +In file included from global.h:75, + 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)) + | ^ + | | + | 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:60:21: note: in expansion of macro 'bdata' + 60 | if ((fp = fopen(bdata(filename), "r")) == NULL) { + | ^~~~~ +In file included from identification.h:32: +/usr/include/stdio.h:258:44: note: expected 'const char * __restrict__' but argument is of type 'unsigned char *' + 258 | extern FILE *fopen (const char *__restrict __filename, + | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ +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) { + | ^~~~~ util.c: In function 'strlcat': util.c:328:16: warning: 'tocopy' is used uninitialized [-Wuninitialized] 328 | while (tocopy-- && *dstptr) dstptr++; @@ -1275,6 +1245,77 @@ util.c:325:22: note: 'tocopy' was declared here 325 | size_t dstlen, tocopy; | ^~~~~~ +In file included from global.h:73: +/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 *, + | ^~~~~~~~~~~~ +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: +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); + | ~~~~~~~~~~~~^~~ +../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); + | ^~~~~ +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); + | ~~~~~~~~~~~~^~~ +../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:325:26: note: in expansion of macro 'bdata' + 325 | strlcat(app, bdata(sig->title.misc), MAX_MISC); + | ^~~~~ +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); + | ~~~~~~~~~~~~^~~ +cat ./pads-report.pl >> pads-report +identification.c: In function 'parse_raw_signature': +identification.c:130:14: warning: 'title' may be used uninitialized [-Wmaybe-uninitialized] + 130 | if (title->qty < 3) + | ~~~~~^~~~~ +identification.c:94:22: note: 'title' was declared here + 94 | struct bstrList *title; + | ^~~~~ +identification.c:170:8: warning: 'pcre_string' may be used uninitialized [-Wmaybe-uninitialized] + 170 | if (pcre_string != NULL) + | ^ +identification.c:96:13: note: 'pcre_string' was declared here + 96 | bstring pcre_string; + | ^~~~~~~~~~~ chmod +x pads-report storage.c: In function 'find_asset': storage.c:403:12: warning: 'rec' may be used uninitialized [-Wmaybe-uninitialized] @@ -1339,8 +1380,8 @@ 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'. /usr/bin/mkdir -p '/build/pads-1.2/debian/pads/usr/bin' +make[4]: Nothing to be done for 'install-data-am'. /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' @@ -1376,8 +1417,8 @@ dpkg-gencontrol: warning: package pads: substitution variable ${perl:Depends} unused, but is defined dh_md5sums dh_builddeb -dpkg-deb: building package 'pads' in '../pads_1.2-14_arm64.deb'. dpkg-deb: building package 'pads-dbgsym' in '../pads-dbgsym_1.2-14_arm64.deb'. +dpkg-deb: building package 'pads' in '../pads_1.2-14_arm64.deb'. dpkg-genbuildinfo --build=binary -O../pads_1.2-14_arm64.buildinfo dpkg-genchanges --build=binary -O../pads_1.2-14_arm64.changes dpkg-genchanges: info: binary-only upload (no source code included) @@ -1385,12 +1426,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/29621/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/29621/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/4277 and its subdirectories -I: Current time: Wed Jun 19 06:48:43 -12 2024 -I: pbuilder-time-stamp: 1718822923 +I: removing directory /srv/workspace/pbuilder/29621 and its subdirectories +I: Current time: Fri May 19 02:27:05 +14 2023 +I: pbuilder-time-stamp: 1684412825