Diff of the two buildlogs: -- --- b1/build.log 2023-04-11 16:51:37.443763963 +0000 +++ b2/build.log 2023-04-11 16:52:35.981798077 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Tue Apr 11 04:50:18 -12 2023 -I: pbuilder-time-stamp: 1681231818 +I: Current time: Tue May 14 13:14:40 +14 2024 +I: pbuilder-time-stamp: 1715642080 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 [./nast_0.2.0.orig.tar.gz] I: copying [./nast_0.2.0-10.debian.tar.xz] I: Extracting source -gpgv: Signature made Sun Nov 27 09:29:27 2022 -12 +gpgv: Signature made Mon Nov 28 11:29:27 2022 +14 gpgv: using RSA key B23862C415D6565A4E86CBD7579C160D4C9E23E8 gpgv: Can't check signature: No public key dpkg-source: warning: cannot verify inline signature for ./nast_0.2.0-10.dsc: no acceptable signature found @@ -38,11 +38,20 @@ dpkg-source: info: applying mvwprintw-literal-format I: using fakeroot in build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/15044/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/8307/tmp/hooks/D01_modify_environment starting +debug: Running on codethink11-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 +lrwxrwxrwx 1 root root 4 Jan 6 2023 /bin/sh -> dash +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/8307/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/8307/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' + 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' @@ -52,38 +61,38 @@ IFS=' ' LANG='C' - LANGUAGE='en_US:en' + LANGUAGE='nl_BE:nl' LC_ALL='C' MAIL='/var/mail/root' OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' + 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' - PPID='15044' + PPID='8307' PS1='# ' PS2='> ' 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.N2v6EIvC/pbuilderrc_cS7M --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.N2v6EIvC/b1 --logfile b1/build.log nast_0.2.0-10.dsc' + 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.N2v6EIvC/pbuilderrc_BIDh --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.N2v6EIvC/b2 --logfile b2/build.log --extrapackages usrmerge nast_0.2.0-10.dsc' SUDO_GID='117' SUDO_UID='110' SUDO_USER='jenkins' TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' + TZ='/usr/share/zoneinfo/Etc/GMT-14' USER='root' USERNAME='root' _='/usr/bin/systemd-run' http_proxy='http://192.168.101.16:3128' I: uname -a - Linux codethink10-arm64 4.15.0-208-generic #220-Ubuntu SMP Mon Mar 20 14:28:12 UTC 2023 aarch64 GNU/Linux + Linux i-capture-the-hostname 4.15.0-208-generic #220-Ubuntu SMP Mon Mar 20 14:28:12 UTC 2023 aarch64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Apr 10 22:26 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/15044/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 May 13 06:50 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/8307/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -170,7 +179,7 @@ Get: 43 http://deb.debian.org/debian bookworm/main arm64 libnet1-dev arm64 1.1.6+dfsg-3.2 [121 kB] Get: 44 http://deb.debian.org/debian bookworm/main arm64 libpcap0.8 arm64 1.10.3-1 [148 kB] Get: 45 http://deb.debian.org/debian bookworm/main arm64 libpcap0.8-dev arm64 1.10.3-1 [271 kB] -Fetched 19.9 MB in 1s (28.7 MB/s) +Fetched 19.9 MB in 1s (38.2 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.) @@ -368,10 +377,15 @@ Reading package lists... Building dependency tree... Reading state information... +usrmerge is already the newest version (35). fakeroot is already the newest version (1.31-1.2). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I: Building the package -I: Running cd /build/nast-0.2.0/ && 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 > ../nast_0.2.0-10_source.changes +I: user script /srv/workspace/pbuilder/8307/tmp/hooks/A99_set_merged_usr starting +Re-configuring usrmerge... +I: user script /srv/workspace/pbuilder/8307/tmp/hooks/A99_set_merged_usr finished +hostname: Temporary failure in name resolution +I: Running cd /build/nast-0.2.0/ && 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 > ../nast_0.2.0-10_source.changes dpkg-buildpackage: info: source package nast dpkg-buildpackage: info: source version 0.2.0-10 dpkg-buildpackage: info: source distribution unstable @@ -443,7 +457,7 @@ Results are: PLATFORM ...... : aarch64 unknown -O.S. .......... : Linux 4.15.0-208-generic (codethink10-arm64) +O.S. .......... : Linux 4.15.0-208-generic (i-capture-the-hostname) COMPILER ...... : gcc CFLAGS ........ : -g -O2 -ffile-prefix-map=/build/nast-0.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 CPPFLAGS ...... : -Wdate-time -D_FORTIFY_SOURCE=2 @@ -466,6 +480,35 @@ gcc -g -O2 -ffile-prefix-map=/build/nast-0.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c udp.c -o udp.o gcc -g -O2 -ffile-prefix-map=/build/nast-0.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c prom.c -o prom.o gcc -g -O2 -ffile-prefix-map=/build/nast-0.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c eth.c -o eth.o +icmp.c: In function 'handle_ICMP': +icmp.c:206:13: warning: pointer targets in assignment from 'char *' to 'u_char *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] + 206 | buf = (char *) (packet + size_ip + size_icmp + offset); + | ^ +icmp.c:211:27: warning: pointer targets in passing argument 1 of 'data_sniffo' differ in signedness [-Wpointer-sign] + 211 | data_sniffo (buf, size_buf, output); + | ^~~ + | | + | u_char * {aka unsigned char *} +In file included from icmp.c:20: +include/nast.h:59:25: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} + 59 | void data_sniffo (char *data, u_int l, FILE *log); + | ~~~~~~^~~~ +icmp.c:218:31: warning: pointer targets in passing argument 1 of 'print_ascii_hex' differ in signedness [-Wpointer-sign] + 218 | print_ascii_hex (buf, size_buf, output); + | ^~~ + | | + | u_char * {aka unsigned char *} +include/nast.h:60:29: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} + 60 | void print_ascii_hex (char *data_info, u_int len, FILE *log); + | ~~~~~~^~~~~~~~~ +icmp.c:226:27: warning: pointer targets in passing argument 1 of 'data_sniffo' differ in signedness [-Wpointer-sign] + 226 | data_sniffo (buf, size_buf, ldd); + | ^~~ + | | + | u_char * {aka unsigned char *} +include/nast.h:59:25: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} + 59 | void data_sniffo (char *data, u_int l, FILE *log); + | ~~~~~~^~~~ main.c: In function 'main': main.c:309:4: warning: 'pcap_lookupdev' is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations] 309 | if(dev == NULL) dev = pcap_lookupdev(errbuf); @@ -476,6 +519,27 @@ /usr/include/pcap/pcap.h:395:18: note: declared here 395 | PCAP_API char *pcap_lookupdev(char *); | ^~~~~~~~~~~~~~ +udp.c: In function 'handle_UDP': +udp.c:59:13: warning: pointer targets in assignment from 'char *' to 'u_char *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] + 59 | buf = (char *) (packet + size_ip + size_udp + offset); + | ^ +udp.c:64:27: warning: pointer targets in passing argument 1 of 'data_sniffo' differ in signedness [-Wpointer-sign] + 64 | data_sniffo (buf, size_buf, output); + | ^~~ + | | + | u_char * {aka unsigned char *} +In file included from udp.c:22: +include/nast.h:59:25: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} + 59 | void data_sniffo (char *data, u_int l, FILE *log); + | ~~~~~~^~~~ +udp.c:70:31: warning: pointer targets in passing argument 1 of 'print_ascii_hex' differ in signedness [-Wpointer-sign] + 70 | print_ascii_hex (buf, size_buf, output); + | ^~~ + | | + | u_char * {aka unsigned char *} +include/nast.h:60:29: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} + 60 | void print_ascii_hex (char *data_info, u_int len, FILE *log); + | ~~~~~~^~~~~~~~~ main.c:349:36: warning: pointer targets in passing argument 1 of 'mport' differ in signedness [-Wpointer-sign] 349 | if (flags.banner) return mport (dev, ports, flags.l); | ^~~ @@ -484,11 +548,23 @@ include/nast.h:69:20: note: expected 'u_char *' {aka 'unsigned char *'} but argument is of type 'char *' 69 | int mport (u_char *dev, u_short ports[], int lg); | ~~~~~~~~^~~ +udp.c:81:27: warning: pointer targets in passing argument 1 of 'data_sniffo' differ in signedness [-Wpointer-sign] + 81 | data_sniffo (buf, size_buf, ldd); + | ^~~ + | | + | u_char * {aka unsigned char *} +include/nast.h:59:25: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} + 59 | void data_sniffo (char *data, u_int l, FILE *log); + | ~~~~~~^~~~ +tcp.c: In function 'handle_TCP': main.c:356:30: warning: pointer targets in passing argument 1 of 'fgw' differ in signedness [-Wpointer-sign] 356 | if (flags.gw) return fgw (dev); | ^~~ | | | char * +tcp.c:101:13: warning: pointer targets in assignment from 'char *' to 'u_char *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] + 101 | buf = (char *) (packet + offset + size_ip + size_tcp); + | ^ include/nast.h:65:18: note: expected 'u_char *' {aka 'unsigned char *'} but argument is of type 'char *' 65 | int fgw (u_char *dev); | ~~~~~~~~^~~ @@ -497,18 +573,14 @@ | ^~~ | | | char * -include/nast.h:67:20: note: expected 'u_char *' {aka 'unsigned char *'} but argument is of type 'char *' - 67 | int flink (u_char *dev); - | ~~~~~~~~^~~ -tcp.c: In function 'handle_TCP': -tcp.c:101:13: warning: pointer targets in assignment from 'char *' to 'u_char *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] - 101 | buf = (char *) (packet + offset + size_ip + size_tcp); - | ^ tcp.c:106:27: warning: pointer targets in passing argument 1 of 'data_sniffo' differ in signedness [-Wpointer-sign] 106 | data_sniffo (buf, size_buf, output); | ^~~ | | | u_char * {aka unsigned char *} +include/nast.h:67:20: note: expected 'u_char *' {aka 'unsigned char *'} but argument is of type 'char *' + 67 | int flink (u_char *dev); + | ~~~~~~~~^~~ In file included from tcp.c:20: include/nast.h:59:25: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} 59 | void data_sniffo (char *data, u_int l, FILE *log); @@ -553,64 +625,6 @@ /usr/include/arpa/inet.h:34:41: note: expected 'const char *' but argument is of type 'u_char *' {aka 'unsigned char *'} 34 | extern in_addr_t inet_addr (const char *__cp) __THROW; | ~~~~~~~~~~~~^~~~ -udp.c: In function 'handle_UDP': -udp.c:59:13: warning: pointer targets in assignment from 'char *' to 'u_char *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] - 59 | buf = (char *) (packet + size_ip + size_udp + offset); - | ^ -udp.c:64:27: warning: pointer targets in passing argument 1 of 'data_sniffo' differ in signedness [-Wpointer-sign] - 64 | data_sniffo (buf, size_buf, output); - | ^~~ - | | - | u_char * {aka unsigned char *} -In file included from udp.c:22: -include/nast.h:59:25: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} - 59 | void data_sniffo (char *data, u_int l, FILE *log); - | ~~~~~~^~~~ -udp.c:70:31: warning: pointer targets in passing argument 1 of 'print_ascii_hex' differ in signedness [-Wpointer-sign] - 70 | print_ascii_hex (buf, size_buf, output); - | ^~~ - | | - | u_char * {aka unsigned char *} -include/nast.h:60:29: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} - 60 | void print_ascii_hex (char *data_info, u_int len, FILE *log); - | ~~~~~~^~~~~~~~~ -udp.c:81:27: warning: pointer targets in passing argument 1 of 'data_sniffo' differ in signedness [-Wpointer-sign] - 81 | data_sniffo (buf, size_buf, ldd); - | ^~~ - | | - | u_char * {aka unsigned char *} -include/nast.h:59:25: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} - 59 | void data_sniffo (char *data, u_int l, FILE *log); - | ~~~~~~^~~~ -icmp.c: In function 'handle_ICMP': -icmp.c:206:13: warning: pointer targets in assignment from 'char *' to 'u_char *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] - 206 | buf = (char *) (packet + size_ip + size_icmp + offset); - | ^ -icmp.c:211:27: warning: pointer targets in passing argument 1 of 'data_sniffo' differ in signedness [-Wpointer-sign] - 211 | data_sniffo (buf, size_buf, output); - | ^~~ - | | - | u_char * {aka unsigned char *} -In file included from icmp.c:20: -include/nast.h:59:25: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} - 59 | void data_sniffo (char *data, u_int l, FILE *log); - | ~~~~~~^~~~ -icmp.c:218:31: warning: pointer targets in passing argument 1 of 'print_ascii_hex' differ in signedness [-Wpointer-sign] - 218 | print_ascii_hex (buf, size_buf, output); - | ^~~ - | | - | u_char * {aka unsigned char *} -include/nast.h:60:29: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} - 60 | void print_ascii_hex (char *data_info, u_int len, FILE *log); - | ~~~~~~^~~~~~~~~ -icmp.c:226:27: warning: pointer targets in passing argument 1 of 'data_sniffo' differ in signedness [-Wpointer-sign] - 226 | data_sniffo (buf, size_buf, ldd); - | ^~~ - | | - | u_char * {aka unsigned char *} -include/nast.h:59:25: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} - 59 | void data_sniffo (char *data, u_int l, FILE *log); - | ~~~~~~^~~~ gcc -g -O2 -ffile-prefix-map=/build/nast-0.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c map.c -o map.o gcc -g -O2 -ffile-prefix-map=/build/nast-0.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c sniff.c -o sniff.o main.c:223:25: warning: 'L' may be used uninitialized [-Wmaybe-uninitialized] @@ -619,21 +633,10 @@ main.c:77:14: note: 'L' was declared here 77 | libnet_t *L; | ^ -sniff.c:24:150: warning: argument 10 of type 'char *' declared as a pointer [-Warray-parameter=] - 24 | int run_sniffer (u_short promisc, u_short data, u_short hex, u_short f, u_short l, u_short tcpdlog, u_short tcpdread, char *filter, char *dev, char *ldname); - | ~~~~~~^~~~~~ -In file included from sniff.c:20: -include/nast.h:49:149: note: previously declared as an array 'char[50]' - 49 | int run_sniffer (u_short promisc, u_short data, u_short hex, u_short f, u_short l, u_short tcpdlog, u_short tcpdread, char *filter, char *dev, char ldname[50]); - | ~~~~~^~~~~~~~~~ -sniff.c:27:150: warning: argument 10 of type 'char *' declared as a pointer [-Warray-parameter=] - 27 | int run_sniffer (u_short promisc, u_short data, u_short hex, u_short f, u_short l, u_short tcpdlog, u_short tcpdread, char *filter, char *dev, char *ldname) - | ~~~~~~^~~~~~ -include/nast.h:49:149: note: previously declared as an array 'char[50]' - 49 | int run_sniffer (u_short promisc, u_short data, u_short hex, u_short f, u_short l, u_short tcpdlog, u_short tcpdread, char *filter, char *dev, char ldname[50]); - | ~~~~~^~~~~~~~~~ gcc -g -O2 -ffile-prefix-map=/build/nast-0.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c data.c -o data.o gcc -g -O2 -ffile-prefix-map=/build/nast-0.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c rst.c -o rst.o +gcc -g -O2 -ffile-prefix-map=/build/nast-0.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c fgw.c -o fgw.o +gcc -g -O2 -ffile-prefix-map=/build/nast-0.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c flink.c -o flink.o map.c: In function 'map_lan': map.c:117:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 117 | if (*net != '.') return NULL; ++net; @@ -665,7 +668,6 @@ map.c:136:35: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 136 | if (*mask != '.') return NULL; ++mask; | ^~ -gcc -g -O2 -ffile-prefix-map=/build/nast-0.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c fgw.c -o fgw.o map.c:138:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 138 | if (*mask != '.') return NULL; ++mask; | ^~ @@ -732,10 +734,120 @@ map.c:150:14: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 150 | fgets(r, 3, stdin); | ^~~~~~~~~~~~~~~~~~ -gcc -g -O2 -ffile-prefix-map=/build/nast-0.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c flink.c -o flink.o +sniff.c:24:150: warning: argument 10 of type 'char *' declared as a pointer [-Warray-parameter=] + 24 | int run_sniffer (u_short promisc, u_short data, u_short hex, u_short f, u_short l, u_short tcpdlog, u_short tcpdread, char *filter, char *dev, char *ldname); + | ~~~~~~^~~~~~ +In file included from sniff.c:20: +include/nast.h:49:149: note: previously declared as an array 'char[50]' + 49 | int run_sniffer (u_short promisc, u_short data, u_short hex, u_short f, u_short l, u_short tcpdlog, u_short tcpdread, char *filter, char *dev, char ldname[50]); + | ~~~~~^~~~~~~~~~ +sniff.c:27:150: warning: argument 10 of type 'char *' declared as a pointer [-Warray-parameter=] + 27 | int run_sniffer (u_short promisc, u_short data, u_short hex, u_short f, u_short l, u_short tcpdlog, u_short tcpdread, char *filter, char *dev, char *ldname) + | ~~~~~~^~~~~~ +include/nast.h:49:149: note: previously declared as an array 'char[50]' + 49 | int run_sniffer (u_short promisc, u_short data, u_short hex, u_short f, u_short l, u_short tcpdlog, u_short tcpdread, char *filter, char *dev, char ldname[50]); + | ~~~~~^~~~~~~~~~ gcc -g -O2 -ffile-prefix-map=/build/nast-0.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c port.c -o port.o gcc -g -O2 -ffile-prefix-map=/build/nast-0.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c common.c -o common.o -gcc -g -O2 -ffile-prefix-map=/build/nast-0.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c stream.c -o stream.o +fgw.c: In function 'fgw': +fgw.c:39:9: warning: pointer targets in initialization of 'u_char *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] + 39 | "66.102.11.99" + | ^~~~~~~~~~~~~~ +fgw.c:39:9: note: (near initialization for 'extip') +fgw.c:86:34: warning: pointer targets in passing argument 2 of 'libnet_init' differ in signedness [-Wpointer-sign] + 86 | l = libnet_init (LIBNET_LINK, dev, ebuf); + | ^~~ + | | + | u_char * {aka unsigned char *} +In file included from /usr/include/libnet.h:119, + from include/nast.h:23, + from fgw.c:32: +/usr/include/libnet/libnet-functions.h:64:45: note: expected 'const char *' but argument is of type 'u_char *' {aka 'unsigned char *'} + 64 | libnet_init(int injection_type, const char *device, char *err_buf); + | ~~~~~~~~~~~~^~~~~~ +fgw.c:86:39: warning: pointer targets in passing argument 3 of 'libnet_init' differ in signedness [-Wpointer-sign] + 86 | l = libnet_init (LIBNET_LINK, dev, ebuf); + | ^~~~ + | | + | u_char * {aka unsigned char *} +/usr/include/libnet/libnet-functions.h:64:59: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} + 64 | libnet_init(int injection_type, const char *device, char *err_buf); + | ~~~~~~^~~~~~~ +fgw.c:92:34: warning: pointer targets in passing argument 2 of 'libnet_init' differ in signedness [-Wpointer-sign] + 92 | l = libnet_init (LIBNET_LINK, dev, ebuf); + | ^~~ + | | + | u_char * {aka unsigned char *} +/usr/include/libnet/libnet-functions.h:64:45: note: expected 'const char *' but argument is of type 'u_char *' {aka 'unsigned char *'} + 64 | libnet_init(int injection_type, const char *device, char *err_buf); + | ~~~~~~~~~~~~^~~~~~ +fgw.c:92:39: warning: pointer targets in passing argument 3 of 'libnet_init' differ in signedness [-Wpointer-sign] + 92 | l = libnet_init (LIBNET_LINK, dev, ebuf); + | ^~~~ + | | + | u_char * {aka unsigned char *} +/usr/include/libnet/libnet-functions.h:64:59: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} + 64 | libnet_init(int injection_type, const char *device, char *err_buf); + | ~~~~~~^~~~~~~ +fgw.c:101:120: warning: pointer targets in passing argument 2 of 'libnet_name2addr4' differ in signedness [-Wpointer-sign] + 101 | if (libnet_build_ipv4 (LIBNET_TCP_H + LIBNET_IPV4_H, 0x08, 35320, 0, 64, IPPROTO_TCP, 0, myip, libnet_name2addr4(l, extip, LIBNET_DONT_RESOLVE), NULL, 0, l, 0)==-1) + | ^~~~~ + | | + | u_char * {aka unsigned char *} +/usr/include/libnet/libnet-functions.h:227:38: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} + 227 | libnet_name2addr4(libnet_t *l, char *host_name, uint8_t use_name); + | ~~~~~~^~~~~~~~~ +fgw.c:111:26: warning: pointer targets in passing argument 1 of 'map_lan' differ in signedness [-Wpointer-sign] + 111 | if ((uphost = map_lan(dev, 0, &n))==NULL) + | ^~~ + | | + | u_char * {aka unsigned char *} +include/nast.h:63:30: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} + 63 | struct host * map_lan (char *dev, u_short mode, u_short *n); + | ~~~~~~^~~ +fgw.c:143:24: warning: pointer targets in passing argument 1 of 'pcap_lookupnet' differ in signedness [-Wpointer-sign] + 143 | pcap_lookupnet(dev,&netp,&maskp,ebuf); + | ^~~ + | | + | u_char * {aka unsigned char *} +In file included from /usr/include/pcap.h:43, + from include/nast.h:24: +/usr/include/pcap/pcap.h:398:32: note: expected 'const char *' but argument is of type 'u_char *' {aka 'unsigned char *'} + 398 | PCAP_API int pcap_lookupnet(const char *, bpf_u_int32 *, bpf_u_int32 *, char *); + | ^~~~~~~~~~~~ +fgw.c:143:41: warning: pointer targets in passing argument 4 of 'pcap_lookupnet' differ in signedness [-Wpointer-sign] + 143 | pcap_lookupnet(dev,&netp,&maskp,ebuf); + | ^~~~ + | | + | u_char * {aka unsigned char *} +/usr/include/pcap/pcap.h:398:76: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} + 398 | PCAP_API int pcap_lookupnet(const char *, bpf_u_int32 *, bpf_u_int32 *, char *); + | ^~~~~~ +fgw.c:145:34: warning: pointer targets in passing argument 1 of 'pcap_open_live' differ in signedness [-Wpointer-sign] + 145 | if ((p = pcap_open_live (dev, BUFSIZ, NOT_PROMISC, 10, ebuf))==NULL) + | ^~~ + | | + | u_char * {aka unsigned char *} +/usr/include/pcap/pcap.h:515:33: note: expected 'const char *' but argument is of type 'u_char *' {aka 'unsigned char *'} + 515 | PCAP_API pcap_t *pcap_open_live(const char *, int, int, int, char *); + | ^~~~~~~~~~~~ +fgw.c:145:64: warning: pointer targets in passing argument 5 of 'pcap_open_live' differ in signedness [-Wpointer-sign] + 145 | if ((p = pcap_open_live (dev, BUFSIZ, NOT_PROMISC, 10, ebuf))==NULL) + | ^~~~ + | | + | u_char * {aka unsigned char *} +/usr/include/pcap/pcap.h:515:62: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} + 515 | PCAP_API pcap_t *pcap_open_live(const char *, int, int, int, char *); + | ^~~~~~ +fgw.c:198:117: warning: pointer targets in passing argument 2 of 'strcmp' differ in signedness [-Wpointer-sign] + 198 | if ((ntohs(tcp->th_sport)==80) && (ntohs(tcp->th_dport)==2500) && (!strcmp(inet_ntoa(ip->ip_src), extip))) + | ^~~~~ + | | + | u_char * {aka unsigned char *} +In file included from /usr/include/libnet.h:63: +/usr/include/string.h:156:50: note: expected 'const char *' but argument is of type 'u_char *' {aka 'unsigned char *'} + 156 | extern int strcmp (const char *__s1, const char *__s2) + | ~~~~~~~~~~~~^~~~ flink.c: In function 'flink': flink.c:73:26: warning: pointer targets in passing argument 1 of 'map_lan' differ in signedness [-Wpointer-sign] 73 | if ((uphost = map_lan(dev, 0, &n))==NULL) @@ -875,105 +987,6 @@ include/nast.h:58:19: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} 58 | int device (char *dev, pcap_t* descr); | ~~~~~~^~~ -fgw.c: In function 'fgw': -fgw.c:39:9: warning: pointer targets in initialization of 'u_char *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] - 39 | "66.102.11.99" - | ^~~~~~~~~~~~~~ -fgw.c:39:9: note: (near initialization for 'extip') -fgw.c:86:34: warning: pointer targets in passing argument 2 of 'libnet_init' differ in signedness [-Wpointer-sign] - 86 | l = libnet_init (LIBNET_LINK, dev, ebuf); - | ^~~ - | | - | u_char * {aka unsigned char *} -In file included from /usr/include/libnet.h:119, - from include/nast.h:23, - from fgw.c:32: -/usr/include/libnet/libnet-functions.h:64:45: note: expected 'const char *' but argument is of type 'u_char *' {aka 'unsigned char *'} - 64 | libnet_init(int injection_type, const char *device, char *err_buf); - | ~~~~~~~~~~~~^~~~~~ -fgw.c:86:39: warning: pointer targets in passing argument 3 of 'libnet_init' differ in signedness [-Wpointer-sign] - 86 | l = libnet_init (LIBNET_LINK, dev, ebuf); - | ^~~~ - | | - | u_char * {aka unsigned char *} -/usr/include/libnet/libnet-functions.h:64:59: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} - 64 | libnet_init(int injection_type, const char *device, char *err_buf); - | ~~~~~~^~~~~~~ -fgw.c:92:34: warning: pointer targets in passing argument 2 of 'libnet_init' differ in signedness [-Wpointer-sign] - 92 | l = libnet_init (LIBNET_LINK, dev, ebuf); - | ^~~ - | | - | u_char * {aka unsigned char *} -/usr/include/libnet/libnet-functions.h:64:45: note: expected 'const char *' but argument is of type 'u_char *' {aka 'unsigned char *'} - 64 | libnet_init(int injection_type, const char *device, char *err_buf); - | ~~~~~~~~~~~~^~~~~~ -fgw.c:92:39: warning: pointer targets in passing argument 3 of 'libnet_init' differ in signedness [-Wpointer-sign] - 92 | l = libnet_init (LIBNET_LINK, dev, ebuf); - | ^~~~ - | | - | u_char * {aka unsigned char *} -/usr/include/libnet/libnet-functions.h:64:59: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} - 64 | libnet_init(int injection_type, const char *device, char *err_buf); - | ~~~~~~^~~~~~~ -fgw.c:101:120: warning: pointer targets in passing argument 2 of 'libnet_name2addr4' differ in signedness [-Wpointer-sign] - 101 | if (libnet_build_ipv4 (LIBNET_TCP_H + LIBNET_IPV4_H, 0x08, 35320, 0, 64, IPPROTO_TCP, 0, myip, libnet_name2addr4(l, extip, LIBNET_DONT_RESOLVE), NULL, 0, l, 0)==-1) - | ^~~~~ - | | - | u_char * {aka unsigned char *} -/usr/include/libnet/libnet-functions.h:227:38: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} - 227 | libnet_name2addr4(libnet_t *l, char *host_name, uint8_t use_name); - | ~~~~~~^~~~~~~~~ -fgw.c:111:26: warning: pointer targets in passing argument 1 of 'map_lan' differ in signedness [-Wpointer-sign] - 111 | if ((uphost = map_lan(dev, 0, &n))==NULL) - | ^~~ - | | - | u_char * {aka unsigned char *} -include/nast.h:63:30: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} - 63 | struct host * map_lan (char *dev, u_short mode, u_short *n); - | ~~~~~~^~~ -fgw.c:143:24: warning: pointer targets in passing argument 1 of 'pcap_lookupnet' differ in signedness [-Wpointer-sign] - 143 | pcap_lookupnet(dev,&netp,&maskp,ebuf); - | ^~~ - | | - | u_char * {aka unsigned char *} -In file included from /usr/include/pcap.h:43, - from include/nast.h:24: -/usr/include/pcap/pcap.h:398:32: note: expected 'const char *' but argument is of type 'u_char *' {aka 'unsigned char *'} - 398 | PCAP_API int pcap_lookupnet(const char *, bpf_u_int32 *, bpf_u_int32 *, char *); - | ^~~~~~~~~~~~ -fgw.c:143:41: warning: pointer targets in passing argument 4 of 'pcap_lookupnet' differ in signedness [-Wpointer-sign] - 143 | pcap_lookupnet(dev,&netp,&maskp,ebuf); - | ^~~~ - | | - | u_char * {aka unsigned char *} -/usr/include/pcap/pcap.h:398:76: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} - 398 | PCAP_API int pcap_lookupnet(const char *, bpf_u_int32 *, bpf_u_int32 *, char *); - | ^~~~~~ -fgw.c:145:34: warning: pointer targets in passing argument 1 of 'pcap_open_live' differ in signedness [-Wpointer-sign] - 145 | if ((p = pcap_open_live (dev, BUFSIZ, NOT_PROMISC, 10, ebuf))==NULL) - | ^~~ - | | - | u_char * {aka unsigned char *} -/usr/include/pcap/pcap.h:515:33: note: expected 'const char *' but argument is of type 'u_char *' {aka 'unsigned char *'} - 515 | PCAP_API pcap_t *pcap_open_live(const char *, int, int, int, char *); - | ^~~~~~~~~~~~ -fgw.c:145:64: warning: pointer targets in passing argument 5 of 'pcap_open_live' differ in signedness [-Wpointer-sign] - 145 | if ((p = pcap_open_live (dev, BUFSIZ, NOT_PROMISC, 10, ebuf))==NULL) - | ^~~~ - | | - | u_char * {aka unsigned char *} -/usr/include/pcap/pcap.h:515:62: note: expected 'char *' but argument is of type 'u_char *' {aka 'unsigned char *'} - 515 | PCAP_API pcap_t *pcap_open_live(const char *, int, int, int, char *); - | ^~~~~~ -fgw.c:198:117: warning: pointer targets in passing argument 2 of 'strcmp' differ in signedness [-Wpointer-sign] - 198 | if ((ntohs(tcp->th_sport)==80) && (ntohs(tcp->th_dport)==2500) && (!strcmp(inet_ntoa(ip->ip_src), extip))) - | ^~~~~ - | | - | u_char * {aka unsigned char *} -In file included from /usr/include/libnet.h:63: -/usr/include/string.h:156:50: note: expected 'const char *' but argument is of type 'u_char *' {aka 'unsigned char *'} - 156 | extern int strcmp (const char *__s1, const char *__s2) - | ~~~~~~~~~~~~^~~~ port.c: In function 'mport': port.c:347:25: warning: pointer targets in passing argument 1 of 'map_lan' differ in signedness [-Wpointer-sign] 347 | if ((uphost = map_lan(dev, 0, &n))==NULL) @@ -1062,6 +1075,16 @@ /usr/include/arpa/inet.h:34:41: note: expected 'const char *' but argument is of type 'u_char *' {aka 'unsigned char *'} 34 | extern in_addr_t inet_addr (const char *__cp) __THROW; | ~~~~~~~~~~~~^~~~ +port.c:584:8: warning: variable 'linep' set but not used [-Wunused-but-set-variable] + 584 | int linep; + | ^~~~~ +port.c: In function 'mport': +port.c:517:19: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] + 517 | write (sd, "\n\n", 2); + | ^~~~~~~~~~~~~~~~~~~~~ +gcc -g -O2 -ffile-prefix-map=/build/nast-0.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c stream.c -o stream.o +gcc -g -O2 -ffile-prefix-map=/build/nast-0.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c igmp.c -o igmp.o +gcc -g -O2 -ffile-prefix-map=/build/nast-0.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c bcount.c -o bcount.o common.c: In function 'runcplx': common.c:202:17: warning: pointer targets in passing argument 1 of 'mhport' differ in signedness [-Wpointer-sign] 202 | mhport (dev,plist_p,l); @@ -1072,9 +1095,6 @@ include/nast.h:70:21: note: expected 'u_char *' {aka 'unsigned char *'} but argument is of type 'char *' 70 | int mhport (u_char *dev, libnet_plist_t *plist_p, int lg); | ~~~~~~~~^~~ -port.c:584:8: warning: variable 'linep' set but not used [-Wunused-but-set-variable] - 584 | int linep; - | ^~~~~ common.c: In function 'n_print': common.c:295:8: warning: variable 'n' set but not used [-Wunused-but-set-variable] 295 | int n; @@ -1113,15 +1133,16 @@ common.c:188:14: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 188 | fgets(buff ,50 ,stdin); | ^~~~~~~~~~~~~~~~~~~~~~ -port.c: In function 'mport': -port.c:517:19: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] - 517 | write (sd, "\n\n", 2); - | ^~~~~~~~~~~~~~~~~~~~~ -gcc -g -O2 -ffile-prefix-map=/build/nast-0.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c igmp.c -o igmp.o -gcc -g -O2 -ffile-prefix-map=/build/nast-0.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c bcount.c -o bcount.o gcc -g -O2 -ffile-prefix-map=/build/nast-0.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c error.c -o error.o gcc -g -O2 -ffile-prefix-map=/build/nast-0.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c ncurses/n_menu.c -o ncurses/n_menu.o gcc -g -O2 -ffile-prefix-map=/build/nast-0.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c ncurses/n_scroll_win.c -o ncurses/n_scroll_win.o +error.c: In function 'w_error': +error.c:32:10: warning: variable 'ris' set but not used [-Wunused-but-set-variable] + 32 | int n,ris; + | ^~~ +error.c:32:8: warning: variable 'n' set but not used [-Wunused-but-set-variable] + 32 | int n,ris; + | ^ gcc -g -O2 -ffile-prefix-map=/build/nast-0.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c ncurses/n_comm.c -o ncurses/n_comm.o bcount.c: In function 'bytecounting': bcount.c:123:8: warning: variable 'line' set but not used [-Wunused-but-set-variable] @@ -1134,15 +1155,6 @@ bcount.c:224:8: warning: variable 'line' set but not used [-Wunused-but-set-variable] 224 | int line, l; | ^~~~ -error.c: In function 'w_error': -error.c:32:10: warning: variable 'ris' set but not used [-Wunused-but-set-variable] - 32 | int n,ris; - | ^~~ -error.c:32:8: warning: variable 'n' set but not used [-Wunused-but-set-variable] - 32 | int n,ris; - | ^ -gcc -g -O2 -ffile-prefix-map=/build/nast-0.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c ncurses/n_stream.c -o ncurses/n_stream.o -gcc -g -O2 -ffile-prefix-map=/build/nast-0.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c ncurses/n_conn.c -o ncurses/n_conn.o port.c:488:29: warning: array subscript -2 is below array bounds of 'char[1024]' [-Warray-bounds] 488 | if (banner[r-1]=='\n') banner[r-1]='\0'; | ~~~~~~^~~~~ @@ -1155,6 +1167,8 @@ port.c:305:9: note: while referencing 'banner' 305 | char banner[1024]; | ^~~~~~ +gcc -g -O2 -ffile-prefix-map=/build/nast-0.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c ncurses/n_stream.c -o ncurses/n_stream.o +gcc -g -O2 -ffile-prefix-map=/build/nast-0.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c ncurses/n_conn.c -o ncurses/n_conn.o gcc -g -O2 -ffile-prefix-map=/build/nast-0.2.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c ncurses/n_rst.c -o ncurses/n_rst.o ncurses/n_menu.c: In function 'nmenu': ncurses/n_menu.c:97:8: warning: variable 'ris' set but not used [-Wunused-but-set-variable] @@ -1272,8 +1286,8 @@ dh_gencontrol dh_md5sums dh_builddeb -dpkg-deb: building package 'nast-dbgsym' in '../nast-dbgsym_0.2.0-10_arm64.deb'. dpkg-deb: building package 'nast' in '../nast_0.2.0-10_arm64.deb'. +dpkg-deb: building package 'nast-dbgsym' in '../nast-dbgsym_0.2.0-10_arm64.deb'. dpkg-genbuildinfo --build=binary -O../nast_0.2.0-10_arm64.buildinfo dpkg-genchanges --build=binary -O../nast_0.2.0-10_arm64.changes dpkg-genchanges: info: binary-only upload (no source code included) @@ -1281,12 +1295,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/8307/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/8307/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/15044 and its subdirectories -I: Current time: Tue Apr 11 04:51:36 -12 2023 -I: pbuilder-time-stamp: 1681231896 +I: removing directory /srv/workspace/pbuilder/8307 and its subdirectories +I: Current time: Tue May 14 13:15:34 +14 2024 +I: pbuilder-time-stamp: 1715642134