Diff of the two buildlogs: -- --- b1/build.log 2024-05-09 19:50:29.441726051 +0000 +++ b2/build.log 2024-05-09 19:52:55.939486613 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Wed Jun 11 14:12:36 -12 2025 -I: pbuilder-time-stamp: 1749694356 +I: Current time: Fri May 10 09:50:33 +14 2024 +I: pbuilder-time-stamp: 1715284233 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/trixie-reproducible-base.tgz] I: copying local configuration @@ -29,52 +29,84 @@ dpkg-source: info: applying missing-prototypes.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/874589/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/3617604/tmp/hooks/D01_modify_environment starting +debug: Running on ionos1-amd64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 May 9 19:50 /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/3617604/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/3617604/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='amd64' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=42 ' - DISTRIBUTION='trixie' - HOME='/root' - HOST_ARCH='amd64' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="21" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") + BASH_VERSION='5.2.21(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=amd64 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=20 ' + DIRSTACK=() + DISTRIBUTION=trixie + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='83f15e2aa8c14c9db15edc84bdcaa306' - 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='874589' - PS1='# ' - PS2='> ' + INVOCATION_ID=a9a458453e8e4584b39a4d9ea609d0f5 + LANG=C + LANGUAGE=et_EE:et + LC_ALL=C + MACHTYPE=x86_64-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=3617604 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.xUqDY0hg/pbuilderrc_mrjq --distribution trixie --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.xUqDY0hg/b1 --logfile b1/build.log tinydyndns_0.4.2.debian1-3.dsc' - SUDO_GID='110' - SUDO_UID='105' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://213.165.73.152: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.xUqDY0hg/pbuilderrc_WAgf --distribution trixie --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.xUqDY0hg/b2 --logfile b2/build.log tinydyndns_0.4.2.debian1-3.dsc' + SUDO_GID=110 + SUDO_UID=105 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://46.16.76.132:3128 I: uname -a - Linux ionos5-amd64 6.6.13+bpo-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.6.13-1~bpo12+1 (2024-02-15) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-21-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.90-1 (2024-05-03) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Jun 10 17:46 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/874589/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 May 8 11:26 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/3617604/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -140,7 +172,7 @@ Get: 28 http://deb.debian.org/debian trixie/main amd64 intltool-debian all 0.35.0+20060710.6 [22.9 kB] Get: 29 http://deb.debian.org/debian trixie/main amd64 po-debconf all 1.0.21+nmu1 [248 kB] Get: 30 http://deb.debian.org/debian trixie/main amd64 debhelper all 13.15.3 [901 kB] -Fetched 19.0 MB in 2s (8194 kB/s) +Fetched 19.0 MB in 1s (22.8 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package sensible-utils. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19699 files and directories currently installed.) @@ -275,7 +307,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/tinydyndns-0.4.2.debian1/ && 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 > ../tinydyndns_0.4.2.debian1-3_source.changes +I: user script /srv/workspace/pbuilder/3617604/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for trixie +I: user script /srv/workspace/pbuilder/3617604/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/tinydyndns-0.4.2.debian1/ && 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 > ../tinydyndns_0.4.2.debian1-3_source.changes dpkg-buildpackage: info: source package tinydyndns dpkg-buildpackage: info: source version 0.4.2.debian1-3 dpkg-buildpackage: info: source distribution unstable @@ -287,7 +323,7 @@ debian/rules override_dh_auto_clean make[1]: Entering directory '/build/reproducible-path/tinydyndns-0.4.2.debian1' dh_auto_clean - make -j42 clean + make -j20 clean make[2]: Entering directory '/build/reproducible-path/tinydyndns-0.4.2.debian1' rm -f `cat TARGETS` \ tinydyndns-update tinydyndns-update.o \ @@ -317,7 +353,7 @@ echo '/usr' > conf-home # Finally, make target all dh_auto_build - make -j42 "INSTALL=install --strip-program=true" + make -j20 "INSTALL=install --strip-program=true" make[2]: Entering directory '/build/reproducible-path/tinydyndns-0.4.2.debian1' ( cat warn-auto.sh; \ echo 'main="$1"; shift'; \ @@ -338,6 +374,8 @@ chmod 755 load chmod 755 compile chmod 755 choose +./choose clr trypoll iopause.h1 iopause.h2 > iopause.h +./choose clr tryulong64 uint64.h1 uint64.h2 > uint64.h ( ( ./compile tryulong32.c && ./load tryulong32 && \ ./tryulong32 ) >/dev/null 2>&1 \ && cat uint32.h2 || cat uint32.h1 ) > uint32.h @@ -358,6 +396,7 @@ ./compile buffer.c ./compile buffer_1.c ./compile buffer_2.c +rm -f tryulong32.o tryulong32 ./compile buffer_copy.c ./compile buffer_get.c ./compile buffer_put.c @@ -382,21 +421,6 @@ ./compile socket_send.c ./compile socket_tcp.c ./compile socket_udp.c -./compile byte_chr.c -./compile byte_copy.c -./compile byte_cr.c -./compile byte_diff.c -./compile byte_zero.c -./compile case_diffb.c -./compile case_diffs.c -./compile case_lowerb.c -./compile fmt_ulong.c -./compile ip4_fmt.c -./compile ip4_scan.c -./compile scan_ulong.c -rm -f tryulong32.o tryulong32 -./compile str_chr.c -./compile str_diff.c socket_accept.c:8:31: warning: argument 2 of type 'char[4]' with mismatched bound [-Warray-parameter=] 8 | int socket_accept4(int s,char ip[4],uint16 *port) | ~~~~~^~~~~ @@ -414,6 +438,33 @@ /usr/include/x86_64-linux-gnu/sys/socket.h:307:42: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'int *' 307 | socklen_t *__restrict __addr_len); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ +./compile byte_chr.c +./compile byte_copy.c +./compile byte_cr.c +./compile byte_diff.c +./compile byte_zero.c +./compile case_diffb.c +./compile case_diffs.c +socket_recv.c:8:47: warning: argument 4 of type 'char[4]' with mismatched bound [-Warray-parameter=] + 8 | int socket_recv4(int s,char *buf,int len,char ip[4],uint16 *port) + | ~~~~~^~~~~ +In file included from socket_recv.c:6: +socket.h:15:40: note: previously declared as 'char *' + 15 | extern int socket_recv4(int,char *,int,char *,uint16 *); + | ^~~~~~ +socket_recv.c: In function 'socket_recv4': +socket_recv.c:14:52: warning: pointer targets in passing argument 6 of 'recvfrom' differ in signedness [-Wpointer-sign] + 14 | r = recvfrom(s,buf,len,0,(struct sockaddr *) &sa,&dummy); + | ^~~~~~ + | | + | int * +In file included from /usr/include/x86_64-linux-gnu/sys/socket.h:343, + from socket_recv.c:3: +/usr/include/x86_64-linux-gnu/bits/socket2.h:62:56: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'int *' + 62 | __SOCKADDR_ARG __addr, socklen_t *__restrict __addr_len) + | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ +./compile case_lowerb.c +./compile fmt_ulong.c socket_bind.c:8:29: warning: argument 2 of type 'char[4]' with mismatched bound [-Warray-parameter=] 8 | int socket_bind4(int s,char ip[4],uint16 port) | ~~~~~^~~~~ @@ -427,105 +478,28 @@ socket.h:12:35: note: previously declared as 'char *' 12 | extern int socket_bind4_reuse(int,char *,uint16); | ^~~~~~ -./compile str_len.c -byte_copy.c: In function 'byte_copy': -byte_copy.c:9:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] - 9 | if (!n) return; *to++ = *from++; --n; - | ^~ -./compile str_rchr.c -byte_copy.c:9:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' - 9 | if (!n) return; *to++ = *from++; --n; - | ^ -byte_chr.c: In function 'byte_chr': -byte_copy.c:10:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] - 10 | if (!n) return; *to++ = *from++; --n; - | ^~ -./compile str_start.c -byte_copy.c:10:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' - 10 | if (!n) return; *to++ = *from++; --n; - | ^ -byte_chr.c:14:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] - 14 | if (!n) break; if (*t == ch) break; ++t; --n; - | ^~ -byte_chr.c:14:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' - 14 | if (!n) break; if (*t == ch) break; ++t; --n; - | ^~ -byte_chr.c:15:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] - 15 | if (!n) break; if (*t == ch) break; ++t; --n; - | ^~ -byte_chr.c:15:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' - 15 | if (!n) break; if (*t == ch) break; ++t; --n; - | ^~ -byte_chr.c:16:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] - 16 | if (!n) break; if (*t == ch) break; ++t; --n; - | ^~ -byte_chr.c:16:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' - 16 | if (!n) break; if (*t == ch) break; ++t; --n; - | ^~ -byte_chr.c:17:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] - 17 | if (!n) break; if (*t == ch) break; ++t; --n; - | ^~ -byte_chr.c:17:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' - 17 | if (!n) break; if (*t == ch) break; ++t; --n; - | ^~ -byte_copy.c:11:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] - 11 | if (!n) return; *to++ = *from++; --n; - | ^~ -byte_copy.c:11:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' - 11 | if (!n) return; *to++ = *from++; --n; - | ^ -byte_copy.c:12:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] - 12 | if (!n) return; *to++ = *from++; --n; - | ^~ -byte_copy.c:12:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' - 12 | if (!n) return; *to++ = *from++; --n; - | ^ +./compile ip4_fmt.c +./compile ip4_scan.c byte_diff.c: In function 'byte_diff': byte_diff.c:9:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 9 | if (!n) return 0; if (*s != *t) break; ++s; ++t; --n; | ^~ -ip4_scan.c:4:42: warning: argument 2 of type 'char[4]' with mismatched bound [-Warray-parameter=] - 4 | unsigned int ip4_scan(const char *s,char ip[4]) - | ~~~~~^~~~~ -In file included from ip4_scan.c:2: -ip4.h:4:43: note: previously declared as 'char *' - 4 | extern unsigned int ip4_scan(const char *,char *); - | ^~~~~~ byte_diff.c:9:23: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 9 | if (!n) return 0; if (*s != *t) break; ++s; ++t; --n; | ^~ -ip4_scan.c: In function 'ip4_scan': -ip4_scan.c:12:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] - 12 | if (*s != '.') return 0; ++s; ++len; - | ^~ -ip4_scan.c:12:28: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' - 12 | if (*s != '.') return 0; ++s; ++len; - | ^~ byte_diff.c:10:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 10 | if (!n) return 0; if (*s != *t) break; ++s; ++t; --n; | ^~ -ip4_scan.c:14:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] - 14 | if (*s != '.') return 0; ++s; ++len; - | ^~ -ip4_scan.c:14:28: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' - 14 | if (*s != '.') return 0; ++s; ++len; - | ^~ byte_diff.c:10:23: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 10 | if (!n) return 0; if (*s != *t) break; ++s; ++t; --n; | ^~ -ip4_scan.c:16:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] - 16 | if (*s != '.') return 0; ++s; ++len; - | ^~ -ip4_scan.c:16:28: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' - 16 | if (*s != '.') return 0; ++s; ++len; - | ^~ byte_diff.c:11:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 11 | if (!n) return 0; if (*s != *t) break; ++s; ++t; --n; | ^~ -./compile uint16_pack.c byte_diff.c:11:23: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 11 | if (!n) return 0; if (*s != *t) break; ++s; ++t; --n; | ^~ +./compile scan_ulong.c byte_diff.c:12:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 12 | if (!n) return 0; if (*s != *t) break; ++s; ++t; --n; | ^~ @@ -533,31 +507,114 @@ 12 | if (!n) return 0; if (*s != *t) break; ++s; ++t; --n; | ^~ byte_cr.c: In function 'byte_copyr': +byte_chr.c: In function 'byte_chr': byte_cr.c:11:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 11 | if (!n) return; *--to = *--from; --n; | ^~ +byte_chr.c:14:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] + 14 | if (!n) break; if (*t == ch) break; ++t; --n; + | ^~ byte_cr.c:11:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 11 | if (!n) return; *--to = *--from; --n; | ^ +byte_chr.c:14:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' + 14 | if (!n) break; if (*t == ch) break; ++t; --n; + | ^~ byte_cr.c:12:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 12 | if (!n) return; *--to = *--from; --n; | ^~ byte_cr.c:12:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 12 | if (!n) return; *--to = *--from; --n; | ^ +byte_chr.c:15:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] + 15 | if (!n) break; if (*t == ch) break; ++t; --n; + | ^~ +byte_chr.c:15:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' + 15 | if (!n) break; if (*t == ch) break; ++t; --n; + | ^~ byte_cr.c:13:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 13 | if (!n) return; *--to = *--from; --n; | ^~ byte_cr.c:13:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 13 | if (!n) return; *--to = *--from; --n; | ^ +byte_chr.c:16:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] + 16 | if (!n) break; if (*t == ch) break; ++t; --n; + | ^~ byte_cr.c:14:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 14 | if (!n) return; *--to = *--from; --n; | ^~ +byte_chr.c:16:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' + 16 | if (!n) break; if (*t == ch) break; ++t; --n; + | ^~ byte_cr.c:14:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 14 | if (!n) return; *--to = *--from; --n; | ^ -./compile uint16_unpack.c +byte_chr.c:17:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] + 17 | if (!n) break; if (*t == ch) break; ++t; --n; + | ^~ +byte_chr.c:17:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' + 17 | if (!n) break; if (*t == ch) break; ++t; --n; + | ^~ +./compile str_chr.c +byte_zero.c: In function 'byte_zero': +byte_zero.c:8:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] + 8 | if (!n) break; *s++ = 0; --n; + | ^~ +byte_zero.c:8:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' + 8 | if (!n) break; *s++ = 0; --n; + | ^ +byte_zero.c:9:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] + 9 | if (!n) break; *s++ = 0; --n; + | ^~ +byte_zero.c:9:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' + 9 | if (!n) break; *s++ = 0; --n; + | ^ +byte_zero.c:10:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] + 10 | if (!n) break; *s++ = 0; --n; + | ^~ +byte_zero.c:10:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' + 10 | if (!n) break; *s++ = 0; --n; + | ^ +byte_zero.c:11:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] + 11 | if (!n) break; *s++ = 0; --n; + | ^~ +byte_zero.c:11:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' + 11 | if (!n) break; *s++ = 0; --n; + | ^ +socket_send.c:8:59: warning: argument 4 of type 'const char[4]' with mismatched bound [-Warray-parameter=] + 8 | int socket_send4(int s,const char *buf,int len,const char ip[4],uint16 port) + | ~~~~~~~~~~~^~~~~ +In file included from socket_send.c:6: +socket.h:16:46: note: previously declared as 'const char *' + 16 | extern int socket_send4(int,const char *,int,const char *,uint16); + | ^~~~~~~~~~~~ +./compile str_diff.c +byte_copy.c: In function 'byte_copy': +byte_copy.c:9:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] + 9 | if (!n) return; *to++ = *from++; --n; + | ^~ +byte_copy.c:9:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' + 9 | if (!n) return; *to++ = *from++; --n; + | ^ +byte_copy.c:10:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] + 10 | if (!n) return; *to++ = *from++; --n; + | ^~ +byte_copy.c:10:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' + 10 | if (!n) return; *to++ = *from++; --n; + | ^ +byte_copy.c:11:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] + 11 | if (!n) return; *to++ = *from++; --n; + | ^~ +byte_copy.c:11:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' + 11 | if (!n) return; *to++ = *from++; --n; + | ^ +byte_copy.c:12:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] + 12 | if (!n) return; *to++ = *from++; --n; + | ^~ +byte_copy.c:12:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' + 12 | if (!n) return; *to++ = *from++; --n; + | ^ ip4_fmt.c:4:41: warning: argument 2 of type 'const char[4]' with mismatched bound [-Warray-parameter=] 4 | unsigned int ip4_fmt(char *s,const char ip[4]) | ~~~~~~~~~~~^~~~~ @@ -565,7 +622,6 @@ ip4.h:5:36: note: previously declared as 'const char *' 5 | extern unsigned int ip4_fmt(char *,const char *); | ^~~~~~~~~~~~ -./compile uint32_pack.c ip4_fmt.c: In function 'ip4_fmt': ip4_fmt.c:11:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 11 | if (s) *s++ = '.'; ++len; @@ -579,20 +635,62 @@ ip4_fmt.c:13:22: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 13 | if (s) *s++ = '.'; ++len; | ^~ -socket_send.c:8:59: warning: argument 4 of type 'const char[4]' with mismatched bound [-Warray-parameter=] - 8 | int socket_send4(int s,const char *buf,int len,const char ip[4],uint16 port) - | ~~~~~~~~~~~^~~~~ -In file included from socket_send.c:6: -socket.h:16:46: note: previously declared as 'const char *' - 16 | extern int socket_send4(int,const char *,int,const char *,uint16); - | ^~~~~~~~~~~~ ip4_fmt.c:15:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 15 | if (s) *s++ = '.'; ++len; | ^~ ip4_fmt.c:15:22: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 15 | if (s) *s++ = '.'; ++len; | ^~ -./compile uint32_unpack.c +./compile str_len.c +socket_conn.c:9:38: warning: argument 2 of type 'const char[4]' with mismatched bound [-Warray-parameter=] + 9 | int socket_connect4(int s,const char ip[4],uint16 port) + | ~~~~~~~~~~~^~~~~ +In file included from socket_conn.c:7: +socket.h:9:32: note: previously declared as 'const char *' + 9 | extern int socket_connect4(int,const char *,uint16); + | ^~~~~~~~~~~~ +socket_conn.c: In function 'socket_connected': +socket_conn.c:28:45: warning: pointer targets in passing argument 3 of 'getpeername' differ in signedness [-Wpointer-sign] + 28 | if (getpeername(s,(struct sockaddr *) &sa,&dummy) == -1) { + | ^~~~~~ + | | + | int * +In file included from socket_conn.c:3: +/usr/include/x86_64-linux-gnu/sys/socket.h:131:47: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'int *' + 131 | socklen_t *__restrict __len) __THROW; + | ~~~~~~~~~~~~~~~~~~~~~~^~~~~ +socket_conn.c:29:5: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] + 29 | read(s,&ch,1); /* sets errno */ + | ^~~~~~~~~~~~~ +./compile str_rchr.c +ip4_scan.c:4:42: warning: argument 2 of type 'char[4]' with mismatched bound [-Warray-parameter=] + 4 | unsigned int ip4_scan(const char *s,char ip[4]) + | ~~~~~^~~~~ +In file included from ip4_scan.c:2: +ip4.h:4:43: note: previously declared as 'char *' + 4 | extern unsigned int ip4_scan(const char *,char *); + | ^~~~~~ +ip4_scan.c: In function 'ip4_scan': +ip4_scan.c:12:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] + 12 | if (*s != '.') return 0; ++s; ++len; + | ^~ +ip4_scan.c:12:28: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' + 12 | if (*s != '.') return 0; ++s; ++len; + | ^~ +ip4_scan.c:14:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] + 14 | if (*s != '.') return 0; ++s; ++len; + | ^~ +ip4_scan.c:14:28: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' + 14 | if (*s != '.') return 0; ++s; ++len; + | ^~ +ip4_scan.c:16:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] + 16 | if (*s != '.') return 0; ++s; ++len; + | ^~ +ip4_scan.c:16:28: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' + 16 | if (*s != '.') return 0; ++s; ++len; + | ^~ +./compile str_start.c +./compile uint16_pack.c str_len.c: In function 'str_len': str_len.c:9:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 9 | if (!*t) return t - s; ++t; @@ -612,40 +710,15 @@ str_len.c:11:28: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 11 | if (!*t) return t - s; ++t; | ^~ -byte_zero.c: In function 'byte_zero': str_len.c:12:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 12 | if (!*t) return t - s; ++t; | ^~ -byte_zero.c:8:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] - 8 | if (!n) break; *s++ = 0; --n; - | ^~ str_len.c:12:28: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 12 | if (!*t) return t - s; ++t; | ^~ -byte_zero.c:8:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' - 8 | if (!n) break; *s++ = 0; --n; - | ^ -byte_zero.c:9:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] - 9 | if (!n) break; *s++ = 0; --n; - | ^~ -byte_zero.c:9:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' - 9 | if (!n) break; *s++ = 0; --n; - | ^ -byte_zero.c:10:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] - 10 | if (!n) break; *s++ = 0; --n; - | ^~ -byte_zero.c:10:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' - 10 | if (!n) break; *s++ = 0; --n; - | ^ -byte_zero.c:11:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] - 11 | if (!n) break; *s++ = 0; --n; - | ^~ -byte_zero.c:11:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' - 11 | if (!n) break; *s++ = 0; --n; - | ^ -./choose clr trypoll iopause.h1 iopause.h2 > iopause.h -./choose clr tryulong64 uint64.h1 uint64.h2 > uint64.h -./compile cdb.c +./compile uint16_unpack.c +./compile uint32_pack.c +./compile uint32_unpack.c str_chr.c: In function 'str_chr': str_chr.c:11:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 11 | if (!*t) break; if (*t == ch) break; ++t; @@ -659,20 +732,7 @@ str_chr.c:12:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 12 | if (!*t) break; if (*t == ch) break; ++t; | ^~ -str_chr.c:13:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] - 13 | if (!*t) break; if (*t == ch) break; ++t; - | ^~ -str_chr.c:13:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' - 13 | if (!*t) break; if (*t == ch) break; ++t; - | ^~ -str_chr.c:14:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] - 14 | if (!*t) break; if (*t == ch) break; ++t; - | ^~ -str_chr.c:14:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' - 14 | if (!*t) break; if (*t == ch) break; ++t; - | ^~ str_rchr.c: In function 'str_rchr': -./compile cdb_hash.c str_rchr.c:13:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 13 | if (!*t) break; if (*t == ch) u = t; ++t; | ^~ @@ -697,84 +757,72 @@ str_rchr.c:16:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 16 | if (!*t) break; if (*t == ch) u = t; ++t; | ^~ -socket_recv.c:8:47: warning: argument 4 of type 'char[4]' with mismatched bound [-Warray-parameter=] - 8 | int socket_recv4(int s,char *buf,int len,char ip[4],uint16 *port) - | ~~~~~^~~~~ -In file included from socket_recv.c:6: -socket.h:15:40: note: previously declared as 'char *' - 15 | extern int socket_recv4(int,char *,int,char *,uint16 *); - | ^~~~~~ -socket_recv.c: In function 'socket_recv4': -socket_recv.c:14:52: warning: pointer targets in passing argument 6 of 'recvfrom' differ in signedness [-Wpointer-sign] - 14 | r = recvfrom(s,buf,len,0,(struct sockaddr *) &sa,&dummy); - | ^~~~~~ - | | - | int * -In file included from /usr/include/x86_64-linux-gnu/sys/socket.h:343, - from socket_recv.c:3: -/usr/include/x86_64-linux-gnu/bits/socket2.h:62:56: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'int *' - 62 | __SOCKADDR_ARG __addr, socklen_t *__restrict __addr_len) - | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ -socket_conn.c:9:38: warning: argument 2 of type 'const char[4]' with mismatched bound [-Warray-parameter=] - 9 | int socket_connect4(int s,const char ip[4],uint16 port) - | ~~~~~~~~~~~^~~~~ -In file included from socket_conn.c:7: -socket.h:9:32: note: previously declared as 'const char *' - 9 | extern int socket_connect4(int,const char *,uint16); - | ^~~~~~~~~~~~ -socket_conn.c: In function 'socket_connected': -socket_conn.c:28:45: warning: pointer targets in passing argument 3 of 'getpeername' differ in signedness [-Wpointer-sign] - 28 | if (getpeername(s,(struct sockaddr *) &sa,&dummy) == -1) { - | ^~~~~~ - | | - | int * -In file included from socket_conn.c:3: -/usr/include/x86_64-linux-gnu/sys/socket.h:131:47: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'int *' - 131 | socklen_t *__restrict __len) __THROW; - | ~~~~~~~~~~~~~~~~~~~~~~^~~~~ -./compile cdb_make.c -socket_conn.c:29:5: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] - 29 | read(s,&ch,1); /* sets errno */ - | ^~~~~~~~~~~~~ -uint16_pack.c:3:23: warning: argument 1 of type 'char[2]' with mismatched bound [-Warray-parameter=] - 3 | void uint16_pack(char s[2],uint16 u) - | ~~~~~^~~~ +str_chr.c:13:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] + 13 | if (!*t) break; if (*t == ch) break; ++t; + | ^~ +str_chr.c:13:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' + 13 | if (!*t) break; if (*t == ch) break; ++t; + | ^~ +str_chr.c:14:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] + 14 | if (!*t) break; if (*t == ch) break; ++t; + | ^~ +str_chr.c:14:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' + 14 | if (!*t) break; if (*t == ch) break; ++t; + | ^~ +./compile tinydyndns-data.c +./compile tinydyndns-update.c +( cat warn-auto.sh; \ +echo 'main="$1"; shift'; \ +echo 'rm -f "$main"'; \ +echo 'ar cr "$main" ${1+"$@"}'; \ +case "`cat systype`" in \ +sunos-5.*) ;; \ +unix_sv*) ;; \ +irix64-*) ;; \ +irix-*) ;; \ +dgux-*) ;; \ +hp-ux-*) ;; \ +sco*) ;; \ +*) echo 'ranlib "$main"' ;; \ +esac \ +) > makelib +./compile tai_add.c uint32_pack.c:3:23: warning: argument 1 of type 'char[4]' with mismatched bound [-Warray-parameter=] 3 | void uint32_pack(char s[4],uint32 u) | ~~~~~^~~~ -In file included from uint16_pack.c:1: -uint16.h:6:25: note: previously declared as 'char *' - 6 | extern void uint16_pack(char *,uint16); - | ^~~~~~ In file included from uint32_pack.c:1: uint32.h:6:25: note: previously declared as 'char *' 6 | extern void uint32_pack(char *,uint32); | ^~~~~~ +uint32_pack.c:13:27: warning: argument 1 of type 'char[4]' with mismatched bound [-Warray-parameter=] + 13 | void uint32_pack_big(char s[4],uint32 u) + | ~~~~~^~~~ +uint32.h:7:29: note: previously declared as 'char *' + 7 | extern void uint32_pack_big(char *,uint32); + | ^~~~~~ +./compile tai_now.c uint16_unpack.c:3:31: warning: argument 1 of type 'const char[2]' with mismatched bound [-Warray-parameter=] 3 | void uint16_unpack(const char s[2],uint16 *u) | ~~~~~~~~~~~^~~~ -uint16_pack.c:9:27: warning: argument 1 of type 'char[2]' with mismatched bound [-Warray-parameter=] - 9 | void uint16_pack_big(char s[2],uint16 u) - | ~~~~~^~~~ -uint16.h:7:29: note: previously declared as 'char *' - 7 | extern void uint16_pack_big(char *,uint16); - | ^~~~~~ In file included from uint16_unpack.c:1: uint16.h:8:27: note: previously declared as 'const char *' 8 | extern void uint16_unpack(const char *,uint16 *); | ^~~~~~~~~~~~ -uint32_pack.c:13:27: warning: argument 1 of type 'char[4]' with mismatched bound [-Warray-parameter=] - 13 | void uint32_pack_big(char s[4],uint32 u) - | ~~~~~^~~~ -uint32.h:7:29: note: previously declared as 'char *' - 7 | extern void uint32_pack_big(char *,uint32); - | ^~~~~~ uint16_unpack.c:14:35: warning: argument 1 of type 'const char[2]' with mismatched bound [-Warray-parameter=] 14 | void uint16_unpack_big(const char s[2],uint16 *u) | ~~~~~~~~~~~^~~~ uint16.h:9:31: note: previously declared as 'const char *' 9 | extern void uint16_unpack_big(const char *,uint16 *); | ^~~~~~~~~~~~ +./compile tai_pack.c +./compile tai_sub.c +uint16_pack.c:3:23: warning: argument 1 of type 'char[2]' with mismatched bound [-Warray-parameter=] + 3 | void uint16_pack(char s[2],uint16 u) + | ~~~~~^~~~ +In file included from uint16_pack.c:1: +uint16.h:6:25: note: previously declared as 'char *' + 6 | extern void uint16_pack(char *,uint16); + | ^~~~~~ uint32_unpack.c:3:31: warning: argument 1 of type 'const char[4]' with mismatched bound [-Warray-parameter=] 3 | void uint32_unpack(const char s[4],uint32 *u) | ~~~~~~~~~~~^~~~ @@ -782,53 +830,21 @@ uint32.h:8:27: note: previously declared as 'const char *' 8 | extern void uint32_unpack(const char *,uint32 *); | ^~~~~~~~~~~~ +./compile tai_uint.c +uint16_pack.c:9:27: warning: argument 1 of type 'char[2]' with mismatched bound [-Warray-parameter=] + 9 | void uint16_pack_big(char s[2],uint16 u) + | ~~~~~^~~~ +uint16.h:7:29: note: previously declared as 'char *' + 7 | extern void uint16_pack_big(char *,uint16); + | ^~~~~~ uint32_unpack.c:18:35: warning: argument 1 of type 'const char[4]' with mismatched bound [-Warray-parameter=] 18 | void uint32_unpack_big(const char s[4],uint32 *u) | ~~~~~~~~~~~^~~~ uint32.h:9:31: note: previously declared as 'const char *' 9 | extern void uint32_unpack_big(const char *,uint32 *); | ^~~~~~~~~~~~ -( cat warn-auto.sh; \ -echo 'main="$1"; shift'; \ -echo 'rm -f "$main"'; \ -echo 'ar cr "$main" ${1+"$@"}'; \ -case "`cat systype`" in \ -sunos-5.*) ;; \ -unix_sv*) ;; \ -irix64-*) ;; \ -irix-*) ;; \ -dgux-*) ;; \ -hp-ux-*) ;; \ -sco*) ;; \ -*) echo 'ranlib "$main"' ;; \ -esac \ -) > makelib -chmod 755 makelib -./makelib env.a env.o -./makelib alloc.a alloc.o alloc_re.o getln.o getln2.o \ -stralloc_cat.o stralloc_catb.o stralloc_cats.o \ -stralloc_copy.o stralloc_eady.o stralloc_num.o \ -stralloc_opyb.o stralloc_opys.o stralloc_pend.o -./makelib byte.a byte_chr.o byte_copy.o byte_cr.o \ -byte_diff.o byte_zero.o case_diffb.o case_diffs.o \ -case_lowerb.o fmt_ulong.o ip4_fmt.o ip4_scan.o scan_ulong.o \ -str_chr.o str_diff.o str_len.o str_rchr.o str_start.o \ -uint16_pack.o uint16_unpack.o uint32_pack.o uint32_unpack.o -cdb.c: In function 'cdb_init': -cdb.c:37:11: warning: the comparison will always evaluate as 'true' for the pointer operand in 'x + 1' must not be NULL [-Waddress] - 37 | if (x + 1) { - | ^ -./makelib unix.a buffer_read.o buffer_write.o error.o \ -error_str.o ndelay_off.o ndelay_on.o open_read.o \ -open_trunc.o openreadclose.o readclose.o seek_set.o \ -socket_accept.o socket_bind.o socket_conn.o socket_listen.o \ -socket_recv.o socket_send.o socket_tcp.o socket_udp.o -./compile tai_add.c -./compile tai_now.c -./compile tai_pack.c -./compile tai_sub.c -./compile tai_uint.c ./compile tai_unpack.c +chmod 755 makelib ./compile taia_add.c ./compile taia_approx.c ./compile taia_frac.c @@ -838,7 +854,10 @@ ./compile taia_sub.c ./compile taia_tai.c ./compile taia_uint.c -./compile tinydyndns-update.c +./makelib env.a env.o +./compile cdb.c +./compile cdb_hash.c +./compile cdb_make.c ./compile dns_dfd.c ./compile dns_domain.c ./compile dns_dtda.c @@ -848,28 +867,20 @@ ./compile dns_name.c ./compile dns_nd.c ./compile dns_packet.c +dns_domain.c: In function 'dns_domain_length': +dns_domain.c:13:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] + 13 | while (c = *x++) + | ^ ./compile dns_random.c ./compile dns_rcip.c ./compile dns_rcrw.c ./compile dns_resolve.c ./compile dns_sortip.c +cdb.c: In function 'cdb_init': +cdb.c:37:11: warning: the comparison will always evaluate as 'true' for the pointer operand in 'x + 1' must not be NULL [-Waddress] + 37 | if (x + 1) { + | ^ ./compile dns_transmit.c -./compile dns_txt.c -./compile tinydyndns-data.c -./makelib buffer.a buffer.o buffer_1.o buffer_2.o \ -buffer_copy.o buffer_get.o buffer_put.o strerr_die.o \ -strerr_sys.o -dns_name.c:38:40: warning: argument 2 of type 'const char[4]' with mismatched bound [-Warray-parameter=] - 38 | int dns_name4(stralloc *out,const char ip[4]) - | ~~~~~~~~~~~^~~~~ -In file included from dns_name.c:4: -dns.h:74:33: note: previously declared as 'const char *' - 74 | extern int dns_name4(stralloc *,const char *); - | ^~~~~~~~~~~~ -dns_domain.c: In function 'dns_domain_length': -dns_domain.c:13:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] - 13 | while (c = *x++) - | ^ dns_nd.c:5:28: warning: argument 1 of type 'char[31]' with mismatched bound [-Warray-parameter=] 5 | void dns_name4_domain(char name[DNS_NAME4_DOMAIN],const char ip[4]) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ @@ -883,13 +894,13 @@ dns.h:72:37: note: previously declared as 'const char *' 72 | extern void dns_name4_domain(char *,const char *); | ^~~~~~~~~~~~ -dns_resolve.c:8:42: warning: argument 2 of type 'const char[2]' with mismatched bound [-Warray-parameter=] - 8 | int dns_resolve(const char *q,const char qtype[2]) - | ~~~~~~~~~~~^~~~~~~~ -In file included from dns_resolve.c:4: -dns.h:66:37: note: previously declared as 'const char *' - 66 | extern int dns_resolve(const char *,const char *); - | ^~~~~~~~~~~~ +dns_name.c:38:40: warning: argument 2 of type 'const char[4]' with mismatched bound [-Warray-parameter=] + 38 | int dns_name4(stralloc *out,const char ip[4]) + | ~~~~~~~~~~~^~~~~ +In file included from dns_name.c:4: +dns.h:74:33: note: previously declared as 'const char *' + 74 | extern int dns_name4(stralloc *,const char *); + | ^~~~~~~~~~~~ dns_packet.c: In function 'dns_packet_getname': dns_packet.c:46:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 46 | if (pos >= len) goto PROTO; ch = buf[pos++]; @@ -928,6 +939,7 @@ dns.h:65:29: note: previously declared as 'char *' 65 | extern int dns_resolvconfip(char *); | ^~~~~~ +./compile dns_txt.c dns_random.c:33:33: warning: argument 1 of type 'const char[128]' with mismatched bound [-Warray-parameter=] 33 | void dns_random_init(const char data[128]) | ~~~~~~~~~~~^~~~~~~~~ @@ -935,6 +947,34 @@ dns.h:42:29: note: previously declared as 'const char *' 42 | extern void dns_random_init(const char *); | ^~~~~~~~~~~~ +dns_resolve.c:8:42: warning: argument 2 of type 'const char[2]' with mismatched bound [-Warray-parameter=] + 8 | int dns_resolve(const char *q,const char qtype[2]) + | ~~~~~~~~~~~^~~~~~~~ +In file included from dns_resolve.c:4: +dns.h:66:37: note: previously declared as 'const char *' + 66 | extern int dns_resolve(const char *,const char *); + | ^~~~~~~~~~~~ +./makelib alloc.a alloc.o alloc_re.o getln.o getln2.o \ +stralloc_cat.o stralloc_catb.o stralloc_cats.o \ +stralloc_copy.o stralloc_eady.o stralloc_num.o \ +stralloc_opyb.o stralloc_opys.o stralloc_pend.o +./makelib buffer.a buffer.o buffer_1.o buffer_2.o \ +buffer_copy.o buffer_get.o buffer_put.o strerr_die.o \ +strerr_sys.o +./makelib unix.a buffer_read.o buffer_write.o error.o \ +error_str.o ndelay_off.o ndelay_on.o open_read.o \ +open_trunc.o openreadclose.o readclose.o seek_set.o \ +socket_accept.o socket_bind.o socket_conn.o socket_listen.o \ +socket_recv.o socket_send.o socket_tcp.o socket_udp.o +./makelib byte.a byte_chr.o byte_copy.o byte_cr.o \ +byte_diff.o byte_zero.o case_diffb.o case_diffs.o \ +case_lowerb.o fmt_ulong.o ip4_fmt.o ip4_scan.o scan_ulong.o \ +str_chr.o str_diff.o str_len.o str_rchr.o str_start.o \ +uint16_pack.o uint16_unpack.o uint32_pack.o uint32_unpack.o +./makelib libtai.a tai_add.o tai_now.o tai_pack.o \ +tai_sub.o tai_uint.o tai_unpack.o taia_add.o taia_approx.o \ +taia_frac.o taia_less.o taia_now.o taia_pack.o taia_sub.o \ +taia_tai.o taia_uint.o dns_transmit.c:196:58: warning: argument 2 of type 'const char[64]' with mismatched bound [-Warray-parameter=] 196 | int dns_transmit_start(struct dns_transmit *d,const char servers[64],int flagrecursive,const char *q,const char qtype[2],const char localip[4]) | ~~~~~~~~~~~^~~~~~~~~~~ @@ -954,10 +994,6 @@ dns.h:60:96: note: previously declared as 'const char *' 60 | extern int dns_transmit_start(struct dns_transmit *,const char *,int,const char *,const char *,const char *); | ^~~~~~~~~~~~ -./makelib libtai.a tai_add.o tai_now.o tai_pack.o \ -tai_sub.o tai_uint.o tai_unpack.o taia_add.o taia_approx.o \ -taia_frac.o taia_less.o taia_now.o taia_pack.o taia_sub.o \ -taia_tai.o taia_uint.o ./makelib cdb.a cdb.o cdb_hash.o cdb_make.o ./makelib dns.a dns_dfd.o dns_domain.o dns_dtda.o dns_ip.o \ dns_ipq.o dns_mx.o dns_name.o dns_nd.o dns_packet.o \ @@ -970,7 +1006,7 @@ make[2]: Leaving directory '/build/reproducible-path/tinydyndns-0.4.2.debian1' make[1]: Leaving directory '/build/reproducible-path/tinydyndns-0.4.2.debian1' dh_auto_test - make -j42 check + make -j20 check make[1]: Entering directory '/build/reproducible-path/tinydyndns-0.4.2.debian1' ( case "`cat systype`" in \ sunos-5.*) cat hasdevtcp.h2 ;; \ @@ -997,22 +1033,67 @@ ./compile server.c ./compile qlog.c ./compile rbldns-conf.c +./compile rbldns.c +qlog.c:23:22: warning: argument 1 of type 'const char[4]' with mismatched bound [-Warray-parameter=] + 23 | void qlog(const char ip[4],uint16 port,const char id[2],const char *q,const char qtype[2],const char *result) + | ~~~~~~~~~~~^~~~~ +In file included from qlog.c:2: +qlog.h:6:18: note: previously declared as 'const char *' + 6 | extern void qlog(const char *,uint16,const char *,const char *,const char *,const char *); + | ^~~~~~~~~~~~ +qlog.c:23:51: warning: argument 3 of type 'const char[2]' with mismatched bound [-Warray-parameter=] + 23 | void qlog(const char ip[4],uint16 port,const char id[2],const char *q,const char qtype[2],const char *result) + | ~~~~~~~~~~~^~~~~ +qlog.h:6:38: note: previously declared as 'const char *' + 6 | extern void qlog(const char *,uint16,const char *,const char *,const char *,const char *); + | ^~~~~~~~~~~~ +qlog.c:23:82: warning: argument 5 of type 'const char[2]' with mismatched bound [-Warray-parameter=] + 23 | void qlog(const char ip[4],uint16 port,const char id[2],const char *q,const char qtype[2],const char *result) + | ~~~~~~~~~~~^~~~~~~~ +qlog.h:6:64: note: previously declared as 'const char *' + 6 | extern void qlog(const char *,uint16,const char *,const char *,const char *,const char *); + | ^~~~~~~~~~~~ +dd.c:4:44: warning: argument 3 of type 'char[4]' with mismatched bound [-Warray-parameter=] + 4 | int dd(const char *q,const char *base,char ip[4]) + | ~~~~~^~~~~ auto-str.c: In function 'main': auto-str.c:28:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 28 | while (ch = *value++) { | ^~ -./compile rbldns.c -./compile rbldns-data.c -./compile pickdns-conf.c -./compile pickdns.c -./compile pickdns-data.c -./compile tinydns-conf.c -./compile tinydns.c -./compile tdlookup.c +In file included from dd.c:2: +dd.h:4:41: note: previously declared as 'char *' + 4 | extern int dd(const char *,const char *,char *); + | ^~~~~~ +okclient.c:9:19: warning: argument 1 of type 'char[4]' with mismatched bound [-Warray-parameter=] + 9 | int okclient(char ip[4]) + | ~~~~~^~~~~ +In file included from okclient.c:5: +okclient.h:4:21: note: previously declared as 'char *' + 4 | extern int okclient(char *); + | ^~~~~~ +response.c:52:45: warning: argument 2 of type 'const char[2]' with mismatched bound [-Warray-parameter=] + 52 | int response_query(const char *q,const char qtype[2],const char qclass[2]) + | ~~~~~~~~~~~^~~~~~~~ +In file included from response.c:4: +response.h:9:40: note: previously declared as 'const char *' + 9 | extern int response_query(const char *,const char *,const char *); + | ^~~~~~~~~~~~ +response.c:52:65: warning: argument 3 of type 'const char[2]' with mismatched bound [-Warray-parameter=] + 52 | int response_query(const char *q,const char qtype[2],const char qclass[2]) + | ~~~~~~~~~~~^~~~~~~~~ +response.h:9:53: note: previously declared as 'const char *' + 9 | extern int response_query(const char *,const char *,const char *); + | ^~~~~~~~~~~~ log.c: In function 'name': log.c:79:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 79 | while (state = *q++) { | ^~~~~ +response.c:73:46: warning: argument 2 of type 'const char[2]' with mismatched bound [-Warray-parameter=] + 73 | int response_rstart(const char *d,const char type[2],uint32 ttl) + | ~~~~~~~~~~~^~~~~~~ +response.h:18:41: note: previously declared as 'const char *' + 18 | extern int response_rstart(const char *,const char *,uint32); + | ^~~~~~~~~~~~ log.c: At top level: log.c:97:40: warning: argument 2 of type 'const char[4]' with mismatched bound [-Warray-parameter=] 97 | void log_query(uint64 *qnum,const char client[4],unsigned int port,const char id[2],const char *q,const char qtype[2]) @@ -1021,7 +1102,6 @@ log.h:8:32: note: previously declared as 'const char *' 8 | extern void log_query(uint64 *,const char *,unsigned int,const char *,const char *,const char *); | ^~~~~~~~~~~~ -./compile tinydns-data.c log.c:97:79: warning: argument 4 of type 'const char[2]' with mismatched bound [-Warray-parameter=] 97 | void log_query(uint64 *qnum,const char client[4],unsigned int port,const char id[2],const char *q,const char qtype[2]) | ~~~~~~~~~~~^~~~~ @@ -1040,20 +1120,12 @@ log.h:12:25: note: previously declared as 'const char *' 12 | extern void log_tcpopen(const char *,unsigned int); | ^~~~~~~~~~~~ -./compile tinydns-get.c log.c:129:30: warning: argument 1 of type 'const char[4]' with mismatched bound [-Warray-parameter=] 129 | void log_tcpclose(const char client[4],unsigned int port) | ~~~~~~~~~~~^~~~~~~~~ log.h:13:26: note: previously declared as 'const char *' 13 | extern void log_tcpclose(const char *,unsigned int); | ^~~~~~~~~~~~ -dd.c:4:44: warning: argument 3 of type 'char[4]' with mismatched bound [-Warray-parameter=] - 4 | int dd(const char *q,const char *base,char ip[4]) - | ~~~~~^~~~~ -In file included from dd.c:2: -dd.h:4:41: note: previously declared as 'char *' - 4 | extern int dd(const char *,const char *,char *); - | ^~~~~~ log.c:138:38: warning: argument 2 of type 'const char[2]' with mismatched bound [-Warray-parameter=] 138 | void log_tx(const char *q,const char qtype[2],const char *control,const char servers[64],unsigned int gluelessness) | ~~~~~~~~~~~^~~~~~~~ @@ -1069,7 +1141,6 @@ log.c:153:48: warning: argument 2 of type 'const char[2]' with mismatched bound [-Warray-parameter=] 153 | void log_cachedanswer(const char *q,const char type[2]) | ~~~~~~~~~~~^~~~~~~ -./compile printpacket.c log.h:15:43: note: previously declared as 'const char *' 15 | extern void log_cachedanswer(const char *,const char *); | ^~~~~~~~~~~~ @@ -1082,7 +1153,6 @@ log.c:185:28: warning: argument 1 of type 'const char[4]' with mismatched bound [-Warray-parameter=] 185 | void log_nodata(const char server[4],const char *q,const char qtype[2],unsigned int ttl) | ~~~~~~~~~~~^~~~~~~~~ -./compile printrecord.c log.h:23:24: note: previously declared as 'const char *' 23 | extern void log_nodata(const char *,const char *,const char *,unsigned int); | ^~~~~~~~~~~~ @@ -1092,32 +1162,33 @@ log.h:23:50: note: previously declared as 'const char *' 23 | extern void log_nodata(const char *,const char *,const char *,unsigned int); | ^~~~~~~~~~~~ -response.c:52:45: warning: argument 2 of type 'const char[2]' with mismatched bound [-Warray-parameter=] - 52 | int response_query(const char *q,const char qtype[2],const char qclass[2]) - | ~~~~~~~~~~~^~~~~~~~ +chkshsgr.c: In function 'main': +chkshsgr.c:10:19: warning: passing argument 2 of 'getgroups' from incompatible pointer type [-Wincompatible-pointer-types] + 10 | if (getgroups(1,x) == 0) if (setgroups(1,x) == -1) _exit(1); + | ^ + | | + | short int * +In file included from /usr/include/features.h:502, + from /usr/include/errno.h:25, + from : +/usr/include/x86_64-linux-gnu/bits/unistd.h:113:1: note: expected '__gid_t *' {aka 'unsigned int *'} but argument is of type 'short int *' + 113 | __NTH (getgroups (int __size, __gid_t __list[])) + | ^~~~~ log.c:192:26: warning: argument 1 of type 'const char[4]' with mismatched bound [-Warray-parameter=] 192 | void log_lame(const char server[4],const char *control,const char *referral) | ~~~~~~~~~~~^~~~~~~~~ -In file included from response.c:4: -response.h:9:40: note: previously declared as 'const char *' - 9 | extern int response_query(const char *,const char *,const char *); - | ^~~~~~~~~~~~ log.h:25:22: note: previously declared as 'const char *' 25 | extern void log_lame(const char *,const char *,const char *); | ^~~~~~~~~~~~ -response.c:52:65: warning: argument 3 of type 'const char[2]' with mismatched bound [-Warray-parameter=] - 52 | int response_query(const char *q,const char qtype[2],const char qclass[2]) - | ~~~~~~~~~~~^~~~~~~~~ -response.h:9:53: note: previously declared as 'const char *' - 9 | extern int response_query(const char *,const char *,const char *); - | ^~~~~~~~~~~~ -./compile parsetype.c -response.c:73:46: warning: argument 2 of type 'const char[2]' with mismatched bound [-Warray-parameter=] - 73 | int response_rstart(const char *d,const char type[2],uint32 ttl) - | ~~~~~~~~~~~^~~~~~~ -response.h:18:41: note: previously declared as 'const char *' - 18 | extern int response_rstart(const char *,const char *,uint32); - | ^~~~~~~~~~~~ +chkshsgr.c:10:44: warning: passing argument 2 of 'setgroups' from incompatible pointer type [-Wincompatible-pointer-types] + 10 | if (getgroups(1,x) == 0) if (setgroups(1,x) == -1) _exit(1); + | ^ + | | + | short int * +In file included from chkshsgr.c:2: +/usr/include/grp.h:180:50: note: expected 'const __gid_t *' {aka 'const unsigned int *'} but argument is of type 'short int *' + 180 | extern int setgroups (size_t __n, const __gid_t *__groups) __THROW; + | ~~~~~~~~~~~~~~~^~~~~~~~ log.c:208:24: warning: argument 1 of type 'const char[4]' with mismatched bound [-Warray-parameter=] 208 | void log_rr(const char server[4],const char *q,const char type[2],const char *buf,unsigned int len,unsigned int ttl) | ~~~~~~~~~~~^~~~~~~~~ @@ -1136,25 +1207,34 @@ log.h:28:22: note: previously declared as 'const char *' 28 | extern void log_rrns(const char *,const char *,const char *,unsigned int); | ^~~~~~~~~~~~ -response.c:112:29: warning: argument 1 of type 'const char[2]' with mismatched bound [-Warray-parameter=] - 112 | void response_id(const char id[2]) - | ~~~~~~~~~~~^~~~~ -response.h:12:25: note: previously declared as 'const char *' - 12 | extern void response_id(const char *); - | ^~~~~~~~~~~~ log.c:233:29: warning: argument 1 of type 'const char[4]' with mismatched bound [-Warray-parameter=] 233 | void log_rrcname(const char server[4],const char *q,const char *data,unsigned int ttl) | ~~~~~~~~~~~^~~~~~~~~ log.h:29:25: note: previously declared as 'const char *' 29 | extern void log_rrcname(const char *,const char *,const char *,unsigned int); | ^~~~~~~~~~~~ +response.c:112:29: warning: argument 1 of type 'const char[2]' with mismatched bound [-Warray-parameter=] + 112 | void response_id(const char id[2]) + | ~~~~~~~~~~~^~~~~ +response.h:12:25: note: previously declared as 'const char *' + 12 | extern void response_id(const char *); + | ^~~~~~~~~~~~ +query.c: In function 'doit': +query.c:275:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] + 275 | while (pos = dns_packet_getname(cached,cachedlen,pos,&t2)) { + | ^~~ +query.c:292:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] + 292 | while (pos = dns_packet_getname(cached,cachedlen,pos,&t2)) { + | ^~~ +query.c:309:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] + 309 | while (pos = dns_packet_copy(cached,cachedlen,pos,misc,2)) { + | ^~~ log.c:241:27: warning: argument 1 of type 'const char[4]' with mismatched bound [-Warray-parameter=] 241 | void log_rrptr(const char server[4],const char *q,const char *data,unsigned int ttl) | ~~~~~~~~~~~^~~~~~~~~ log.h:30:23: note: previously declared as 'const char *' 30 | extern void log_rrptr(const char *,const char *,const char *,unsigned int); | ^~~~~~~~~~~~ -./compile tinydns-edit.c log.c:249:26: warning: argument 1 of type 'const char[4]' with mismatched bound [-Warray-parameter=] 249 | void log_rrmx(const char server[4],const char *q,const char *mx,const char pref[2],unsigned int ttl) | ~~~~~~~~~~~^~~~~~~~~ @@ -1167,7 +1247,6 @@ log.h:31:61: note: previously declared as 'const char *' 31 | extern void log_rrmx(const char *,const char *,const char *,const char *,unsigned int); | ^~~~~~~~~~~~ -./compile axfr-get.c log.c:260:27: warning: argument 1 of type 'const char[4]' with mismatched bound [-Warray-parameter=] 260 | void log_rrsoa(const char server[4],const char *q,const char *n1,const char *n2,const char misc[20],unsigned int ttl) | ~~~~~~~~~~~^~~~~~~~~ @@ -1180,86 +1259,20 @@ log.h:32:75: note: previously declared as 'const char *' 32 | extern void log_rrsoa(const char *,const char *,const char *,const char *,const char *,unsigned int); | ^~~~~~~~~~~~ -./compile timeoutread.c -query.c: In function 'doit': -query.c:275:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] - 275 | while (pos = dns_packet_getname(cached,cachedlen,pos,&t2)) { - | ^~~ -query.c:292:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] - 292 | while (pos = dns_packet_getname(cached,cachedlen,pos,&t2)) { - | ^~~ -okclient.c:9:19: warning: argument 1 of type 'char[4]' with mismatched bound [-Warray-parameter=] - 9 | int okclient(char ip[4]) - | ~~~~~^~~~~ -In file included from okclient.c:5: -okclient.h:4:21: note: previously declared as 'char *' - 4 | extern int okclient(char *); - | ^~~~~~ -query.c:309:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] - 309 | while (pos = dns_packet_copy(cached,cachedlen,pos,misc,2)) { - | ^~~ -qlog.c:23:22: warning: argument 1 of type 'const char[4]' with mismatched bound [-Warray-parameter=] - 23 | void qlog(const char ip[4],uint16 port,const char id[2],const char *q,const char qtype[2],const char *result) - | ~~~~~~~~~~~^~~~~ -In file included from qlog.c:2: -qlog.h:6:18: note: previously declared as 'const char *' - 6 | extern void qlog(const char *,uint16,const char *,const char *,const char *,const char *); - | ^~~~~~~~~~~~ -qlog.c:23:51: warning: argument 3 of type 'const char[2]' with mismatched bound [-Warray-parameter=] - 23 | void qlog(const char ip[4],uint16 port,const char id[2],const char *q,const char qtype[2],const char *result) - | ~~~~~~~~~~~^~~~~ -qlog.h:6:38: note: previously declared as 'const char *' - 6 | extern void qlog(const char *,uint16,const char *,const char *,const char *,const char *); - | ^~~~~~~~~~~~ -qlog.c:23:82: warning: argument 5 of type 'const char[2]' with mismatched bound [-Warray-parameter=] - 23 | void qlog(const char ip[4],uint16 port,const char id[2],const char *q,const char qtype[2],const char *result) - | ~~~~~~~~~~~^~~~~~~~ -qlog.h:6:64: note: previously declared as 'const char *' - 6 | extern void qlog(const char *,uint16,const char *,const char *,const char *,const char *); - | ^~~~~~~~~~~~ -./compile timeoutwrite.c -./compile axfrdns-conf.c query.c:398:18: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 398 | while (pos = dns_packet_getname(cached,cachedlen,pos,&t1)) { | ^~~ -./compile axfrdns.c -./compile dnsip.c -chkshsgr.c: In function 'main': -chkshsgr.c:10:19: warning: passing argument 2 of 'getgroups' from incompatible pointer type [-Wincompatible-pointer-types] - 10 | if (getgroups(1,x) == 0) if (setgroups(1,x) == -1) _exit(1); - | ^ - | | - | short int * -In file included from /usr/include/features.h:502, - from /usr/include/errno.h:25, - from : -/usr/include/x86_64-linux-gnu/bits/unistd.h:113:1: note: expected '__gid_t *' {aka 'unsigned int *'} but argument is of type 'short int *' - 113 | __NTH (getgroups (int __size, __gid_t __list[])) - | ^~~~~ -chkshsgr.c:10:44: warning: passing argument 2 of 'setgroups' from incompatible pointer type [-Wincompatible-pointer-types] - 10 | if (getgroups(1,x) == 0) if (setgroups(1,x) == -1) _exit(1); - | ^ - | | - | short int * -In file included from chkshsgr.c:2: -/usr/include/grp.h:180:50: note: expected 'const __gid_t *' {aka 'const unsigned int *'} but argument is of type 'short int *' - 180 | extern int setgroups (size_t __n, const __gid_t *__groups) __THROW; - | ~~~~~~~~~~~~~~~^~~~~~~~ +dnscache.c: In function 'main': +dnscache.c:417:3: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] + 417 | read(0,seed,sizeof seed); + | ^~~~~~~~~~~~~~~~~~~~~~~~ query.c:175:16: warning: variable 'posglue' set but not used [-Wunused-but-set-variable] 175 | unsigned int posglue; | ^~~~~~~ query.c: At top level: -./compile dnsipq.c -printrecord.c:10:119: warning: argument 6 of type 'const char[2]' with mismatched bound [-Warray-parameter=] - 10 | unsigned int printrecord_cat(stralloc *out,const char *buf,unsigned int len,unsigned int pos,const char *q,const char qtype[2]) - | ~~~~~~~~~~~^~~~~~~~ query.c:821:47: warning: argument 3 of type 'char[2]' with mismatched bound [-Warray-parameter=] 821 | int query_start(struct query *z,char *dn,char type[2],char class[2],char localip[4]) | ~~~~~^~~~~~~ -In file included from printrecord.c:6: -printrecord.h:6:100: note: previously declared as 'const char *' - 6 | extern unsigned int printrecord_cat(stralloc *,const char *,unsigned int,unsigned int,const char *,const char *); - | ^~~~~~~~~~~~ In file included from query.c:14: query.h:26:46: note: previously declared as 'char *' 26 | extern int query_start(struct query *,char *,char *,char *,char *); @@ -1276,25 +1289,77 @@ query.h:26:60: note: previously declared as 'char *' 26 | extern int query_start(struct query *,char *,char *,char *,char *); | ^~~~~~ -./compile dnsname.c -parsetype.c:8:28: warning: argument 2 of type 'char[2]' with mismatched bound [-Warray-parameter=] - 8 | int parsetype(char *s,char type[2]) - | ~~~~~^~~~~~~ -In file included from parsetype.c:6: -parsetype.h:4:29: note: previously declared as 'char *' - 4 | extern int parsetype(char *,char *); - | ^~~~~~ +./compile rbldns-data.c +./compile pickdns-conf.c +./compile pickdns.c +./compile pickdns-data.c +./compile tinydns-conf.c +./compile tinydns.c +rm -f trylsock.o trylsock +./compile tdlookup.c +./compile tinydns-data.c +./compile tinydns-get.c +./compile printpacket.c +./compile printrecord.c +./compile parsetype.c +./compile tinydns-edit.c +./compile axfr-get.c +./compile timeoutread.c +printrecord.c:10:119: warning: argument 6 of type 'const char[2]' with mismatched bound [-Warray-parameter=] + 10 | unsigned int printrecord_cat(stralloc *out,const char *buf,unsigned int len,unsigned int pos,const char *q,const char qtype[2]) + | ~~~~~~~~~~~^~~~~~~~ +In file included from printrecord.c:6: +printrecord.h:6:100: note: previously declared as 'const char *' + 6 | extern unsigned int printrecord_cat(stralloc *,const char *,unsigned int,unsigned int,const char *,const char *); + | ^~~~~~~~~~~~ printrecord.c:111:115: warning: argument 6 of type 'const char[2]' with mismatched bound [-Warray-parameter=] 111 | unsigned int printrecord(stralloc *out,const char *buf,unsigned int len,unsigned int pos,const char *q,const char qtype[2]) | ~~~~~~~~~~~^~~~~~~~ printrecord.h:7:96: note: previously declared as 'const char *' 7 | extern unsigned int printrecord(stralloc *,const char *,unsigned int,unsigned int,const char *,const char *); | ^~~~~~~~~~~~ -dnscache.c: In function 'main': -dnscache.c:417:3: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] - 417 | read(0,seed,sizeof seed); - | ^~~~~~~~~~~~~~~~~~~~~~~~ -./compile dnstxt.c +tinydns-data.c: In function 'main': +tinydns-data.c:254:66: warning: passing argument 2 of 'uint32_unpack_big' from incompatible pointer type [-Wincompatible-pointer-types] + 254 | if (!scan_ulong(f[3].s,&u)) uint32_unpack_big(defaultsoa,&u); + | ^~ + | | + | long unsigned int * +In file included from tinydns-data.c:6: +uint32.h:9:44: note: expected 'uint32 *' {aka 'unsigned int *'} but argument is of type 'long unsigned int *' + 9 | extern void uint32_unpack_big(const char *,uint32 *); + | ^~~~~~~~ +tinydns-data.c:257:70: warning: passing argument 2 of 'uint32_unpack_big' from incompatible pointer type [-Wincompatible-pointer-types] + 257 | if (!scan_ulong(f[4].s,&u)) uint32_unpack_big(defaultsoa + 4,&u); + | ^~ + | | + | long unsigned int * +uint32.h:9:44: note: expected 'uint32 *' {aka 'unsigned int *'} but argument is of type 'long unsigned int *' + 9 | extern void uint32_unpack_big(const char *,uint32 *); + | ^~~~~~~~ +tinydns-data.c:260:70: warning: passing argument 2 of 'uint32_unpack_big' from incompatible pointer type [-Wincompatible-pointer-types] + 260 | if (!scan_ulong(f[5].s,&u)) uint32_unpack_big(defaultsoa + 8,&u); + | ^~ + | | + | long unsigned int * +uint32.h:9:44: note: expected 'uint32 *' {aka 'unsigned int *'} but argument is of type 'long unsigned int *' + 9 | extern void uint32_unpack_big(const char *,uint32 *); + | ^~~~~~~~ +tinydns-data.c:263:71: warning: passing argument 2 of 'uint32_unpack_big' from incompatible pointer type [-Wincompatible-pointer-types] + 263 | if (!scan_ulong(f[6].s,&u)) uint32_unpack_big(defaultsoa + 12,&u); + | ^~ + | | + | long unsigned int * +uint32.h:9:44: note: expected 'uint32 *' {aka 'unsigned int *'} but argument is of type 'long unsigned int *' + 9 | extern void uint32_unpack_big(const char *,uint32 *); + | ^~~~~~~~ +tinydns-data.c:266:71: warning: passing argument 2 of 'uint32_unpack_big' from incompatible pointer type [-Wincompatible-pointer-types] + 266 | if (!scan_ulong(f[7].s,&u)) uint32_unpack_big(defaultsoa + 16,&u); + | ^~ + | | + | long unsigned int * +uint32.h:9:44: note: expected 'uint32 *' {aka 'unsigned int *'} but argument is of type 'long unsigned int *' + 9 | extern void uint32_unpack_big(const char *,uint32 *); + | ^~~~~~~~ tdlookup.c: In function 'doit': tdlookup.c:133:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 133 | while (r = find(control,0)) { @@ -1311,8 +1376,14 @@ tdlookup.c:255:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 255 | while (r = find(d1,0)) { | ^ -./compile dnsmx.c -./compile dnsfilter.c +parsetype.c:8:28: warning: argument 2 of type 'char[2]' with mismatched bound [-Warray-parameter=] + 8 | int parsetype(char *s,char type[2]) + | ~~~~~^~~~~~~ +In file included from parsetype.c:6: +parsetype.h:4:29: note: previously declared as 'char *' + 4 | extern int parsetype(char *,char *); + | ^~~~~~ +./compile timeoutwrite.c axfr-get.c: In function 'doit': axfr-get.c:232:34: warning: pointer targets in passing argument 2 of 'stralloc_catb' differ in signedness [-Wpointer-sign] 232 | if (!stralloc_catb(&line,&ch,1)) return 0; @@ -1344,51 +1415,17 @@ | ^~~~ | | | unsigned char * +./compile axfrdns-conf.c stralloc.h:15:37: note: expected 'const char *' but argument is of type 'unsigned char *' 15 | extern int stralloc_catb(stralloc *,const char *,unsigned int); | ^~~~~~~~~~~~ -tinydns-data.c: In function 'main': -tinydns-data.c:254:66: warning: passing argument 2 of 'uint32_unpack_big' from incompatible pointer type [-Wincompatible-pointer-types] - 254 | if (!scan_ulong(f[3].s,&u)) uint32_unpack_big(defaultsoa,&u); - | ^~ - | | - | long unsigned int * -In file included from tinydns-data.c:6: -uint32.h:9:44: note: expected 'uint32 *' {aka 'unsigned int *'} but argument is of type 'long unsigned int *' - 9 | extern void uint32_unpack_big(const char *,uint32 *); - | ^~~~~~~~ -tinydns-data.c:257:70: warning: passing argument 2 of 'uint32_unpack_big' from incompatible pointer type [-Wincompatible-pointer-types] - 257 | if (!scan_ulong(f[4].s,&u)) uint32_unpack_big(defaultsoa + 4,&u); - | ^~ - | | - | long unsigned int * -uint32.h:9:44: note: expected 'uint32 *' {aka 'unsigned int *'} but argument is of type 'long unsigned int *' - 9 | extern void uint32_unpack_big(const char *,uint32 *); - | ^~~~~~~~ -tinydns-data.c:260:70: warning: passing argument 2 of 'uint32_unpack_big' from incompatible pointer type [-Wincompatible-pointer-types] - 260 | if (!scan_ulong(f[5].s,&u)) uint32_unpack_big(defaultsoa + 8,&u); - | ^~ - | | - | long unsigned int * -uint32.h:9:44: note: expected 'uint32 *' {aka 'unsigned int *'} but argument is of type 'long unsigned int *' - 9 | extern void uint32_unpack_big(const char *,uint32 *); - | ^~~~~~~~ -tinydns-data.c:263:71: warning: passing argument 2 of 'uint32_unpack_big' from incompatible pointer type [-Wincompatible-pointer-types] - 263 | if (!scan_ulong(f[6].s,&u)) uint32_unpack_big(defaultsoa + 12,&u); - | ^~ - | | - | long unsigned int * -uint32.h:9:44: note: expected 'uint32 *' {aka 'unsigned int *'} but argument is of type 'long unsigned int *' - 9 | extern void uint32_unpack_big(const char *,uint32 *); - | ^~~~~~~~ -tinydns-data.c:266:71: warning: passing argument 2 of 'uint32_unpack_big' from incompatible pointer type [-Wincompatible-pointer-types] - 266 | if (!scan_ulong(f[7].s,&u)) uint32_unpack_big(defaultsoa + 16,&u); - | ^~ - | | - | long unsigned int * -uint32.h:9:44: note: expected 'uint32 *' {aka 'unsigned int *'} but argument is of type 'long unsigned int *' - 9 | extern void uint32_unpack_big(const char *,uint32 *); - | ^~~~~~~~ +./compile axfrdns.c +./compile dnsip.c +./compile dnsipq.c +./compile dnsname.c +./compile dnstxt.c +./compile dnsmx.c +./compile dnsfilter.c ./compile sgetopt.c ./compile subgetopt.c ./compile random-ip.c @@ -1400,25 +1437,14 @@ > dnstracesort ./compile cachetest.c ./compile utime.c -rm -f trylsock.o trylsock +chmod 755 dnstracesort cat warn-auto.sh rts.sh \ | sed s}HOME}"`head -1 conf-home`"}g \ > rts ./compile install.c -chmod 755 dnstracesort ./compile hier.c ./compile instcheck.c -./compile dnscache-conf.c -./load auto-str buffer.a unix.a byte.a chmod 755 rts -./compile roots.c -./compile iopause.c -./load chkshsgr -./load rbldns-data cdb.a alloc.a buffer.a unix.a byte.a -cachetest.c: In function 'main': -cachetest.c:18:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] - 18 | while (x = *argv++) { - | ^ utime.c: In function 'main': utime.c:23:16: warning: passing argument 2 of 'utime' from incompatible pointer type [-Wincompatible-pointer-types] 23 | if (utime(fn,ut) == -1) _exit(111); @@ -1429,6 +1455,22 @@ /usr/include/utime.h:51:41: note: expected 'const struct utimbuf *' but argument is of type 'time_t *' {aka 'long int *'} 51 | const struct utimbuf *__file_times) | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ +./compile dnscache-conf.c +cachetest.c: In function 'main': +cachetest.c:18:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] + 18 | while (x = *argv++) { + | ^ +./load auto-str buffer.a unix.a byte.a +dnstrace.c: In function 'parsepacket': +dnstrace.c:288:10: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] + 288 | if (byte_equal(header + 2,2,DNS_C_IN)) + | ^ +dnstrace.c:258:16: warning: variable 'posglue' set but not used [-Wunused-but-set-variable] + 258 | unsigned int posglue; + | ^~~~~~~ +dnstrace.c:256:16: warning: variable 'posauthority' set but not used [-Wunused-but-set-variable] + 256 | unsigned int posauthority; + | ^~~~~~~~~~~~ hier.c: In function 'hier': hier.c:11:5: warning: passing argument 1 of 'h' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 11 | h(auto_home,-1,-1,02755); @@ -1475,13 +1517,9 @@ hier.c:19:5: warning: passing argument 1 of 'c' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 19 | c(auto_home,"bin","axfrdns-conf",-1,-1,0755); | ^~~~~~~~~ -dnstrace.c: In function 'parsepacket': hier.c:5:14: note: expected 'char *' but argument is of type 'const char *' 5 | void c(char *home, char *subdir, char *file, int uid, int gid, int mode); | ~~~~~~^~~~ -dnstrace.c:288:10: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] - 288 | if (byte_equal(header + 2,2,DNS_C_IN)) - | ^ hier.c:21:5: warning: passing argument 1 of 'c' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 21 | c(auto_home,"bin","dnscache",-1,-1,0755); | ^~~~~~~~~ @@ -1620,15 +1658,19 @@ hier.c:5:14: note: expected 'char *' but argument is of type 'const char *' 5 | void c(char *home, char *subdir, char *file, int uid, int gid, int mode); | ~~~~~~^~~~ -dnstrace.c:258:16: warning: variable 'posglue' set but not used [-Wunused-but-set-variable] - 258 | unsigned int posglue; - | ^~~~~~~ -dnstrace.c:256:16: warning: variable 'posauthority' set but not used [-Wunused-but-set-variable] - 256 | unsigned int posauthority; - | ^~~~~~~~~~~~ -./chkshsgr || ( cat warn-shsgr; exit 1 ) -./choose clr tryshsgr hasshsgr.h1 hasshsgr.h2 > hasshsgr.h -./auto-str auto_home `head -1 conf-home` > auto_home.c +./compile roots.c +./compile iopause.c +./load chkshsgr +./load rbldns-data cdb.a alloc.a buffer.a unix.a byte.a +./load pickdns-data cdb.a dns.a alloc.a buffer.a unix.a \ +byte.a +./load tinydns-get tdlookup.o response.o printpacket.o \ +printrecord.o parsetype.o dns.a libtai.a cdb.a buffer.a \ +alloc.a unix.a byte.a +./makelib getopt.a sgetopt.o subgetopt.o +./load random-ip dns.a libtai.a buffer.a unix.a byte.a +./load cachetest cache.o libtai.a buffer.a alloc.a unix.a \ +byte.a roots.c:43:16: warning: argument 1 of type 'char[64]' with mismatched bound [-Warray-parameter=] 43 | int roots(char servers[64],char *q) | ~~~~~^~~~~~~~~~~ @@ -1636,22 +1678,12 @@ roots.h:4:18: note: previously declared as 'char *' 4 | extern int roots(char *,char *); | ^~~~~~ -./compile auto_home.c -./makelib getopt.a sgetopt.o subgetopt.o -./load cachetest cache.o libtai.a buffer.a alloc.a unix.a \ -byte.a ./load utime byte.a -./load walldns-conf generic-conf.o auto_home.o buffer.a \ -unix.a byte.a -./load rbldns-conf generic-conf.o auto_home.o buffer.a \ -unix.a byte.a -./load pickdns-conf generic-conf.o auto_home.o buffer.a \ -unix.a byte.a -./load tinydns-conf generic-conf.o auto_home.o buffer.a \ -unix.a byte.a -./load axfrdns-conf generic-conf.o auto_home.o buffer.a \ -unix.a byte.a -./load random-ip dns.a libtai.a buffer.a unix.a byte.a +./auto-str auto_home `head -1 conf-home` > auto_home.c +./chkshsgr || ( cat warn-shsgr; exit 1 ) +./load tinydns-edit dns.a alloc.a buffer.a unix.a byte.a +./choose clr tryshsgr hasshsgr.h1 hasshsgr.h2 > hasshsgr.h +./compile auto_home.c ./load dnsip iopause.o dns.a env.a libtai.a alloc.a \ buffer.a unix.a byte.a `cat socket.lib` ./load dnsipq iopause.o dns.a env.a libtai.a alloc.a \ @@ -1668,16 +1700,26 @@ ./load dnsq iopause.o printrecord.o printpacket.o \ parsetype.o dns.a env.a libtai.a buffer.a alloc.a unix.a \ byte.a `cat socket.lib` -./load pickdns-data cdb.a dns.a alloc.a buffer.a unix.a \ -byte.a -./load tinydns-get tdlookup.o response.o printpacket.o \ -printrecord.o parsetype.o dns.a libtai.a cdb.a buffer.a \ -alloc.a unix.a byte.a -./load tinydns-edit dns.a alloc.a buffer.a unix.a byte.a -./compile prot.c +./load axfr-get iopause.o timeoutread.o timeoutwrite.o \ +dns.a libtai.a alloc.a buffer.a unix.a byte.a ./load dnscache-conf generic-conf.o auto_home.o libtai.a \ buffer.a unix.a byte.a +./load walldns-conf generic-conf.o auto_home.o buffer.a \ +unix.a byte.a +./load rbldns-conf generic-conf.o auto_home.o buffer.a \ +unix.a byte.a +./load pickdns-conf generic-conf.o auto_home.o buffer.a \ +unix.a byte.a +./load tinydns-conf generic-conf.o auto_home.o buffer.a \ +unix.a byte.a +./load tinydns-data cdb.a dns.a alloc.a buffer.a unix.a \ +byte.a +./load axfrdns-conf generic-conf.o auto_home.o buffer.a \ +unix.a byte.a ./load instcheck hier.o auto_home.o buffer.a unix.a byte.a +./compile prot.c +./load dnsfilter iopause.o getopt.a dns.a env.a libtai.a \ +alloc.a buffer.a unix.a byte.a `cat socket.lib` ./load install hier.o auto_home.o buffer.a unix.a byte.a prot.c: In function 'prot_gid': prot.c:13:19: warning: pointer targets in passing argument 2 of 'setgroups' differ in signedness [-Wpointer-sign] @@ -1689,8 +1731,6 @@ /usr/include/grp.h:180:50: note: expected 'const __gid_t *' {aka 'const unsigned int *'} but argument is of type 'int *' 180 | extern int setgroups (size_t __n, const __gid_t *__groups) __THROW; | ~~~~~~~~~~~~~~~^~~~~~~~ -./load dnsfilter iopause.o getopt.a dns.a env.a libtai.a \ -alloc.a buffer.a unix.a byte.a `cat socket.lib` ./load walldns server.o response.o droproot.o qlog.o \ prot.o dd.o dns.a env.a cdb.a alloc.a buffer.a unix.a \ byte.a `cat socket.lib` @@ -1703,10 +1743,6 @@ ./load tinydns server.o droproot.o tdlookup.o response.o \ qlog.o prot.o dns.a libtai.a env.a cdb.a alloc.a buffer.a \ unix.a byte.a `cat socket.lib` -./load axfr-get iopause.o timeoutread.o timeoutwrite.o \ -dns.a libtai.a alloc.a buffer.a unix.a byte.a -./load tinydns-data cdb.a dns.a alloc.a buffer.a unix.a \ -byte.a ./load axfrdns iopause.o droproot.o tdlookup.o response.o \ qlog.o prot.o timeoutread.o timeoutwrite.o dns.a libtai.a \ alloc.a env.a cdb.a buffer.a unix.a byte.a @@ -1785,12 +1821,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/3617604/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/3617604/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/874589 and its subdirectories -I: Current time: Wed Jun 11 14:13:28 -12 2025 -I: pbuilder-time-stamp: 1749694408 +I: removing directory /srv/workspace/pbuilder/3617604 and its subdirectories +I: Current time: Fri May 10 09:52:54 +14 2024 +I: pbuilder-time-stamp: 1715284374