Diff of the two buildlogs: -- --- b1/build.log 2021-07-22 08:56:06.359838342 +0000 +++ b2/build.log 2021-07-22 09:03:58.378101601 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Wed Jul 21 20:48:57 -12 2021 -I: pbuilder-time-stamp: 1626943737 +I: Current time: Thu Aug 25 05:19:10 +14 2022 +I: pbuilder-time-stamp: 1661354350 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/bullseye-reproducible-base.tgz] I: copying local configuration @@ -16,8 +16,8 @@ I: copying [./lsh-utils_2.1-13.debian.tar.xz] I: Extracting source gpgv: unknown type of key resource 'trustedkeys.kbx' -gpgv: keyblock resource '/tmp/dpkg-verify-sig.UIEsBfQn/trustedkeys.kbx': General error -gpgv: Signature made Wed Jan 6 10:32:58 2021 -12 +gpgv: keyblock resource '/tmp/dpkg-verify-sig.liJlpidw/trustedkeys.kbx': General error +gpgv: Signature made Thu Jan 7 12:32:58 2021 +14 gpgv: using RSA key CD2A073B386154170A4082E8D4F219BFEC998489 gpgv: Can't check signature: No public key dpkg-source: warning: failed to verify signature on ./lsh-utils_2.1-13.dsc @@ -38,135 +38,169 @@ dpkg-source: info: applying missing_extern.patch I: using fakeroot in build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/21646/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/6802/tmp/hooks/D01_modify_environment starting +debug: Running on codethink15-arm64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +Removing 'diversion of /bin/sh to /bin/sh.distrib by dash' +Adding 'diversion of /bin/sh to /bin/sh.distrib by bash' +Removing 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash' +Adding 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by bash' +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/6802/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/6802/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='arm64' - DEBIAN_FRONTEND='noninteractive' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="1" [2]="4" [3]="1" [4]="release" [5]="aarch64-unknown-linux-gnu") + BASH_VERSION='5.1.4(1)-release' + BUILDDIR=/build + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=arm64 + DEBIAN_FRONTEND=noninteractive DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all,-fixfilepath parallel=8' - DISTRIBUTION='' - HOME='/var/lib/jenkins' - HOST_ARCH='arm64' + DIRSTACK=() + DISTRIBUTION= + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/var/lib/jenkins + HOSTNAME=i-capture-the-hostname + HOSTTYPE=aarch64 + HOST_ARCH=arm64 IFS=' ' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='21646' - PS1='# ' - PS2='> ' + LANG=C + LANGUAGE=nl_BE:nl + LC_ALL=C + MACHTYPE=aarch64-unknown-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=6802 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/tmp.IvaVAZ9eu3/pbuilderrc_Nvde --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.IvaVAZ9eu3/b1 --logfile b1/build.log lsh-utils_2.1-13.dsc' - SUDO_GID='117' - SUDO_UID='110' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - USERNAME='root' - _='/usr/bin/systemd-run' - http_proxy='http://192.168.101.16:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/tmp.IvaVAZ9eu3/pbuilderrc_Wwqn --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.IvaVAZ9eu3/b2 --logfile b2/build.log --extrapackages usrmerge lsh-utils_2.1-13.dsc' + SUDO_GID=117 + SUDO_UID=110 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + USERNAME=root + _='I: set' + http_proxy=http://192.168.101.16:3128 I: uname -a - Linux codethink12-arm64 4.15.0-151-generic #157-Ubuntu SMP Fri Jul 9 21:03:48 UTC 2021 aarch64 GNU/Linux + Linux i-capture-the-hostname 4.15.0-151-generic #157-Ubuntu SMP Fri Jul 9 21:03:48 UTC 2021 aarch64 GNU/Linux I: ls -l /bin total 5252 - -rwxr-xr-x 1 root root 1282512 Jun 21 14:26 bash - -rwxr-xr-x 3 root root 34808 Jul 20 2020 bunzip2 - -rwxr-xr-x 3 root root 34808 Jul 20 2020 bzcat - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzcmp -> bzdiff - -rwxr-xr-x 1 root root 2225 Jul 20 2020 bzdiff - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzegrep -> bzgrep - -rwxr-xr-x 1 root root 4877 Sep 4 2019 bzexe - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzfgrep -> bzgrep - -rwxr-xr-x 1 root root 3775 Jul 20 2020 bzgrep - -rwxr-xr-x 3 root root 34808 Jul 20 2020 bzip2 - -rwxr-xr-x 1 root root 14264 Jul 20 2020 bzip2recover - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzless -> bzmore - -rwxr-xr-x 1 root root 1297 Jul 20 2020 bzmore - -rwxr-xr-x 1 root root 39832 Sep 22 2020 cat - -rwxr-xr-x 1 root root 64512 Sep 22 2020 chgrp - -rwxr-xr-x 1 root root 60368 Sep 22 2020 chmod - -rwxr-xr-x 1 root root 64528 Sep 22 2020 chown - -rwxr-xr-x 1 root root 138896 Sep 22 2020 cp - -rwxr-xr-x 1 root root 129544 Dec 10 2020 dash - -rwxr-xr-x 1 root root 101384 Sep 22 2020 date - -rwxr-xr-x 1 root root 80984 Sep 22 2020 dd - -rwxr-xr-x 1 root root 89824 Sep 22 2020 df - -rwxr-xr-x 1 root root 143088 Sep 22 2020 dir - -rwxr-xr-x 1 root root 76152 Feb 7 02:38 dmesg - lrwxrwxrwx 1 root root 8 Nov 6 2019 dnsdomainname -> hostname - lrwxrwxrwx 1 root root 8 Nov 6 2019 domainname -> hostname - -rwxr-xr-x 1 root root 35632 Sep 22 2020 echo - -rwxr-xr-x 1 root root 28 Nov 9 2020 egrep - -rwxr-xr-x 1 root root 31512 Sep 22 2020 false - -rwxr-xr-x 1 root root 28 Nov 9 2020 fgrep - -rwxr-xr-x 1 root root 64856 Feb 7 02:38 findmnt - -rwsr-xr-x 1 root root 34824 Feb 26 04:12 fusermount - -rwxr-xr-x 1 root root 178400 Nov 9 2020 grep - -rwxr-xr-x 2 root root 2346 Mar 2 11:30 gunzip - -rwxr-xr-x 1 root root 6376 Mar 2 11:30 gzexe - -rwxr-xr-x 1 root root 93744 Mar 2 11:30 gzip - -rwxr-xr-x 1 root root 18440 Nov 6 2019 hostname - -rwxr-xr-x 1 root root 68720 Sep 22 2020 ln - -rwxr-xr-x 1 root root 52720 Feb 7 2020 login - -rwxr-xr-x 1 root root 143088 Sep 22 2020 ls - -rwxr-xr-x 1 root root 161960 Feb 7 02:38 lsblk - -rwxr-xr-x 1 root root 85200 Sep 22 2020 mkdir - -rwxr-xr-x 1 root root 68744 Sep 22 2020 mknod - -rwxr-xr-x 1 root root 43976 Sep 22 2020 mktemp - -rwxr-xr-x 1 root root 51368 Feb 7 02:38 more - -rwsr-xr-x 1 root root 51360 Feb 7 02:38 mount - -rwxr-xr-x 1 root root 14496 Feb 7 02:38 mountpoint - -rwxr-xr-x 1 root root 134808 Sep 22 2020 mv - lrwxrwxrwx 1 root root 8 Nov 6 2019 nisdomainname -> hostname - lrwxrwxrwx 1 root root 14 Apr 18 03:38 pidof -> /sbin/killall5 - -rwxr-xr-x 1 root root 35720 Sep 22 2020 pwd - lrwxrwxrwx 1 root root 4 Jun 21 14:26 rbash -> bash - -rwxr-xr-x 1 root root 43872 Sep 22 2020 readlink - -rwxr-xr-x 1 root root 68592 Sep 22 2020 rm - -rwxr-xr-x 1 root root 43880 Sep 22 2020 rmdir - -rwxr-xr-x 1 root root 19208 Sep 27 2020 run-parts - -rwxr-xr-x 1 root root 114016 Dec 22 2018 sed - lrwxrwxrwx 1 root root 4 Jul 20 21:25 sh -> dash - -rwxr-xr-x 1 root root 35656 Sep 22 2020 sleep - -rwxr-xr-x 1 root root 72640 Sep 22 2020 stty - -rwsr-xr-x 1 root root 67776 Feb 7 02:38 su - -rwxr-xr-x 1 root root 35672 Sep 22 2020 sync - -rwxr-xr-x 1 root root 535768 Feb 16 21:55 tar - -rwxr-xr-x 1 root root 10568 Sep 27 2020 tempfile - -rwxr-xr-x 1 root root 89120 Sep 22 2020 touch - -rwxr-xr-x 1 root root 31512 Sep 22 2020 true - -rwxr-xr-x 1 root root 14264 Feb 26 04:12 ulockmgr_server - -rwsr-xr-x 1 root root 30880 Feb 7 02:38 umount - -rwxr-xr-x 1 root root 35640 Sep 22 2020 uname - -rwxr-xr-x 2 root root 2346 Mar 2 11:30 uncompress - -rwxr-xr-x 1 root root 143088 Sep 22 2020 vdir - -rwxr-xr-x 1 root root 59584 Feb 7 02:38 wdctl - lrwxrwxrwx 1 root root 8 Nov 6 2019 ypdomainname -> hostname - -rwxr-xr-x 1 root root 1984 Mar 2 11:30 zcat - -rwxr-xr-x 1 root root 1678 Mar 2 11:30 zcmp - -rwxr-xr-x 1 root root 5880 Mar 2 11:30 zdiff - -rwxr-xr-x 1 root root 29 Mar 2 11:30 zegrep - -rwxr-xr-x 1 root root 29 Mar 2 11:30 zfgrep - -rwxr-xr-x 1 root root 2081 Mar 2 11:30 zforce - -rwxr-xr-x 1 root root 7585 Mar 2 11:30 zgrep - -rwxr-xr-x 1 root root 2206 Mar 2 11:30 zless - -rwxr-xr-x 1 root root 1842 Mar 2 11:30 zmore - -rwxr-xr-x 1 root root 4553 Mar 2 11:30 znew -I: user script /srv/workspace/pbuilder/21646/tmp/hooks/D02_print_environment finished + -rwxr-xr-x 1 root root 1282512 Jun 22 2021 bash + -rwxr-xr-x 3 root root 34808 Jul 21 2020 bunzip2 + -rwxr-xr-x 3 root root 34808 Jul 21 2020 bzcat + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzcmp -> bzdiff + -rwxr-xr-x 1 root root 2225 Jul 21 2020 bzdiff + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzegrep -> bzgrep + -rwxr-xr-x 1 root root 4877 Sep 5 2019 bzexe + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzfgrep -> bzgrep + -rwxr-xr-x 1 root root 3775 Jul 21 2020 bzgrep + -rwxr-xr-x 3 root root 34808 Jul 21 2020 bzip2 + -rwxr-xr-x 1 root root 14264 Jul 21 2020 bzip2recover + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzless -> bzmore + -rwxr-xr-x 1 root root 1297 Jul 21 2020 bzmore + -rwxr-xr-x 1 root root 39832 Sep 23 2020 cat + -rwxr-xr-x 1 root root 64512 Sep 23 2020 chgrp + -rwxr-xr-x 1 root root 60368 Sep 23 2020 chmod + -rwxr-xr-x 1 root root 64528 Sep 23 2020 chown + -rwxr-xr-x 1 root root 138896 Sep 23 2020 cp + -rwxr-xr-x 1 root root 129544 Dec 11 2020 dash + -rwxr-xr-x 1 root root 101384 Sep 23 2020 date + -rwxr-xr-x 1 root root 80984 Sep 23 2020 dd + -rwxr-xr-x 1 root root 89824 Sep 23 2020 df + -rwxr-xr-x 1 root root 143088 Sep 23 2020 dir + -rwxr-xr-x 1 root root 76152 Feb 8 2021 dmesg + lrwxrwxrwx 1 root root 8 Nov 8 2019 dnsdomainname -> hostname + lrwxrwxrwx 1 root root 8 Nov 8 2019 domainname -> hostname + -rwxr-xr-x 1 root root 35632 Sep 23 2020 echo + -rwxr-xr-x 1 root root 28 Nov 10 2020 egrep + -rwxr-xr-x 1 root root 31512 Sep 23 2020 false + -rwxr-xr-x 1 root root 28 Nov 10 2020 fgrep + -rwxr-xr-x 1 root root 64856 Feb 8 2021 findmnt + -rwsr-xr-x 1 root root 34824 Feb 27 2021 fusermount + -rwxr-xr-x 1 root root 178400 Nov 10 2020 grep + -rwxr-xr-x 2 root root 2346 Mar 3 2021 gunzip + -rwxr-xr-x 1 root root 6376 Mar 3 2021 gzexe + -rwxr-xr-x 1 root root 93744 Mar 3 2021 gzip + -rwxr-xr-x 1 root root 18440 Nov 8 2019 hostname + -rwxr-xr-x 1 root root 68720 Sep 23 2020 ln + -rwxr-xr-x 1 root root 52720 Feb 8 2020 login + -rwxr-xr-x 1 root root 143088 Sep 23 2020 ls + -rwxr-xr-x 1 root root 161960 Feb 8 2021 lsblk + -rwxr-xr-x 1 root root 85200 Sep 23 2020 mkdir + -rwxr-xr-x 1 root root 68744 Sep 23 2020 mknod + -rwxr-xr-x 1 root root 43976 Sep 23 2020 mktemp + -rwxr-xr-x 1 root root 51368 Feb 8 2021 more + -rwsr-xr-x 1 root root 51360 Feb 8 2021 mount + -rwxr-xr-x 1 root root 14496 Feb 8 2021 mountpoint + -rwxr-xr-x 1 root root 134808 Sep 23 2020 mv + lrwxrwxrwx 1 root root 8 Nov 8 2019 nisdomainname -> hostname + lrwxrwxrwx 1 root root 14 Apr 19 2021 pidof -> /sbin/killall5 + -rwxr-xr-x 1 root root 35720 Sep 23 2020 pwd + lrwxrwxrwx 1 root root 4 Jun 22 2021 rbash -> bash + -rwxr-xr-x 1 root root 43872 Sep 23 2020 readlink + -rwxr-xr-x 1 root root 68592 Sep 23 2020 rm + -rwxr-xr-x 1 root root 43880 Sep 23 2020 rmdir + -rwxr-xr-x 1 root root 19208 Sep 28 2020 run-parts + -rwxr-xr-x 1 root root 114016 Dec 23 2018 sed + lrwxrwxrwx 1 root root 4 Aug 25 05:19 sh -> bash + lrwxrwxrwx 1 root root 4 Aug 23 05:47 sh.distrib -> dash + -rwxr-xr-x 1 root root 35656 Sep 23 2020 sleep + -rwxr-xr-x 1 root root 72640 Sep 23 2020 stty + -rwsr-xr-x 1 root root 67776 Feb 8 2021 su + -rwxr-xr-x 1 root root 35672 Sep 23 2020 sync + -rwxr-xr-x 1 root root 535768 Feb 17 2021 tar + -rwxr-xr-x 1 root root 10568 Sep 28 2020 tempfile + -rwxr-xr-x 1 root root 89120 Sep 23 2020 touch + -rwxr-xr-x 1 root root 31512 Sep 23 2020 true + -rwxr-xr-x 1 root root 14264 Feb 27 2021 ulockmgr_server + -rwsr-xr-x 1 root root 30880 Feb 8 2021 umount + -rwxr-xr-x 1 root root 35640 Sep 23 2020 uname + -rwxr-xr-x 2 root root 2346 Mar 3 2021 uncompress + -rwxr-xr-x 1 root root 143088 Sep 23 2020 vdir + -rwxr-xr-x 1 root root 59584 Feb 8 2021 wdctl + lrwxrwxrwx 1 root root 8 Nov 8 2019 ypdomainname -> hostname + -rwxr-xr-x 1 root root 1984 Mar 3 2021 zcat + -rwxr-xr-x 1 root root 1678 Mar 3 2021 zcmp + -rwxr-xr-x 1 root root 5880 Mar 3 2021 zdiff + -rwxr-xr-x 1 root root 29 Mar 3 2021 zegrep + -rwxr-xr-x 1 root root 29 Mar 3 2021 zfgrep + -rwxr-xr-x 1 root root 2081 Mar 3 2021 zforce + -rwxr-xr-x 1 root root 7585 Mar 3 2021 zgrep + -rwxr-xr-x 1 root root 2206 Mar 3 2021 zless + -rwxr-xr-x 1 root root 1842 Mar 3 2021 zmore + -rwxr-xr-x 1 root root 4553 Mar 3 2021 znew +I: user script /srv/workspace/pbuilder/6802/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -298,7 +332,7 @@ Get: 63 http://deb.debian.org/debian bullseye/main arm64 nettle-dev arm64 3.7.3-1 [1270 kB] Get: 64 http://deb.debian.org/debian bullseye/main arm64 texinfo arm64 6.7.0.dfsg.2-6 [1753 kB] Get: 65 http://deb.debian.org/debian bullseye/main arm64 zlib1g-dev arm64 1:1.2.11.dfsg-2 [189 kB] -Fetched 25.2 MB in 1s (38.6 MB/s) +Fetched 25.2 MB in 1s (32.1 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package bsdextrautils. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19646 files and directories currently installed.) @@ -587,9 +621,42 @@ Building dependency tree... Reading state information... fakeroot is already the newest version (1.25.3-1.1). -0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. +The following additional packages will be installed: + libfile-find-rule-perl libnumber-compare-perl libtext-glob-perl +The following NEW packages will be installed: + libfile-find-rule-perl libnumber-compare-perl libtext-glob-perl usrmerge +0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. +Need to get 59.5 kB of archives. +After this operation, 157 kB of additional disk space will be used. +Get:1 http://deb.debian.org/debian bullseye/main arm64 libnumber-compare-perl all 0.03-1.1 [6956 B] +Get:2 http://deb.debian.org/debian bullseye/main arm64 libtext-glob-perl all 0.11-1 [8888 B] +Get:3 http://deb.debian.org/debian bullseye/main arm64 libfile-find-rule-perl all 0.34-1 [30.6 kB] +Get:4 http://deb.debian.org/debian bullseye/main arm64 usrmerge all 25 [13.0 kB] +debconf: delaying package configuration, since apt-utils is not installed +Fetched 59.5 kB in 0s (1206 kB/s) +Selecting previously unselected package libnumber-compare-perl. +(Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 23790 files and directories currently installed.) +Preparing to unpack .../libnumber-compare-perl_0.03-1.1_all.deb ... +Unpacking libnumber-compare-perl (0.03-1.1) ... +Selecting previously unselected package libtext-glob-perl. +Preparing to unpack .../libtext-glob-perl_0.11-1_all.deb ... +Unpacking libtext-glob-perl (0.11-1) ... +Selecting previously unselected package libfile-find-rule-perl. +Preparing to unpack .../libfile-find-rule-perl_0.34-1_all.deb ... +Unpacking libfile-find-rule-perl (0.34-1) ... +Selecting previously unselected package usrmerge. +Preparing to unpack .../archives/usrmerge_25_all.deb ... +Unpacking usrmerge (25) ... +Setting up libtext-glob-perl (0.11-1) ... +Setting up libnumber-compare-perl (0.03-1.1) ... +Setting up libfile-find-rule-perl (0.34-1) ... +Setting up usrmerge (25) ... +The system has been successfully converted. +Processing triggers for man-db (2.9.4-2) ... +Not building database; man-db/auto-update is not 'true'. I: Building the package -I: Running cd /build/lsh-utils-2.1/ && 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 > ../lsh-utils_2.1-13_source.changes +hostname: Temporary failure in name resolution +I: Running cd /build/lsh-utils-2.1/ && 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 > ../lsh-utils_2.1-13_source.changes dpkg-buildpackage: info: source package lsh-utils dpkg-buildpackage: info: source version 2.1-13 dpkg-buildpackage: info: source distribution unstable @@ -628,7 +695,7 @@ CFLAGS="-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security" CPPFLAGS="-Wdate-time -D_FORTIFY_SOURCE=2" CXXFLAGS="-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security" DFLAGS="-frelease" FCFLAGS="-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong" FFLAGS="-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong" GCJFLAGS="-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong" LDFLAGS="-Wl,-z,defs -Wl,--as-needed -Wl,-z,relro" OBJCFLAGS="-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security" OBJCXXFLAGS="-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security" checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes -checking for a thread-safe mkdir -p... /bin/mkdir -p +checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes @@ -648,8 +715,8 @@ checking whether gcc understands -c and -o together... yes checking dependency style of gcc... none checking how to run the C preprocessor... gcc -E -checking for grep that handles long lines and -e... /bin/grep -checking for egrep... /bin/grep -E +checking for grep that handles long lines and -e... /usr/bin/grep +checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes @@ -881,10 +948,10 @@ config.status: creating config.h config.status: executing depfiles commands === configuring in src/spki (/build/lsh-utils-2.1/src/spki) -configure: running /bin/bash /build/lsh-utils-2.1/src/spki/configure --disable-option-checking '--prefix=/usr' '--build=aarch64-linux-gnu' '--disable-dependency-tracking' '--enable-pam' '--enable-kerberos' '--enable-srp' '--with-pty' '--enable-tcp-forward' '--enable-x11-forward' '--enable-agent-forward' '--enable-ipv6' '--enable-utmp' '--with-zlib' '--with-tcpwrappers' '--with-sshd1=/usr/sbin/sshd' '--with-x' 'XAUTH_PROGRAM=/usr/bin/xauth' 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security' 'DFLAGS=-frelease' 'FCFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong' 'FFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong' 'GCJFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong' 'LDFLAGS=-Wl,-z,defs -Wl,--as-needed -Wl,-z,relro' 'OBJCFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security' 'OBJCXXFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security' 'build_alias=aarch64-linux-gnu' --cache-file=/dev/null --srcdir=/build/lsh-utils-2.1/src/spki +configure: running /bin/sh /build/lsh-utils-2.1/src/spki/configure --disable-option-checking '--prefix=/usr' '--build=aarch64-linux-gnu' '--disable-dependency-tracking' '--enable-pam' '--enable-kerberos' '--enable-srp' '--with-pty' '--enable-tcp-forward' '--enable-x11-forward' '--enable-agent-forward' '--enable-ipv6' '--enable-utmp' '--with-zlib' '--with-tcpwrappers' '--with-sshd1=/usr/sbin/sshd' '--with-x' 'XAUTH_PROGRAM=/usr/bin/xauth' 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security' 'DFLAGS=-frelease' 'FCFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong' 'FFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong' 'GCJFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong' 'LDFLAGS=-Wl,-z,defs -Wl,--as-needed -Wl,-z,relro' 'OBJCFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security' 'OBJCXXFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security' 'build_alias=aarch64-linux-gnu' --cache-file=/dev/null --srcdir=/build/lsh-utils-2.1/src/spki checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes -checking for a thread-safe mkdir -p... /bin/mkdir -p +checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes @@ -919,8 +986,8 @@ checking for an ANSI C-conforming const... yes checking for inline... inline checking how to run the C preprocessor... gcc -E -checking for grep that handles long lines and -e... /bin/grep -checking for egrep... /bin/grep -E +checking for grep that handles long lines and -e... /usr/bin/grep +checking for egrep... /usr/bin/grep -E checking for uid_t in sys/types.h... yes checking for ANSI C header files... yes checking for sys/types.h... yes @@ -951,10 +1018,10 @@ config.status: creating config.h config.status: executing depfiles commands === configuring in src/sftp (/build/lsh-utils-2.1/src/sftp) -configure: running /bin/bash /build/lsh-utils-2.1/src/sftp/configure --disable-option-checking '--prefix=/usr' '--build=aarch64-linux-gnu' '--disable-dependency-tracking' '--enable-pam' '--enable-kerberos' '--enable-srp' '--with-pty' '--enable-tcp-forward' '--enable-x11-forward' '--enable-agent-forward' '--enable-ipv6' '--enable-utmp' '--with-zlib' '--with-tcpwrappers' '--with-sshd1=/usr/sbin/sshd' '--with-x' 'XAUTH_PROGRAM=/usr/bin/xauth' 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security' 'DFLAGS=-frelease' 'FCFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong' 'FFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong' 'GCJFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong' 'LDFLAGS=-Wl,-z,defs -Wl,--as-needed -Wl,-z,relro' 'OBJCFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security' 'OBJCXXFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security' 'build_alias=aarch64-linux-gnu' --cache-file=/dev/null --srcdir=/build/lsh-utils-2.1/src/sftp +configure: running /bin/sh /build/lsh-utils-2.1/src/sftp/configure --disable-option-checking '--prefix=/usr' '--build=aarch64-linux-gnu' '--disable-dependency-tracking' '--enable-pam' '--enable-kerberos' '--enable-srp' '--with-pty' '--enable-tcp-forward' '--enable-x11-forward' '--enable-agent-forward' '--enable-ipv6' '--enable-utmp' '--with-zlib' '--with-tcpwrappers' '--with-sshd1=/usr/sbin/sshd' '--with-x' 'XAUTH_PROGRAM=/usr/bin/xauth' 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security' 'DFLAGS=-frelease' 'FCFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong' 'FFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong' 'GCJFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong' 'LDFLAGS=-Wl,-z,defs -Wl,--as-needed -Wl,-z,relro' 'OBJCFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security' 'OBJCXXFLAGS=-g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security' 'build_alias=aarch64-linux-gnu' --cache-file=/dev/null --srcdir=/build/lsh-utils-2.1/src/sftp checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes -checking for a thread-safe mkdir -p... /bin/mkdir -p +checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes @@ -975,8 +1042,8 @@ checking for ranlib... ranlib configure: Using ${exec_prefix}/bin/lshg as secsh-client, adding --subsystem=sftp --no-pty in front of arguments and -G after them. checking how to run the C preprocessor... gcc -E -checking for grep that handles long lines and -e... /bin/grep -checking for egrep... /bin/grep -E +checking for grep that handles long lines and -e... /usr/bin/grep +checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes @@ -1165,39 +1232,47 @@ gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DTRANSPORT_PROG='"/usr/bin/lshg"' -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wcast-align -c -o str_utils.o str_utils.c gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DTRANSPORT_PROG='"/usr/bin/lshg"' -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wcast-align -c -o dc.o dc.c gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DTRANSPORT_PROG='"/usr/bin/lshg"' -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wcast-align -c -o gnu_stuff.o gnu_stuff.c -sftp_bind.c: In function 'lsftp_open_connection': -sftp_bind.c:210:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] - 210 | cur_string = - | ^~~~~~~~~~ -sftp_bind.c:234:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] - 234 | cur_string = - | ^~~~~~~~~~ -sftp_bind.c: In function 'lsftp_callback': -sftp_bind.c:581:7: warning: variable 'retval' set but not used [-Wunused-but-set-variable] - 581 | int retval; - | ^~~~~~ +lsftp.c: In function 'lsftp_interactive_mainloop': +lsftp.c:142:23: warning: pointer targets in passing argument 1 of 'handle_command' differ in signedness [-Wpointer-sign] + 142 | handle_command( current_line ); + | ^~~~~~~~~~~~ + | | + | char * +In file included from rl.h:33, + from lsftp.h:36, + from lsftp.c:31: +commands.h:58:41: note: expected 'const unsigned char *' but argument is of type 'char *' + 58 | int handle_command(const unsigned char *s); + | ~~~~~~~~~~~~~~~~~~~~~^ +lsftp.c:78:11: warning: variable 'retval' set but not used [-Wunused-but-set-variable] + 78 | int retval; + | ^~~~~~ +lsftp.c: In function 'lsftp_noninteractive_mainloop': +lsftp.c:167:22: warning: pointer targets in passing argument 1 of 'handle_command' differ in signedness [-Wpointer-sign] + 167 | handle_command( argv[startat++] ); /* Do it */ + | ~~~~^~~~~~~~~~~ + | | + | char * +In file included from rl.h:33, + from lsftp.h:36, + from lsftp.c:31: +commands.h:58:41: note: expected 'const unsigned char *' but argument is of type 'char *' + 58 | int handle_command(const unsigned char *s); + | ~~~~~~~~~~~~~~~~~~~~~^ +lsftp.c: In function 'main': +lsftp.c:181:17: warning: passing argument 1 of 'do_gnu_stuff' from incompatible pointer type [-Wincompatible-pointer-types] + 181 | do_gnu_stuff( argv ); /* Check for GNU thingies and act accordingly */ + | ^~~~ + | | + | char ** +In file included from commands.h:45, + from rl.h:33, + from lsftp.h:36, + from lsftp.c:31: +gnu_stuff.h:35:33: note: expected 'const char **' but argument is of type 'char **' + 35 | void do_gnu_stuff( const char** argv ); + | ~~~~~~~~~~~~~^~~~ sftp_c.c: In function 'sftp_get_file_init': -sftp_bind.c: In function 'lsftp_do_get': -sftp_bind.c:779:5: warning: pointer targets in passing argument 5 of 'sftp_get_file_init' differ in signedness [-Wpointer-sign] - 779 | tmp, strlen( tmp ), - | ^~~ - | | - | const char * -In file included from sftp_bind.h:61, - from sftp_bind.c:34: -sftp_c.h:280:21: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'const char *' - 280 | const uint8_t *name, - | ~~~~~~~~~~~~~~~^~~~ -sftp_bind.c:780:5: warning: pointer targets in passing argument 7 of 'sftp_get_file_init' differ in signedness [-Wpointer-sign] - 780 | local, strlen( local), - | ^~~~~ - | | - | const char * -In file included from sftp_bind.h:61, - from sftp_bind.c:34: -sftp_c.h:282:21: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'const char *' - 282 | const uint8_t *fname, - | ~~~~~~~~~~~~~~~^~~~~ sftp_c.c:960:23: warning: pointer targets in passing argument 1 of 'stat' differ in signedness [-Wpointer-sign] 960 | statret = stat( fname, &st ); | ^~~~~ @@ -1239,107 +1314,7 @@ sftp_c.c:1239:15: warning: unused parameter 'fnamelen' [-Wunused-parameter] 1239 | uint32_t fnamelen, | ~~~~~~~~~^~~~~~~~ -commands.c: In function 'com_lcd': -commands.c:1868:7: warning: variable 'ret' set but not used [-Wunused-but-set-variable] - 1868 | int ret; - | ^~~ -sftp_bind.c: In function 'lsftp_do_put': -sftp_bind.c:1390:5: warning: pointer targets in passing argument 5 of 'sftp_put_file_init' differ in signedness [-Wpointer-sign] - 1390 | tmp, strlen( tmp ), - | ^~~ - | | - | const char * -In file included from sftp_bind.h:61, - from sftp_bind.c:34: -sftp_c.h:320:21: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'const char *' - 320 | const uint8_t *name, - | ~~~~~~~~~~~~~~~^~~~ -sftp_bind.c:1391:5: warning: pointer targets in passing argument 7 of 'sftp_put_file_init' differ in signedness [-Wpointer-sign] - 1391 | local, strlen( local), - | ^~~~~ - | | - | const char * -In file included from sftp_bind.h:61, - from sftp_bind.c:34: -sftp_c.h:322:21: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'const char *' - 322 | const uint8_t *fname, - | ~~~~~~~~~~~~~~~^~~~~ -commands.c: In function 'handle_command': -commands.c:2144:29: warning: pointer targets in initialization of 'const char *' from 'const unsigned char *' differ in signedness [-Wpointer-sign] - 2144 | const char *entered_cmd = s; - | ^ -commands.c:2149:20: warning: pointer targets in passing argument 1 of 'lsftp_s_skip' differ in signedness [-Wpointer-sign] - 2149 | s = lsftp_s_skip(s," \n\t\r"); /* Skip any initial whitespace */ - | ^ - | | - | const unsigned char * -In file included from sftp_bind.h:63, - from commands.h:41, - from commands.c:31: -str_utils.h:42:38: note: expected 'const char *' but argument is of type 'const unsigned char *' - 42 | const char *lsftp_s_skip(const char *s, const char *sep); - | ~~~~~~~~~~~~^ -commands.c:2149:5: warning: pointer targets in assignment from 'const char *' to 'const unsigned char *' differ in signedness [-Wpointer-sign] - 2149 | s = lsftp_s_skip(s," \n\t\r"); /* Skip any initial whitespace */ - | ^ -sftp_bind.c: In function 'lsftp_do_ls': -sftp_bind.c:1529:10: warning: pointer targets in passing argument 5 of 'sftp_ls_init' differ in signedness [-Wpointer-sign] - 1529 | tmp, - | ^~~ - | | - | const char * -In file included from sftp_bind.h:61, - from sftp_bind.c:34: -sftp_c.h:403:22: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'const char *' - 403 | const uint8_t *dir, - | ~~~~~~~~~~~~~~~^~~ rl.c: In function 'lsftp_rl_completion': -sftp_bind.c: In function 'lsftp_handle_ls': -lsftp.c: In function 'lsftp_interactive_mainloop': -lsftp.c:142:23: warning: pointer targets in passing argument 1 of 'handle_command' differ in signedness [-Wpointer-sign] - 142 | handle_command( current_line ); - | ^~~~~~~~~~~~ - | | - | char * -In file included from rl.h:33, - from lsftp.h:36, - from lsftp.c:31: -commands.h:58:41: note: expected 'const unsigned char *' but argument is of type 'char *' - 58 | int handle_command(const unsigned char *s); - | ~~~~~~~~~~~~~~~~~~~~~^ -lsftp.c:78:11: warning: variable 'retval' set but not used [-Wunused-but-set-variable] - 78 | int retval; - | ^~~~~~ -commands.c:2158:25: warning: pointer targets in passing argument 1 of 'com_escape' differ in signedness [-Wpointer-sign] - 2158 | return com_escape( s+1, entered_cmd ); - | ~^~ - | | - | const unsigned char * -commands.c:352:24: note: expected 'const char *' but argument is of type 'const unsigned char *' - 352 | com_escape(const char *arg, const char *command UNUSED) - | ~~~~~~~~~~~~^~~ -commands.c:2161:27: warning: pointer targets in passing argument 1 of 'com_longhelp' differ in signedness [-Wpointer-sign] - 2161 | return com_longhelp( s+1, entered_cmd ); - | ~^~ - | | - | const unsigned char * -commands.c:244:26: note: expected 'const char *' but argument is of type 'const unsigned char *' - 244 | com_longhelp(const char *arg, const char *command UNUSED) - | ~~~~~~~~~~~~^~~ -commands.c:2165:22: warning: pointer targets in passing argument 1 of 'lsftp_s_strtok' differ in signedness [-Wpointer-sign] - 2165 | s = lsftp_s_strtok(s," \n\t\r", &tmp ); - | ^ - | | - | const unsigned char * -In file included from sftp_bind.h:63, - from commands.h:41, - from commands.c:31: -str_utils.h:39:40: note: expected 'const char *' but argument is of type 'const unsigned char *' - 39 | const char *lsftp_s_strtok(const char *s, const char* tok, - | ~~~~~~~~~~~~^ -commands.c:2165:5: warning: pointer targets in assignment from 'const char *' to 'const unsigned char *' differ in signedness [-Wpointer-sign] - 2165 | s = lsftp_s_strtok(s," \n\t\r", &tmp ); - | ^ rl.c:222:11: warning: passing argument 2 of 'rl_completion_matches' from incompatible pointer type [-Wincompatible-pointer-types] 222 | lsftp_rl_command_generator | ^~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -1402,41 +1377,94 @@ rl.c:457:36: warning: unused parameter 'text' [-Wunused-parameter] 457 | char* lsftp_rl_no_generator (char* text, int state) | ~~~~~~^~~~ -lsftp.c: In function 'lsftp_noninteractive_mainloop': -lsftp.c:167:22: warning: pointer targets in passing argument 1 of 'handle_command' differ in signedness [-Wpointer-sign] - 167 | handle_command( argv[startat++] ); /* Do it */ - | ~~~~^~~~~~~~~~~ +rl.c: In function 'lsftp_rl_history_fname': +rl.c:522:9: warning: unused variable 'username' [-Wunused-variable] + 522 | char* username; + | ^~~~~~~~ +commands.c: In function 'com_lcd': +commands.c:1868:7: warning: variable 'ret' set but not used [-Wunused-but-set-variable] + 1868 | int ret; + | ^~~ +sftp_bind.c: In function 'lsftp_open_connection': +sftp_bind.c:210:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] + 210 | cur_string = + | ^~~~~~~~~~ +sftp_bind.c:234:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] + 234 | cur_string = + | ^~~~~~~~~~ +commands.c: In function 'handle_command': +commands.c:2144:29: warning: pointer targets in initialization of 'const char *' from 'const unsigned char *' differ in signedness [-Wpointer-sign] + 2144 | const char *entered_cmd = s; + | ^ +commands.c:2149:20: warning: pointer targets in passing argument 1 of 'lsftp_s_skip' differ in signedness [-Wpointer-sign] + 2149 | s = lsftp_s_skip(s," \n\t\r"); /* Skip any initial whitespace */ + | ^ + | | + | const unsigned char * +In file included from sftp_bind.h:63, + from commands.h:41, + from commands.c:31: +str_utils.h:42:38: note: expected 'const char *' but argument is of type 'const unsigned char *' + 42 | const char *lsftp_s_skip(const char *s, const char *sep); + | ~~~~~~~~~~~~^ +sftp_bind.c: In function 'lsftp_callback': +sftp_bind.c:581:7: warning: variable 'retval' set but not used [-Wunused-but-set-variable] + 581 | int retval; + | ^~~~~~ +commands.c:2149:5: warning: pointer targets in assignment from 'const char *' to 'const unsigned char *' differ in signedness [-Wpointer-sign] + 2149 | s = lsftp_s_skip(s," \n\t\r"); /* Skip any initial whitespace */ + | ^ +commands.c:2158:25: warning: pointer targets in passing argument 1 of 'com_escape' differ in signedness [-Wpointer-sign] + 2158 | return com_escape( s+1, entered_cmd ); + | ~^~ + | | + | const unsigned char * +commands.c:352:24: note: expected 'const char *' but argument is of type 'const unsigned char *' + 352 | com_escape(const char *arg, const char *command UNUSED) + | ~~~~~~~~~~~~^~~ +commands.c:2161:27: warning: pointer targets in passing argument 1 of 'com_longhelp' differ in signedness [-Wpointer-sign] + 2161 | return com_longhelp( s+1, entered_cmd ); + | ~^~ + | | + | const unsigned char * +commands.c:244:26: note: expected 'const char *' but argument is of type 'const unsigned char *' + 244 | com_longhelp(const char *arg, const char *command UNUSED) + | ~~~~~~~~~~~~^~~ +commands.c:2165:22: warning: pointer targets in passing argument 1 of 'lsftp_s_strtok' differ in signedness [-Wpointer-sign] + 2165 | s = lsftp_s_strtok(s," \n\t\r", &tmp ); + | ^ | | - | char * -In file included from rl.h:33, - from lsftp.h:36, - from lsftp.c:31: -commands.h:58:41: note: expected 'const unsigned char *' but argument is of type 'char *' - 58 | int handle_command(const unsigned char *s); - | ~~~~~~~~~~~~~~~~~~~~~^ -sftp_bind.c:1690:46: warning: pointer targets in passing argument 2 of 'lsftp_concat' differ in signedness [-Wpointer-sign] - 1690 | prefixed_fname = lsftp_concat( prefix, fname ); - | ^~~~~ - | | - | uint8_t * {aka unsigned char *} -lsftp.c: In function 'main': -In file included from sftp_bind.h:60, + | const unsigned char * +In file included from sftp_bind.h:63, + from commands.h:41, + from commands.c:31: +str_utils.h:39:40: note: expected 'const char *' but argument is of type 'const unsigned char *' + 39 | const char *lsftp_s_strtok(const char *s, const char* tok, + | ~~~~~~~~~~~~^ +sftp_bind.c: In function 'lsftp_do_get': +sftp_bind.c:779:5: warning: pointer targets in passing argument 5 of 'sftp_get_file_init' differ in signedness [-Wpointer-sign] + 779 | tmp, strlen( tmp ), + | ^~~ + | | + | const char * +In file included from sftp_bind.h:61, from sftp_bind.c:34: -misc_fun.h:40:49: note: expected 'const char *' but argument is of type 'uint8_t *' {aka 'unsigned char *'} - 40 | char* lsftp_concat( const char* s1, const char* s2 ); - | ~~~~~~~~~~~~^~ -lsftp.c:181:17: warning: passing argument 1 of 'do_gnu_stuff' from incompatible pointer type [-Wincompatible-pointer-types] - 181 | do_gnu_stuff( argv ); /* Check for GNU thingies and act accordingly */ - | ^~~~ - | | - | char ** -In file included from commands.h:45, - from rl.h:33, - from lsftp.h:36, - from lsftp.c:31: -gnu_stuff.h:35:33: note: expected 'const char **' but argument is of type 'char **' - 35 | void do_gnu_stuff( const char** argv ); - | ~~~~~~~~~~~~~^~~~ +sftp_c.h:280:21: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'const char *' + 280 | const uint8_t *name, + | ~~~~~~~~~~~~~~~^~~~ +sftp_bind.c:780:5: warning: pointer targets in passing argument 7 of 'sftp_get_file_init' differ in signedness [-Wpointer-sign] + 780 | local, strlen( local), + | ^~~~~ + | | + | const char * +In file included from sftp_bind.h:61, + from sftp_bind.c:34: +sftp_c.h:282:21: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'const char *' + 282 | const uint8_t *fname, + | ~~~~~~~~~~~~~~~^~~~~ +commands.c:2165:5: warning: pointer targets in assignment from 'const char *' to 'const unsigned char *' differ in signedness [-Wpointer-sign] + 2165 | s = lsftp_s_strtok(s," \n\t\r", &tmp ); + | ^ commands.c:2184:22: warning: pointer targets in passing argument 1 of 'lsftp_s_skip' differ in signedness [-Wpointer-sign] 2184 | lsftp_s_skip(s," \n\t\r"), | ^ @@ -1448,6 +1476,49 @@ str_utils.h:42:38: note: expected 'const char *' but argument is of type 'const unsigned char *' 42 | const char *lsftp_s_skip(const char *s, const char *sep); | ~~~~~~~~~~~~^ +sftp_bind.c: In function 'lsftp_do_put': +sftp_bind.c:1390:5: warning: pointer targets in passing argument 5 of 'sftp_put_file_init' differ in signedness [-Wpointer-sign] + 1390 | tmp, strlen( tmp ), + | ^~~ + | | + | const char * +In file included from sftp_bind.h:61, + from sftp_bind.c:34: +sftp_c.h:320:21: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'const char *' + 320 | const uint8_t *name, + | ~~~~~~~~~~~~~~~^~~~ +sftp_bind.c:1391:5: warning: pointer targets in passing argument 7 of 'sftp_put_file_init' differ in signedness [-Wpointer-sign] + 1391 | local, strlen( local), + | ^~~~~ + | | + | const char * +In file included from sftp_bind.h:61, + from sftp_bind.c:34: +sftp_c.h:322:21: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'const char *' + 322 | const uint8_t *fname, + | ~~~~~~~~~~~~~~~^~~~~ +sftp_bind.c: In function 'lsftp_do_ls': +sftp_bind.c:1529:10: warning: pointer targets in passing argument 5 of 'sftp_ls_init' differ in signedness [-Wpointer-sign] + 1529 | tmp, + | ^~~ + | | + | const char * +In file included from sftp_bind.h:61, + from sftp_bind.c:34: +sftp_c.h:403:22: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'const char *' + 403 | const uint8_t *dir, + | ~~~~~~~~~~~~~~~^~~ +sftp_bind.c: In function 'lsftp_handle_ls': +sftp_bind.c:1690:46: warning: pointer targets in passing argument 2 of 'lsftp_concat' differ in signedness [-Wpointer-sign] + 1690 | prefixed_fname = lsftp_concat( prefix, fname ); + | ^~~~~ + | | + | uint8_t * {aka unsigned char *} +In file included from sftp_bind.h:60, + from sftp_bind.c:34: +misc_fun.h:40:49: note: expected 'const char *' but argument is of type 'uint8_t *' {aka 'unsigned char *'} + 40 | char* lsftp_concat( const char* s1, const char* s2 ); + | ~~~~~~~~~~~~^~ sftp_bind.c:1742:7: warning: pointer targets in passing argument 1 of 'lsftp_dc_glob_matches' differ in signedness [-Wpointer-sign] 1742 | fname, | ^~~~~ @@ -1468,10 +1539,6 @@ misc_fun.h:40:33: note: expected 'const char *' but argument is of type 'uint8_t *' {aka 'unsigned char *'} 40 | char* lsftp_concat( const char* s1, const char* s2 ); | ~~~~~~~~~~~~^~ -rl.c: In function 'lsftp_rl_history_fname': -rl.c:522:9: warning: unused variable 'username' [-Wunused-variable] - 522 | char* username; - | ^~~~~~~~ sftp_bind.c:1773:17: warning: pointer targets in passing argument 1 of 'strdup' differ in signedness [-Wpointer-sign] 1773 | tmp = strdup( fname ); | ^~~~~ @@ -1539,7 +1606,6 @@ sftp_c.h:183:21: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'const char *' 183 | const uint8_t *name, | ~~~~~~~~~~~~~~~^~~~ -gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DTRANSPORT_PROG='"/usr/bin/lshg"' -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wcast-align -c -o misc_fun.o misc_fun.c sftp_bind.c: In function 'lsftp_handle_realpath': sftp_bind.c:2245:26: warning: pointer targets in passing argument 1 of 'strdup' differ in signedness [-Wpointer-sign] 2245 | *destptr = strdup( fname ); /* Copy whatever name we have */ @@ -1619,7 +1685,6 @@ sftp_c.h:135:20: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'const char *' 135 | const uint8_t *targetname, | ~~~~~~~~~~~~~~~^~~~~~~~~~ -gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DTRANSPORT_PROG='"/usr/bin/lshg"' -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wcast-align -c -o buffer.o buffer.c sftp_bind.c: In function 'lsftp_do_mkdir': sftp_bind.c:2598:9: warning: pointer targets in passing argument 5 of 'sftp_mkdir_init' differ in signedness [-Wpointer-sign] 2598 | tmp, @@ -1653,6 +1718,8 @@ sftp_c.h:157:19: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'const char *' 157 | const uint8_t *name, | ~~~~~~~~~~~~~~~^~~~ +gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DTRANSPORT_PROG='"/usr/bin/lshg"' -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wcast-align -c -o misc_fun.o misc_fun.c +gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DTRANSPORT_PROG='"/usr/bin/lshg"' -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wcast-align -c -o buffer.o buffer.c misc_fun.c: In function 'mgetenv_init': misc_fun.c:61:27: warning: unused parameter 'envp' [-Wunused-parameter] 61 | void mgetenv_init( char** envp ) @@ -1710,11 +1777,11 @@ 95 | i2 = strlen( s2 ); | ^~~~~~~~~~~~ gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DTRANSPORT_PROG='"/usr/bin/lshg"' -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wcast-align -c -o io_input.o io_input.c +gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DTRANSPORT_PROG='"/usr/bin/lshg"' -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wcast-align -c -o io_output.o io_output.c io_input.c: In function 'sftp_read_packet': io_input.c:149:20: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 149 | while (bytesread < sizeof(buf)) | ^ -gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DTRANSPORT_PROG='"/usr/bin/lshg"' -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wcast-align -c -o io_output.o io_output.c gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DTRANSPORT_PROG='"/usr/bin/lshg"' -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wcast-align -c -o xmalloc.o xmalloc.c io_output.c: In function 'sftp_write_packet': io_output.c:196:17: warning: comparison of integer expressions of different signedness: 'int' and 'uint32_t' {aka 'unsigned int'} [-Wsign-compare] @@ -1723,34 +1790,7 @@ gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DTRANSPORT_PROG='"/usr/bin/lshg"' -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wcast-align -c -o werror.o werror.c gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DTRANSPORT_PROG='"/usr/bin/lshg"' -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wcast-align -c -o sftp-test-client.o sftp-test-client.c gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DTRANSPORT_PROG='"/usr/bin/lshg"' -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wcast-align -c -o client.o client.c -gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DTRANSPORT_PROG='"/usr/bin/lshg"' -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wcast-align -c -o dump-hex.o dump-hex.c -gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DTRANSPORT_PROG='"/usr/bin/lshg"' -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wcast-align -c -o sftp-server.o sftp-server.c -dump-hex.c: In function 'main': -dump-hex.c:189:33: warning: pointer targets in passing argument 2 of 'do_read' differ in signedness [-Wpointer-sign] - 189 | res = do_read(STDIN_FILENO, buf, left); - | ^~~ - | | - | unsigned char * -dump-hex.c:38:23: note: expected 'char *' but argument is of type 'unsigned char *' - 38 | do_read(int fd, char *data, int length) - | ~~~~~~^~~~ client.c: In function 'sftp_open': -dump-hex.c:201:48: warning: pointer targets in passing argument 4 of 'output_line' differ in signedness [-Wpointer-sign] - 201 | if (output_line(STDERR_FILENO, label, pos, buf, res) <= 0) - | ^~~ - | | - | unsigned char * -dump-hex.c:73:32: note: expected 'const char *' but argument is of type 'unsigned char *' - 73 | unsigned pos, const char *data, unsigned length) - | ~~~~~~~~~~~~^~~~ -dump-hex.c:208:33: warning: pointer targets in passing argument 2 of 'do_write' differ in signedness [-Wpointer-sign] - 208 | if (do_write(STDOUT_FILENO, buf, res) < 0) - | ^~~ - | | - | unsigned char * -dump-hex.c:50:30: note: expected 'const char *' but argument is of type 'unsigned char *' - 50 | do_write(int fd, const char *data, int length) - | ~~~~~~~~~~~~^~~~ client.c:110:41: warning: pointer targets in passing argument 3 of 'sftp_put_string' differ in signedness [-Wpointer-sign] 110 | sftp_put_string(ctx->o, strlen(name), name ); | ^~~~ @@ -1794,7 +1834,35 @@ buffer.h:108:72: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'const char *' 108 | sftp_put_string(struct sftp_output *o, uint32_t length, const uint8_t *data); | ~~~~~~~~~~~~~~~^~~~ +gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DTRANSPORT_PROG='"/usr/bin/lshg"' -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wcast-align -c -o dump-hex.o dump-hex.c +gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DTRANSPORT_PROG='"/usr/bin/lshg"' -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wcast-align -c -o sftp-server.o sftp-server.c gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DTRANSPORT_PROG='"/usr/bin/lshg"' -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wcast-align -c -o filemode.o filemode.c +dump-hex.c: In function 'main': +dump-hex.c:189:33: warning: pointer targets in passing argument 2 of 'do_read' differ in signedness [-Wpointer-sign] + 189 | res = do_read(STDIN_FILENO, buf, left); + | ^~~ + | | + | unsigned char * +dump-hex.c:38:23: note: expected 'char *' but argument is of type 'unsigned char *' + 38 | do_read(int fd, char *data, int length) + | ~~~~~~^~~~ +dump-hex.c:201:48: warning: pointer targets in passing argument 4 of 'output_line' differ in signedness [-Wpointer-sign] + 201 | if (output_line(STDERR_FILENO, label, pos, buf, res) <= 0) + | ^~~ + | | + | unsigned char * +dump-hex.c:73:32: note: expected 'const char *' but argument is of type 'unsigned char *' + 73 | unsigned pos, const char *data, unsigned length) + | ~~~~~~~~~~~~^~~~ +dump-hex.c:208:33: warning: pointer targets in passing argument 2 of 'do_write' differ in signedness [-Wpointer-sign] + 208 | if (do_write(STDOUT_FILENO, buf, res) < 0) + | ^~~ + | | + | unsigned char * +dump-hex.c:50:30: note: expected 'const char *' but argument is of type 'unsigned char *' + 50 | do_write(int fd, const char *data, int length) + | ~~~~~~~~~~~~^~~~ +gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DTRANSPORT_PROG='"/usr/bin/lshg"' -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wcast-align -c -o idcache.o idcache.c sftp-server.c: In function 'sftp_put_longname_mode': sftp-server.c:229:22: warning: pointer targets in passing argument 2 of 'filemodestring' differ in signedness [-Wpointer-sign] 229 | filemodestring(st, modes); @@ -1842,7 +1910,6 @@ buffer.h:108:72: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' 108 | sftp_put_string(struct sftp_output *o, uint32_t length, const uint8_t *data); | ~~~~~~~~~~~~~~~^~~~ -gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DTRANSPORT_PROG='"/usr/bin/lshg"' -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wcast-align -c -o idcache.o idcache.c sftp-server.c:447:54: warning: pointer targets in passing argument 3 of 'sftp_put_string' differ in signedness [-Wpointer-sign] 447 | sftp_put_string(ctx->o, strlen("End of file"), "End of file"); | ^~~~~~~~~~~~~ @@ -2110,7 +2177,6 @@ /usr/include/aarch64-linux-gnu/bits/fcntl2.h:41:19: note: expected 'const char *' but argument is of type 'const uint8_t *' {aka 'const unsigned char *'} 41 | open (const char *__path, int __oflag, ...) | ~~~~~~~~~~~~^~~~~~ -gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wcast-align -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o dump-hex dump-hex.o -lreadline -lreadline -ltermcap sftp-server.c: In function 'sftp_process_readlink': sftp-server.c:1242:23: warning: pointer targets in passing argument 1 of 'readlink' differ in signedness [-Wpointer-sign] 1242 | link_len = readlink(name, linktarget, path_max); @@ -2175,6 +2241,7 @@ /usr/include/unistd.h:802:53: note: expected 'const char *' but argument is of type 'const uint8_t *' {aka 'const unsigned char *'} 802 | extern int symlink (const char *__from, const char *__to) | ~~~~~~~~~~~~^~~~ +gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wcast-align -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o dump-hex dump-hex.o -lreadline -lreadline -ltermcap gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wcast-align -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o sftp-test-client sftp-test-client.o buffer.o io_input.o io_output.o xmalloc.o werror.o client.o -lreadline -lreadline -ltermcap gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wcast-align -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o sftp-server sftp-server.o buffer.o io_input.o io_output.o xmalloc.o werror.o filemode.o idcache.o -lreadline -lreadline -ltermcap gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wcast-align -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o lsftp commands.o lsftp.o rl.o sftp_c.o sftp_bind.o str_utils.o dc.o gnu_stuff.o misc_fun.o buffer.o io_input.o io_output.o xmalloc.o werror.o -lreadline -lreadline -ltermcap @@ -2198,16 +2265,6 @@ gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o tag.o tag.c gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o reduce.o reduce.c gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o verify.o verify.c -parse.c: In function 'spki_intern': -parse.c:60:22: warning: pointer targets in passing argument 1 of 'spki_gperf' differ in signedness [-Wpointer-sign] - 60 | = spki_gperf(i->sexp.atom, i->sexp.atom_length); - | ~~~~~~~^~~~~ - | | - | const uint8_t * {aka const unsigned char *} -In file included from parse.c:42: -spki-gperf.h:88:34: note: expected 'const char *' but argument is of type 'const uint8_t *' {aka 'const unsigned char *'} - 88 | spki_gperf (register const char *str, register unsigned int len) - | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from names.c:27: spki-type-names.h:7:8: warning: pointer targets in initialization of 'const uint8_t *' {aka 'const unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 7 | { 3, "acl" }, @@ -2317,6 +2374,16 @@ 33 | { 7, "version" }, | ^~~~~~~~~ spki-type-names.h:33:8: note: (near initialization for 'spki_type_names[27].name') +parse.c: In function 'spki_intern': +parse.c:60:22: warning: pointer targets in passing argument 1 of 'spki_gperf' differ in signedness [-Wpointer-sign] + 60 | = spki_gperf(i->sexp.atom, i->sexp.atom_length); + | ~~~~~~~^~~~~ + | | + | const uint8_t * {aka const unsigned char *} +In file included from parse.c:42: +spki-gperf.h:88:34: note: expected 'const char *' but argument is of type 'const uint8_t *' {aka 'const unsigned char *'} + 88 | spki_gperf (register const char *str, register unsigned int len) + | ~~~~~~~~~~~~~~~~~~~~~^~~ tag.c: In function 'spki_tag_release': tag.c:426:2: warning: this statement may fall through [-Wimplicit-fallthrough=] 426 | spki_string_release(ctx, realloc, self->upper); @@ -2346,13 +2413,6 @@ gcc -DHAVE_CONFIG_H -I. -I.. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o sign.o sign.c gcc -DHAVE_CONFIG_H -I. -I.. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o spki-delegate.o spki-delegate.c gcc -DHAVE_CONFIG_H -I. -I.. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o spki-reduce.o spki-reduce.c -misc.c: In function 'hash_file': -misc.c:67:30: warning: pointer targets in passing argument 3 of 'hash->update' differ in signedness [-Wpointer-sign] - 67 | hash->update(ctx, res, buffer); - | ^~~~~~ - | | - | char * -misc.c:67:30: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' spki-check-signature.c: In function 'main': spki-check-signature.c:116:66: warning: pointer targets in passing argument 3 of 'nettle_sexp_transport_iterator_first' differ in signedness [-Wpointer-sign] 116 | if (sexp_transport_iterator_first(&sexp, strlen(o.signature), o.signature) @@ -2377,6 +2437,13 @@ spki-check-signature.c:90:2: note: here 90 | case 'n': | ^~~~ +misc.c: In function 'hash_file': +misc.c:67:30: warning: pointer targets in passing argument 3 of 'hash->update' differ in signedness [-Wpointer-sign] + 67 | hash->update(ctx, res, buffer); + | ^~~~~~ + | | + | char * +misc.c:67:30: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' spki-reduce.c: In function 'process_acls': spki-reduce.c:115:48: warning: pointer targets in passing argument 3 of 'spki_transport_iterator_first' differ in signedness [-Wpointer-sign] 115 | && spki_transport_iterator_first(&i, length, data) @@ -2397,6 +2464,49 @@ ../parse.h:67:36: note: expected 'uint8_t *' {aka 'unsigned char *'} but argument is of type 'char *' 67 | unsigned length, uint8_t *expr); | ~~~~~~~~~^~~~ +spki-delegate.c: In function 'process_principal': +spki-delegate.c:157:55: warning: pointer targets in passing argument 3 of 'spki_transport_iterator_first' differ in signedness [-Wpointer-sign] + 157 | if (spki_transport_iterator_first(&i, strlen(expr), expr) + | ^~~~ + | | + | char * +In file included from spki-delegate.c:35: +../parse.h:67:36: note: expected 'uint8_t *' {aka 'unsigned char *'} but argument is of type 'char *' + 67 | unsigned length, uint8_t *expr); + | ~~~~~~~~~^~~~ +spki-delegate.c: In function 'process_sequence': +spki-delegate.c:177:52: warning: pointer targets in passing argument 3 of 'spki_transport_iterator_first' differ in signedness [-Wpointer-sign] + 177 | && spki_transport_iterator_first(&i, length, data)) + | ^~~~ + | | + | char * +In file included from spki-delegate.c:35: +../parse.h:67:36: note: expected 'uint8_t *' {aka 'unsigned char *'} but argument is of type 'char *' + 67 | unsigned length, uint8_t *expr); + | ~~~~~~~~~^~~~ +spki-delegate.c: In function 'process_tag': +spki-delegate.c:207:55: warning: pointer targets in passing argument 3 of 'spki_transport_iterator_first' differ in signedness [-Wpointer-sign] + 207 | if (spki_transport_iterator_first(&i, strlen(expr), expr) == SPKI_TYPE_TAG) + | ^~~~ + | | + | char * +In file included from spki-delegate.c:35: +../parse.h:67:36: note: expected 'uint8_t *' {aka 'unsigned char *'} but argument is of type 'char *' + 67 | unsigned length, uint8_t *expr); + | ~~~~~~~~~^~~~ +spki-delegate.c:213:12: warning: pointer targets in assignment from 'const uint8_t *' {aka 'const unsigned char *'} to 'const char *' differ in signedness [-Wpointer-sign] + 213 | && (tag = spki_parse_prevexpr(&i, start, &tag_length))) + | ^ +spki-delegate.c: In function 'main': +spki-delegate.c:301:60: warning: pointer targets in passing argument 3 of 'spki_transport_iterator_first' differ in signedness [-Wpointer-sign] + 301 | if (! (spki_transport_iterator_first(&i, key_length, key) + | ^~~ + | | + | char * +In file included from spki-delegate.c:35: +../parse.h:67:36: note: expected 'uint8_t *' {aka 'unsigned char *'} but argument is of type 'char *' + 67 | unsigned length, uint8_t *expr); + | ~~~~~~~~~^~~~ spki-reduce.c: In function 'main': spki-reduce.c:187:46: warning: pointer targets in passing argument 3 of 'write_file' differ in signedness [-Wpointer-sign] 187 | if (!write_file(stdout, buffer.size, buffer.contents)) @@ -2414,6 +2524,15 @@ spki-reduce.c:91:2: note: here 91 | case 'a': | ^~~~ +spki-delegate.c:319:24: warning: pointer targets in passing argument 3 of 'write_file' differ in signedness [-Wpointer-sign] + 319 | buffer.size, buffer.contents)) + | ~~~~~~^~~~~~~~~ + | | + | uint8_t * {aka unsigned char *} +In file included from spki-delegate.c:38: +misc.h:48:48: note: expected 'const char *' but argument is of type 'uint8_t *' {aka 'unsigned char *'} + 48 | write_file(FILE *f, unsigned size, const char *buffer); + | ~~~~~~~~~~~~^~~~~~ spki-make-signature.c: In function 'main': spki-make-signature.c:136:56: warning: pointer targets in passing argument 3 of 'spki_transport_iterator_first' differ in signedness [-Wpointer-sign] 136 | if (! (spki_transport_iterator_first(&i, key_length, key) @@ -2452,58 +2571,6 @@ spki-make-signature.c:101:2: note: here 101 | case 's': | ^~~~ -spki-delegate.c: In function 'process_principal': -spki-delegate.c:157:55: warning: pointer targets in passing argument 3 of 'spki_transport_iterator_first' differ in signedness [-Wpointer-sign] - 157 | if (spki_transport_iterator_first(&i, strlen(expr), expr) - | ^~~~ - | | - | char * -In file included from spki-delegate.c:35: -../parse.h:67:36: note: expected 'uint8_t *' {aka 'unsigned char *'} but argument is of type 'char *' - 67 | unsigned length, uint8_t *expr); - | ~~~~~~~~~^~~~ -spki-delegate.c: In function 'process_sequence': -spki-delegate.c:177:52: warning: pointer targets in passing argument 3 of 'spki_transport_iterator_first' differ in signedness [-Wpointer-sign] - 177 | && spki_transport_iterator_first(&i, length, data)) - | ^~~~ - | | - | char * -In file included from spki-delegate.c:35: -../parse.h:67:36: note: expected 'uint8_t *' {aka 'unsigned char *'} but argument is of type 'char *' - 67 | unsigned length, uint8_t *expr); - | ~~~~~~~~~^~~~ -spki-delegate.c: In function 'process_tag': -spki-delegate.c:207:55: warning: pointer targets in passing argument 3 of 'spki_transport_iterator_first' differ in signedness [-Wpointer-sign] - 207 | if (spki_transport_iterator_first(&i, strlen(expr), expr) == SPKI_TYPE_TAG) - | ^~~~ - | | - | char * -In file included from spki-delegate.c:35: -../parse.h:67:36: note: expected 'uint8_t *' {aka 'unsigned char *'} but argument is of type 'char *' - 67 | unsigned length, uint8_t *expr); - | ~~~~~~~~~^~~~ -spki-delegate.c:213:12: warning: pointer targets in assignment from 'const uint8_t *' {aka 'const unsigned char *'} to 'const char *' differ in signedness [-Wpointer-sign] - 213 | && (tag = spki_parse_prevexpr(&i, start, &tag_length))) - | ^ -spki-delegate.c: In function 'main': -spki-delegate.c:301:60: warning: pointer targets in passing argument 3 of 'spki_transport_iterator_first' differ in signedness [-Wpointer-sign] - 301 | if (! (spki_transport_iterator_first(&i, key_length, key) - | ^~~ - | | - | char * -In file included from spki-delegate.c:35: -../parse.h:67:36: note: expected 'uint8_t *' {aka 'unsigned char *'} but argument is of type 'char *' - 67 | unsigned length, uint8_t *expr); - | ~~~~~~~~~^~~~ -spki-delegate.c:319:24: warning: pointer targets in passing argument 3 of 'write_file' differ in signedness [-Wpointer-sign] - 319 | buffer.size, buffer.contents)) - | ~~~~~~^~~~~~~~~ - | | - | uint8_t * {aka unsigned char *} -In file included from spki-delegate.c:38: -misc.h:48:48: note: expected 'const char *' but argument is of type 'uint8_t *' {aka 'unsigned char *'} - 48 | write_file(FILE *f, unsigned size, const char *buffer); - | ~~~~~~~~~~~~^~~~~~ spki-delegate.c: In function 'parse_options': spki-delegate.c:114:4: warning: this statement may fall through [-Wimplicit-fallthrough=] 114 | die("spki-delegate --version not implemented\n"); @@ -2512,9 +2579,9 @@ 116 | case 'i': | ^~~~ gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o spki-check-signature spki-check-signature.o misc.o getopt.o getopt1.o ../libspki.a -lhogweed -lnettle -lgmp -gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o spki-reduce spki-reduce.o misc.o getopt.o getopt1.o ../libspki.a -lhogweed -lnettle -lgmp gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o spki-make-signature spki-make-signature.o sign.o misc.o getopt.o getopt1.o ../libspki.a -lhogweed -lnettle -lgmp gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o spki-delegate spki-delegate.o sign.o misc.o getopt.o getopt1.o ../libspki.a -lhogweed -lnettle -lgmp +gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o spki-reduce spki-reduce.o misc.o getopt.o getopt1.o ../libspki.a -lhogweed -lnettle -lgmp make[7]: Leaving directory '/build/lsh-utils-2.1/src/spki/tools' Making all in testsuite make[7]: Entering directory '/build/lsh-utils-2.1/src/spki/testsuite' @@ -2565,163 +2632,49 @@ ../certificate.h:221:45: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' 221 | unsigned key_length, const uint8_t *key); | ~~~~~~~~~~~~~~~^~~ -In file included from read-cert-test.c:1: -read-cert-test.c: In function 'test_main': -read-cert-test.c:23:12: warning: pointer targets in passing argument 4 of 'read_cert' differ in signedness [-Wpointer-sign] - 23 | LDATA("(4:cert(6:issuer(10:public-key2:k1))" - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | char * +In file included from read-acl-test.c:1: +read-acl-test.c: In function 'test_main': +read-acl-test.c:11:6: warning: pointer targets in passing argument 3 of 'read_acl' differ in signedness [-Wpointer-sign] + 11 | ("(3:acl(7:version1:\0)(5:entry" + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | char * testutils.h:30:35: note: in definition of macro 'LDATA' 30 | #define LDATA(x) (sizeof(x) - 1), x | ^ -read-cert-test.c:5:36: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' - 5 | unsigned length, const uint8_t *data) - | ~~~~~~~~~~~~~~~^~~~ -In file included from read-cert-test.c:1: -read-cert-test.c:30:36: warning: pointer targets in passing argument 3 of 'spki_principal_by_key' differ in signedness [-Wpointer-sign] - 30 | spki_principal_by_key(&db, LDATA("(10:public-key2:k1)"))); - | ^~~~~~~~~~~~~~~~~~~~~ - | | - | char * +testutils.h:17:35: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' + 17 | unsigned length, const uint8_t *data); + | ~~~~~~~~~~~~~~~^~~~ +read-acl-test.c:17:43: warning: pointer targets in passing argument 3 of 'spki_principal_by_key' differ in signedness [-Wpointer-sign] + 17 | ASSERT(spki_principal_by_key(&db, LDATA("k1"))); + | ^~~~ + | | + | char * testutils.h:27:30: note: in definition of macro 'ASSERT' 27 | #define ASSERT(x) do { if (!(x)) FAIL("ASSERT failure: " #x); } while(0) | ^ -read-cert-test.c:30:30: note: in expansion of macro 'LDATA' - 30 | spki_principal_by_key(&db, LDATA("(10:public-key2:k1)"))); - | ^~~~~ +read-acl-test.c:17:37: note: in expansion of macro 'LDATA' + 17 | ASSERT(spki_principal_by_key(&db, LDATA("k1"))); + | ^~~~~ In file included from testutils.h:5, - from read-cert-test.c:1: + from read-acl-test.c:1: ../certificate.h:221:45: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' 221 | unsigned key_length, const uint8_t *key); | ~~~~~~~~~~~~~~~^~~ -In file included from read-cert-test.c:1: -read-cert-test.c:32:36: warning: pointer targets in passing argument 3 of 'spki_principal_by_key' differ in signedness [-Wpointer-sign] - 32 | spki_principal_by_key(&db, LDATA("(10:public-key2:k2)"))); - | ^~~~~~~~~~~~~~~~~~~~~ - | | - | char * +In file included from read-acl-test.c:1: +read-acl-test.c:18:37: warning: pointer targets in passing argument 2 of 'spki_principal_by_md5' differ in signedness [-Wpointer-sign] + 18 | ASSERT(spki_principal_by_md5(&db, "xxxxxxxxxxxxxxxx")); + | ^~~~~~~~~~~~~~~~~~ + | | + | char * testutils.h:27:30: note: in definition of macro 'ASSERT' 27 | #define ASSERT(x) do { if (!(x)) FAIL("ASSERT failure: " #x); } while(0) | ^ -read-cert-test.c:32:30: note: in expansion of macro 'LDATA' - 32 | spki_principal_by_key(&db, LDATA("(10:public-key2:k2)"))); - | ^~~~~ -In file included from testutils.h:5, - from read-cert-test.c:1: -../certificate.h:221:45: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' - 221 | unsigned key_length, const uint8_t *key); - | ~~~~~~~~~~~~~~~^~~ -In file included from lookup-acl-test.c:1: -lookup-acl-test.c: In function 'test_main': -lookup-acl-test.c:17:6: warning: pointer targets in passing argument 3 of 'read_acl' differ in signedness [-Wpointer-sign] - 17 | ("(3:acl(5:entry(7:subject(10:public-key2:k1))" - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | char * -testutils.h:30:35: note: in definition of macro 'LDATA' - 30 | #define LDATA(x) (sizeof(x) - 1), x - | ^ -testutils.h:17:35: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' - 17 | unsigned length, const uint8_t *data); - | ~~~~~~~~~~~~~~~^~~~ -lookup-acl-test.c:22:41: warning: pointer targets in passing argument 3 of 'spki_principal_by_key' differ in signedness [-Wpointer-sign] - 22 | k1 = spki_principal_by_key(&db, LDATA("(10:public-key2:k1)")); - | ^~~~~~~~~~~~~~~~~~~~~ - | | - | char * -testutils.h:30:35: note: in definition of macro 'LDATA' - 30 | #define LDATA(x) (sizeof(x) - 1), x - | ^ -In file included from testutils.h:5, - from lookup-acl-test.c:1: -../certificate.h:221:45: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' - 221 | unsigned key_length, const uint8_t *key); - | ~~~~~~~~~~~~~~~^~~ -In file included from lookup-acl-test.c:1: -lookup-acl-test.c:25:41: warning: pointer targets in passing argument 3 of 'spki_principal_by_key' differ in signedness [-Wpointer-sign] - 25 | k2 = spki_principal_by_key(&db, LDATA("(10:public-key2:k2)")); - | ^~~~~~~~~~~~~~~~~~~~~ - | | - | char * -testutils.h:30:35: note: in definition of macro 'LDATA' - 30 | #define LDATA(x) (sizeof(x) - 1), x - | ^ -In file included from testutils.h:5, - from lookup-acl-test.c:1: -../certificate.h:221:45: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' - 221 | unsigned key_length, const uint8_t *key); - | ~~~~~~~~~~~~~~~^~~ -In file included from lookup-acl-test.c:1: -lookup-acl-test.c:30:41: warning: pointer targets in passing argument 3 of 'spki_principal_by_key' differ in signedness [-Wpointer-sign] - 30 | k3 = spki_principal_by_key(&db, LDATA("(10:public-key2:k3)")); - | ^~~~~~~~~~~~~~~~~~~~~ - | | - | char * -lookup-acl-test.c:30:35: note: in expansion of macro 'LDATA' - 30 | k3 = spki_principal_by_key(&db, LDATA("(10:public-key2:k3)")); - | ^~~~~ In file included from testutils.h:5, - from lookup-acl-test.c:1: -../certificate.h:221:45: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' - 221 | unsigned key_length, const uint8_t *key); - | ~~~~~~~~~~~~~~~^~~ -In file included from lookup-acl-test.c:1: -lookup-acl-test.c:45:24: warning: pointer targets in passing argument 2 of 'make_tag' differ in signedness [-Wpointer-sign] - 45 | tag = make_tag(LDATA("(4:http)")); - | ^~~~~~~~~~ - | | - | char * -testutils.h:30:35: note: in definition of macro 'LDATA' - 30 | #define LDATA(x) (sizeof(x) - 1), x - | ^ -testutils.h:20:42: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' - 20 | make_tag(unsigned length, const uint8_t *expr); - | ~~~~~~~~~~~~~~~^~~~ -lookup-acl-test.c:52:24: warning: pointer targets in passing argument 2 of 'make_tag' differ in signedness [-Wpointer-sign] - 52 | tag = make_tag(LDATA("(3:ftp)")); - | ^~~~~~~~~ - | | - | char * -testutils.h:30:35: note: in definition of macro 'LDATA' - 30 | #define LDATA(x) (sizeof(x) - 1), x - | ^ -testutils.h:20:42: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' - 20 | make_tag(unsigned length, const uint8_t *expr); - | ~~~~~~~~~~~~~~~^~~~ -lookup-acl-test.c:57:24: warning: pointer targets in passing argument 2 of 'make_tag' differ in signedness [-Wpointer-sign] - 57 | tag = make_tag(LDATA("(3:ftp2:h5)")); - | ^~~~~~~~~~~~~ - | | - | char * -testutils.h:30:35: note: in definition of macro 'LDATA' - 30 | #define LDATA(x) (sizeof(x) - 1), x - | ^ -testutils.h:20:42: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' - 20 | make_tag(unsigned length, const uint8_t *expr); - | ~~~~~~~~~~~~~~~^~~~ -lookup-acl-test.c:62:24: warning: pointer targets in passing argument 2 of 'make_tag' differ in signedness [-Wpointer-sign] - 62 | tag = make_tag(LDATA("(3:ftp2:h1)")); - | ^~~~~~~~~~~~~ - | | - | char * -testutils.h:30:35: note: in definition of macro 'LDATA' - 30 | #define LDATA(x) (sizeof(x) - 1), x - | ^ -testutils.h:20:42: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' - 20 | make_tag(unsigned length, const uint8_t *expr); - | ~~~~~~~~~~~~~~~^~~~ -lookup-acl-test.c:72:24: warning: pointer targets in passing argument 2 of 'make_tag' differ in signedness [-Wpointer-sign] - 72 | tag = make_tag(LDATA("(3:ftp2:h2)")); - | ^~~~~~~~~~~~~ - | | - | char * -testutils.h:30:35: note: in definition of macro 'LDATA' - 30 | #define LDATA(x) (sizeof(x) - 1), x - | ^ -testutils.h:20:42: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' - 20 | make_tag(unsigned length, const uint8_t *expr); - | ~~~~~~~~~~~~~~~^~~~ + from read-acl-test.c:1: +../certificate.h:224:62: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' + 224 | spki_principal_by_md5(struct spki_acl_db *db, const uint8_t *digest); + | ~~~~~~~~~~~~~~~^~~~~~ In file included from tag-test.c:1: tag-test.c: In function 'test_main': tag-test.c:25:19: warning: pointer targets in passing argument 2 of 'includes' differ in signedness [-Wpointer-sign] @@ -2777,6 +2730,60 @@ tag-test.c:4:43: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' 4 | includes(unsigned alength, const uint8_t *adata, | ~~~~~~~~~~~~~~~^~~~~ +In file included from lookup-acl-test.c:1: +lookup-acl-test.c: In function 'test_main': +lookup-acl-test.c:17:6: warning: pointer targets in passing argument 3 of 'read_acl' differ in signedness [-Wpointer-sign] + 17 | ("(3:acl(5:entry(7:subject(10:public-key2:k1))" + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | char * +testutils.h:30:35: note: in definition of macro 'LDATA' + 30 | #define LDATA(x) (sizeof(x) - 1), x + | ^ +testutils.h:17:35: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' + 17 | unsigned length, const uint8_t *data); + | ~~~~~~~~~~~~~~~^~~~ +lookup-acl-test.c:22:41: warning: pointer targets in passing argument 3 of 'spki_principal_by_key' differ in signedness [-Wpointer-sign] + 22 | k1 = spki_principal_by_key(&db, LDATA("(10:public-key2:k1)")); + | ^~~~~~~~~~~~~~~~~~~~~ + | | + | char * +testutils.h:30:35: note: in definition of macro 'LDATA' + 30 | #define LDATA(x) (sizeof(x) - 1), x + | ^ +In file included from testutils.h:5, + from lookup-acl-test.c:1: +../certificate.h:221:45: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' + 221 | unsigned key_length, const uint8_t *key); + | ~~~~~~~~~~~~~~~^~~ +In file included from lookup-acl-test.c:1: +lookup-acl-test.c:25:41: warning: pointer targets in passing argument 3 of 'spki_principal_by_key' differ in signedness [-Wpointer-sign] + 25 | k2 = spki_principal_by_key(&db, LDATA("(10:public-key2:k2)")); + | ^~~~~~~~~~~~~~~~~~~~~ + | | + | char * +testutils.h:30:35: note: in definition of macro 'LDATA' + 30 | #define LDATA(x) (sizeof(x) - 1), x + | ^ +In file included from testutils.h:5, + from lookup-acl-test.c:1: +../certificate.h:221:45: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' + 221 | unsigned key_length, const uint8_t *key); + | ~~~~~~~~~~~~~~~^~~ +In file included from lookup-acl-test.c:1: +lookup-acl-test.c:30:41: warning: pointer targets in passing argument 3 of 'spki_principal_by_key' differ in signedness [-Wpointer-sign] + 30 | k3 = spki_principal_by_key(&db, LDATA("(10:public-key2:k3)")); + | ^~~~~~~~~~~~~~~~~~~~~ + | | + | char * +lookup-acl-test.c:30:35: note: in expansion of macro 'LDATA' + 30 | k3 = spki_principal_by_key(&db, LDATA("(10:public-key2:k3)")); + | ^~~~~ +In file included from testutils.h:5, + from lookup-acl-test.c:1: +../certificate.h:221:45: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' + 221 | unsigned key_length, const uint8_t *key); + | ~~~~~~~~~~~~~~~^~~ In file included from tag-test.c:1: tag-test.c:29:6: warning: pointer targets in passing argument 4 of 'includes' differ in signedness [-Wpointer-sign] 29 | "(4:http18:ftp.lysator.liu.se)")); @@ -3227,6 +3234,62 @@ tag-test.c:5:36: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' 5 | unsigned blength, const uint8_t *bdata) | ~~~~~~~~~~~~~~~^~~~~ +In file included from lookup-acl-test.c:1: +lookup-acl-test.c:45:24: warning: pointer targets in passing argument 2 of 'make_tag' differ in signedness [-Wpointer-sign] + 45 | tag = make_tag(LDATA("(4:http)")); + | ^~~~~~~~~~ + | | + | char * +testutils.h:30:35: note: in definition of macro 'LDATA' + 30 | #define LDATA(x) (sizeof(x) - 1), x + | ^ +testutils.h:20:42: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' + 20 | make_tag(unsigned length, const uint8_t *expr); + | ~~~~~~~~~~~~~~~^~~~ +lookup-acl-test.c:52:24: warning: pointer targets in passing argument 2 of 'make_tag' differ in signedness [-Wpointer-sign] + 52 | tag = make_tag(LDATA("(3:ftp)")); + | ^~~~~~~~~ + | | + | char * +testutils.h:30:35: note: in definition of macro 'LDATA' + 30 | #define LDATA(x) (sizeof(x) - 1), x + | ^ +testutils.h:20:42: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' + 20 | make_tag(unsigned length, const uint8_t *expr); + | ~~~~~~~~~~~~~~~^~~~ +lookup-acl-test.c:57:24: warning: pointer targets in passing argument 2 of 'make_tag' differ in signedness [-Wpointer-sign] + 57 | tag = make_tag(LDATA("(3:ftp2:h5)")); + | ^~~~~~~~~~~~~ + | | + | char * +testutils.h:30:35: note: in definition of macro 'LDATA' + 30 | #define LDATA(x) (sizeof(x) - 1), x + | ^ +testutils.h:20:42: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' + 20 | make_tag(unsigned length, const uint8_t *expr); + | ~~~~~~~~~~~~~~~^~~~ +lookup-acl-test.c:62:24: warning: pointer targets in passing argument 2 of 'make_tag' differ in signedness [-Wpointer-sign] + 62 | tag = make_tag(LDATA("(3:ftp2:h1)")); + | ^~~~~~~~~~~~~ + | | + | char * +testutils.h:30:35: note: in definition of macro 'LDATA' + 30 | #define LDATA(x) (sizeof(x) - 1), x + | ^ +testutils.h:20:42: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' + 20 | make_tag(unsigned length, const uint8_t *expr); + | ~~~~~~~~~~~~~~~^~~~ +lookup-acl-test.c:72:24: warning: pointer targets in passing argument 2 of 'make_tag' differ in signedness [-Wpointer-sign] + 72 | tag = make_tag(LDATA("(3:ftp2:h2)")); + | ^~~~~~~~~~~~~ + | | + | char * +testutils.h:30:35: note: in definition of macro 'LDATA' + 30 | #define LDATA(x) (sizeof(x) - 1), x + | ^ +testutils.h:20:42: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' + 20 | make_tag(unsigned length, const uint8_t *expr); + | ~~~~~~~~~~~~~~~^~~~ In file included from tag-test.c:1: tag-test.c:59:20: warning: pointer targets in passing argument 2 of 'includes' differ in signedness [-Wpointer-sign] 59 | ASSERT(!INCLUDES("(1:*3:set(3:foo)(3:bar))", @@ -3299,60 +3362,64 @@ tag-test.c:5:36: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' 5 | unsigned blength, const uint8_t *bdata) | ~~~~~~~~~~~~~~~^~~~~ -In file included from read-acl-test.c:1: -read-acl-test.c: In function 'test_main': -read-acl-test.c:11:6: warning: pointer targets in passing argument 3 of 'read_acl' differ in signedness [-Wpointer-sign] - 11 | ("(3:acl(7:version1:\0)(5:entry" - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | char * +In file included from read-cert-test.c:1: +read-cert-test.c: In function 'test_main': +read-cert-test.c:23:12: warning: pointer targets in passing argument 4 of 'read_cert' differ in signedness [-Wpointer-sign] + 23 | LDATA("(4:cert(6:issuer(10:public-key2:k1))" + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | char * testutils.h:30:35: note: in definition of macro 'LDATA' 30 | #define LDATA(x) (sizeof(x) - 1), x | ^ -testutils.h:17:35: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' - 17 | unsigned length, const uint8_t *data); - | ~~~~~~~~~~~~~~~^~~~ -read-acl-test.c:17:43: warning: pointer targets in passing argument 3 of 'spki_principal_by_key' differ in signedness [-Wpointer-sign] - 17 | ASSERT(spki_principal_by_key(&db, LDATA("k1"))); - | ^~~~ - | | - | char * +read-cert-test.c:5:36: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' + 5 | unsigned length, const uint8_t *data) + | ~~~~~~~~~~~~~~~^~~~ +In file included from read-cert-test.c:1: +read-cert-test.c:30:36: warning: pointer targets in passing argument 3 of 'spki_principal_by_key' differ in signedness [-Wpointer-sign] + 30 | spki_principal_by_key(&db, LDATA("(10:public-key2:k1)"))); + | ^~~~~~~~~~~~~~~~~~~~~ + | | + | char * testutils.h:27:30: note: in definition of macro 'ASSERT' 27 | #define ASSERT(x) do { if (!(x)) FAIL("ASSERT failure: " #x); } while(0) | ^ -read-acl-test.c:17:37: note: in expansion of macro 'LDATA' - 17 | ASSERT(spki_principal_by_key(&db, LDATA("k1"))); - | ^~~~~ +read-cert-test.c:30:30: note: in expansion of macro 'LDATA' + 30 | spki_principal_by_key(&db, LDATA("(10:public-key2:k1)"))); + | ^~~~~ In file included from testutils.h:5, - from read-acl-test.c:1: + from read-cert-test.c:1: ../certificate.h:221:45: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' 221 | unsigned key_length, const uint8_t *key); | ~~~~~~~~~~~~~~~^~~ -In file included from read-acl-test.c:1: -read-acl-test.c:18:37: warning: pointer targets in passing argument 2 of 'spki_principal_by_md5' differ in signedness [-Wpointer-sign] - 18 | ASSERT(spki_principal_by_md5(&db, "xxxxxxxxxxxxxxxx")); - | ^~~~~~~~~~~~~~~~~~ - | | - | char * +cdsa-reduce-test.c: In function 'test_main': +In file included from read-cert-test.c:1: +read-cert-test.c:32:36: warning: pointer targets in passing argument 3 of 'spki_principal_by_key' differ in signedness [-Wpointer-sign] + 32 | spki_principal_by_key(&db, LDATA("(10:public-key2:k2)"))); + | ^~~~~~~~~~~~~~~~~~~~~ + | | + | char * testutils.h:27:30: note: in definition of macro 'ASSERT' 27 | #define ASSERT(x) do { if (!(x)) FAIL("ASSERT failure: " #x); } while(0) | ^ +read-cert-test.c:32:30: note: in expansion of macro 'LDATA' + 32 | spki_principal_by_key(&db, LDATA("(10:public-key2:k2)"))); + | ^~~~~ In file included from testutils.h:5, - from read-acl-test.c:1: -../certificate.h:224:62: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' - 224 | spki_principal_by_md5(struct spki_acl_db *db, const uint8_t *digest); - | ~~~~~~~~~~~~~~~^~~~~~ -cdsa-reduce-test.c: In function 'test_main': + from read-cert-test.c:1: +../certificate.h:221:45: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' + 221 | unsigned key_length, const uint8_t *key); + | ~~~~~~~~~~~~~~~^~~ cdsa-reduce-test.c:140:7: warning: pointer targets in assignment from 'char *' to 'uint8_t *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] 140 | data = read_file(srcdir, "cdsa-cases/", i, ".in", | ^ -gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o read-cert-test read-cert-test.o testutils.o ../libspki.a -lhogweed -lnettle -lgmp gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o principal-test principal-test.o testutils.o ../libspki.a -lhogweed -lnettle -lgmp gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o date-test date-test.o testutils.o ../libspki.a -lhogweed -lnettle -lgmp gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o read-acl-test read-acl-test.o testutils.o ../libspki.a -lhogweed -lnettle -lgmp +gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o read-cert-test read-cert-test.o testutils.o ../libspki.a -lhogweed -lnettle -lgmp gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o lookup-acl-test lookup-acl-test.o testutils.o ../libspki.a -lhogweed -lnettle -lgmp -gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o cdsa-reduce-test cdsa-reduce-test.o testutils.o ../libspki.a -lhogweed -lnettle -lgmp gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o tag-test tag-test.o testutils.o ../libspki.a -lhogweed -lnettle -lgmp +gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o cdsa-reduce-test cdsa-reduce-test.o testutils.o ../libspki.a -lhogweed -lnettle -lgmp make check to build testprograms. make[7]: Leaving directory '/build/lsh-utils-2.1/src/spki/testsuite' make[6]: Leaving directory '/build/lsh-utils-2.1/src/spki' @@ -3367,7 +3434,6 @@ gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o atoms.o atoms.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o channel.o channel.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o channel_commands.o channel_commands.c -gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o channel_forward.o channel_forward.c In file included from atoms.c:45: atoms_table.c:5:5: warning: pointer targets in initialization of 'const uint8_t *' {aka 'const unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 5 | { { "UNKNOWN", 7 }, {"none", 4}, @@ -3801,6 +3867,7 @@ 111 | {"ssh-ring1", 9}, | ^~~~~~~~~~~ atoms_table.c:111:4: note: (near initialization for 'atom_table[107].name') +gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o channel_forward.o channel_forward.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o charset.o charset.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o client.o client.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o client_escape.o client_escape.c @@ -3819,7 +3886,6 @@ parse.h:84:47: note: expected 'int *' but argument is of type 'uint32_t *' {aka 'unsigned int *'} 84 | parse_atom(struct simple_buffer *buffer, int *result); | ~~~~~^~~~~~ -gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o client_session.o client_session.c client.c: In function 'rebuild_command_line': client.c:846:43: warning: pointer targets in passing argument 4 of 'lsh_string_write' differ in signedness [-Wpointer-sign] 846 | lsh_string_write(r, 0, alengths[0], argv[0]); @@ -3839,6 +3905,7 @@ lsh_string.h:110:19: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' 110 | const uint8_t *data); | ~~~~~~~~~~~~~~~^~~~ +gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o client_session.o client_session.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o client_userauth.o client_userauth.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o client_x11.o client_x11.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o combinators.o combinators.c @@ -3914,9 +3981,6 @@ gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o dh_exchange.o dh_exchange.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o dsa.o dsa.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o exception.o exception.c -gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o format.o format.c -gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o gc.o gc.c -gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o gateway.o gateway.c dsa.c: In function 'do_dsa_verify': dsa.c:138:30: warning: pointer targets in initialization of 'const uint8_t *' {aka 'const unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 138 | const uint8_t *names[2] = { "r", "s" }; @@ -3935,6 +3999,24 @@ /usr/include/nettle/sexp.h:152:27: note: expected 'const char * const*' but argument is of type 'const uint8_t **' {aka 'const unsigned char **'} 152 | const char * const *keys, | ~~~~~~~~~~~~~~~~~~~~^~~~ +gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o format.o format.c +gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o gc.o gc.c +gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o gateway.o gateway.c +gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o gateway_channel.o gateway_channel.c +format.c: In function 'ssh_vformat_write': +format.c:362:13: warning: pointer targets in assignment from 'const char *' to 'const uint8_t *' {aka 'const unsigned char *'} differ in signedness [-Wpointer-sign] + 362 | data = va_arg(args, const char *); + | ^ +format.c:363:22: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] + 363 | size = strlen(data); + | ^~~~ + | | + | const uint8_t * {aka const unsigned char *} +In file included from format.c:29: +/usr/include/string.h:385:35: note: expected 'const char *' but argument is of type 'const uint8_t *' {aka 'const unsigned char *'} + 385 | extern size_t strlen (const char *__s) + | ~~~~~~~~~~~~^~~ +gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o gateway_commands.o gateway_commands.c gateway.c: In function 'make_gateway_address': gateway.c:92:20: warning: pointer targets in passing argument 1 of 'check_string' differ in signedness [-Wpointer-sign] 92 | if (check_string(local_user) @@ -3960,26 +4042,12 @@ gateway.c:51:48: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'const char *' 51 | check_string_l(unsigned length, const uint8_t *s) | ~~~~~~~~~~~~~~~^ -format.c: In function 'ssh_vformat_write': -format.c:362:13: warning: pointer targets in assignment from 'const char *' to 'const uint8_t *' {aka 'const unsigned char *'} differ in signedness [-Wpointer-sign] - 362 | data = va_arg(args, const char *); - | ^ -format.c:363:22: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] - 363 | size = strlen(data); - | ^~~~ - | | - | const uint8_t * {aka const unsigned char *} -In file included from format.c:29: -/usr/include/string.h:385:35: note: expected 'const char *' but argument is of type 'const uint8_t *' {aka 'const unsigned char *'} - 385 | extern size_t strlen (const char *__s) - | ~~~~~~~~~~~~^~~ -gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o gateway_channel.o gateway_channel.c -gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o gateway_commands.o gateway_commands.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o handshake.o handshake.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o interact.o interact.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o io.o io.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o io_commands.o io_commands.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o keyexchange.o keyexchange.c +gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o list.o list.c io.c: In function 'do_buffered_read': io.c:490:2: warning: this statement may fall through [-Wimplicit-fallthrough=] 490 | werror("Unexpected EPIPE from read.\n"); @@ -3987,8 +4055,8 @@ io.c:491:7: note: here 491 | default: | ^~~~~~~ -gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o list.o list.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o lookup_verifier.o lookup_verifier.c +gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o lock_file.o lock_file.c In file included from list.c:35: list.c: In function 'lsh_list_alloc': xalloc.h:95:30: warning: statement with no effect [-Wunused-value] @@ -3997,7 +4065,6 @@ list.c:55:3: note: in expansion of macro 'CHECK_SUBTYPE' 55 | CHECK_SUBTYPE(list_header, list); | ^~~~~~~~~~~~~ -gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o lock_file.o lock_file.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o lsh_string.o lsh_string.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o parse.o parse.c lsh_string.c: In function 'lsh_get_cstring': @@ -4096,10 +4163,6 @@ gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o read_packet.o read_packet.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o reaper.o reaper.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o resource.o resource.c -gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o rsa.o rsa.c -gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o server.o server.c -gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o server_authorization.o server_authorization.c -gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o server_keyexchange.o server_keyexchange.c read_packet.c: In function 'do_read_packet': read_packet.c:262:24: warning: this statement may fall through [-Wimplicit-fallthrough=] 262 | closure->state = WAIT_CONTENTS; @@ -4113,6 +4176,10 @@ read_packet.c:305:7: note: here 305 | case WAIT_MAC: | ^~~~ +gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o rsa.o rsa.c +gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o server.o server.c +gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o server_authorization.o server_authorization.c +gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o server_keyexchange.o server_keyexchange.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o server_password.o server_password.c server_keyexchange.c: In function 'do_handle_srp_init': server_keyexchange.c:297:29: warning: variable 'e' set but not used [-Wunused-but-set-variable] @@ -4127,10 +4194,6 @@ gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o socks.o socks.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o spki.o spki.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o srp_exchange.o srp_exchange.c -srp_exchange.c: In function 'make_srp_entry': -srp_exchange.c:72:32: warning: variable 'salt' set but not used [-Wunused-but-set-variable] - 72 | const struct lsh_string *salt; - | ^~~~ gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o string_buffer.o string_buffer.c spki.c: In function 'make_ssh_hostkey_tag': spki.c:76:22: warning: pointer targets in initialization of 'const uint8_t *' {aka 'const unsigned char *'} from 'const char *' differ in signedness [-Wpointer-sign] @@ -4181,6 +4244,10 @@ /usr/include/nettle/sexp.h:152:27: note: expected 'const char * const*' but argument is of type 'const uint8_t **' {aka 'const unsigned char **'} 152 | const char * const *keys, | ~~~~~~~~~~~~~~~~~~~~^~~~ +srp_exchange.c: In function 'make_srp_entry': +srp_exchange.c:72:32: warning: variable 'salt' set but not used [-Wunused-but-set-variable] + 72 | const struct lsh_string *salt; + | ^~~~ gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o suspend.o suspend.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o tcpforward.o tcpforward.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o tcpforward_commands.o tcpforward_commands.c @@ -4191,7 +4258,6 @@ gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o unix_random.o unix_random.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o unix_user.o unix_user.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o userauth.o userauth.c -gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o werror.o werror.c unix_interact.c: In function 'unix_get_attributes': unix_interact.c:392:49: warning: comparison of constant '0' with boolean expression is always false [-Wbool-compare] 392 | if (!tty_getattr(self->tty_fd, &res->ios) < 0) @@ -4201,8 +4267,27 @@ 392 | if (!tty_getattr(self->tty_fd, &res->ios) < 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ( ) +unix_user.c: In function 'do_verify_password': +unix_user.c:255:11: warning: pointer targets in assignment from 'const char *' to 'const uint8_t *' {aka 'const unsigned char *'} differ in signedness [-Wpointer-sign] + 255 | cpasswd = lsh_get_cstring(password); + | ^ +unix_user.c:281:24: warning: pointer targets in initialization of 'const char *' from 'const uint8_t *' {aka 'const unsigned char *'} differ in signedness [-Wpointer-sign] + 281 | const char *salt = lsh_string_data(user->passwd); + | ^~~~~~~~~~~~~~~ +unix_user.c:286:22: warning: pointer targets in passing argument 1 of 'crypt' differ in signedness [-Wpointer-sign] + 286 | if (strcmp(crypt(cpasswd, salt), + | ^~~~~~~ + | | + | const uint8_t * {aka const unsigned char *} +In file included from unix_user.c:38: +/usr/include/unistd.h:1124:33: note: expected 'const char *' but argument is of type 'const uint8_t *' {aka 'const unsigned char *'} + 1124 | extern char *crypt (const char *__key, const char *__salt) + | ~~~~~~~~~~~~^~~~~ +gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o werror.o werror.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o write_buffer.o write_buffer.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o write_packet.o write_packet.c +gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o xalloc.o xalloc.c +gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o xauth.o xauth.c werror.c: In function 'werror_cstring': werror.c:294:51: warning: pointer targets in passing argument 2 of 'werror_write' differ in signedness [-Wpointer-sign] 294 | werror_cstring(char *s) { werror_write(strlen(s), s); } @@ -4274,24 +4359,6 @@ werror.c:617:1: warning: 'werror_format' defined but not used [-Wunused-function] 617 | werror_format(const char *format, ...) | ^~~~~~~~~~~~~ -unix_user.c: In function 'do_verify_password': -unix_user.c:255:11: warning: pointer targets in assignment from 'const char *' to 'const uint8_t *' {aka 'const unsigned char *'} differ in signedness [-Wpointer-sign] - 255 | cpasswd = lsh_get_cstring(password); - | ^ -unix_user.c:281:24: warning: pointer targets in initialization of 'const char *' from 'const uint8_t *' {aka 'const unsigned char *'} differ in signedness [-Wpointer-sign] - 281 | const char *salt = lsh_string_data(user->passwd); - | ^~~~~~~~~~~~~~~ -unix_user.c:286:22: warning: pointer targets in passing argument 1 of 'crypt' differ in signedness [-Wpointer-sign] - 286 | if (strcmp(crypt(cpasswd, salt), - | ^~~~~~~ - | | - | const uint8_t * {aka const unsigned char *} -In file included from unix_user.c:38: -/usr/include/unistd.h:1124:33: note: expected 'const char *' but argument is of type 'const uint8_t *' {aka 'const unsigned char *'} - 1124 | extern char *crypt (const char *__key, const char *__salt) - | ~~~~~~~~~~~~^~~~~ -gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o xalloc.o xalloc.c -gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o xauth.o xauth.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o zlib.o zlib.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o lshg.o lshg.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o dummy.o dummy.c @@ -4303,7 +4370,6 @@ gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o lsh-make-seed.o lsh-make-seed.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o srp-gen.o srp-gen.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o lshd.o lshd.c -gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o lsh-execuv.o lsh-execuv.c lsh-make-seed.c: In function 'get_dev_random': lsh-make-seed.c:312:51: warning: pointer targets in passing argument 5 of 'nettle_yarrow256_update' differ in signedness [-Wpointer-sign] 312 | yarrow256_update(ctx, source, res * 4, res, buffer); @@ -4321,11 +4387,12 @@ lsh-make-seed.c:363:57: warning: unused parameter 'source' [-Wunused-parameter] 363 | get_dev_mem(struct yarrow256_ctx *ctx, enum source_type source) | ~~~~~~~~~~~~~~~~~^~~~~~ -gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o lsh-krb-checkpw.o lsh-krb-checkpw.c lsh-make-seed.c: In function 'get_system': lsh-make-seed.c:1037:16: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 1037 | if (res > linux_proc_sources[i].limit) | ^ +gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o lsh-execuv.o lsh-execuv.c +gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o lsh-krb-checkpw.o lsh-krb-checkpw.c gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o lsh-pam-checkpw.o lsh-pam-checkpw.c lsh-krb-checkpw.c: In function 'main': lsh-krb-checkpw.c:98:15: warning: unused variable 'ccache' [-Wunused-variable] @@ -4336,15 +4403,15 @@ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 136 | NULL, NULL, NULL)) { | ~~~~~~~~~~~~~~~~~ +lshd.c: In function 'main_argp_parser': +lshd.c:699:10: warning: 'host' may be used uninitialized in this function [-Wmaybe-uninitialized] + 699 | : io_resolv_address(host, "ssh", 22, &self->local))) + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rm -f liblsh.a ar cru liblsh.a abstract_io.o abstract_crypto.o algorithms.o alist.o atoms.o channel.o channel_commands.o channel_forward.o charset.o client.o client_escape.o client_keyexchange.o client_pty.o client_session.o client_userauth.o client_x11.o combinators.o command.o compress.o parse_config.o connection.o connection_commands.o crypto.o daemon.o debug.o dh_exchange.o dsa.o exception.o format.o gc.o gateway.o gateway_channel.o gateway_commands.o handshake.o interact.o io.o io_commands.o keyexchange.o list.o lookup_verifier.o lock_file.o lsh_string.o parse.o pkcs5.o publickey_crypto.o queue.o randomness.o read_data.o read_file.o read_line.o read_packet.o reaper.o resource.o rsa.o server.o server_authorization.o server_keyexchange.o server_password.o server_publickey.o server_pty.o server_session.o server_userauth.o server_x11.o sexp.o socks.o spki.o srp_exchange.o string_buffer.o suspend.o tcpforward.o tcpforward_commands.o translate_signal.o tty.o unix_interact.o unix_process.o unix_random.o unix_user.o userauth.o werror.o write_buffer.o write_packet.o xalloc.o xauth.o zlib.o ar: `u' modifier ignored since `D' is the default (see `U') gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o lsh-krb-checkpw lsh-krb-checkpw.o -lkrb5 -lpam -lutil -lcrypt -lXau -lwrap -lz -loop -lgmp gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o lsh-execuv lsh-execuv.o -lpam -lutil -lcrypt -lXau -lwrap -lz -loop -lgmp -lshd.c: In function 'main_argp_parser': -lshd.c:699:10: warning: 'host' may be used uninitialized in this function [-Wmaybe-uninitialized] - 699 | : io_resolv_address(host, "ssh", 22, &self->local))) - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ranlib liblsh.a gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o lsh lsh.o liblsh.a spki/libspki.a -lnettle -lhogweed -lpam -lutil -lcrypt -lXau -lwrap -lz -loop -lgmp gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o lshg lshg.o dummy.o liblsh.a -lpam -lutil -lcrypt -lXau -lwrap -lz -loop -lgmp @@ -4353,10 +4420,10 @@ gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o lsh-decrypt-key lsh-decrypt-key.o liblsh.a spki/libspki.a -lnettle -lhogweed -lpam -lutil -lcrypt -lXau -lwrap -lz -loop -lgmp gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o lsh-decode-key lsh-decode-key.o liblsh.a spki/libspki.a -lnettle -lhogweed -lpam -lutil -lcrypt -lXau -lwrap -lz -loop -lgmp gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o lsh-export-key lsh-export-key.o liblsh.a spki/libspki.a -lnettle -lhogweed -lpam -lutil -lcrypt -lXau -lwrap -lz -loop -lgmp -gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o lsh-make-seed lsh-make-seed.o liblsh.a spki/libspki.a -lnettle -lhogweed -lpam -lutil -lcrypt -lXau -lwrap -lz -loop -lgmp gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o srp-gen srp-gen.o liblsh.a spki/libspki.a -lnettle -lhogweed -lpam -lutil -lcrypt -lXau -lwrap -lz -loop -lgmp gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o lshd lshd.o liblsh.a spki/libspki.a -lnettle -lhogweed -lpam -lutil -lcrypt -lXau -lwrap -lz -loop -lgmp gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o lsh-pam-checkpw lsh-pam-checkpw.o liblsh.a spki/libspki.a -lnettle -lhogweed -lpam -lutil -lcrypt -lXau -lwrap -lz -loop -lgmp +gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o lsh-make-seed lsh-make-seed.o liblsh.a spki/libspki.a -lnettle -lhogweed -lpam -lutil -lcrypt -lXau -lwrap -lz -loop -lgmp make[5]: Leaving directory '/build/lsh-utils-2.1/src' Making all in testsuite make[5]: Entering directory '/build/lsh-utils-2.1/src/testsuite' @@ -4458,6 +4525,52 @@ testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' 21 | decode_hex(const unsigned char *); | ^~~~~~~~~~~~~~~~~~~~~ +In file included from serpent-test.c:1: +serpent-test.c: In function 'test_main': +serpent-test.c:10:17: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] + 10 | H("0123456789ABCDEF FEDCBA9876543210" + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | char * +testutils.h:63:25: note: in definition of macro 'H' + 63 | #define H(x) decode_hex(x) + | ^ +testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' + 21 | decode_hex(const unsigned char *); + | ^~~~~~~~~~~~~~~~~~~~~ +serpent-test.c:12:17: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] + 12 | H("0000000000000000 0000000000000000" + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | char * +testutils.h:63:25: note: in definition of macro 'H' + 63 | #define H(x) decode_hex(x) + | ^ +testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' + 21 | decode_hex(const unsigned char *); + | ^~~~~~~~~~~~~~~~~~~~~ +serpent-test.c:14:10: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] + 14 | H("c170ed586cfda8fe 084f01ef04475883" + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | char * +testutils.h:63:25: note: in definition of macro 'H' + 63 | #define H(x) decode_hex(x) + | ^ +testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' + 21 | decode_hex(const unsigned char *); + | ^~~~~~~~~~~~~~~~~~~~~ +serpent-test.c:16:10: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] + 16 | H("0011223344556677 8899AABBCCDDEEFF")); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + | | + | char * +testutils.h:63:25: note: in definition of macro 'H' + 63 | #define H(x) decode_hex(x) + | ^ +testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' + 21 | decode_hex(const unsigned char *); + | ^~~~~~~~~~~~~~~~~~~~~ In file included from blowfish-test.c:1: blowfish-test.c: In function 'test_main': blowfish-test.c:7:17: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] @@ -4550,6 +4663,7 @@ testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' 21 | decode_hex(const unsigned char *); | ^~~~~~~~~~~~~~~~~~~~~ +gcc -DHAVE_CONFIG_H -I. -I../.. -I/build/lsh-utils-2.1/src/testsuite/.. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o md5-test.o md5-test.c In file included from cast128-test.c:1: cast128-test.c: In function 'test_main': cast128-test.c:7:17: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] @@ -4596,53 +4710,6 @@ testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' 21 | decode_hex(const unsigned char *); | ^~~~~~~~~~~~~~~~~~~~~ -In file included from serpent-test.c:1: -serpent-test.c: In function 'test_main': -serpent-test.c:10:17: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] - 10 | H("0123456789ABCDEF FEDCBA9876543210" - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | char * -testutils.h:63:25: note: in definition of macro 'H' - 63 | #define H(x) decode_hex(x) - | ^ -testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' - 21 | decode_hex(const unsigned char *); - | ^~~~~~~~~~~~~~~~~~~~~ -serpent-test.c:12:17: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] - 12 | H("0000000000000000 0000000000000000" - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | char * -testutils.h:63:25: note: in definition of macro 'H' - 63 | #define H(x) decode_hex(x) - | ^ -testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' - 21 | decode_hex(const unsigned char *); - | ^~~~~~~~~~~~~~~~~~~~~ -serpent-test.c:14:10: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] - 14 | H("c170ed586cfda8fe 084f01ef04475883" - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | char * -testutils.h:63:25: note: in definition of macro 'H' - 63 | #define H(x) decode_hex(x) - | ^ -testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' - 21 | decode_hex(const unsigned char *); - | ^~~~~~~~~~~~~~~~~~~~~ -serpent-test.c:16:10: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] - 16 | H("0011223344556677 8899AABBCCDDEEFF")); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - | | - | char * -testutils.h:63:25: note: in definition of macro 'H' - 63 | #define H(x) decode_hex(x) - | ^ -testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' - 21 | decode_hex(const unsigned char *); - | ^~~~~~~~~~~~~~~~~~~~~ -gcc -DHAVE_CONFIG_H -I. -I../.. -I/build/lsh-utils-2.1/src/testsuite/.. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o md5-test.o md5-test.c In file included from twofish-test.c:1: twofish-test.c: In function 'test_main': twofish-test.c:7:17: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] @@ -5172,7 +5239,6 @@ testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' 21 | decode_hex(const unsigned char *); | ^~~~~~~~~~~~~~~~~~~~~ -gcc -DHAVE_CONFIG_H -I. -I../.. -I/build/lsh-utils-2.1/src/testsuite/.. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o sockaddr2info-test.o sockaddr2info-test.c In file included from string-test.c:1: string-test.c: In function 'test_main': string-test.c:14:9: warning: pointer targets in passing argument 1 of 'decode_hex' differ in signedness [-Wpointer-sign] @@ -5208,9 +5274,6 @@ testutils.h:21:12: note: expected 'const unsigned char *' but argument is of type 'char *' 21 | decode_hex(const unsigned char *); | ^~~~~~~~~~~~~~~~~~~~~ -gcc -DHAVE_CONFIG_H -I. -I../.. -I/build/lsh-utils-2.1/src/testsuite/.. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o utf8-test.o utf8-test.c -gcc -DHAVE_CONFIG_H -I. -I../.. -I/build/lsh-utils-2.1/src/testsuite/.. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o mini-inetd.o mini-inetd.c -gcc -DHAVE_CONFIG_H -I. -I../.. -I/build/lsh-utils-2.1/src/testsuite/.. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o tcpconnect.o tcpconnect.c parse-config-test.c: In function 'test_main': parse-config-test.c:100:48: warning: pointer targets in passing argument 2 of 'config_parse_string' differ in signedness [-Wpointer-sign] 100 | = config_parse_string(strlen(config_file), config_file); @@ -5221,19 +5284,14 @@ /build/lsh-utils-2.1/src/testsuite/../parse_config.h:36:53: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'const char *' 36 | config_parse_string(uint32_t length, const uint8_t *data); | ~~~~~~~~~~~~~~~^~~~ +gcc -DHAVE_CONFIG_H -I. -I../.. -I/build/lsh-utils-2.1/src/testsuite/.. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o sockaddr2info-test.o sockaddr2info-test.c +gcc -DHAVE_CONFIG_H -I. -I../.. -I/build/lsh-utils-2.1/src/testsuite/.. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o utf8-test.o utf8-test.c +gcc -DHAVE_CONFIG_H -I. -I../.. -I/build/lsh-utils-2.1/src/testsuite/.. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o mini-inetd.o mini-inetd.c +gcc -DHAVE_CONFIG_H -I. -I../.. -I/build/lsh-utils-2.1/src/testsuite/.. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -c -o tcpconnect.o tcpconnect.c gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o arcfour-test arcfour-test.o testutils.o ../liblsh.a ../spki/libspki.a -lnettle -lhogweed -lpam -lutil -lcrypt -lXau -lwrap -lz -loop -lgmp -utf8-test.c: In function 'test_main': -utf8-test.c:84:38: warning: pointer targets in passing argument 2 of 'low_utf8_to_local' differ in signedness [-Wpointer-sign] - 84 | s = low_utf8_to_local(length, buffer, flags[j]); - | ^~~~~~ - | | - | char * -In file included from utf8-test.c:2: -/build/lsh-utils-2.1/src/testsuite/../charset.h:62:70: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' - 62 | struct lsh_string *low_utf8_to_local(uint32_t length, const uint8_t *s, enum utf8_flag flags); - | ~~~~~~~~~~~~~~~^ gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o aes-test aes-test.o testutils.o ../liblsh.a ../spki/libspki.a -lnettle -lhogweed -lpam -lutil -lcrypt -lXau -lwrap -lz -loop -lgmp gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o blowfish-test blowfish-test.o testutils.o ../liblsh.a ../spki/libspki.a -lnettle -lhogweed -lpam -lutil -lcrypt -lXau -lwrap -lz -loop -lgmp +gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o cast128-test cast128-test.o testutils.o ../liblsh.a ../spki/libspki.a -lnettle -lhogweed -lpam -lutil -lcrypt -lXau -lwrap -lz -loop -lgmp In file included from sockaddr2info-test.c:1: sockaddr2info-test.c: In function 'test_ip_v4': sockaddr2info-test.c:19:50: warning: pointer targets in passing argument 3 of 'lsh_string_eq_l' differ in signedness [-Wpointer-sign] @@ -5264,7 +5322,16 @@ /build/lsh-utils-2.1/src/testsuite/../lsh_string.h:89:77: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'const char *' 89 | lsh_string_eq_l(const struct lsh_string *a, uint32_t length, const uint8_t *b); | ~~~~~~~~~~~~~~~^ -gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o cast128-test cast128-test.o testutils.o ../liblsh.a ../spki/libspki.a -lnettle -lhogweed -lpam -lutil -lcrypt -lXau -lwrap -lz -loop -lgmp +utf8-test.c: In function 'test_main': +utf8-test.c:84:38: warning: pointer targets in passing argument 2 of 'low_utf8_to_local' differ in signedness [-Wpointer-sign] + 84 | s = low_utf8_to_local(length, buffer, flags[j]); + | ^~~~~~ + | | + | char * +In file included from utf8-test.c:2: +/build/lsh-utils-2.1/src/testsuite/../charset.h:62:70: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *' + 62 | struct lsh_string *low_utf8_to_local(uint32_t length, const uint8_t *s, enum utf8_flag flags); + | ~~~~~~~~~~~~~~~^ gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o des-test des-test.o testutils.o ../liblsh.a ../spki/libspki.a -lnettle -lhogweed -lpam -lutil -lcrypt -lXau -lwrap -lz -loop -lgmp gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o serpent-test serpent-test.o testutils.o ../liblsh.a ../spki/libspki.a -lnettle -lhogweed -lpam -lutil -lcrypt -lXau -lwrap -lz -loop -lgmp gcc -g -O2 -fdebug-prefix-map=/build/lsh-utils-2.1=. -fstack-protector-strong -Wformat -Werror=format-security -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wnested-externs -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro -o twofish-test twofish-test.o testutils.o ../liblsh.a ../spki/libspki.a -lnettle -lhogweed -lpam -lutil -lcrypt -lXau -lwrap -lz -loop -lgmp @@ -5469,38 +5536,39 @@ PASS: conv-3 PASS: export-1 Testing lsh-keygen DSA key generation -xxxxxxxxxqpg(private-key (dsa (p |AOAR3eQqoDaTrSq3WxYWsp2PiYTn6FxKW/W/SyML1h5K7RO1KW - u2AYOpbiz7ee2KEfVRnZWaeQ2ubEYcfIu2DtDDOoLPjkK8ns4g - 4d4MDVzR|) - (q |AKpQeb6FdBPg+Vl09s7t4CdlCWt9|) - (g |AK5XqMRGXEA80bqgB3CChjayxeY1Jl8E3/zqgHzOgTNScjk0ic - 8Ms86Yt9475fvlyxctZtYZ/uvR9jsf0bCUZjjrUKM1jDM37NKm - YK4FK93B|) - (y |ALtORkBkBHg+Zi12qaDPRhABuxUrbWisJxcgrKd1V5vr8K0rpQ - uIijUCzTC58cMxL2dsURI/dDzJoouBEdKWeWIrxyty9ZvSG9xr - XIpgF1bp|) - (x |QvGbL21EslUU4WH2paSIuxvFp6M=|))) +xxxxxxxxxqpg(private-key (dsa (p |ALUg1Fyf0pvZB1jbnh/EYyeOYj+39pnoorePxhAddgwkSglh/F + DcZ6s9ImFnBcaim9XlNgcTI13tqZJXc1/EA45JbnYRYr/f5EMF + JvpZm/gV|) + (q |ANyafhZ5jrVfafVuos4W7NPSKXAr|) + (g |OSMscjef6pH4BUrPcGaBTaSrh0hTJSM4mgflNuHE9/brDmUeWv + Nr1msuvqhOE1F8bvgYxljQtXJtlxRumDlhg56jBaTF1fJ7HKz8 + CZLARP8=|) + (y |FcODM/CrDYKpfPz3mbJqEoJ+jTYgGilJdpBQ4vxx8fEBCzua02 + 6fUwYWZ57w7LsoVtiIzRudpCDqK5Ukd4goymz408l7Hkc6aYmg + G1sAk8g=|) + (x |AMdVQa6AwmXb8jO7PhVMSYwHfImu|))) PASS: keygen-1 Testing lsh-keygen RSA key generation xxxxx xxxxx -(private-key (rsa-pkcs1 (n |AX8l7R5rYxBaqD7wk6qcuXsCj77C0CyjHN1dfvmHQ7U7 - BEcWVaspdi6ybDh+ipIptjuDUbfgWDb4byLQQXSEMgBl - +tTm6y3M09oRc91A30e5l5rYIW1j1sv9KWKaqjqLcMk=|) - (e |It5hWQ==|) - (d |IZ2Khd8ZPMMloOv2TZi0ttrBJuo0CoQDwzAdlnbl6kDH - 874is2LPyFHACibqhFOfaWfgRQsflycHpPmNZaWf9Vss - 9Il8IjJ6xeDriIgzKE7jEpSRnLuRip0kEPCLc4dMbQ==|) - (p |GLDE8GrR0N8DHI3OMsG/rGWwjs8nSzMl1AspLoxP15wN - /RxC23Qlc89aRUebxm+aqw==|) - (q |D4SeA/7OstjfyXqmgMIzHz3m/vux/Jr4cdZZcmGqQsut - 8UTH1yx7/bukllPphv5iWw==|) - (a |CuV2mq5qB/noQ+Chzplmtad4W9PixThflm7THL8sXgQq - z2s/NKeaRxJBlneORR7EhQ==|) - (b |CLObMrEF3TsuUm3XN5K7Lfnppd7nJxLJvOKNxVmarLiA - Qew0Z0JVJCqWWhWIq8N4qQ==|) - (c |B0y93L73RRuv84eQxPzQhgqjm0zKMk5DcmJnTyE1kX5x - 1Vg1RXUYcQwNwkEvv2l75A==|))) + +(private-key (rsa-pkcs1 (n |AUiy2lIZd3f9wCBTagHNMMCUjAjaTmAWXhsD6bhBY7sN + QIhrvLXSbHwoaUlogrmU9L4KW7XIcEwfOY5rqOga/hiq + nTPHblthiWbf83ZrgCKvxs8uYmdRyddzf6kAqkY+MlM=|) + (e |NdR5vw==|) + (d |AMESTtaEXXCYfo1DDPoxdOYSjs/PjEn24aANcnpDFemg + BvHK+bDVWNwkY1y655QtoSDQXBk5sSCzHHPMoHm31mij + pbF4p+hR2LzRsrbDgBJB0U6M/R/C3Jpx9CAfjznJ0p8=|) + (p |GZSIoPBODtVyun3Xua9nUPlKtMnBW//+1G5+vNVZqMnZ + U/vtA7d+kAATFCOaNSFOMQ==|) + (q |DNmHiHKlRCIN7EqqP2onEkUk2xZnVbUuht6kHPx5krYX + nVFzp2mhlLhKzNiYp7ITww==|) + (a |EkccsHQYONJpoQRDBtMH6JClwAWbW5LPiDGkqsZV7Knv + +FT2CupvMMygX3V2tNYgnw==|) + (b |CMX8/Cbxo3Iyxw0NhTX7UmdQFBz1kOgetweJhkhIy5rL + zgtcMu4QJKx4lf9S7Jmu9w==|) + (c |Emel9Pd4zI37Bh+6pPFkKl8PSJKIJbntJoViJ4jcGe/d + 6QSgGCNtjYN196ND2LpfUw==|))) PASS: keygen-2 Testing lsh-writekey PASS: write-key-1 @@ -5510,25 +5578,25 @@ test-seed-1 test-seed-2 differ: char 1, line 1 PASS: seed lsh, test 1 -lshd pid: 9911 +lshd pid: 3436 PASS: lsh-1 lsh, test 2 -lshd pid: 10126 +lshd pid: 3502 Hello world. PASS: lsh-2 lsh, test 3 -lshd pid: 10548 +lshd pid: 3563 Hello world. PASS: lsh-3 lsh, test 4 -lshd pid: 10788 +lshd pid: 3763 Hello world PASS: lsh-4 lsh, test 5, using an RSA hostkey -lshd pid: 11287 +lshd pid: 3991 PASS: lsh-5 lsh, test 6, using various encryption algorithms -lshd pid: 11422 +lshd pid: 4353 Trying encryption flag arcfour Ok Trying encryption flag twofish @@ -5549,18 +5617,18 @@ Ok PASS: lsh-6 lsh, test 7 -lshd pid: 12175 +lshd pid: 4487 PASS: lsh-7 lsh, test 8, unencrypted session -lshd pid: 13415 +lshd pid: 4725 PASS: lsh-8 lsh, test 9, check that LSHFLAGS works. -lshd pid: 15328 +lshd pid: 5063 PASS: lsh-9 lsh, encrypted key test xxxxxx xxxxxx -lshd pid: 17990 +lshd pid: 5774 Hello world PASS: lsh-encrypted-key lsh-decrypt-key-test @@ -5568,42 +5636,41 @@ xxxxxx PASS: lsh-decrypt-key lsh, cat test -lshd pid: 19788 +lshd pid: 7969 lsh-cat-test: Ok, files match. PASS: lsh-cat lshg test 1 -lshd pid: 20033 +lshd pid: 9077 PASS: lshg-1 lshg, cat test -lshd pid: 20908 +lshd pid: 9212 lshg-cat-test: Ok, files match. PASS: lshg-cat lshg, cat 2 test -lshd pid: 21568 +lshd pid: 9732 lshg-cat-2-test: Ok, files match. PASS: lshg-cat-2 Closed spurious fd 9 -lshd pid: 21782 +lshd pid: 10077 daemon-fd-test: Ok, files match. PASS: daemon-fd -lshd pid: 22056 +lshd pid: 10270 foo PASS: tcpip-local -lshd pid: 22356 +lshd pid: 10559 bar PASS: tcpip-local-in-use -lshd pid: 22574 +lshd pid: 10602 foo PASS: tcpip-remote SKIP: socks5 SKIP: socks4 -lshd pid: 24481 +lshd pid: 11400 foo -./lshg-tcpip-local-test: 1: kill: No such process - +/build/lsh-utils-2.1/src/testsuite/functions.sh: line 44: kill: (11602) - No such process PASS: lshg-tcpip-local testing lcp -lshd pid: 25567 +lshd pid: 11675 bash: line 1: files/lcp-file-1.txt: cannot overwrite existing file bash: line 1: files/lcp-file-1.txt: cannot overwrite existing file /build/lsh-utils-2.1/src/testsuite/../lcp: line 116: ./lcp-file-1.txt: cannot overwrite existing file @@ -6280,7 +6347,7 @@ Test done PASS: rapid7-lsh Testing lshd -lshd pid: 3017 +lshd pid: 14712 Testing /build/lsh-utils-2.1/src/testsuite/rapid7-ssh-pdu/0000001.pdu Testing /build/lsh-utils-2.1/src/testsuite/rapid7-ssh-pdu/0000002.pdu Testing /build/lsh-utils-2.1/src/testsuite/rapid7-ssh-pdu/0000003.pdu @@ -6950,7 +7017,7 @@ Test done PASS: rapid7-lshd lsh, test login, login-auth-mode -lshd pid: 5275 +lshd pid: 16739 lsh-login-test: Ok, files match. PASS: login-auth lshd, no-auth-test @@ -6958,7 +7025,7 @@ Try `lshd --help' or `lshd --usage' for more information. PASS: lshd-no-auth Testing lshd with random input -lshd pid: 5488 +lshd pid: 17141 Trying seed 1 Trying seed 2 Trying seed 3 @@ -7034,13 +7101,13 @@ Making install in . make[5]: Entering directory '/build/lsh-utils-2.1/src/sftp' make[6]: Entering directory '/build/lsh-utils-2.1/src/sftp' - /bin/mkdir -p '/build/lsh-utils-2.1/debian/tmp/usr/bin' + /usr/bin/mkdir -p '/build/lsh-utils-2.1/debian/tmp/usr/bin' /usr/bin/install -c lsftp '/build/lsh-utils-2.1/debian/tmp/usr/bin' - /bin/mkdir -p '/build/lsh-utils-2.1/debian/tmp/usr/sbin' + /usr/bin/mkdir -p '/build/lsh-utils-2.1/debian/tmp/usr/sbin' /usr/bin/install -c sftp-server '/build/lsh-utils-2.1/debian/tmp/usr/sbin' - /bin/mkdir -p '/build/lsh-utils-2.1/debian/tmp/usr/share/man/man1' + /usr/bin/mkdir -p '/build/lsh-utils-2.1/debian/tmp/usr/share/man/man1' /usr/bin/install -c -m 644 lsftp.1 '/build/lsh-utils-2.1/debian/tmp/usr/share/man/man1' - /bin/mkdir -p '/build/lsh-utils-2.1/debian/tmp/usr/share/man/man8' + /usr/bin/mkdir -p '/build/lsh-utils-2.1/debian/tmp/usr/share/man/man8' /usr/bin/install -c -m 644 sftp-server.8 '/build/lsh-utils-2.1/debian/tmp/usr/share/man/man8' make[6]: Leaving directory '/build/lsh-utils-2.1/src/sftp' make[5]: Leaving directory '/build/lsh-utils-2.1/src/sftp' @@ -7079,11 +7146,11 @@ Making install in . make[4]: Entering directory '/build/lsh-utils-2.1/src' make[5]: Entering directory '/build/lsh-utils-2.1/src' - /bin/mkdir -p '/build/lsh-utils-2.1/debian/tmp/usr/bin' + /usr/bin/mkdir -p '/build/lsh-utils-2.1/debian/tmp/usr/bin' /usr/bin/install -c lsh lshg lsh-keygen lsh-writekey lsh-decrypt-key lsh-decode-key lsh-export-key lsh-make-seed srp-gen '/build/lsh-utils-2.1/debian/tmp/usr/bin' - /bin/mkdir -p '/build/lsh-utils-2.1/debian/tmp/usr/bin' + /usr/bin/mkdir -p '/build/lsh-utils-2.1/debian/tmp/usr/bin' /usr/bin/install -c lsh-authorize ssh-conv lsh-upgrade lsh-upgrade-key lcp '/build/lsh-utils-2.1/debian/tmp/usr/bin' - /bin/mkdir -p '/build/lsh-utils-2.1/debian/tmp/usr/sbin' + /usr/bin/mkdir -p '/build/lsh-utils-2.1/debian/tmp/usr/sbin' /usr/bin/install -c lshd lsh-execuv lsh-krb-checkpw lsh-pam-checkpw '/build/lsh-utils-2.1/debian/tmp/usr/sbin' make[5]: Nothing to be done for 'install-data-am'. make[5]: Leaving directory '/build/lsh-utils-2.1/src' @@ -7101,13 +7168,13 @@ make[2]: Entering directory '/build/lsh-utils-2.1/doc' make[3]: Entering directory '/build/lsh-utils-2.1/doc' make[3]: Nothing to be done for 'install-exec-am'. - /bin/mkdir -p '/build/lsh-utils-2.1/debian/tmp/usr/share/info' + /usr/bin/mkdir -p '/build/lsh-utils-2.1/debian/tmp/usr/share/info' /usr/bin/install -c -m 644 ./lsh.info '/build/lsh-utils-2.1/debian/tmp/usr/share/info' - /bin/mkdir -p '/build/lsh-utils-2.1/debian/tmp/usr/share/man/man1' + /usr/bin/mkdir -p '/build/lsh-utils-2.1/debian/tmp/usr/share/man/man1' /usr/bin/install -c -m 644 lsh.1 lsh-authorize.1 lsh-decode-key.1 lsh-decrypt-key.1 lsh-export-key.1 lshg.1 lsh-keygen.1 lsh-make-seed.1 lsh-upgrade.1 lsh-upgrade-key.1 lsh-writekey.1 ssh-conv.1 '/build/lsh-utils-2.1/debian/tmp/usr/share/man/man1' - /bin/mkdir -p '/build/lsh-utils-2.1/debian/tmp/usr/share/man/man5' + /usr/bin/mkdir -p '/build/lsh-utils-2.1/debian/tmp/usr/share/man/man5' /usr/bin/install -c -m 644 DSA.5 SHA.5 SPKI.5 secsh.5 '/build/lsh-utils-2.1/debian/tmp/usr/share/man/man5' - /bin/mkdir -p '/build/lsh-utils-2.1/debian/tmp/usr/share/man/man8' + /usr/bin/mkdir -p '/build/lsh-utils-2.1/debian/tmp/usr/share/man/man8' /usr/bin/install -c -m 644 lshd.8 '/build/lsh-utils-2.1/debian/tmp/usr/share/man/man8' make[3]: Leaving directory '/build/lsh-utils-2.1/doc' make[2]: Leaving directory '/build/lsh-utils-2.1/doc' @@ -7172,12 +7239,12 @@ dh_gencontrol -a dh_md5sums -a dh_builddeb -a -dpkg-deb: building package 'lsh-client-dbgsym' in '../lsh-client-dbgsym_2.1-13_arm64.deb'. -dpkg-deb: building package 'lsh-client' in '../lsh-client_2.1-13_arm64.deb'. dpkg-deb: building package 'lsh-utils' in '../lsh-utils_2.1-13_arm64.deb'. dpkg-deb: building package 'lsh-utils-dbgsym' in '../lsh-utils-dbgsym_2.1-13_arm64.deb'. dpkg-deb: building package 'lsh-server-dbgsym' in '../lsh-server-dbgsym_2.1-13_arm64.deb'. +dpkg-deb: building package 'lsh-client-dbgsym' in '../lsh-client-dbgsym_2.1-13_arm64.deb'. dpkg-deb: building package 'lsh-server' in '../lsh-server_2.1-13_arm64.deb'. +dpkg-deb: building package 'lsh-client' in '../lsh-client_2.1-13_arm64.deb'. dh_testdir dh_testroot dh_install -i --sourcedir=debian/tmp @@ -7210,12 +7277,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/6802/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/6802/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/21646 and its subdirectories -I: Current time: Wed Jul 21 20:56:05 -12 2021 -I: pbuilder-time-stamp: 1626944165 +I: removing directory /srv/workspace/pbuilder/6802 and its subdirectories +I: Current time: Thu Aug 25 05:26:56 +14 2022 +I: pbuilder-time-stamp: 1661354816