Diff of the two buildlogs: -- --- b1/build.log 2021-07-24 13:58:57.798005134 +0000 +++ b2/build.log 2021-07-24 14:08:48.787766984 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Fri Aug 26 08:20:14 -12 2022 -I: pbuilder-time-stamp: 1661545214 +I: Current time: Sun Jul 25 03:59:10 +14 2021 +I: pbuilder-time-stamp: 1627135150 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/bullseye-reproducible-base.tgz] I: copying local configuration @@ -17,8 +17,8 @@ I: copying [./nethack_3.6.6-2.debian.tar.xz] I: Extracting source gpgv: unknown type of key resource 'trustedkeys.kbx' -gpgv: keyblock resource '/tmp/dpkg-verify-sig.bVoUAf37/trustedkeys.kbx': General error -gpgv: Signature made Sat Jan 9 09:43:32 2021 -12 +gpgv: keyblock resource '/tmp/dpkg-verify-sig.HxxOYLT1/trustedkeys.kbx': General error +gpgv: Signature made Sun Jan 10 11:43:32 2021 +14 gpgv: using RSA key ACF3D088EF32EDEF6A1A835FD9AD14B9513B51E4 gpgv: issuer "apo@debian.org" gpgv: Can't check signature: No public key @@ -38,137 +38,171 @@ dpkg-source: info: applying 0021-fix-kfreebsd-ftbfs.patch I: using fakeroot in build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/39102/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/651/tmp/hooks/D01_modify_environment starting +debug: Running on ionos12-i386. +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/651/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/651/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='i386' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all,-fixfilepath parallel=16' - DISTRIBUTION='' - HOME='/root' - HOST_ARCH='i386' + 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]="i686-pc-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=i386 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all,-fixfilepath parallel=7' + DIRSTACK=() + DISTRIBUTION= + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=i686 + HOST_ARCH=i386 IFS=' ' - INVOCATION_ID='0b87509af9da4c539e851364575a88ff' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - LD_LIBRARY_PATH='/usr/lib/libeatmydata' - LD_PRELOAD='libeatmydata.so' - 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='39102' - PS1='# ' - PS2='> ' + INVOCATION_ID=ebce843141cc4cec89d7c46e4505aa06 + LANG=C + LANGUAGE=de_CH:de + LC_ALL=C + LD_LIBRARY_PATH=/usr/lib/libeatmydata + LD_PRELOAD=libeatmydata.so + MACHTYPE=i686-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=651 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.NXNTeXBNCQ/pbuilderrc_38fF --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.NXNTeXBNCQ/b1 --logfile b1/build.log nethack_3.6.6-2.dsc' - SUDO_GID='112' - SUDO_UID='107' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://85.184.249.68: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.NXNTeXBNCQ/pbuilderrc_gQj5 --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.NXNTeXBNCQ/b2 --logfile b2/build.log --extrapackages usrmerge nethack_3.6.6-2.dsc' + SUDO_GID=112 + SUDO_UID=107 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://78.137.99.97:3128 I: uname -a - Linux ionos6-i386 4.19.0-17-amd64 #1 SMP Debian 4.19.194-3 (2021-07-18) x86_64 GNU/Linux + Linux i-capture-the-hostname 4.19.0-17-686-pae #1 SMP Debian 4.19.194-3 (2021-07-18) i686 GNU/Linux I: ls -l /bin total 5776 - -rwxr-xr-x 1 root root 1367848 Jun 21 2021 bash - -rwxr-xr-x 3 root root 38280 Jul 20 2020 bunzip2 - -rwxr-xr-x 3 root root 38280 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 38280 Jul 20 2020 bzip2 - -rwxr-xr-x 1 root root 17768 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 38824 Sep 22 2020 cat - -rwxr-xr-x 1 root root 71624 Sep 22 2020 chgrp - -rwxr-xr-x 1 root root 67528 Sep 22 2020 chmod - -rwxr-xr-x 1 root root 75752 Sep 22 2020 chown - -rwxr-xr-x 1 root root 157960 Sep 22 2020 cp - -rwxr-xr-x 1 root root 128724 Dec 10 2020 dash - -rwxr-xr-x 1 root root 124904 Sep 22 2020 date - -rwxr-xr-x 1 root root 92172 Sep 22 2020 dd - -rwxr-xr-x 1 root root 100752 Sep 22 2020 df - -rwxr-xr-x 1 root root 153964 Sep 22 2020 dir - -rwxr-xr-x 1 root root 83644 Feb 7 2021 dmesg - lrwxrwxrwx 1 root root 8 Nov 6 2019 dnsdomainname -> hostname - lrwxrwxrwx 1 root root 8 Nov 6 2019 domainname -> hostname - -rwxr-xr-x 1 root root 34664 Sep 22 2020 echo - -rwxr-xr-x 1 root root 28 Nov 9 2020 egrep - -rwxr-xr-x 1 root root 34664 Sep 22 2020 false - -rwxr-xr-x 1 root root 28 Nov 9 2020 fgrep - -rwxr-xr-x 1 root root 71928 Feb 7 2021 findmnt - -rwsr-xr-x 1 root root 30112 Feb 26 2021 fusermount - -rwxr-xr-x 1 root root 210488 Nov 9 2020 grep - -rwxr-xr-x 2 root root 2346 Mar 2 2021 gunzip - -rwxr-xr-x 1 root root 6376 Mar 2 2021 gzexe - -rwxr-xr-x 1 root root 100952 Mar 2 2021 gzip - -rwxr-xr-x 1 root root 21916 Nov 6 2019 hostname - -rwxr-xr-x 1 root root 83980 Sep 22 2020 ln - -rwxr-xr-x 1 root root 55572 Feb 7 2020 login - -rwxr-xr-x 1 root root 153964 Sep 22 2020 ls - -rwxr-xr-x 1 root root 153124 Feb 7 2021 lsblk - -rwxr-xr-x 1 root root 96328 Sep 22 2020 mkdir - -rwxr-xr-x 1 root root 79912 Sep 22 2020 mknod - -rwxr-xr-x 1 root root 47048 Sep 22 2020 mktemp - -rwxr-xr-x 1 root root 58920 Feb 7 2021 more - -rwsr-xr-x 1 root root 50720 Feb 7 2021 mount - -rwxr-xr-x 1 root root 13856 Feb 7 2021 mountpoint - -rwxr-xr-x 1 root root 157996 Sep 22 2020 mv - lrwxrwxrwx 1 root root 8 Nov 6 2019 nisdomainname -> hostname - lrwxrwxrwx 1 root root 14 Apr 18 2021 pidof -> /sbin/killall5 - -rwxr-xr-x 1 root root 38824 Sep 22 2020 pwd - lrwxrwxrwx 1 root root 4 Jun 21 2021 rbash -> bash - -rwxr-xr-x 1 root root 46984 Sep 22 2020 readlink - -rwxr-xr-x 1 root root 75720 Sep 22 2020 rm - -rwxr-xr-x 1 root root 46984 Sep 22 2020 rmdir - -rwxr-xr-x 1 root root 22292 Sep 27 2020 run-parts - -rwxr-xr-x 1 root root 125036 Dec 22 2018 sed - lrwxrwxrwx 1 root root 4 Aug 25 03:47 sh -> dash - -rwxr-xr-x 1 root root 34696 Sep 22 2020 sleep - -rwxr-xr-x 1 root root 83880 Sep 22 2020 stty - -rwsr-xr-x 1 root root 79396 Feb 7 2021 su - -rwxr-xr-x 1 root root 34696 Sep 22 2020 sync - -rwxr-xr-x 1 root root 602584 Feb 16 2021 tar - -rwxr-xr-x 1 root root 13860 Sep 27 2020 tempfile - -rwxr-xr-x 1 root root 108520 Sep 22 2020 touch - -rwxr-xr-x 1 root root 34664 Sep 22 2020 true - -rwxr-xr-x 1 root root 17768 Feb 26 2021 ulockmgr_server - -rwsr-xr-x 1 root root 30236 Feb 7 2021 umount - -rwxr-xr-x 1 root root 34664 Sep 22 2020 uname - -rwxr-xr-x 2 root root 2346 Mar 2 2021 uncompress - -rwxr-xr-x 1 root root 153964 Sep 22 2020 vdir - -rwxr-xr-x 1 root root 63024 Feb 7 2021 wdctl - lrwxrwxrwx 1 root root 8 Nov 6 2019 ypdomainname -> hostname - -rwxr-xr-x 1 root root 1984 Mar 2 2021 zcat - -rwxr-xr-x 1 root root 1678 Mar 2 2021 zcmp - -rwxr-xr-x 1 root root 5880 Mar 2 2021 zdiff - -rwxr-xr-x 1 root root 29 Mar 2 2021 zegrep - -rwxr-xr-x 1 root root 29 Mar 2 2021 zfgrep - -rwxr-xr-x 1 root root 2081 Mar 2 2021 zforce - -rwxr-xr-x 1 root root 7585 Mar 2 2021 zgrep - -rwxr-xr-x 1 root root 2206 Mar 2 2021 zless - -rwxr-xr-x 1 root root 1842 Mar 2 2021 zmore - -rwxr-xr-x 1 root root 4553 Mar 2 2021 znew -I: user script /srv/workspace/pbuilder/39102/tmp/hooks/D02_print_environment finished + -rwxr-xr-x 1 root root 1367848 Jun 22 16:25 bash + -rwxr-xr-x 3 root root 38280 Jul 21 2020 bunzip2 + -rwxr-xr-x 3 root root 38280 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 38280 Jul 21 2020 bzip2 + -rwxr-xr-x 1 root root 17768 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 38824 Sep 23 2020 cat + -rwxr-xr-x 1 root root 71624 Sep 23 2020 chgrp + -rwxr-xr-x 1 root root 67528 Sep 23 2020 chmod + -rwxr-xr-x 1 root root 75752 Sep 23 2020 chown + -rwxr-xr-x 1 root root 157960 Sep 23 2020 cp + -rwxr-xr-x 1 root root 128724 Dec 11 2020 dash + -rwxr-xr-x 1 root root 124904 Sep 23 2020 date + -rwxr-xr-x 1 root root 92172 Sep 23 2020 dd + -rwxr-xr-x 1 root root 100752 Sep 23 2020 df + -rwxr-xr-x 1 root root 153964 Sep 23 2020 dir + -rwxr-xr-x 1 root root 83644 Feb 8 04:38 dmesg + lrwxrwxrwx 1 root root 8 Nov 8 2019 dnsdomainname -> hostname + lrwxrwxrwx 1 root root 8 Nov 8 2019 domainname -> hostname + -rwxr-xr-x 1 root root 34664 Sep 23 2020 echo + -rwxr-xr-x 1 root root 28 Nov 10 2020 egrep + -rwxr-xr-x 1 root root 34664 Sep 23 2020 false + -rwxr-xr-x 1 root root 28 Nov 10 2020 fgrep + -rwxr-xr-x 1 root root 71928 Feb 8 04:38 findmnt + -rwsr-xr-x 1 root root 30112 Feb 27 06:12 fusermount + -rwxr-xr-x 1 root root 210488 Nov 10 2020 grep + -rwxr-xr-x 2 root root 2346 Mar 3 13:30 gunzip + -rwxr-xr-x 1 root root 6376 Mar 3 13:30 gzexe + -rwxr-xr-x 1 root root 100952 Mar 3 13:30 gzip + -rwxr-xr-x 1 root root 21916 Nov 8 2019 hostname + -rwxr-xr-x 1 root root 83980 Sep 23 2020 ln + -rwxr-xr-x 1 root root 55572 Feb 8 2020 login + -rwxr-xr-x 1 root root 153964 Sep 23 2020 ls + -rwxr-xr-x 1 root root 153124 Feb 8 04:38 lsblk + -rwxr-xr-x 1 root root 96328 Sep 23 2020 mkdir + -rwxr-xr-x 1 root root 79912 Sep 23 2020 mknod + -rwxr-xr-x 1 root root 47048 Sep 23 2020 mktemp + -rwxr-xr-x 1 root root 58920 Feb 8 04:38 more + -rwsr-xr-x 1 root root 50720 Feb 8 04:38 mount + -rwxr-xr-x 1 root root 13856 Feb 8 04:38 mountpoint + -rwxr-xr-x 1 root root 157996 Sep 23 2020 mv + lrwxrwxrwx 1 root root 8 Nov 8 2019 nisdomainname -> hostname + lrwxrwxrwx 1 root root 14 Apr 19 05:38 pidof -> /sbin/killall5 + -rwxr-xr-x 1 root root 38824 Sep 23 2020 pwd + lrwxrwxrwx 1 root root 4 Jun 22 16:25 rbash -> bash + -rwxr-xr-x 1 root root 46984 Sep 23 2020 readlink + -rwxr-xr-x 1 root root 75720 Sep 23 2020 rm + -rwxr-xr-x 1 root root 46984 Sep 23 2020 rmdir + -rwxr-xr-x 1 root root 22292 Sep 28 2020 run-parts + -rwxr-xr-x 1 root root 125036 Dec 23 2018 sed + lrwxrwxrwx 1 root root 4 Jul 25 04:00 sh -> bash + lrwxrwxrwx 1 root root 4 Jul 24 23:25 sh.distrib -> dash + -rwxr-xr-x 1 root root 34696 Sep 23 2020 sleep + -rwxr-xr-x 1 root root 83880 Sep 23 2020 stty + -rwsr-xr-x 1 root root 79396 Feb 8 04:38 su + -rwxr-xr-x 1 root root 34696 Sep 23 2020 sync + -rwxr-xr-x 1 root root 602584 Feb 17 23:55 tar + -rwxr-xr-x 1 root root 13860 Sep 28 2020 tempfile + -rwxr-xr-x 1 root root 108520 Sep 23 2020 touch + -rwxr-xr-x 1 root root 34664 Sep 23 2020 true + -rwxr-xr-x 1 root root 17768 Feb 27 06:12 ulockmgr_server + -rwsr-xr-x 1 root root 30236 Feb 8 04:38 umount + -rwxr-xr-x 1 root root 34664 Sep 23 2020 uname + -rwxr-xr-x 2 root root 2346 Mar 3 13:30 uncompress + -rwxr-xr-x 1 root root 153964 Sep 23 2020 vdir + -rwxr-xr-x 1 root root 63024 Feb 8 04:38 wdctl + lrwxrwxrwx 1 root root 8 Nov 8 2019 ypdomainname -> hostname + -rwxr-xr-x 1 root root 1984 Mar 3 13:30 zcat + -rwxr-xr-x 1 root root 1678 Mar 3 13:30 zcmp + -rwxr-xr-x 1 root root 5880 Mar 3 13:30 zdiff + -rwxr-xr-x 1 root root 29 Mar 3 13:30 zegrep + -rwxr-xr-x 1 root root 29 Mar 3 13:30 zfgrep + -rwxr-xr-x 1 root root 2081 Mar 3 13:30 zforce + -rwxr-xr-x 1 root root 7585 Mar 3 13:30 zgrep + -rwxr-xr-x 1 root root 2206 Mar 3 13:30 zless + -rwxr-xr-x 1 root root 1842 Mar 3 13:30 zmore + -rwxr-xr-x 1 root root 4553 Mar 3 13:30 znew +I: user script /srv/workspace/pbuilder/651/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -472,7 +506,7 @@ Get: 234 http://deb.debian.org/debian bullseye/main i386 qtmultimedia5-dev i386 5.15.2-3 [50.2 kB] Get: 235 http://deb.debian.org/debian bullseye/main i386 xfonts-encodings all 1:1.0.4-2.1 [573 kB] Get: 236 http://deb.debian.org/debian bullseye/main i386 xfonts-utils i386 1:7.7+6 [95.2 kB] -Fetched 119 MB in 1s (88.9 MB/s) +Fetched 119 MB in 28s (4283 kB/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 ... 19675 files and directories currently installed.) @@ -1444,9 +1478,41 @@ 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 i386 libnumber-compare-perl all 0.03-1.1 [6956 B] +Get:2 http://deb.debian.org/debian bullseye/main i386 libtext-glob-perl all 0.11-1 [8888 B] +Get:3 http://deb.debian.org/debian bullseye/main i386 libfile-find-rule-perl all 0.34-1 [30.6 kB] +Get:4 http://deb.debian.org/debian bullseye/main i386 usrmerge all 25 [13.0 kB] +debconf: delaying package configuration, since apt-utils is not installed +Fetched 59.5 kB in 0s (1074 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 ... 31807 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/nethack-3.6.6/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b +I: Running cd /build/nethack-3.6.6/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b dpkg-buildpackage: info: source package nethack dpkg-buildpackage: info: source version 3.6.6-2 dpkg-buildpackage: info: source distribution unstable @@ -1526,111 +1592,197 @@ ./makedefs -p make[3]: Leaving directory '/build/nethack-3.6.6/util' touch ../src/hack.h-t -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o allmain.o allmain.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o apply.o apply.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o artifact.o artifact.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o attrib.o attrib.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o ball.o ball.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o bones.o bones.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o botl.o botl.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o cmd.o cmd.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o dbridge.o dbridge.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o weapon.o weapon.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o were.o were.c make[3]: Entering directory '/build/nethack-3.6.6/util' ./makedefs -z -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o decl.o decl.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o detect.o detect.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o dig.o dig.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o wield.o wield.c make[3]: Leaving directory '/build/nethack-3.6.6/util' -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o display.o display.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o do.o do.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o do_name.o do_name.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o do_wear.o do_wear.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o dog.o dog.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o windows.o windows.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o wizard.o wizard.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o worm.o worm.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o worn.o worn.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o write.o write.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o zap.o zap.c In file included from /usr/include/string.h:495, from ../include/system.h:306, from ../include/unixconf.h:322, from ../include/global.h:136, from ../include/config.h:588, from ../include/hack.h:10, - from cmd.c:6: + from write.c:4: In function 'strncpy', - inlined from 'attributes_enlightenment' at cmd.c:2727:20: -/usr/include/i386-linux-gnu/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' output truncated before terminating nul copying 12 bytes from a string of the same length [-Wstringop-truncation] + inlined from 'dowrite' at write.c:161:16: +/usr/include/i386-linux-gnu/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' output truncated before terminating nul copying 7 bytes from a string of the same length [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o dogmove.o dogmove.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o dokick.o dokick.c -botl.c: In function 'status_hilite_linestr_gather_conditions': -botl.c:2793:48: warning: '%s' directive writing up to 255 bytes into a region of size 245 [-Wformat-overflow=] - 2793 | Sprintf(condbuf, "condition/%s/%s", - | ^~ - 2794 | conditionbitmask2str(cond_maps[i].bm), clrbuf); - | ~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o posixregex.o ../sys/share/posixregex.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o ioctl.o ../sys/share/ioctl.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o unixmain.o ../sys/unix/unixmain.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o unixtty.o ../sys/share/unixtty.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o unixunix.o ../sys/unix/unixunix.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o getline.o ../win/tty/getline.c +weapon.c: In function 'enhance_weapon_skill': +weapon.c:1261:47: warning: '%s' directive writing up to 255 bytes into a region of size between 249 and 253 [-Wformat-overflow=] + 1261 | Sprintf(buf, " %s%s\t[%s]", prefix, P_NAME(i), + | ^~ + 1262 | sklnambuf); + | ~~~~~~~~~ In file included from /usr/include/stdio.h:867, from ../include/global.h:9, from ../include/config.h:588, from ../include/hack.h:10, - from botl.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 12 or more bytes (assuming 267) into a destination of size 256 + from weapon.c:11: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 5 or more bytes (assuming 264) into a destination of size 256 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -do_name.c: In function 'getpos_menu': -do_name.c:604:37: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] - 604 | Sprintf(fullbuf, "%s%s%s", firstmatch, - | ^ +weapon.c:1258:49: warning: '%s' directive writing up to 255 bytes into a region of size between 248 and 252 [-Wformat-overflow=] + 1258 | Sprintf(buf, " %s %-*s [%s]", prefix, longest, + | ^~ + 1259 | P_NAME(i), sklnambuf); + | ~~~~~~~~~ In file included from /usr/include/stdio.h:867, from ../include/global.h:9, from ../include/config.h:588, from ../include/hack.h:10, - from do_name.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 1 or more bytes (assuming 257) into a destination of size 256 + from weapon.c:11: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 6 or more bytes (assuming 265) into a destination of size 256 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o dothrow.o dothrow.c -do_name.c: In function 'getpos': -do_name.c:190:31: warning: '%s' directive writing up to 255 bytes into a region of size 249 [-Wformat-overflow=] - 190 | Sprintf(sbuf, "Type a %s when you are at the right place.", kbuf); - | ^~ ~~~~ +weapon.c:1253:46: warning: '%s' directive writing up to 255 bytes into a region of size between 250 and 254 [-Wformat-overflow=] + 1253 | Sprintf(buf, " %s%s\t%s\t%5d(%4d)", prefix, P_NAME(i), + | ^~ + 1254 | sklnambuf, P_ADVANCE(i), + | ~~~~~~~~~ +weapon.c:1253:38: note: directive argument in the range [0, 65535] + 1253 | Sprintf(buf, " %s%s\t%s\t%5d(%4d)", prefix, P_NAME(i), + | ^~~~~~~~~~~~~~~~~~~~~ +weapon.c:1253:38: note: directive argument in the range [-325120, 327680] In file included from /usr/include/stdio.h:867, from ../include/global.h:9, from ../include/config.h:588, from ../include/hack.h:10, - from do_name.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 41 and 296 bytes into a destination of size 256 + from weapon.c:11: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 15 or more bytes (assuming 277) into a destination of size 256 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -do_name.c:190:31: warning: '%s' directive writing up to 255 bytes into a region of size 249 [-Wformat-overflow=] - 190 | Sprintf(sbuf, "Type a %s when you are at the right place.", kbuf); - | ^~ ~~~~ +weapon.c:1249:47: warning: '%-12s' directive writing between 12 and 255 bytes into a region of size between 250 and 254 [-Wformat-overflow=] + 1249 | Sprintf(buf, " %s%-*s %-12s %5d(%4d)", prefix, + | ^~~~~ + 1250 | longest, P_NAME(i), sklnambuf, P_ADVANCE(i), + | ~~~~~~~~~ +weapon.c:1249:38: note: directive argument in the range [0, 65535] + 1249 | Sprintf(buf, " %s%-*s %-12s %5d(%4d)", prefix, + | ^~~~~~~~~~~~~~~~~~~~~~~~ +weapon.c:1249:38: note: directive argument in the range [-325120, 327680] In file included from /usr/include/stdio.h:867, from ../include/global.h:9, from ../include/config.h:588, from ../include/hack.h:10, - from do_name.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 41 and 296 bytes into a destination of size 256 + from weapon.c:11: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 27 or more bytes (assuming 277) into a destination of size 256 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -dogmove.c: In function 'droppables': -cc1: warning: function may return address of local variable [-Wreturn-local-addr] -dogmove.c:29:28: note: declared here - 29 | struct obj *obj, *wep, dummy, *pickaxe, *unihorn, *key; - | ^~~~~ -dogmove.c:29:28: note: declared here -dogmove.c:29:28: note: declared here -dogmove.c:29:28: note: declared here -dogmove.c:29:28: note: declared here -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o drawing.o drawing.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o dungeon.o dungeon.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o eat.o eat.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o end.o end.c +In file included from /usr/include/string.h:495, + from ../include/system.h:306, + from ../include/unixconf.h:322, + from ../include/global.h:136, + from ../include/config.h:588, + from ../include/hack.h:10, + from ../sys/unix/unixmain.c:8: +In function 'strncat', + inlined from 'main' at ../sys/unix/unixmain.c:244:20: +/usr/include/i386-linux-gnu/bits/string_fortified.h:136:10: warning: '__builtin___strncat_chk' output may be truncated copying between 0 and 30 bytes from a string of length 31 [-Wstringop-truncation] + 136 | return __builtin___strncat_chk (__dest, __src, __len, __bos (__dest)); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o termcap.o ../win/tty/termcap.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o topl.o ../win/tty/topl.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o wintty.o ../win/tty/wintty.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o cursmain.o ../win/curses/cursmain.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o curswins.o ../win/curses/curswins.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o cursmisc.o ../win/curses/cursmisc.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o cursdial.o ../win/curses/cursdial.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o cursstat.o ../win/curses/cursstat.c +In file included from /usr/include/string.h:495, + from ../include/system.h:306, + from ../include/unixconf.h:322, + from ../include/global.h:136, + from ../include/config.h:588, + from ../include/hack.h:10, + from ../win/curses/cursstat.c:7: +In function 'strncpy', + inlined from 'curs_HPbar' at ../win/curses/cursstat.c:925:12: +/usr/include/i386-linux-gnu/bits/string_fortified.h:106:10: warning: '__builtin___strncpy_chk' specified bound depends on the length of the source argument [-Wstringop-overflow=] + 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../win/curses/cursstat.c: In function 'curs_HPbar': +../win/curses/cursstat.c:923:30: note: length computed here + 923 | if (bar_len > (k = (int) strlen(text))) /* 26 for vertical status */ + | ^~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o cursinit.o ../win/curses/cursinit.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o cursmesg.o ../win/curses/cursmesg.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o cursinvt.o ../win/curses/cursinvt.c +../win/curses/cursinit.c: In function 'curses_choose_character': +../win/curses/cursinit.c:455:26: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] + 455 | sprintf(choice, "%s%c", tmpchoice, '\033'); + | ^ +In file included from /usr/include/stdio.h:867, + from /usr/include/curses.h:192, + from ../win/curses/cursinit.c:6: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 2 and 129 bytes into a destination of size 128 + 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 37 | __bos (__s), __fmt, __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o allmain.o allmain.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o apply.o apply.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o artifact.o artifact.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o attrib.o attrib.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o ball.o ball.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o bones.o bones.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o botl.o botl.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o cmd.o cmd.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o dbridge.o dbridge.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o decl.o decl.c +In file included from /usr/include/string.h:495, + from ../include/system.h:306, + from ../include/unixconf.h:322, + from ../include/global.h:136, + from ../include/config.h:588, + from ../include/hack.h:10, + from cmd.c:6: +In function 'strncpy', + inlined from 'attributes_enlightenment' at cmd.c:2727:20: +/usr/include/i386-linux-gnu/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' output truncated before terminating nul copying 12 bytes from a string of the same length [-Wstringop-truncation] + 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o detect.o detect.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o dig.o dig.c +botl.c: In function 'status_hilite_linestr_gather_conditions': +botl.c:2793:48: warning: '%s' directive writing up to 255 bytes into a region of size 245 [-Wformat-overflow=] + 2793 | Sprintf(condbuf, "condition/%s/%s", + | ^~ + 2794 | conditionbitmask2str(cond_maps[i].bm), clrbuf); + | ~~~~~~ +In file included from /usr/include/stdio.h:867, + from ../include/global.h:9, + from ../include/config.h:588, + from ../include/hack.h:10, + from botl.c:6: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 12 or more bytes (assuming 267) into a destination of size 256 + 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 37 | __bos (__s), __fmt, __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o display.o display.c botl.c: In function 'status_hilite_menu_add': botl.c:3385:38: warning: ' or ' directive writing 4 bytes into a region of size between 1 and 80 [-Wformat-overflow=] 3385 | Sprintf(obuf, "%s or %s", @@ -1645,7 +1797,6 @@ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o engrave.o engrave.c cmd.c: In function 'enlght_halfdmg': cmd.c:1653:24: warning: '%s' directive writing up to 255 bytes into a region of size 247 [-Wformat-overflow=] 1653 | Sprintf(buf, " %s%s%s%s.", start, middle, end, ps); @@ -1660,7 +1811,6 @@ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o exper.o exper.c cmd.c: In function 'one_characteristic': cmd.c:1653:22: warning: '%s' directive writing between 3 and 4 bytes into a region of size between 0 and 255 [-Wformat-overflow=] 1653 | Sprintf(buf, " %s%s%s%s.", start, middle, end, ps); @@ -1675,10 +1825,7 @@ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o explode.o explode.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o extralev.o extralev.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o files.o files.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o fountain.o fountain.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o do.o do.c cmd.c: In function 'background_enlightenment.constprop': cmd.c:1653:24: warning: '%s' directive writing up to 255 bytes into a region of size between 246 and 247 [-Wformat-overflow=] 1653 | Sprintf(buf, " %s%s%s%s.", start, middle, end, ps); @@ -1693,60 +1840,51 @@ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o hack.o hack.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o hacklib.o hacklib.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o invent.o invent.c -explode.c: In function 'explode': -explode.c:539:67: warning: '%s' directive writing up to 255 bytes into a region of size 236 [-Wformat-overflow=] - 539 | Sprintf(killer.name, "caught %sself in %s own %s", uhim(), - | ^~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o do_name.o do_name.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o do_wear.o do_wear.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o dog.o dog.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o dogmove.o dogmove.c +do_name.c: In function 'getpos_menu': +do_name.c:604:37: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] + 604 | Sprintf(fullbuf, "%s%s%s", firstmatch, + | ^ In file included from /usr/include/stdio.h:867, from ../include/global.h:9, from ../include/config.h:588, from ../include/hack.h:10, - from explode.c:5: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 21 or more bytes (assuming 276) into a destination of size 256 + from do_name.c:6: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 1 or more bytes (assuming 257) into a destination of size 256 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o light.o light.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o lock.o lock.c -In file included from /usr/include/string.h:495, - from ../include/system.h:306, - from ../include/unixconf.h:322, - from ../include/global.h:136, +do_name.c: In function 'getpos': +do_name.c:190:31: warning: '%s' directive writing up to 255 bytes into a region of size 249 [-Wformat-overflow=] + 190 | Sprintf(sbuf, "Type a %s when you are at the right place.", kbuf); + | ^~ ~~~~ +In file included from /usr/include/stdio.h:867, + from ../include/global.h:9, from ../include/config.h:588, from ../include/hack.h:10, - from engrave.c:6: -In function 'strncat', - inlined from 'doengrave' at engrave.c:1154:12: -/usr/include/i386-linux-gnu/bits/string_fortified.h:136:10: warning: '__builtin___strncat_chk' output may be truncated copying between 0 and 255 bytes from a string of length 255 [-Wstringop-truncation] - 136 | return __builtin___strncat_chk (__dest, __src, __len, __bos (__dest)); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mail.o mail.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o makemon.o makemon.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mapglyph.o mapglyph.c -hacklib.c: In function 'yyyymmddhhmmss': -hacklib.c:1031:28: warning: '%02d' directive writing between 2 and 11 bytes into a region of size between 4 and 11 [-Wformat-overflow=] - 1031 | Sprintf(datestr, "%04ld%02d%02d%02d%02d%02d", datenum, lt->tm_mon + 1, - | ^~~~ -hacklib.c:1031:22: note: directive argument in the range [-2147483647, 2147483647] - 1031 | Sprintf(datestr, "%04ld%02d%02d%02d%02d%02d", datenum, lt->tm_mon + 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ + from do_name.c:6: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 41 and 296 bytes into a destination of size 256 + 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 37 | __bos (__s), __fmt, __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +do_name.c:190:31: warning: '%s' directive writing up to 255 bytes into a region of size 249 [-Wformat-overflow=] + 190 | Sprintf(sbuf, "Type a %s when you are at the right place.", kbuf); + | ^~ ~~~~ In file included from /usr/include/stdio.h:867, from ../include/global.h:9, from ../include/config.h:588, from ../include/hack.h:10, - from hacklib.c:7: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 15 and 67 bytes into a destination of size 15 + from do_name.c:6: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 41 and 296 bytes into a destination of size 256 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mcastu.o mcastu.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mhitm.o mhitm.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mhitu.o mhitu.c cmd.c: In function 'enlightenment': cmd.c:1653:24: warning: '%s' directive writing up to 255 bytes into a region of size between 246 and 247 [-Wformat-overflow=] 1653 | Sprintf(buf, " %s%s%s%s.", start, middle, end, ps); @@ -1774,7 +1912,6 @@ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o minion.o minion.c cmd.c:1653:24: warning: '%s' directive writing up to 255 bytes into a region of size between 246 and 247 [-Wformat-overflow=] 1653 | Sprintf(buf, " %s%s%s%s.", start, middle, end, ps); | ^~ @@ -1853,13 +1990,17 @@ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mklev.o mklev.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mkmap.o mkmap.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mkmaze.o mkmaze.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mkobj.o mkobj.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mkroom.o mkroom.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mon.o mon.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mondata.o mondata.c +dogmove.c: In function 'droppables': +cc1: warning: function may return address of local variable [-Wreturn-local-addr] +dogmove.c:29:28: note: declared here + 29 | struct obj *obj, *wep, dummy, *pickaxe, *unihorn, *key; + | ^~~~~ +dogmove.c:29:28: note: declared here +dogmove.c:29:28: note: declared here +dogmove.c:29:28: note: declared here +dogmove.c:29:28: note: declared here +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o dokick.o dokick.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o dothrow.o dothrow.c cmd.c: In function 'show_conduct': cmd.c:1653:24: warning: '%s' directive writing up to 255 bytes into a region of size between 246 and 251 [-Wformat-overflow=] 1653 | Sprintf(buf, " %s%s%s%s.", start, middle, end, ps); @@ -1952,6 +2093,78 @@ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o drawing.o drawing.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o dungeon.o dungeon.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o eat.o eat.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o end.o end.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o engrave.o engrave.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o exper.o exper.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o explode.o explode.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o extralev.o extralev.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o files.o files.c +explode.c: In function 'explode': +explode.c:539:67: warning: '%s' directive writing up to 255 bytes into a region of size 236 [-Wformat-overflow=] + 539 | Sprintf(killer.name, "caught %sself in %s own %s", uhim(), + | ^~ +In file included from /usr/include/stdio.h:867, + from ../include/global.h:9, + from ../include/config.h:588, + from ../include/hack.h:10, + from explode.c:5: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 21 or more bytes (assuming 276) into a destination of size 256 + 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 37 | __bos (__s), __fmt, __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o fountain.o fountain.c +In file included from /usr/include/string.h:495, + from ../include/system.h:306, + from ../include/unixconf.h:322, + from ../include/global.h:136, + from ../include/config.h:588, + from ../include/hack.h:10, + from engrave.c:6: +In function 'strncat', + inlined from 'doengrave' at engrave.c:1154:12: +/usr/include/i386-linux-gnu/bits/string_fortified.h:136:10: warning: '__builtin___strncat_chk' output may be truncated copying between 0 and 255 bytes from a string of length 255 [-Wstringop-truncation] + 136 | return __builtin___strncat_chk (__dest, __src, __len, __bos (__dest)); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o hack.o hack.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o hacklib.o hacklib.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o invent.o invent.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o light.o light.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o lock.o lock.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mail.o mail.c +hacklib.c: In function 'yyyymmddhhmmss': +hacklib.c:1031:28: warning: '%02d' directive writing between 2 and 11 bytes into a region of size between 4 and 11 [-Wformat-overflow=] + 1031 | Sprintf(datestr, "%04ld%02d%02d%02d%02d%02d", datenum, lt->tm_mon + 1, + | ^~~~ +hacklib.c:1031:22: note: directive argument in the range [-2147483647, 2147483647] + 1031 | Sprintf(datestr, "%04ld%02d%02d%02d%02d%02d", datenum, lt->tm_mon + 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/stdio.h:867, + from ../include/global.h:9, + from ../include/config.h:588, + from ../include/hack.h:10, + from hacklib.c:7: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 15 and 67 bytes into a destination of size 15 + 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 37 | __bos (__s), __fmt, __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o makemon.o makemon.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mapglyph.o mapglyph.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mcastu.o mcastu.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mhitm.o mhitm.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mhitu.o mhitu.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o minion.o minion.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mklev.o mklev.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mkmap.o mkmap.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mkmaze.o mkmaze.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mkobj.o mkobj.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mkroom.o mkroom.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mon.o mon.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mondata.o mondata.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o monmove.o monmove.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mplayer.o mplayer.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o mthrowu.o mthrowu.c @@ -1962,9 +2175,6 @@ cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o options.o options.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o pager.o pager.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o pickup.o pickup.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o pline.o pline.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o polyself.o polyself.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o potion.o potion.c In file included from /usr/include/string.h:495, from ../include/system.h:306, from ../include/unixconf.h:322, @@ -1977,37 +2187,6 @@ /usr/include/i386-linux-gnu/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' output truncated before terminating nul copying 3 bytes from a string of the same length [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -pline.c: In function 'vpline': -pline.c:129:9: warning: variable 'vlen' set but not used [-Wunused-but-set-variable] - 129 | int vlen = 0; - | ^~~~ -pline.c: In function 'vconfig_error_add': -pline.c:598:9: warning: variable 'vlen' set but not used [-Wunused-but-set-variable] - 598 | int vlen = 0; - | ^~~~ -In file included from /usr/include/string.h:495, - from ../include/system.h:306, - from ../include/unixconf.h:322, - from ../include/global.h:136, - from ../include/config.h:588, - from ../include/hack.h:10, - from pline.c:7: -In function 'strncpy', - inlined from 'vpline' at pline.c:162:16: -/usr/include/i386-linux-gnu/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' output truncated before terminating nul copying 3 bytes from a string of the same length [-Wstringop-truncation] - 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o pray.o pray.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o priest.o priest.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o quest.o quest.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o questpgr.o questpgr.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o read.o read.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o rect.o rect.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o region.o region.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o restore.o restore.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o rip.o rip.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o rnd.o rnd.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o role.o role.c In file included from /usr/include/string.h:495, from ../include/system.h:306, from ../include/unixconf.h:322, @@ -2025,7 +2204,6 @@ objnam.c:69:28: note: length computed here 69 | register int i = (int) strlen(pref); | ^~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o rumors.o rumors.c In file included from /usr/include/string.h:495, from ../include/system.h:306, from ../include/unixconf.h:322, @@ -2043,24 +2221,27 @@ objnam.c:69:28: note: length computed here 69 | register int i = (int) strlen(pref); | ^~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o save.o save.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o shk.o shk.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o shknam.o shknam.c -options.c: In function 'option_help': -options.c:6279:28: warning: ' - ' directive writing 3 bytes into a region of size between 1 and 236 [-Wformat-overflow=] - 6279 | Sprintf(buf, "%-20s - %s%c", buf2, compopt[i].descr, - | ^~~ -In file included from /usr/include/stdio.h:867, - from ../include/global.h:9, +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o pline.o pline.c +pline.c: In function 'vpline': +pline.c:129:9: warning: variable 'vlen' set but not used [-Wunused-but-set-variable] + 129 | int vlen = 0; + | ^~~~ +pline.c: In function 'vconfig_error_add': +pline.c:598:9: warning: variable 'vlen' set but not used [-Wunused-but-set-variable] + 598 | int vlen = 0; + | ^~~~ +In file included from /usr/include/string.h:495, + from ../include/system.h:306, + from ../include/unixconf.h:322, + from ../include/global.h:136, from ../include/config.h:588, from ../include/hack.h:10, - from options.c:17: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 25 or more bytes (assuming 260) into a destination of size 256 - 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 37 | __bos (__s), __fmt, __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o sit.o sit.c + from pline.c:7: +In function 'strncpy', + inlined from 'vpline' at pline.c:162:16: +/usr/include/i386-linux-gnu/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' output truncated before terminating nul copying 3 bytes from a string of the same length [-Wstringop-truncation] + 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from ../include/system.h:306, from ../include/unixconf.h:322, @@ -2078,21 +2259,34 @@ objnam.c:69:28: note: length computed here 69 | register int i = (int) strlen(pref); | ^~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o sounds.o sounds.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o sp_lev.o sp_lev.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o spell.o spell.c -sounds.c: In function 'domonnoise': -sounds.c:622:40: warning: array subscript [0, 1] is outside array bounds of 'const char * const[2]' [-Warray-bounds] - 622 | verbl_msg = vampmsg[vampindex]; - | ~~~~~~~^~~~~~~~~~~ -sounds.c:592:38: note: while referencing 'vampmsg' - 592 | static const char *const vampmsg[] = { - | ^~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o sys.o sys.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o steal.o steal.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o steed.o steed.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o teleport.o teleport.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o timeout.o timeout.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o polyself.o polyself.c +options.c: In function 'option_help': +options.c:6279:28: warning: ' - ' directive writing 3 bytes into a region of size between 1 and 236 [-Wformat-overflow=] + 6279 | Sprintf(buf, "%-20s - %s%c", buf2, compopt[i].descr, + | ^~~ +In file included from /usr/include/stdio.h:867, + from ../include/global.h:9, + from ../include/config.h:588, + from ../include/hack.h:10, + from options.c:17: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 25 or more bytes (assuming 260) into a destination of size 256 + 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 37 | __bos (__s), __fmt, __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o potion.o potion.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o pray.o pray.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o priest.o priest.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o quest.o quest.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o questpgr.o questpgr.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o read.o read.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o rect.o rect.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o region.o region.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o restore.o restore.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o rip.o rip.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o rnd.o rnd.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o role.o role.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o rumors.o rumors.c potion.c: In function 'potionhit': potion.c:1406:41: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] 1406 | Sprintf(saddle_glows, "%s %s", buf, aobjnam(saddle, "glow")); @@ -2120,36 +2314,6 @@ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o topten.o topten.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o track.o track.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o trap.o trap.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o u_init.o u_init.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o uhitm.o uhitm.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o vault.o vault.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o vision.o vision.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o vis_tab.o vis_tab.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o weapon.o weapon.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o were.o were.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o wield.o wield.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o windows.o windows.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o wizard.o wizard.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o worm.o worm.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o worn.o worn.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o write.o write.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o zap.o zap.c -In file included from /usr/include/string.h:495, - from ../include/system.h:306, - from ../include/unixconf.h:322, - from ../include/global.h:136, - from ../include/config.h:588, - from ../include/hack.h:10, - from write.c:4: -In function 'strncpy', - inlined from 'dowrite' at write.c:161:16: -/usr/include/i386-linux-gnu/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' output truncated before terminating nul copying 7 bytes from a string of the same length [-Wstringop-truncation] - 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o posixregex.o ../sys/share/posixregex.c options.c: In function 'doset': options.c:4555:40: warning: 's [' directive writing 3 bytes into a region of size between 2 and 11 [-Wformat-overflow=] 4555 | Sprintf(fmtstr_doset, "%%s%%-%us [%%s]", longest_name_len); @@ -2176,134 +2340,36 @@ /usr/include/i386-linux-gnu/bits/string_fortified.h:136:10: warning: '__builtin_strncat' output may be truncated copying between 0 and 255 bytes from a string of length 255 [-Wstringop-truncation] 136 | return __builtin___strncat_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o ioctl.o ../sys/share/ioctl.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o unixmain.o ../sys/unix/unixmain.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o unixtty.o ../sys/share/unixtty.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o unixunix.o ../sys/unix/unixunix.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o getline.o ../win/tty/getline.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o termcap.o ../win/tty/termcap.c -weapon.c: In function 'enhance_weapon_skill': -weapon.c:1261:47: warning: '%s' directive writing up to 255 bytes into a region of size between 249 and 253 [-Wformat-overflow=] - 1261 | Sprintf(buf, " %s%s\t[%s]", prefix, P_NAME(i), - | ^~ - 1262 | sklnambuf); - | ~~~~~~~~~ -In file included from /usr/include/stdio.h:867, - from ../include/global.h:9, - from ../include/config.h:588, - from ../include/hack.h:10, - from weapon.c:11: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 5 or more bytes (assuming 264) into a destination of size 256 - 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 37 | __bos (__s), __fmt, __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -weapon.c:1258:49: warning: '%s' directive writing up to 255 bytes into a region of size between 248 and 252 [-Wformat-overflow=] - 1258 | Sprintf(buf, " %s %-*s [%s]", prefix, longest, - | ^~ - 1259 | P_NAME(i), sklnambuf); - | ~~~~~~~~~ -In file included from /usr/include/stdio.h:867, - from ../include/global.h:9, - from ../include/config.h:588, - from ../include/hack.h:10, - from weapon.c:11: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 6 or more bytes (assuming 265) into a destination of size 256 - 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 37 | __bos (__s), __fmt, __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -weapon.c:1253:46: warning: '%s' directive writing up to 255 bytes into a region of size between 250 and 254 [-Wformat-overflow=] - 1253 | Sprintf(buf, " %s%s\t%s\t%5d(%4d)", prefix, P_NAME(i), - | ^~ - 1254 | sklnambuf, P_ADVANCE(i), - | ~~~~~~~~~ -weapon.c:1253:38: note: directive argument in the range [0, 65535] - 1253 | Sprintf(buf, " %s%s\t%s\t%5d(%4d)", prefix, P_NAME(i), - | ^~~~~~~~~~~~~~~~~~~~~ -weapon.c:1253:38: note: directive argument in the range [-325120, 327680] -In file included from /usr/include/stdio.h:867, - from ../include/global.h:9, - from ../include/config.h:588, - from ../include/hack.h:10, - from weapon.c:11: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 15 or more bytes (assuming 277) into a destination of size 256 - 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 37 | __bos (__s), __fmt, __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -weapon.c:1249:47: warning: '%-12s' directive writing between 12 and 255 bytes into a region of size between 250 and 254 [-Wformat-overflow=] - 1249 | Sprintf(buf, " %s%-*s %-12s %5d(%4d)", prefix, - | ^~~~~ - 1250 | longest, P_NAME(i), sklnambuf, P_ADVANCE(i), - | ~~~~~~~~~ -weapon.c:1249:38: note: directive argument in the range [0, 65535] - 1249 | Sprintf(buf, " %s%-*s %-12s %5d(%4d)", prefix, - | ^~~~~~~~~~~~~~~~~~~~~~~~ -weapon.c:1249:38: note: directive argument in the range [-325120, 327680] -In file included from /usr/include/stdio.h:867, - from ../include/global.h:9, - from ../include/config.h:588, - from ../include/hack.h:10, - from weapon.c:11: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 27 or more bytes (assuming 277) into a destination of size 256 - 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 37 | __bos (__s), __fmt, __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o topl.o ../win/tty/topl.c -In file included from /usr/include/string.h:495, - from ../include/system.h:306, - from ../include/unixconf.h:322, - from ../include/global.h:136, - from ../include/config.h:588, - from ../include/hack.h:10, - from ../sys/unix/unixmain.c:8: -In function 'strncat', - inlined from 'main' at ../sys/unix/unixmain.c:244:20: -/usr/include/i386-linux-gnu/bits/string_fortified.h:136:10: warning: '__builtin___strncat_chk' output may be truncated copying between 0 and 30 bytes from a string of length 31 [-Wstringop-truncation] - 136 | return __builtin___strncat_chk (__dest, __src, __len, __bos (__dest)); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o wintty.o ../win/tty/wintty.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o cursmain.o ../win/curses/cursmain.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o curswins.o ../win/curses/curswins.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o cursmisc.o ../win/curses/cursmisc.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o cursdial.o ../win/curses/cursdial.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o cursstat.o ../win/curses/cursstat.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o cursinit.o ../win/curses/cursinit.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o cursmesg.o ../win/curses/cursmesg.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o cursinvt.o ../win/curses/cursinvt.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o save.o save.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o shk.o shk.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o shknam.o shknam.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o sit.o sit.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o sounds.o sounds.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o sp_lev.o sp_lev.c +sounds.c: In function 'domonnoise': +sounds.c:622:40: warning: array subscript [0, 1] is outside array bounds of 'const char * const[2]' [-Warray-bounds] + 622 | verbl_msg = vampmsg[vampindex]; + | ~~~~~~~^~~~~~~~~~~ +sounds.c:592:38: note: while referencing 'vampmsg' + 592 | static const char *const vampmsg[] = { + | ^~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o spell.o spell.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o sys.o sys.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o steal.o steal.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o steed.o steed.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o teleport.o teleport.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o timeout.o timeout.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o topten.o topten.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o track.o track.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o trap.o trap.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o u_init.o u_init.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o uhitm.o uhitm.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o vault.o vault.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o vision.o vision.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o vis_tab.o vis_tab.c /bin/sh ../sys/unix/gitinfo.sh 1 #before 'makedefs -v' ../util/makedefs -v cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DCURSES_GRAPHICS -c -o version.o version.c -In file included from /usr/include/string.h:495, - from ../include/system.h:306, - from ../include/unixconf.h:322, - from ../include/global.h:136, - from ../include/config.h:588, - from ../include/hack.h:10, - from ../win/curses/cursstat.c:7: -In function 'strncpy', - inlined from 'curs_HPbar' at ../win/curses/cursstat.c:925:12: -/usr/include/i386-linux-gnu/bits/string_fortified.h:106:10: warning: '__builtin___strncpy_chk' specified bound depends on the length of the source argument [-Wstringop-overflow=] - 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../win/curses/cursstat.c: In function 'curs_HPbar': -../win/curses/cursstat.c:923:30: note: length computed here - 923 | if (bar_len > (k = (int) strlen(text))) /* 26 for vertical status */ - | ^~~~~~~~~~~~ -../win/curses/cursinit.c: In function 'curses_choose_character': -../win/curses/cursinit.c:455:26: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] - 455 | sprintf(choice, "%s%c", tmpchoice, '\033'); - | ^ -In file included from /usr/include/stdio.h:867, - from /usr/include/curses.h:192, - from ../win/curses/cursinit.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 2 and 129 bytes into a destination of size 128 - 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 37 | __bos (__s), __fmt, __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sp_lev.c: In function 'load_special': sp_lev.c:4272:20: warning: 'typ' may be used uninitialized in this function [-Wmaybe-uninitialized] 4272 | levl[x][y].typ = (*(int *) arg); @@ -2374,24 +2440,16 @@ touch ../src/hack.h-t cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o allmain.o allmain.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o apply.o apply.c +make[3]: Entering directory '/build/nethack-3.6.6/util' +./makedefs -z +make[3]: Leaving directory '/build/nethack-3.6.6/util' cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o artifact.o artifact.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o attrib.o attrib.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o ball.o ball.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o bones.o bones.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o botl.o botl.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o cmd.o cmd.c -make[3]: Entering directory '/build/nethack-3.6.6/util' -./makedefs -z -make[3]: Leaving directory '/build/nethack-3.6.6/util' cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o dbridge.o dbridge.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o decl.o decl.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o detect.o detect.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o dig.o dig.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o display.o display.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o do.o do.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o do_name.o do_name.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o do_wear.o do_wear.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o dog.o dog.c In file included from /usr/include/string.h:495, from ../include/system.h:306, from ../include/unixconf.h:322, @@ -2404,22 +2462,7 @@ /usr/include/i386-linux-gnu/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' output truncated before terminating nul copying 12 bytes from a string of the same length [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o dogmove.o dogmove.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o dokick.o dokick.c -do_name.c: In function 'getpos_menu': -do_name.c:604:37: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] - 604 | Sprintf(fullbuf, "%s%s%s", firstmatch, - | ^ -In file included from /usr/include/stdio.h:867, - from ../include/global.h:9, - from ../include/config.h:588, - from ../include/hack.h:10, - from do_name.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 1 or more bytes (assuming 257) into a destination of size 256 - 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 37 | __bos (__s), __fmt, __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o decl.o decl.c botl.c: In function 'status_hilite_linestr_gather_conditions': botl.c:2793:48: warning: '%s' directive writing up to 255 bytes into a region of size 245 [-Wformat-overflow=] 2793 | Sprintf(condbuf, "condition/%s/%s", @@ -2436,49 +2479,12 @@ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o dothrow.o dothrow.c -dogmove.c: In function 'droppables': -cc1: warning: function may return address of local variable [-Wreturn-local-addr] -dogmove.c:29:28: note: declared here - 29 | struct obj *obj, *wep, dummy, *pickaxe, *unihorn, *key; - | ^~~~~ -dogmove.c:29:28: note: declared here -dogmove.c:29:28: note: declared here -dogmove.c:29:28: note: declared here -dogmove.c:29:28: note: declared here -do_name.c: In function 'getpos': -do_name.c:190:31: warning: '%s' directive writing up to 255 bytes into a region of size 249 [-Wformat-overflow=] - 190 | Sprintf(sbuf, "Type a %s when you are at the right place.", kbuf); - | ^~ ~~~~ -In file included from /usr/include/stdio.h:867, - from ../include/global.h:9, - from ../include/config.h:588, - from ../include/hack.h:10, - from do_name.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 41 and 296 bytes into a destination of size 256 - 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 37 | __bos (__s), __fmt, __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -do_name.c:190:31: warning: '%s' directive writing up to 255 bytes into a region of size 249 [-Wformat-overflow=] - 190 | Sprintf(sbuf, "Type a %s when you are at the right place.", kbuf); - | ^~ ~~~~ -In file included from /usr/include/stdio.h:867, - from ../include/global.h:9, - from ../include/config.h:588, - from ../include/hack.h:10, - from do_name.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 41 and 296 bytes into a destination of size 256 - 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 37 | __bos (__s), __fmt, __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o drawing.o drawing.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o dungeon.o dungeon.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o eat.o eat.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o end.o end.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o engrave.o engrave.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o detect.o detect.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o dig.o dig.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o display.o display.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o do.o do.c cmd.c: In function 'enlght_halfdmg': +botl.c: In function 'status_hilite_menu_add': cmd.c:1653:24: warning: '%s' directive writing up to 255 bytes into a region of size 247 [-Wformat-overflow=] 1653 | Sprintf(buf, " %s%s%s%s.", start, middle, end, ps); | ^~ @@ -2492,21 +2498,6 @@ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cmd.c: In function 'one_characteristic': -cmd.c:1653:22: warning: '%s' directive writing between 3 and 4 bytes into a region of size between 0 and 255 [-Wformat-overflow=] - 1653 | Sprintf(buf, " %s%s%s%s.", start, middle, end, ps); - | ^~ -In file included from /usr/include/stdio.h:867, - from ../include/global.h:9, - from ../include/config.h:588, - from ../include/hack.h:10, - from cmd.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 6 or more bytes (assuming 262) into a destination of size 256 - 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 37 | __bos (__s), __fmt, __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -botl.c: In function 'status_hilite_menu_add': botl.c:3385:38: warning: ' or ' directive writing 4 bytes into a region of size between 1 and 80 [-Wformat-overflow=] 3385 | Sprintf(obuf, "%s or %s", | ^~~~ @@ -2520,78 +2511,34 @@ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o exper.o exper.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o explode.o explode.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o extralev.o extralev.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o files.o files.c -cmd.c: In function 'background_enlightenment.constprop': -cmd.c:1653:24: warning: '%s' directive writing up to 255 bytes into a region of size between 246 and 247 [-Wformat-overflow=] +cmd.c: In function 'one_characteristic': +cmd.c:1653:22: warning: '%s' directive writing between 3 and 4 bytes into a region of size between 0 and 255 [-Wformat-overflow=] 1653 | Sprintf(buf, " %s%s%s%s.", start, middle, end, ps); - | ^~ + | ^~ In file included from /usr/include/stdio.h:867, from ../include/global.h:9, from ../include/config.h:588, from ../include/hack.h:10, from cmd.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 11 and 267 bytes into a destination of size 256 - 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 37 | __bos (__s), __fmt, __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o fountain.o fountain.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o hack.o hack.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o hacklib.o hacklib.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o invent.o invent.c -explode.c: In function 'explode': -explode.c:539:67: warning: '%s' directive writing up to 255 bytes into a region of size 236 [-Wformat-overflow=] - 539 | Sprintf(killer.name, "caught %sself in %s own %s", uhim(), - | ^~ -In file included from /usr/include/stdio.h:867, - from ../include/global.h:9, - from ../include/config.h:588, - from ../include/hack.h:10, - from explode.c:5: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 21 or more bytes (assuming 276) into a destination of size 256 +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 6 or more bytes (assuming 262) into a destination of size 256 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/string.h:495, - from ../include/system.h:306, - from ../include/unixconf.h:322, - from ../include/global.h:136, - from ../include/config.h:588, - from ../include/hack.h:10, - from engrave.c:6: -In function 'strncat', - inlined from 'doengrave' at engrave.c:1154:12: -/usr/include/i386-linux-gnu/bits/string_fortified.h:136:10: warning: '__builtin___strncat_chk' output may be truncated copying between 0 and 255 bytes from a string of length 255 [-Wstringop-truncation] - 136 | return __builtin___strncat_chk (__dest, __src, __len, __bos (__dest)); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o light.o light.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o lock.o lock.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mail.o mail.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o makemon.o makemon.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mapglyph.o mapglyph.c -hacklib.c: In function 'yyyymmddhhmmss': -hacklib.c:1031:28: warning: '%02d' directive writing between 2 and 11 bytes into a region of size between 4 and 11 [-Wformat-overflow=] - 1031 | Sprintf(datestr, "%04ld%02d%02d%02d%02d%02d", datenum, lt->tm_mon + 1, - | ^~~~ -hacklib.c:1031:22: note: directive argument in the range [-2147483647, 2147483647] - 1031 | Sprintf(datestr, "%04ld%02d%02d%02d%02d%02d", datenum, lt->tm_mon + 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ +cmd.c: In function 'background_enlightenment.constprop': +cmd.c:1653:24: warning: '%s' directive writing up to 255 bytes into a region of size between 246 and 247 [-Wformat-overflow=] + 1653 | Sprintf(buf, " %s%s%s%s.", start, middle, end, ps); + | ^~ In file included from /usr/include/stdio.h:867, from ../include/global.h:9, from ../include/config.h:588, from ../include/hack.h:10, - from hacklib.c:7: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 15 and 67 bytes into a destination of size 15 + from cmd.c:6: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 11 and 267 bytes into a destination of size 256 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mcastu.o mcastu.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mhitm.o mhitm.c cmd.c: In function 'enlightenment': cmd.c:1653:24: warning: '%s' directive writing up to 255 bytes into a region of size between 246 and 247 [-Wformat-overflow=] 1653 | Sprintf(buf, " %s%s%s%s.", start, middle, end, ps); @@ -2697,14 +2644,7 @@ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mhitu.o mhitu.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o minion.o minion.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mklev.o mklev.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mkmap.o mkmap.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mkmaze.o mkmaze.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mkobj.o mkobj.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mkroom.o mkroom.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mon.o mon.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o do_name.o do_name.c cmd.c: In function 'show_conduct': cmd.c:1653:24: warning: '%s' directive writing up to 255 bytes into a region of size between 246 and 251 [-Wformat-overflow=] 1653 | Sprintf(buf, " %s%s%s%s.", start, middle, end, ps); @@ -2797,6 +2737,132 @@ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o do_wear.o do_wear.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o dog.o dog.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o dogmove.o dogmove.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o dokick.o dokick.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o dothrow.o dothrow.c +dogmove.c: In function 'droppables': +cc1: warning: function may return address of local variable [-Wreturn-local-addr] +dogmove.c:29:28: note: declared here + 29 | struct obj *obj, *wep, dummy, *pickaxe, *unihorn, *key; + | ^~~~~ +dogmove.c:29:28: note: declared here +dogmove.c:29:28: note: declared here +dogmove.c:29:28: note: declared here +dogmove.c:29:28: note: declared here +do_name.c: In function 'getpos_menu': +do_name.c:604:37: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] + 604 | Sprintf(fullbuf, "%s%s%s", firstmatch, + | ^ +In file included from /usr/include/stdio.h:867, + from ../include/global.h:9, + from ../include/config.h:588, + from ../include/hack.h:10, + from do_name.c:6: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 1 or more bytes (assuming 257) into a destination of size 256 + 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 37 | __bos (__s), __fmt, __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +do_name.c: In function 'getpos': +do_name.c:190:31: warning: '%s' directive writing up to 255 bytes into a region of size 249 [-Wformat-overflow=] + 190 | Sprintf(sbuf, "Type a %s when you are at the right place.", kbuf); + | ^~ ~~~~ +In file included from /usr/include/stdio.h:867, + from ../include/global.h:9, + from ../include/config.h:588, + from ../include/hack.h:10, + from do_name.c:6: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 41 and 296 bytes into a destination of size 256 + 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 37 | __bos (__s), __fmt, __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +do_name.c:190:31: warning: '%s' directive writing up to 255 bytes into a region of size 249 [-Wformat-overflow=] + 190 | Sprintf(sbuf, "Type a %s when you are at the right place.", kbuf); + | ^~ ~~~~ +In file included from /usr/include/stdio.h:867, + from ../include/global.h:9, + from ../include/config.h:588, + from ../include/hack.h:10, + from do_name.c:6: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 41 and 296 bytes into a destination of size 256 + 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 37 | __bos (__s), __fmt, __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o drawing.o drawing.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o dungeon.o dungeon.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o eat.o eat.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o end.o end.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o engrave.o engrave.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o exper.o exper.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o explode.o explode.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o extralev.o extralev.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o files.o files.c +explode.c: In function 'explode': +explode.c:539:67: warning: '%s' directive writing up to 255 bytes into a region of size 236 [-Wformat-overflow=] + 539 | Sprintf(killer.name, "caught %sself in %s own %s", uhim(), + | ^~ +In file included from /usr/include/stdio.h:867, + from ../include/global.h:9, + from ../include/config.h:588, + from ../include/hack.h:10, + from explode.c:5: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 21 or more bytes (assuming 276) into a destination of size 256 + 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 37 | __bos (__s), __fmt, __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/string.h:495, + from ../include/system.h:306, + from ../include/unixconf.h:322, + from ../include/global.h:136, + from ../include/config.h:588, + from ../include/hack.h:10, + from engrave.c:6: +In function 'strncat', + inlined from 'doengrave' at engrave.c:1154:12: +/usr/include/i386-linux-gnu/bits/string_fortified.h:136:10: warning: '__builtin___strncat_chk' output may be truncated copying between 0 and 255 bytes from a string of length 255 [-Wstringop-truncation] + 136 | return __builtin___strncat_chk (__dest, __src, __len, __bos (__dest)); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o fountain.o fountain.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o hack.o hack.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o hacklib.o hacklib.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o invent.o invent.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o light.o light.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o lock.o lock.c +hacklib.c: In function 'yyyymmddhhmmss': +hacklib.c:1031:28: warning: '%02d' directive writing between 2 and 11 bytes into a region of size between 4 and 11 [-Wformat-overflow=] + 1031 | Sprintf(datestr, "%04ld%02d%02d%02d%02d%02d", datenum, lt->tm_mon + 1, + | ^~~~ +hacklib.c:1031:22: note: directive argument in the range [-2147483647, 2147483647] + 1031 | Sprintf(datestr, "%04ld%02d%02d%02d%02d%02d", datenum, lt->tm_mon + 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/stdio.h:867, + from ../include/global.h:9, + from ../include/config.h:588, + from ../include/hack.h:10, + from hacklib.c:7: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 15 and 67 bytes into a destination of size 15 + 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 37 | __bos (__s), __fmt, __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mail.o mail.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o makemon.o makemon.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mapglyph.o mapglyph.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mcastu.o mcastu.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mhitm.o mhitm.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mhitu.o mhitu.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o minion.o minion.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mklev.o mklev.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mkmap.o mkmap.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mkmaze.o mkmaze.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mkobj.o mkobj.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mkroom.o mkroom.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mon.o mon.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mondata.o mondata.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o monmove.o monmove.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mplayer.o mplayer.c @@ -2808,8 +2874,6 @@ cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o options.o options.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o pager.o pager.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o pickup.o pickup.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o pline.o pline.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o polyself.o polyself.c In file included from /usr/include/string.h:495, from ../include/system.h:306, from ../include/unixconf.h:322, @@ -2822,6 +2886,7 @@ /usr/include/i386-linux-gnu/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' output truncated before terminating nul copying 3 bytes from a string of the same length [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o pline.o pline.c pline.c: In function 'vpline': pline.c:129:9: warning: variable 'vlen' set but not used [-Wunused-but-set-variable] 129 | int vlen = 0; @@ -2842,17 +2907,6 @@ /usr/include/i386-linux-gnu/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' output truncated before terminating nul copying 3 bytes from a string of the same length [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o potion.o potion.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o pray.o pray.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o priest.o priest.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o quest.o quest.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o questpgr.o questpgr.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o read.o read.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o rect.o rect.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o region.o region.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o restore.o restore.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o rip.o rip.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o rnd.o rnd.c In file included from /usr/include/string.h:495, from ../include/system.h:306, from ../include/unixconf.h:322, @@ -2887,9 +2941,8 @@ objnam.c:69:28: note: length computed here 69 | register int i = (int) strlen(pref); | ^~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o role.o role.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o rumors.o rumors.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o save.o save.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o polyself.o polyself.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o potion.o potion.c In file included from /usr/include/string.h:495, from ../include/system.h:306, from ../include/unixconf.h:322, @@ -2907,7 +2960,6 @@ objnam.c:69:28: note: length computed here 69 | register int i = (int) strlen(pref); | ^~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o shk.o shk.c options.c: In function 'option_help': options.c:6279:28: warning: ' - ' directive writing 3 bytes into a region of size between 1 and 236 [-Wformat-overflow=] 6279 | Sprintf(buf, "%-20s - %s%c", buf2, compopt[i].descr, @@ -2922,24 +2974,15 @@ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o shknam.o shknam.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o sit.o sit.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o sounds.o sounds.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o sp_lev.o sp_lev.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o spell.o spell.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o sys.o sys.c -sounds.c: In function 'domonnoise': -sounds.c:622:40: warning: array subscript [0, 1] is outside array bounds of 'const char * const[2]' [-Warray-bounds] - 622 | verbl_msg = vampmsg[vampindex]; - | ~~~~~~~^~~~~~~~~~~ -sounds.c:592:38: note: while referencing 'vampmsg' - 592 | static const char *const vampmsg[] = { - | ^~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o steal.o steal.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o steed.o steed.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o teleport.o teleport.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o timeout.o timeout.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o pray.o pray.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o priest.o priest.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o quest.o quest.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o questpgr.o questpgr.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o read.o read.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o rect.o rect.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o region.o region.c potion.c: In function 'potionhit': +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o restore.o restore.c potion.c:1406:41: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] 1406 | Sprintf(saddle_glows, "%s %s", buf, aobjnam(saddle, "glow")); | ^ @@ -2966,54 +3009,9 @@ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o topten.o topten.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o track.o track.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o trap.o trap.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o u_init.o u_init.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o uhitm.o uhitm.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o vault.o vault.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o vision.o vision.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o vis_tab.o vis_tab.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o weapon.o weapon.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o were.o were.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o wield.o wield.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o windows.o windows.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o wizard.o wizard.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o worm.o worm.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o worn.o worn.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o write.o write.c -In file included from /usr/include/string.h:495, - from ../include/system.h:306, - from ../include/unixconf.h:322, - from ../include/global.h:136, - from ../include/config.h:588, - from ../include/hack.h:10, - from write.c:4: -In function 'strncpy', - inlined from 'dowrite' at write.c:161:16: -/usr/include/i386-linux-gnu/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' output truncated before terminating nul copying 7 bytes from a string of the same length [-Wstringop-truncation] - 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o zap.o zap.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o posixregex.o ../sys/share/posixregex.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o ioctl.o ../sys/share/ioctl.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o unixmain.o ../sys/unix/unixmain.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o unixtty.o ../sys/share/unixtty.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o unixunix.o ../sys/unix/unixunix.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o getline.o ../win/tty/getline.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o termcap.o ../win/tty/termcap.c -In file included from /usr/include/string.h:495, - from ../include/system.h:306, - from ../include/unixconf.h:322, - from ../include/global.h:136, - from ../include/config.h:588, - from ../include/hack.h:10, - from ../sys/unix/unixmain.c:8: -In function 'strncat', - inlined from 'main' at ../sys/unix/unixmain.c:244:20: -/usr/include/i386-linux-gnu/bits/string_fortified.h:136:10: warning: '__builtin___strncat_chk' output may be truncated copying between 0 and 30 bytes from a string of length 31 [-Wstringop-truncation] - 136 | return __builtin___strncat_chk (__dest, __src, __len, __bos (__dest)); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o rip.o rip.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o rnd.o rnd.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o role.o role.c options.c: In function 'doset': options.c:4555:40: warning: 's [' directive writing 3 bytes into a region of size between 2 and 11 [-Wformat-overflow=] 4555 | Sprintf(fmtstr_doset, "%%s%%-%us [%%s]", longest_name_len); @@ -3040,7 +3038,43 @@ /usr/include/i386-linux-gnu/bits/string_fortified.h:136:10: warning: '__builtin_strncat' output may be truncated copying between 0 and 255 bytes from a string of length 255 [-Wstringop-truncation] 136 | return __builtin___strncat_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o topl.o ../win/tty/topl.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o rumors.o rumors.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o save.o save.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o shk.o shk.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o shknam.o shknam.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o sit.o sit.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o sounds.o sounds.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o sp_lev.o sp_lev.c +sounds.c: In function 'domonnoise': +sounds.c:622:40: warning: array subscript [0, 1] is outside array bounds of 'const char * const[2]' [-Warray-bounds] + 622 | verbl_msg = vampmsg[vampindex]; + | ~~~~~~~^~~~~~~~~~~ +sounds.c:592:38: note: while referencing 'vampmsg' + 592 | static const char *const vampmsg[] = { + | ^~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o spell.o spell.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o sys.o sys.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o steal.o steal.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o steed.o steed.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o teleport.o teleport.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o timeout.o timeout.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o topten.o topten.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o track.o track.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o trap.o trap.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o u_init.o u_init.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o uhitm.o uhitm.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o vault.o vault.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o vision.o vision.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o vis_tab.o vis_tab.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o weapon.o weapon.c +sp_lev.c: In function 'load_special': +sp_lev.c:4272:20: warning: 'typ' may be used uninitialized in this function [-Wmaybe-uninitialized] + 4272 | levl[x][y].typ = (*(int *) arg); +sp_lev.c:4320:9: note: 'typ' was declared here + 4320 | int typ; + | ^~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o were.o were.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o wield.o wield.c weapon.c: In function 'enhance_weapon_skill': weapon.c:1261:47: warning: '%s' directive writing up to 255 bytes into a region of size between 249 and 253 [-Wformat-overflow=] 1261 | Sprintf(buf, " %s%s\t[%s]", prefix, P_NAME(i), @@ -3110,11 +3144,46 @@ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o windows.o windows.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o wizard.o wizard.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o worm.o worm.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o worn.o worn.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o write.o write.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o zap.o zap.c +In file included from /usr/include/string.h:495, + from ../include/system.h:306, + from ../include/unixconf.h:322, + from ../include/global.h:136, + from ../include/config.h:588, + from ../include/hack.h:10, + from write.c:4: +In function 'strncpy', + inlined from 'dowrite' at write.c:161:16: +/usr/include/i386-linux-gnu/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' output truncated before terminating nul copying 7 bytes from a string of the same length [-Wstringop-truncation] + 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o posixregex.o ../sys/share/posixregex.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o ioctl.o ../sys/share/ioctl.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o unixmain.o ../sys/unix/unixmain.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o unixtty.o ../sys/share/unixtty.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o unixunix.o ../sys/unix/unixunix.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o getline.o ../win/tty/getline.c +In file included from /usr/include/string.h:495, + from ../include/system.h:306, + from ../include/unixconf.h:322, + from ../include/global.h:136, + from ../include/config.h:588, + from ../include/hack.h:10, + from ../sys/unix/unixmain.c:8: +In function 'strncat', + inlined from 'main' at ../sys/unix/unixmain.c:244:20: +/usr/include/i386-linux-gnu/bits/string_fortified.h:136:10: warning: '__builtin___strncat_chk' output may be truncated copying between 0 and 30 bytes from a string of length 31 [-Wstringop-truncation] + 136 | return __builtin___strncat_chk (__dest, __src, __len, __bos (__dest)); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o termcap.o ../win/tty/termcap.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o topl.o ../win/tty/topl.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o wintty.o ../win/tty/wintty.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o winX.o ../win/X11/winX.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o winmap.o ../win/X11/winmap.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o winmenu.o ../win/X11/winmenu.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o winmesg.o ../win/X11/winmesg.c ../win/X11/winX.c: In function 'init_standard_windows': ../win/X11/winX.c:2575:46: warning: passing argument 2 of 'XtAppSetErrorHandler' makes '__attribute__((noreturn))' qualified function pointer from unqualified [-Wdiscarded-qualifiers] 2575 | (void) XtAppSetErrorHandler(app_context, (XtErrorHandler) hangup); @@ -3130,27 +3199,9 @@ ../win/X11/winX.c:1569:12: warning: ignoring return value of 'seteuid' declared with attribute 'warn_unused_result' [-Wunused-result] 1569 | (void) seteuid(savuid); | ^~~~~~~~~~~~~~~ -../win/X11/winmap.c: In function 'map_update': -../win/X11/winmap.c:1243:24: warning: variable 'win_start_col' set but not used [-Wunused-but-set-variable] - 1243 | int win_start_row, win_start_col; - | ^~~~~~~~~~~~~ -../win/X11/winmap.c:1243:9: warning: variable 'win_start_row' set but not used [-Wunused-but-set-variable] - 1243 | int win_start_row, win_start_col; - | ^~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o winmisc.o ../win/X11/winmisc.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o winstat.o ../win/X11/winstat.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o wintext.o ../win/X11/wintext.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o winval.o ../win/X11/winval.c -make[3]: Entering directory '/build/nethack-3.6.6/util' -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c ../win/share/tilemap.c -../win/X11/winmisc.c: In function 'X11_player_selection_randomize': -../win/X11/winmisc.c:504:13: warning: variable 'fully_specified_role' set but not used [-Wunused-but-set-variable] - 504 | boolean fully_specified_role, choose_race_first; - | ^~~~~~~~~~~~~~~~~~~~ -../win/X11/winstat.c: In function 'X11_status_update_tty': -../win/X11/winstat.c:314:20: warning: variable 'oncearound' set but not used [-Wunused-but-set-variable] - 314 | static boolean oncearound = FALSE; /* prevent premature partial display */ - | ^~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o winmap.o ../win/X11/winmap.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o winmenu.o ../win/X11/winmenu.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o winmesg.o ../win/X11/winmesg.c In file included from /usr/include/string.h:495, from /usr/include/X11/Intrinsic.h:61, from ../win/X11/winX.c:19: @@ -3175,6 +3226,27 @@ ../win/X11/winX.c:1746:11: note: length computed here 1746 | len = strlen(s); | ^~~~~~~~~ +../win/X11/winmap.c: In function 'map_update': +../win/X11/winmap.c:1243:24: warning: variable 'win_start_col' set but not used [-Wunused-but-set-variable] + 1243 | int win_start_row, win_start_col; + | ^~~~~~~~~~~~~ +../win/X11/winmap.c:1243:9: warning: variable 'win_start_row' set but not used [-Wunused-but-set-variable] + 1243 | int win_start_row, win_start_col; + | ^~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o winmisc.o ../win/X11/winmisc.c +../win/X11/winmisc.c: In function 'X11_player_selection_randomize': +../win/X11/winmisc.c:504:13: warning: variable 'fully_specified_role' set but not used [-Wunused-but-set-variable] + 504 | boolean fully_specified_role, choose_race_first; + | ^~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o winstat.o ../win/X11/winstat.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o wintext.o ../win/X11/wintext.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o winval.o ../win/X11/winval.c +../win/X11/winstat.c: In function 'X11_status_update_tty': +../win/X11/winstat.c:314:20: warning: variable 'oncearound' set but not used [-Wunused-but-set-variable] + 314 | static boolean oncearound = FALSE; /* prevent premature partial display */ + | ^~~~~~~~~~ +make[3]: Entering directory '/build/nethack-3.6.6/util' +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c ../win/share/tilemap.c cc -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wl,-z,now -o tilemap tilemap.o ./tilemap make[3]: Leaving directory '/build/nethack-3.6.6/util' @@ -3182,12 +3254,6 @@ /bin/sh ../sys/unix/gitinfo.sh 1 #before 'makedefs -v' ../util/makedefs -v cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o version.o version.c -sp_lev.c: In function 'load_special': -sp_lev.c:4272:20: warning: 'typ' may be used uninitialized in this function [-Wmaybe-uninitialized] - 4272 | levl[x][y].typ = (*(int *) arg); -sp_lev.c:4320:9: note: 'typ' was declared here - 4320 | int typ; - | ^~~ Linking nethack-x11. cc -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wl,-z,now -o nethack-x11 monst.o objects.o allmain.o alloc.o apply.o artifact.o attrib.o ball.o bones.o botl.o cmd.o dbridge.o decl.o detect.o dig.o display.o dlb.o do.o do_name.o do_wear.o dog.o dogmove.o dokick.o dothrow.o drawing.o dungeon.o eat.o end.o engrave.o exper.o explode.o extralev.o files.o fountain.o hack.o hacklib.o invent.o isaac64.o light.o lock.o mail.o makemon.o mapglyph.o mcastu.o mhitm.o mhitu.o minion.o mklev.o mkmap.o mkmaze.o mkobj.o mkroom.o mon.o mondata.o monmove.o mplayer.o mthrowu.o muse.o music.o o_init.o objnam.o options.o pager.o pickup.o pline.o polyself.o potion.o pray.o priest.o quest.o questpgr.o read.o rect.o region.o restore.o rip.o rnd.o role.o rumors.o save.o shk.o shknam.o sit.o sounds.o sp_lev.o spell.o sys.o steal.o steed.o teleport.o timeout.o topten.o track.o trap.o u_init.o uhitm.o vault.o vision.o vis_tab.o weapon.o were.o wield.o windows.o wizard.o worm.o worn.o write.o zap.o posixregex.o ioctl.o unixmain.o unixtty.o unixunix.o unixres.o getline.o termcap.o topl.o wintty.o Window.o dialogs.o winX.o winmap.o winmenu.o winmesg.o winmisc.o winstat.o wintext.o winval.o tile.o version.o -lncurses -lXaw -Wl,--as-needed -lXmu -lXext -Wl,--no-as-needed -lXt -lXpm -lX11 -Wl,--as-needed -lm -Wl,--no-as-needed nethack-x11 is up to date. @@ -3261,23 +3327,22 @@ make[3]: Leaving directory '/build/nethack-3.6.6/util' touch ../src/hack.h-t cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o allmain.o allmain.c +make[3]: Entering directory '/build/nethack-3.6.6/util' +./makedefs -z +make[3]: Leaving directory '/build/nethack-3.6.6/util' cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o apply.o apply.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o artifact.o artifact.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o attrib.o attrib.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o ball.o ball.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o bones.o bones.c +../win/Qt4/qt4str.cpp: In function 'QString nethack_qt4::nh_capitalize_words(const QString&)': +../win/Qt4/qt4str.cpp:38:26: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'unsigned int'} and 'int' [-Wsign-compare] + 38 | for (size_t i = 0; i < words.size(); ++i) { + | ~~^~~~~~~~~~~~~~ cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o botl.o botl.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o cmd.o cmd.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o dbridge.o dbridge.c -make[3]: Entering directory '/build/nethack-3.6.6/util' -./makedefs -z -make[3]: Leaving directory '/build/nethack-3.6.6/util' cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o decl.o decl.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o detect.o detect.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o dig.o dig.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o display.o display.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o do.o do.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o do_name.o do_name.c In file included from /usr/include/string.h:495, from ../include/system.h:306, from ../include/unixconf.h:322, @@ -3290,11 +3355,6 @@ /usr/include/i386-linux-gnu/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' output truncated before terminating nul copying 12 bytes from a string of the same length [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o do_wear.o do_wear.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o dog.o dog.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o dogmove.o dogmove.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o dokick.o dokick.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o dothrow.o dothrow.c botl.c: In function 'status_hilite_linestr_gather_conditions': botl.c:2793:48: warning: '%s' directive writing up to 255 bytes into a region of size 245 [-Wformat-overflow=] 2793 | Sprintf(condbuf, "condition/%s/%s", @@ -3311,63 +3371,10 @@ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o drawing.o drawing.c -do_name.c: In function 'getpos_menu': -do_name.c:604:37: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] - 604 | Sprintf(fullbuf, "%s%s%s", firstmatch, - | ^ -In file included from /usr/include/stdio.h:867, - from ../include/global.h:9, - from ../include/config.h:588, - from ../include/hack.h:10, - from do_name.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 1 or more bytes (assuming 257) into a destination of size 256 - 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 37 | __bos (__s), __fmt, __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -dogmove.c: In function 'droppables': -cc1: warning: function may return address of local variable [-Wreturn-local-addr] -dogmove.c:29:28: note: declared here - 29 | struct obj *obj, *wep, dummy, *pickaxe, *unihorn, *key; - | ^~~~~ -dogmove.c:29:28: note: declared here -dogmove.c:29:28: note: declared here -dogmove.c:29:28: note: declared here -dogmove.c:29:28: note: declared here -do_name.c: In function 'getpos': -do_name.c:190:31: warning: '%s' directive writing up to 255 bytes into a region of size 249 [-Wformat-overflow=] - 190 | Sprintf(sbuf, "Type a %s when you are at the right place.", kbuf); - | ^~ ~~~~ -In file included from /usr/include/stdio.h:867, - from ../include/global.h:9, - from ../include/config.h:588, - from ../include/hack.h:10, - from do_name.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 41 and 296 bytes into a destination of size 256 - 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 37 | __bos (__s), __fmt, __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -do_name.c:190:31: warning: '%s' directive writing up to 255 bytes into a region of size 249 [-Wformat-overflow=] - 190 | Sprintf(sbuf, "Type a %s when you are at the right place.", kbuf); - | ^~ ~~~~ -In file included from /usr/include/stdio.h:867, - from ../include/global.h:9, - from ../include/config.h:588, - from ../include/hack.h:10, - from do_name.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 41 and 296 bytes into a destination of size 256 - 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 37 | __bos (__s), __fmt, __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o dungeon.o dungeon.c -../win/Qt4/qt4str.cpp: In function 'QString nethack_qt4::nh_capitalize_words(const QString&)': -../win/Qt4/qt4str.cpp:38:26: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'unsigned int'} and 'int' [-Wsign-compare] - 38 | for (size_t i = 0; i < words.size(); ++i) { - | ~~^~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o eat.o eat.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o detect.o detect.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o dig.o dig.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o display.o display.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o do.o do.c cmd.c: In function 'enlght_halfdmg': cmd.c:1653:24: warning: '%s' directive writing up to 255 bytes into a region of size 247 [-Wformat-overflow=] 1653 | Sprintf(buf, " %s%s%s%s.", start, middle, end, ps); @@ -3396,8 +3403,6 @@ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o end.o end.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o engrave.o engrave.c cmd.c: In function 'background_enlightenment.constprop': cmd.c:1653:24: warning: '%s' directive writing up to 255 bytes into a region of size between 246 and 247 [-Wformat-overflow=] 1653 | Sprintf(buf, " %s%s%s%s.", start, middle, end, ps); @@ -3426,41 +3431,6 @@ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o exper.o exper.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o explode.o explode.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o extralev.o extralev.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o files.o files.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o fountain.o fountain.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o hack.o hack.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o hacklib.o hacklib.c -explode.c: In function 'explode': -explode.c:539:67: warning: '%s' directive writing up to 255 bytes into a region of size 236 [-Wformat-overflow=] - 539 | Sprintf(killer.name, "caught %sself in %s own %s", uhim(), - | ^~ -In file included from /usr/include/stdio.h:867, - from ../include/global.h:9, - from ../include/config.h:588, - from ../include/hack.h:10, - from explode.c:5: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 21 or more bytes (assuming 276) into a destination of size 256 - 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 37 | __bos (__s), __fmt, __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from /usr/include/string.h:495, - from ../include/system.h:306, - from ../include/unixconf.h:322, - from ../include/global.h:136, - from ../include/config.h:588, - from ../include/hack.h:10, - from engrave.c:6: -In function 'strncat', - inlined from 'doengrave' at engrave.c:1154:12: -/usr/include/i386-linux-gnu/bits/string_fortified.h:136:10: warning: '__builtin___strncat_chk' output may be truncated copying between 0 and 255 bytes from a string of length 255 [-Wstringop-truncation] - 136 | return __builtin___strncat_chk (__dest, __src, __len, __bos (__dest)); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o invent.o invent.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o light.o light.c cmd.c: In function 'enlightenment': cmd.c:1653:24: warning: '%s' directive writing up to 255 bytes into a region of size between 246 and 247 [-Wformat-overflow=] 1653 | Sprintf(buf, " %s%s%s%s.", start, middle, end, ps); @@ -3566,34 +3536,35 @@ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o lock.o lock.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o mail.o mail.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o makemon.o makemon.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o mapglyph.o mapglyph.c -hacklib.c: In function 'yyyymmddhhmmss': -hacklib.c:1031:28: warning: '%02d' directive writing between 2 and 11 bytes into a region of size between 4 and 11 [-Wformat-overflow=] - 1031 | Sprintf(datestr, "%04ld%02d%02d%02d%02d%02d", datenum, lt->tm_mon + 1, - | ^~~~ -hacklib.c:1031:22: note: directive argument in the range [-2147483647, 2147483647] - 1031 | Sprintf(datestr, "%04ld%02d%02d%02d%02d%02d", datenum, lt->tm_mon + 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o do_name.o do_name.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o do_wear.o do_wear.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o dog.o dog.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o dogmove.o dogmove.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o dokick.o dokick.c +do_name.c: In function 'getpos_menu': +do_name.c:604:37: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] + 604 | Sprintf(fullbuf, "%s%s%s", firstmatch, + | ^ In file included from /usr/include/stdio.h:867, from ../include/global.h:9, from ../include/config.h:588, from ../include/hack.h:10, - from hacklib.c:7: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 15 and 67 bytes into a destination of size 15 + from do_name.c:6: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 1 or more bytes (assuming 257) into a destination of size 256 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o mcastu.o mcastu.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o mhitm.o mhitm.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o mhitu.o mhitu.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o minion.o minion.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o mklev.o mklev.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o mkmap.o mkmap.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o mkmaze.o mkmaze.c +dogmove.c: In function 'droppables': +cc1: warning: function may return address of local variable [-Wreturn-local-addr] +dogmove.c:29:28: note: declared here + 29 | struct obj *obj, *wep, dummy, *pickaxe, *unihorn, *key; + | ^~~~~ +dogmove.c:29:28: note: declared here +dogmove.c:29:28: note: declared here +dogmove.c:29:28: note: declared here +dogmove.c:29:28: note: declared here +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o dothrow.o dothrow.c cmd.c: In function 'show_conduct': cmd.c:1653:24: warning: '%s' directive writing up to 255 bytes into a region of size between 246 and 251 [-Wformat-overflow=] 1653 | Sprintf(buf, " %s%s%s%s.", start, middle, end, ps); @@ -3686,6 +3657,101 @@ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +do_name.c: In function 'getpos': +do_name.c:190:31: warning: '%s' directive writing up to 255 bytes into a region of size 249 [-Wformat-overflow=] + 190 | Sprintf(sbuf, "Type a %s when you are at the right place.", kbuf); + | ^~ ~~~~ +In file included from /usr/include/stdio.h:867, + from ../include/global.h:9, + from ../include/config.h:588, + from ../include/hack.h:10, + from do_name.c:6: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 41 and 296 bytes into a destination of size 256 + 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 37 | __bos (__s), __fmt, __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +do_name.c:190:31: warning: '%s' directive writing up to 255 bytes into a region of size 249 [-Wformat-overflow=] + 190 | Sprintf(sbuf, "Type a %s when you are at the right place.", kbuf); + | ^~ ~~~~ +In file included from /usr/include/stdio.h:867, + from ../include/global.h:9, + from ../include/config.h:588, + from ../include/hack.h:10, + from do_name.c:6: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 41 and 296 bytes into a destination of size 256 + 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 37 | __bos (__s), __fmt, __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o drawing.o drawing.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o dungeon.o dungeon.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o eat.o eat.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o end.o end.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o engrave.o engrave.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o exper.o exper.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o explode.o explode.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o extralev.o extralev.c +explode.c: In function 'explode': +explode.c:539:67: warning: '%s' directive writing up to 255 bytes into a region of size 236 [-Wformat-overflow=] + 539 | Sprintf(killer.name, "caught %sself in %s own %s", uhim(), + | ^~ +In file included from /usr/include/stdio.h:867, + from ../include/global.h:9, + from ../include/config.h:588, + from ../include/hack.h:10, + from explode.c:5: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 21 or more bytes (assuming 276) into a destination of size 256 + 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 37 | __bos (__s), __fmt, __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/string.h:495, + from ../include/system.h:306, + from ../include/unixconf.h:322, + from ../include/global.h:136, + from ../include/config.h:588, + from ../include/hack.h:10, + from engrave.c:6: +In function 'strncat', + inlined from 'doengrave' at engrave.c:1154:12: +/usr/include/i386-linux-gnu/bits/string_fortified.h:136:10: warning: '__builtin___strncat_chk' output may be truncated copying between 0 and 255 bytes from a string of length 255 [-Wstringop-truncation] + 136 | return __builtin___strncat_chk (__dest, __src, __len, __bos (__dest)); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o files.o files.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o fountain.o fountain.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o hack.o hack.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o hacklib.o hacklib.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o invent.o invent.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o light.o light.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o lock.o lock.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o mail.o mail.c +hacklib.c: In function 'yyyymmddhhmmss': +hacklib.c:1031:28: warning: '%02d' directive writing between 2 and 11 bytes into a region of size between 4 and 11 [-Wformat-overflow=] + 1031 | Sprintf(datestr, "%04ld%02d%02d%02d%02d%02d", datenum, lt->tm_mon + 1, + | ^~~~ +hacklib.c:1031:22: note: directive argument in the range [-2147483647, 2147483647] + 1031 | Sprintf(datestr, "%04ld%02d%02d%02d%02d%02d", datenum, lt->tm_mon + 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/stdio.h:867, + from ../include/global.h:9, + from ../include/config.h:588, + from ../include/hack.h:10, + from hacklib.c:7: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 15 and 67 bytes into a destination of size 15 + 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 37 | __bos (__s), __fmt, __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o makemon.o makemon.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o mapglyph.o mapglyph.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o mcastu.o mcastu.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o mhitm.o mhitm.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o mhitu.o mhitu.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o minion.o minion.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o mklev.o mklev.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o mkmap.o mkmap.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o mkmaze.o mkmaze.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o mkobj.o mkobj.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o mkroom.o mkroom.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o mon.o mon.c @@ -3701,19 +3767,6 @@ cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o pager.o pager.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o pickup.o pickup.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o pline.o pline.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o polyself.o polyself.c -In file included from /usr/include/string.h:495, - from ../include/system.h:306, - from ../include/unixconf.h:322, - from ../include/global.h:136, - from ../include/config.h:588, - from ../include/hack.h:10, - from pager.c:9: -In function 'strncpy', - inlined from 'checkfile.constprop' at pager.c:652:16: -/usr/include/i386-linux-gnu/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' output truncated before terminating nul copying 3 bytes from a string of the same length [-Wstringop-truncation] - 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pline.c: In function 'vpline': pline.c:129:9: warning: variable 'vlen' set but not used [-Wunused-but-set-variable] 129 | int vlen = 0; @@ -3734,16 +3787,18 @@ /usr/include/i386-linux-gnu/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' output truncated before terminating nul copying 3 bytes from a string of the same length [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o potion.o potion.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o pray.o pray.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o priest.o priest.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o quest.o quest.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o questpgr.o questpgr.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o read.o read.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o rect.o rect.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o region.o region.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o restore.o restore.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o rip.o rip.c +In file included from /usr/include/string.h:495, + from ../include/system.h:306, + from ../include/unixconf.h:322, + from ../include/global.h:136, + from ../include/config.h:588, + from ../include/hack.h:10, + from pager.c:9: +In function 'strncpy', + inlined from 'checkfile.constprop' at pager.c:652:16: +/usr/include/i386-linux-gnu/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' output truncated before terminating nul copying 3 bytes from a string of the same length [-Wstringop-truncation] + 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from ../include/system.h:306, from ../include/unixconf.h:322, @@ -3761,20 +3816,6 @@ objnam.c:69:28: note: length computed here 69 | register int i = (int) strlen(pref); | ^~~~~~~~~~~~ -options.c: In function 'option_help': -options.c:6279:28: warning: ' - ' directive writing 3 bytes into a region of size between 1 and 236 [-Wformat-overflow=] - 6279 | Sprintf(buf, "%-20s - %s%c", buf2, compopt[i].descr, - | ^~~ -In file included from /usr/include/stdio.h:867, - from ../include/global.h:9, - from ../include/config.h:588, - from ../include/hack.h:10, - from options.c:17: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 25 or more bytes (assuming 260) into a destination of size 256 - 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 37 | __bos (__s), __fmt, __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from ../include/system.h:306, from ../include/unixconf.h:322, @@ -3792,8 +3833,7 @@ objnam.c:69:28: note: length computed here 69 | register int i = (int) strlen(pref); | ^~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o rnd.o rnd.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o role.o role.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o polyself.o polyself.c In file included from /usr/include/string.h:495, from ../include/system.h:306, from ../include/unixconf.h:322, @@ -3811,30 +3851,28 @@ objnam.c:69:28: note: length computed here 69 | register int i = (int) strlen(pref); | ^~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o rumors.o rumors.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o save.o save.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o shk.o shk.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o shknam.o shknam.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o sit.o sit.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o sounds.o sounds.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o sp_lev.o sp_lev.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o spell.o spell.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o sys.o sys.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o steal.o steal.c -potion.c: In function 'potionhit': -potion.c:1406:41: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] - 1406 | Sprintf(saddle_glows, "%s %s", buf, aobjnam(saddle, "glow")); - | ^ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o potion.o potion.c +options.c: In function 'option_help': +options.c:6279:28: warning: ' - ' directive writing 3 bytes into a region of size between 1 and 236 [-Wformat-overflow=] + 6279 | Sprintf(buf, "%-20s - %s%c", buf2, compopt[i].descr, + | ^~~ In file included from /usr/include/stdio.h:867, from ../include/global.h:9, from ../include/config.h:588, from ../include/hack.h:10, - from potion.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 2 or more bytes (assuming 257) into a destination of size 256 + from options.c:17: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 25 or more bytes (assuming 260) into a destination of size 256 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o pray.o pray.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o priest.o priest.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o quest.o quest.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o questpgr.o questpgr.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o read.o read.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o rect.o rect.c +potion.c: In function 'potionhit': potion.c:1406:41: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] 1406 | Sprintf(saddle_glows, "%s %s", buf, aobjnam(saddle, "glow")); | ^ @@ -3848,43 +3886,25 @@ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o steed.o steed.c -sounds.c: In function 'domonnoise': -sounds.c:622:40: warning: array subscript [0, 1] is outside array bounds of 'const char * const[2]' [-Warray-bounds] - 622 | verbl_msg = vampmsg[vampindex]; - | ~~~~~~~^~~~~~~~~~~ -sounds.c:592:38: note: while referencing 'vampmsg' - 592 | static const char *const vampmsg[] = { - | ^~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o teleport.o teleport.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o timeout.o timeout.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o topten.o topten.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o track.o track.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o trap.o trap.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o u_init.o u_init.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o uhitm.o uhitm.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o vault.o vault.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o vision.o vision.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o vis_tab.o vis_tab.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o weapon.o weapon.c -sounds.c: In function 'add_sound_mapping': -sounds.c:1135:33: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] - 1135 | Sprintf(filespec, "%s/%s", sounddir, filename); - | ^ +potion.c:1406:41: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] + 1406 | Sprintf(saddle_glows, "%s %s", buf, aobjnam(saddle, "glow")); + | ^ In file included from /usr/include/stdio.h:867, from ../include/global.h:9, from ../include/config.h:588, from ../include/hack.h:10, - from sounds.c:5: + from potion.c:6: /usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 2 or more bytes (assuming 257) into a destination of size 256 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o were.o were.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o wield.o wield.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o windows.o windows.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o wizard.o wizard.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o region.o region.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o restore.o restore.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o rip.o rip.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o rnd.o rnd.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o role.o role.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o rumors.o rumors.c options.c: In function 'doset': options.c:4555:40: warning: 's [' directive writing 3 bytes into a region of size between 2 and 11 [-Wformat-overflow=] 4555 | Sprintf(fmtstr_doset, "%%s%%-%us [%%s]", longest_name_len); @@ -3911,26 +3931,54 @@ /usr/include/i386-linux-gnu/bits/string_fortified.h:136:10: warning: '__builtin_strncat' output may be truncated copying between 0 and 255 bytes from a string of length 255 [-Wstringop-truncation] 136 | return __builtin___strncat_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o worm.o worm.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o worn.o worn.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o write.o write.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o zap.o zap.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o posixregex.o ../sys/share/posixregex.c -In file included from /usr/include/string.h:495, - from ../include/system.h:306, - from ../include/unixconf.h:322, - from ../include/global.h:136, +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o save.o save.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o shk.o shk.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o shknam.o shknam.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o sit.o sit.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o sounds.o sounds.c +sounds.c: In function 'domonnoise': +sounds.c:622:40: warning: array subscript [0, 1] is outside array bounds of 'const char * const[2]' [-Warray-bounds] + 622 | verbl_msg = vampmsg[vampindex]; + | ~~~~~~~^~~~~~~~~~~ +sounds.c:592:38: note: while referencing 'vampmsg' + 592 | static const char *const vampmsg[] = { + | ^~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o sp_lev.o sp_lev.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o spell.o spell.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o sys.o sys.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o steal.o steal.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o steed.o steed.c +sounds.c: In function 'add_sound_mapping': +sounds.c:1135:33: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] + 1135 | Sprintf(filespec, "%s/%s", sounddir, filename); + | ^ +In file included from /usr/include/stdio.h:867, + from ../include/global.h:9, from ../include/config.h:588, from ../include/hack.h:10, - from write.c:4: -In function 'strncpy', - inlined from 'dowrite' at write.c:161:16: -/usr/include/i386-linux-gnu/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' output truncated before terminating nul copying 7 bytes from a string of the same length [-Wstringop-truncation] - 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o ioctl.o ../sys/share/ioctl.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o unixmain.o ../sys/unix/unixmain.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o unixtty.o ../sys/share/unixtty.c + from sounds.c:5: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 2 or more bytes (assuming 257) into a destination of size 256 + 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 37 | __bos (__s), __fmt, __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o teleport.o teleport.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o timeout.o timeout.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o topten.o topten.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o track.o track.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o trap.o trap.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o u_init.o u_init.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o uhitm.o uhitm.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o vault.o vault.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o vision.o vision.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o vis_tab.o vis_tab.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o weapon.o weapon.c +sp_lev.c: In function 'load_special': +sp_lev.c:4272:20: warning: 'typ' may be used uninitialized in this function [-Wmaybe-uninitialized] + 4272 | levl[x][y].typ = (*(int *) arg); +sp_lev.c:4320:9: note: 'typ' was declared here + 4320 | int typ; + | ^~~ weapon.c: In function 'enhance_weapon_skill': weapon.c:1261:47: warning: '%s' directive writing up to 255 bytes into a region of size between 249 and 253 [-Wformat-overflow=] 1261 | Sprintf(buf, " %s%s\t[%s]", prefix, P_NAME(i), @@ -4000,11 +4048,31 @@ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o were.o were.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o wield.o wield.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o windows.o windows.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o wizard.o wizard.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o worm.o worm.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o worn.o worn.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o write.o write.c +In file included from /usr/include/string.h:495, + from ../include/system.h:306, + from ../include/unixconf.h:322, + from ../include/global.h:136, + from ../include/config.h:588, + from ../include/hack.h:10, + from write.c:4: +In function 'strncpy', + inlined from 'dowrite' at write.c:161:16: +/usr/include/i386-linux-gnu/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' output truncated before terminating nul copying 7 bytes from a string of the same length [-Wstringop-truncation] + 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o zap.o zap.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o posixregex.o ../sys/share/posixregex.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o ioctl.o ../sys/share/ioctl.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o unixmain.o ../sys/unix/unixmain.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o unixtty.o ../sys/share/unixtty.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o unixunix.o ../sys/unix/unixunix.c -g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -I. -I/usr/include -c -o qt4bind.o ../win/Qt4/qt4bind.cpp -g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -I. -I/usr/include -c -o qt4click.o ../win/Qt4/qt4click.cpp -g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -I. -I/usr/include -c -o qt4delay.o ../win/Qt4/qt4delay.cpp -g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -I. -I/usr/include -c -o qt4glyph.o ../win/Qt4/qt4glyph.cpp In file included from /usr/include/string.h:495, from ../include/system.h:306, from ../include/unixconf.h:322, @@ -4017,74 +4085,13 @@ /usr/include/i386-linux-gnu/bits/string_fortified.h:136:10: warning: '__builtin___strncat_chk' output may be truncated copying between 0 and 30 bytes from a string of length 31 [-Wstringop-truncation] 136 | return __builtin___strncat_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -I. -I/usr/include -c -o qt4bind.o ../win/Qt4/qt4bind.cpp +g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -I. -I/usr/include -c -o qt4click.o ../win/Qt4/qt4click.cpp +g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -I. -I/usr/include -c -o qt4delay.o ../win/Qt4/qt4delay.cpp +g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -I. -I/usr/include -c -o qt4glyph.o ../win/Qt4/qt4glyph.cpp g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -I. -I/usr/include -c -o qt4icon.o ../win/Qt4/qt4icon.cpp g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -I. -I/usr/include -c -o qt4inv.o ../win/Qt4/qt4inv.cpp g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -I. -I/usr/include -c -o qt4key.o ../win/Qt4/qt4key.cpp -g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -I. -I/usr/include -c -o qt4line.o ../win/Qt4/qt4line.cpp -g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -I. -I/usr/include -c -o qt4main.o ../win/Qt4/qt4main.cpp -g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -I. -I/usr/include -c -o qt4map.o ../win/Qt4/qt4map.cpp -g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -I. -I/usr/include -c -o qt4menu.o ../win/Qt4/qt4menu.cpp -sp_lev.c: In function 'load_special': -sp_lev.c:4272:20: warning: 'typ' may be used uninitialized in this function [-Wmaybe-uninitialized] - 4272 | levl[x][y].typ = (*(int *) arg); -sp_lev.c:4320:9: note: 'typ' was declared here - 4320 | int typ; - | ^~~ -g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -I. -I/usr/include -c -o qt4msg.o ../win/Qt4/qt4msg.cpp -g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -I. -I/usr/include -c -o qt4plsel.o ../win/Qt4/qt4plsel.cpp -g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -I. -I/usr/include -c -o qt4rip.o ../win/Qt4/qt4rip.cpp -g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -I. -I/usr/include -c -o qt4set.o ../win/Qt4/qt4set.cpp -g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -I. -I/usr/include -c -o qt4stat.o ../win/Qt4/qt4stat.cpp -../win/Qt4/qt4key.cpp: In member function 'Qt::KeyboardModifiers nethack_qt4::NetHackQtKeyBuffer::GetState()': -../win/Qt4/qt4key.cpp:67:27: warning: 'constexpr QFlags::QFlags(QFlags::Zero) [with Enum = Qt::KeyboardModifier; QFlags::Zero = int QFlags::Private::*]' is deprecated: Use default constructor instead [-Wdeprecated-declarations] - 67 | if ( Empty() ) return 0; - | ^ -In file included from /usr/include/i386-linux-gnu/qt5/QtCore/qglobal.h:1304, - from /usr/include/i386-linux-gnu/qt5/QtCore/QtCore:4, - from /usr/include/i386-linux-gnu/qt5/QtGui/QtGuiDepends:3, - from /usr/include/i386-linux-gnu/qt5/QtGui/QtGui:3, - from ../win/Qt4/qt4key.cpp:18: -/usr/include/i386-linux-gnu/qt5/QtCore/qflags.h:123:80: note: declared here - 123 | QT_DEPRECATED_X("Use default constructor instead") Q_DECL_CONSTEXPR inline QFlags(Zero) noexcept : i(0) {} - | ^~~~~~ -../win/Qt4/qt4key.cpp: In member function 'Qt::KeyboardModifiers nethack_qt4::NetHackQtKeyBuffer::TopState() const': -../win/Qt4/qt4key.cpp:87:27: warning: 'constexpr QFlags::QFlags(QFlags::Zero) [with Enum = Qt::KeyboardModifier; QFlags::Zero = int QFlags::Private::*]' is deprecated: Use default constructor instead [-Wdeprecated-declarations] - 87 | if ( Empty() ) return 0; - | ^ -In file included from /usr/include/i386-linux-gnu/qt5/QtCore/qglobal.h:1304, - from /usr/include/i386-linux-gnu/qt5/QtCore/QtCore:4, - from /usr/include/i386-linux-gnu/qt5/QtGui/QtGuiDepends:3, - from /usr/include/i386-linux-gnu/qt5/QtGui/QtGui:3, - from ../win/Qt4/qt4key.cpp:18: -/usr/include/i386-linux-gnu/qt5/QtCore/qflags.h:123:80: note: declared here - 123 | QT_DEPRECATED_X("Use default constructor instead") Q_DECL_CONSTEXPR inline QFlags(Zero) noexcept : i(0) {} - | ^~~~~~ -../win/Qt4/qt4main.cpp: In function 'QString nethack_qt4::aboutMsg()': -../win/Qt4/qt4main.cpp:457:12: warning: 'QString& QString::sprintf(const char*, ...)' is deprecated: Use asprintf(), arg() or QTextStream instead [-Wdeprecated-declarations] - 457 | PATCHLEVEL); - | ^ -In file included from /usr/include/i386-linux-gnu/qt5/QtCore/qobject.h:47, - from /usr/include/i386-linux-gnu/qt5/QtCore/qabstractanimation.h:43, - from /usr/include/i386-linux-gnu/qt5/QtCore/QtCore:6, - from /usr/include/i386-linux-gnu/qt5/QtGui/QtGuiDepends:3, - from /usr/include/i386-linux-gnu/qt5/QtGui/QtGui:3, - from ../win/Qt4/qt4main.cpp:21: -/usr/include/i386-linux-gnu/qt5/QtCore/qstring.h:393:14: note: declared here - 393 | QString &sprintf(const char *format, ...) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3); - | ^~~~~~~ -../win/Qt4/qt4glyph.cpp: In constructor 'nethack_qt4::NetHackQtGlyphs::NetHackQtGlyphs()': -../win/Qt4/qt4glyph.cpp:55:55: warning: 'QString& QString::sprintf(const char*, ...)' is deprecated: Use asprintf(), arg() or QTextStream instead [-Wdeprecated-declarations] - 55 | msg.sprintf("Cannot load x11tiles or nhtiles.bmp"); - | ^ -In file included from /usr/include/i386-linux-gnu/qt5/QtCore/qobject.h:47, - from /usr/include/i386-linux-gnu/qt5/QtCore/qabstractanimation.h:43, - from /usr/include/i386-linux-gnu/qt5/QtCore/QtCore:6, - from /usr/include/i386-linux-gnu/qt5/QtGui/QtGuiDepends:3, - from /usr/include/i386-linux-gnu/qt5/QtGui/QtGui:3, - from ../win/Qt4/qt4glyph.cpp:21: -/usr/include/i386-linux-gnu/qt5/QtCore/qstring.h:393:14: note: declared here - 393 | QString &sprintf(const char *format, ...) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3); - | ^~~~~~~ In file included from ../win/Qt4/qt4bind.cpp:36: ../win/Qt4/qt4menu.h: In member function 'int nethack_qt4::NetHackQtTextListBox::TotalWidth() const': ../win/Qt4/qt4menu.h:24:43: warning: 'int QFontMetrics::width(const QString&, int) const' is deprecated: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations] @@ -4141,8 +4148,19 @@ ../win/Qt4/qt4bind.cpp:682:51: warning: comparison of integer expressions of different signedness: 'QFlags::Int' {aka 'unsigned int'} and 'int' [-Wsign-compare] 682 | && ((key_macro[i].state&key_event->modifiers())==key_macro[i].state)) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ -g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -I. -I/usr/include -c -o qt4streq.o ../win/Qt4/qt4streq.cpp -g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -I. -I/usr/include -c -o qt4svsel.o ../win/Qt4/qt4svsel.cpp +../win/Qt4/qt4glyph.cpp: In constructor 'nethack_qt4::NetHackQtGlyphs::NetHackQtGlyphs()': +../win/Qt4/qt4glyph.cpp:55:55: warning: 'QString& QString::sprintf(const char*, ...)' is deprecated: Use asprintf(), arg() or QTextStream instead [-Wdeprecated-declarations] + 55 | msg.sprintf("Cannot load x11tiles or nhtiles.bmp"); + | ^ +In file included from /usr/include/i386-linux-gnu/qt5/QtCore/qobject.h:47, + from /usr/include/i386-linux-gnu/qt5/QtCore/qabstractanimation.h:43, + from /usr/include/i386-linux-gnu/qt5/QtCore/QtCore:6, + from /usr/include/i386-linux-gnu/qt5/QtGui/QtGuiDepends:3, + from /usr/include/i386-linux-gnu/qt5/QtGui/QtGui:3, + from ../win/Qt4/qt4glyph.cpp:21: +/usr/include/i386-linux-gnu/qt5/QtCore/qstring.h:393:14: note: declared here + 393 | QString &sprintf(const char *format, ...) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3); + | ^~~~~~~ ../win/Qt4/qt4icon.cpp: In member function 'void nethack_qt4::NetHackQtLabelledIcon::setLabel(const QString&, long int, long int, const QString&)': ../win/Qt4/qt4icon.cpp:74:22: warning: 'QString& QString::sprintf(const char*, ...)' is deprecated: Use asprintf(), arg() or QTextStream instead [-Wdeprecated-declarations] 74 | buf.sprintf("%ld", v); @@ -4156,17 +4174,54 @@ /usr/include/i386-linux-gnu/qt5/QtCore/qstring.h:393:14: note: declared here 393 | QString &sprintf(const char *format, ...) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3); | ^~~~~~~ -../win/Qt4/qt4map.cpp: In member function 'virtual void nethack_qt4::NetHackQtMapViewport::paintEvent(QPaintEvent*)': -../win/Qt4/qt4map.cpp:121:20: warning: 'int QFontMetrics::width(const QString&, int) const' is deprecated: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations] - 121 | if ( fm.width("M") > qt_settings->glyphs().width() ) - | ^ -In file included from /usr/include/i386-linux-gnu/qt5/QtGui/QtGui:26, - from ../win/Qt4/qt4map.cpp:20: -/usr/include/i386-linux-gnu/qt5/QtGui/qfontmetrics.h:106:9: note: declared here - 106 | int width(const QString &, int len = -1) const; - | ^~~~~ -g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -I. -I/usr/include -c -o qt4win.o ../win/Qt4/qt4win.cpp -g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -I. -I/usr/include -c -o qt4xcmd.o ../win/Qt4/qt4xcmd.cpp +g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -I. -I/usr/include -c -o qt4line.o ../win/Qt4/qt4line.cpp +../win/Qt4/qt4bind.cpp: At global scope: +../win/Qt4/qt4bind.cpp:722:13: warning: 'void nethack_qt4::Qt_positionbar(char*)' defined but not used [-Wunused-function] + 722 | static void Qt_positionbar(char *) {} + | ^~~~~~~~~~~~~~ +g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -I. -I/usr/include -c -o qt4main.o ../win/Qt4/qt4main.cpp +g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -I. -I/usr/include -c -o qt4map.o ../win/Qt4/qt4map.cpp +g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -I. -I/usr/include -c -o qt4menu.o ../win/Qt4/qt4menu.cpp +g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -I. -I/usr/include -c -o qt4msg.o ../win/Qt4/qt4msg.cpp +../win/Qt4/qt4key.cpp: In member function 'Qt::KeyboardModifiers nethack_qt4::NetHackQtKeyBuffer::GetState()': +../win/Qt4/qt4key.cpp:67:27: warning: 'constexpr QFlags::QFlags(QFlags::Zero) [with Enum = Qt::KeyboardModifier; QFlags::Zero = int QFlags::Private::*]' is deprecated: Use default constructor instead [-Wdeprecated-declarations] + 67 | if ( Empty() ) return 0; + | ^ +In file included from /usr/include/i386-linux-gnu/qt5/QtCore/qglobal.h:1304, + from /usr/include/i386-linux-gnu/qt5/QtCore/QtCore:4, + from /usr/include/i386-linux-gnu/qt5/QtGui/QtGuiDepends:3, + from /usr/include/i386-linux-gnu/qt5/QtGui/QtGui:3, + from ../win/Qt4/qt4key.cpp:18: +/usr/include/i386-linux-gnu/qt5/QtCore/qflags.h:123:80: note: declared here + 123 | QT_DEPRECATED_X("Use default constructor instead") Q_DECL_CONSTEXPR inline QFlags(Zero) noexcept : i(0) {} + | ^~~~~~ +../win/Qt4/qt4key.cpp: In member function 'Qt::KeyboardModifiers nethack_qt4::NetHackQtKeyBuffer::TopState() const': +../win/Qt4/qt4key.cpp:87:27: warning: 'constexpr QFlags::QFlags(QFlags::Zero) [with Enum = Qt::KeyboardModifier; QFlags::Zero = int QFlags::Private::*]' is deprecated: Use default constructor instead [-Wdeprecated-declarations] + 87 | if ( Empty() ) return 0; + | ^ +In file included from /usr/include/i386-linux-gnu/qt5/QtCore/qglobal.h:1304, + from /usr/include/i386-linux-gnu/qt5/QtCore/QtCore:4, + from /usr/include/i386-linux-gnu/qt5/QtGui/QtGuiDepends:3, + from /usr/include/i386-linux-gnu/qt5/QtGui/QtGui:3, + from ../win/Qt4/qt4key.cpp:18: +/usr/include/i386-linux-gnu/qt5/QtCore/qflags.h:123:80: note: declared here + 123 | QT_DEPRECATED_X("Use default constructor instead") Q_DECL_CONSTEXPR inline QFlags(Zero) noexcept : i(0) {} + | ^~~~~~ +g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -I. -I/usr/include -c -o qt4plsel.o ../win/Qt4/qt4plsel.cpp +../win/Qt4/qt4main.cpp: In function 'QString nethack_qt4::aboutMsg()': +../win/Qt4/qt4main.cpp:457:12: warning: 'QString& QString::sprintf(const char*, ...)' is deprecated: Use asprintf(), arg() or QTextStream instead [-Wdeprecated-declarations] + 457 | PATCHLEVEL); + | ^ +In file included from /usr/include/i386-linux-gnu/qt5/QtCore/qobject.h:47, + from /usr/include/i386-linux-gnu/qt5/QtCore/qabstractanimation.h:43, + from /usr/include/i386-linux-gnu/qt5/QtCore/QtCore:6, + from /usr/include/i386-linux-gnu/qt5/QtGui/QtGuiDepends:3, + from /usr/include/i386-linux-gnu/qt5/QtGui/QtGui:3, + from ../win/Qt4/qt4main.cpp:21: +/usr/include/i386-linux-gnu/qt5/QtCore/qstring.h:393:14: note: declared here + 393 | QString &sprintf(const char *format, ...) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3); + | ^~~~~~~ +g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -I. -I/usr/include -c -o qt4rip.o ../win/Qt4/qt4rip.cpp ../win/Qt4/qt4main.cpp: At global scope: ../win/Qt4/qt4main.cpp:419:21: warning: 'nethack_qt4::cast_c_xpm' defined but not used [-Wunused-variable] 419 | static const char * cast_c_xpm[] = { @@ -4187,6 +4242,15 @@ /usr/include/i386-linux-gnu/qt5/QtGui/qfontmetrics.h:106:9: note: declared here 106 | int width(const QString &, int len = -1) const; | ^~~~~ +../win/Qt4/qt4map.cpp: In member function 'virtual void nethack_qt4::NetHackQtMapViewport::paintEvent(QPaintEvent*)': +../win/Qt4/qt4map.cpp:121:20: warning: 'int QFontMetrics::width(const QString&, int) const' is deprecated: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations] + 121 | if ( fm.width("M") > qt_settings->glyphs().width() ) + | ^ +In file included from /usr/include/i386-linux-gnu/qt5/QtGui/QtGui:26, + from ../win/Qt4/qt4map.cpp:20: +/usr/include/i386-linux-gnu/qt5/QtGui/qfontmetrics.h:106:9: note: declared here + 106 | int width(const QString &, int len = -1) const; + | ^~~~~ ../win/Qt4/qt4menu.cpp: In constructor 'nethack_qt4::NetHackQtMenuWindow::NetHackQtMenuWindow(QWidget*)': ../win/Qt4/qt4menu.cpp:120:28: warning: 'constexpr QFlags::QFlags(QFlags::Zero) [with Enum = Qt::WindowType; QFlags::Zero = int QFlags::Private::*]' is deprecated: Use default constructor instead [-Wdeprecated-declarations] 120 | prompt.setParent(this,0); @@ -4269,11 +4333,6 @@ 496 | if (itemlist[i].ch == key || itemlist[i].gch == key) ../win/Qt4/qt4menu.cpp:496:48: warning: comparison of integer expressions of different signedness: 'char' and 'unsigned int' [-Wsign-compare] 496 | if (itemlist[i].ch == key || itemlist[i].gch == key) -../win/Qt4/qt4bind.cpp: At global scope: -../win/Qt4/qt4bind.cpp:722:13: warning: 'void nethack_qt4::Qt_positionbar(char*)' defined but not used [-Wunused-function] - 722 | static void Qt_positionbar(char *) {} - | ^~~~~~~~~~~~~~ -g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -I. -I/usr/include -c -o qt4yndlg.o ../win/Qt4/qt4yndlg.cpp In file included from ../win/Qt4/qt4map.cpp:28: ../include/qt_xpms.h: At global scope: ../include/qt_xpms.h:1363:20: warning: 'wis_xpm' defined but not used [-Wunused-variable] @@ -4342,46 +4401,11 @@ ../include/qt_xpms.h:3:20: warning: 'blind_xpm' defined but not used [-Wunused-variable] 3 | static const char *blind_xpm[] = { | ^~~~~~~~~ -make[3]: Entering directory '/build/nethack-3.6.6/util' -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c ../win/share/tilemap.c -cc -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wl,-z,now -o tilemap tilemap.o -./tilemap -make[3]: Leaving directory '/build/nethack-3.6.6/util' -/bin/sh ../sys/unix/gitinfo.sh 1 #before 'makedefs -v' -../util/makedefs -v -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o tile.o tile.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o version.o version.c ../win/Qt4/qt4msg.cpp: In member function 'virtual void nethack_qt4::NetHackQtMessageWindow::PutStr(int, const QString&)': ../win/Qt4/qt4msg.cpp:144:23: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 144 | if (list->count() >= ::iflags.msg_history) | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ -version.c: In function 'early_version_info': -version.c:187:24: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] - 187 | Sprintf(buf2, "%s\n", buf); - | ^ -In file included from /usr/include/stdio.h:867, - from ../include/global.h:9, - from ../include/config.h:588, - from ../include/hack.h:10, - from version.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 2 and 257 bytes into a destination of size 256 - 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 37 | __bos (__s), __fmt, __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -version.c:187:24: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] - 187 | Sprintf(buf2, "%s\n", buf); - | ^ -In file included from /usr/include/stdio.h:867, - from ../include/global.h:9, - from ../include/config.h:588, - from ../include/hack.h:10, - from version.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 2 and 257 bytes into a destination of size 256 - 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 37 | __bos (__s), __fmt, __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -I. -I/usr/include -c -o qt4set.o ../win/Qt4/qt4set.cpp ../win/Qt4/qt4menu.cpp: In member function 'virtual void nethack_qt4::NetHackQtTextWindow::UseRIP(int, time_t)': ../win/Qt4/qt4menu.cpp:670:54: warning: '%s' directive output may be truncated writing up to 31 bytes into a region of size 17 [-Wformat-truncation=] 670 | snprintf(rip_line[NAME_LINE], STONE_LINE_LEN+1, "%s", plname); @@ -4416,6 +4440,48 @@ /usr/include/i386-linux-gnu/qt5/QtCore/qstring.h:393:14: note: declared here 393 | QString &sprintf(const char *format, ...) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3); | ^~~~~~~ +g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -I. -I/usr/include -c -o qt4stat.o ../win/Qt4/qt4stat.cpp +g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -I. -I/usr/include -c -o qt4streq.o ../win/Qt4/qt4streq.cpp +g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -I. -I/usr/include -c -o qt4svsel.o ../win/Qt4/qt4svsel.cpp +g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -I. -I/usr/include -c -o qt4win.o ../win/Qt4/qt4win.cpp +g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -I. -I/usr/include -c -o qt4xcmd.o ../win/Qt4/qt4xcmd.cpp +g++ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -I. -I/usr/include -c -o qt4yndlg.o ../win/Qt4/qt4yndlg.cpp +make[3]: Entering directory '/build/nethack-3.6.6/util' +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c ../win/share/tilemap.c +cc -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wl,-z,now -o tilemap tilemap.o +./tilemap +make[3]: Leaving directory '/build/nethack-3.6.6/util' +/bin/sh ../sys/unix/gitinfo.sh 1 #before 'makedefs -v' +../util/makedefs -v +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o tile.o tile.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/include/i386-linux-gnu/qt5/QtWidgets -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtMultimedia -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtNetwork -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtGui -I/usr/include/i386-linux-gnu/qt5 -I/usr/include/i386-linux-gnu/qt5/QtCore -I/usr/include/i386-linux-gnu/qt5 -fPIC -c -o version.o version.c +version.c: In function 'early_version_info': +version.c:187:24: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] + 187 | Sprintf(buf2, "%s\n", buf); + | ^ +In file included from /usr/include/stdio.h:867, + from ../include/global.h:9, + from ../include/config.h:588, + from ../include/hack.h:10, + from version.c:6: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 2 and 257 bytes into a destination of size 256 + 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 37 | __bos (__s), __fmt, __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +version.c:187:24: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] + 187 | Sprintf(buf2, "%s\n", buf); + | ^ +In file included from /usr/include/stdio.h:867, + from ../include/global.h:9, + from ../include/config.h:588, + from ../include/hack.h:10, + from version.c:6: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 2 and 257 bytes into a destination of size 256 + 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 37 | __bos (__s), __fmt, __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../win/Qt4/qt4stat.cpp: In member function 'void nethack_qt4::NetHackQtStatusWindow::updateStats()': ../win/Qt4/qt4stat.cpp:376:39: warning: 'QString& QString::sprintf(const char*, ...)' is deprecated: Use asprintf(), arg() or QTextStream instead [-Wdeprecated-declarations] 376 | buf.sprintf("STR:%d",ACURR(A_STR)-100); @@ -4525,6 +4591,10 @@ /usr/include/i386-linux-gnu/qt5/QtCore/qstring.h:393:14: note: declared here 393 | QString &sprintf(const char *format, ...) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3); | ^~~~~~~ +../win/Qt4/qt4svsel.cpp: In constructor 'nethack_qt4::NetHackQtSavedGameSelector::NetHackQtSavedGameSelector(const char**)': +../win/Qt4/qt4svsel.cpp:63:18: warning: unused variable 'bgl' [-Wunused-variable] + 63 | QVBoxLayout *bgl = new QVBoxLayout(box); + | ^~~ In file included from ../win/Qt4/qt4stat.cpp:28: ../include/qt_xpms.h: At global scope: ../include/qt_xpms.h:949:20: warning: 'pile_mark_xpm' defined but not used [-Wunused-variable] @@ -4536,6 +4606,23 @@ ../include/qt_xpms.h:920:20: warning: 'pet_mark_xpm' defined but not used [-Wunused-variable] 920 | static const char *pet_mark_xpm[] = { | ^~~~~~~~~~~~ +../win/Qt4/qt4streq.cpp: In member function 'bool nethack_qt4::NetHackQtStringRequestor::Get(char*, int)': +../win/Qt4/qt4streq.cpp:81:42: warning: 'int QFontMetrics::width(const QString&, int) const' is deprecated: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations] + 81 | resize(fontMetrics().width(prompt.text())+50,fontMetrics().height()*6); + | ^ +In file included from /usr/include/i386-linux-gnu/qt5/QtGui/QtGui:26, + from ../win/Qt4/qt4streq.cpp:18: +/usr/include/i386-linux-gnu/qt5/QtGui/qfontmetrics.h:106:9: note: declared here + 106 | int width(const QString &, int len = -1) const; + | ^~~~~ +../win/Qt4/qt4streq.cpp:83:42: warning: 'int QFontMetrics::width(const QString&, int) const' is deprecated: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations] + 83 | resize(fontMetrics().width(prompt.text())*2+50,fontMetrics().height()*4); + | ^ +In file included from /usr/include/i386-linux-gnu/qt5/QtGui/QtGui:26, + from ../win/Qt4/qt4streq.cpp:18: +/usr/include/i386-linux-gnu/qt5/QtGui/qfontmetrics.h:106:9: note: declared here + 106 | int width(const QString &, int len = -1) const; + | ^~~~~ ../win/Qt4/qt4xcmd.cpp: In constructor 'nethack_qt4::NetHackQtExtCmdRequestor::NetHackQtExtCmdRequestor(QWidget*)': ../win/Qt4/qt4xcmd.cpp:56:55: warning: 'int QFontMetrics::width(const QString&, int) const' is deprecated: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations] 56 | butw = std::max(butw,30+fm.width(extcmdlist[i].ef_txt)); @@ -4545,10 +4632,16 @@ /usr/include/i386-linux-gnu/qt5/QtGui/qfontmetrics.h:106:9: note: declared here 106 | int width(const QString &, int len = -1) const; | ^~~~~ -../win/Qt4/qt4svsel.cpp: In constructor 'nethack_qt4::NetHackQtSavedGameSelector::NetHackQtSavedGameSelector(const char**)': -../win/Qt4/qt4svsel.cpp:63:18: warning: unused variable 'bgl' [-Wunused-variable] - 63 | QVBoxLayout *bgl = new QVBoxLayout(box); - | ^~~ +In file included from ../win/Qt4/qt4win.cpp:72: +../win/Qt4/qt4menu.h: In member function 'int nethack_qt4::NetHackQtTextListBox::TotalWidth() const': +../win/Qt4/qt4menu.h:24:43: warning: 'int QFontMetrics::width(const QString&, int) const' is deprecated: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations] + 24 | int lwidth = fm.width(item(i)->text()); + | ^ +In file included from /usr/include/i386-linux-gnu/qt5/QtGui/QtGui:26, + from ../win/Qt4/qt4win.cpp:60: +/usr/include/i386-linux-gnu/qt5/QtGui/qfontmetrics.h:106:9: note: declared here + 106 | int width(const QString &, int len = -1) const; + | ^~~~~ ../win/Qt4/qt4yndlg.cpp: In member function 'char nethack_qt4::NetHackQtYnDialog::Exec()': ../win/Qt4/qt4yndlg.cpp:117:51: warning: 'QString::null' is deprecated: use QString() [-Wdeprecated-declarations] 117 | QGroupBox *group = new QGroupBox(bigq ? QString::null : qlabel, this); @@ -4588,33 +4681,6 @@ ../win/Qt4/qt4yndlg.cpp:47:9: warning: variable 'ch_per_line' set but not used [-Wunused-but-set-variable] 47 | int ch_per_line=6; | ^~~~~~~~~~~ -../win/Qt4/qt4streq.cpp: In member function 'bool nethack_qt4::NetHackQtStringRequestor::Get(char*, int)': -../win/Qt4/qt4streq.cpp:81:42: warning: 'int QFontMetrics::width(const QString&, int) const' is deprecated: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations] - 81 | resize(fontMetrics().width(prompt.text())+50,fontMetrics().height()*6); - | ^ -In file included from /usr/include/i386-linux-gnu/qt5/QtGui/QtGui:26, - from ../win/Qt4/qt4streq.cpp:18: -/usr/include/i386-linux-gnu/qt5/QtGui/qfontmetrics.h:106:9: note: declared here - 106 | int width(const QString &, int len = -1) const; - | ^~~~~ -../win/Qt4/qt4streq.cpp:83:42: warning: 'int QFontMetrics::width(const QString&, int) const' is deprecated: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations] - 83 | resize(fontMetrics().width(prompt.text())*2+50,fontMetrics().height()*4); - | ^ -In file included from /usr/include/i386-linux-gnu/qt5/QtGui/QtGui:26, - from ../win/Qt4/qt4streq.cpp:18: -/usr/include/i386-linux-gnu/qt5/QtGui/qfontmetrics.h:106:9: note: declared here - 106 | int width(const QString &, int len = -1) const; - | ^~~~~ -In file included from ../win/Qt4/qt4win.cpp:72: -../win/Qt4/qt4menu.h: In member function 'int nethack_qt4::NetHackQtTextListBox::TotalWidth() const': -../win/Qt4/qt4menu.h:24:43: warning: 'int QFontMetrics::width(const QString&, int) const' is deprecated: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations] - 24 | int lwidth = fm.width(item(i)->text()); - | ^ -In file included from /usr/include/i386-linux-gnu/qt5/QtGui/QtGui:26, - from ../win/Qt4/qt4win.cpp:60: -/usr/include/i386-linux-gnu/qt5/QtGui/qfontmetrics.h:106:9: note: declared here - 106 | int width(const QString &, int len = -1) const; - | ^~~~~ Linking nethack-qt. g++ -g -O2 -fdebug-prefix-map=/build/nethack-3.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wl,-z,now -o nethack-qt monst.o objects.o allmain.o alloc.o apply.o artifact.o attrib.o ball.o bones.o botl.o cmd.o dbridge.o decl.o detect.o dig.o display.o dlb.o do.o do_name.o do_wear.o dog.o dogmove.o dokick.o dothrow.o drawing.o dungeon.o eat.o end.o engrave.o exper.o explode.o extralev.o files.o fountain.o hack.o hacklib.o invent.o isaac64.o light.o lock.o mail.o makemon.o mapglyph.o mcastu.o mhitm.o mhitu.o minion.o mklev.o mkmap.o mkmaze.o mkobj.o mkroom.o mon.o mondata.o monmove.o mplayer.o mthrowu.o muse.o music.o o_init.o objnam.o options.o pager.o pickup.o pline.o polyself.o potion.o pray.o priest.o quest.o questpgr.o read.o rect.o region.o restore.o rip.o rnd.o role.o rumors.o save.o shk.o shknam.o sit.o sounds.o sp_lev.o spell.o sys.o steal.o steed.o teleport.o timeout.o topten.o track.o trap.o u_init.o uhitm.o vault.o vision.o vis_tab.o weapon.o were.o wield.o windows.o wizard.o worm.o worn.o write.o zap.o posixregex.o ioctl.o unixmain.o unixtty.o unixunix.o unixres.o qt4bind.o qt4click.o qt4clust.o qt4delay.o qt4glyph.o qt4icon.o qt4inv.o qt4key.o qt4line.o qt4main.o qt4map.o qt4menu.o qt4msg.o qt4plsel.o qt4rip.o qt4set.o qt4stat.o qt4str.o qt4streq.o qt4svsel.o qt4win.o qt4xcmd.o qt4yndlg.o tile.o version.o `pkg-config Qt5Gui Qt5Widgets Qt5Multimedia --libs` nethack-qt is up to date. @@ -4854,26 +4920,28 @@ dh_gencontrol dh_md5sums dh_builddeb -dpkg-deb: building package 'nethack-common-dbgsym' in '../nethack-common-dbgsym_3.6.6-2_i386.deb'. -dpkg-deb: building package 'nethack-console-dbgsym' in '../nethack-console-dbgsym_3.6.6-2_i386.deb'. dpkg-deb: building package 'nethack-console' in '../nethack-console_3.6.6-2_i386.deb'. +dpkg-deb: building package 'nethack-qt' in '../nethack-qt_3.6.6-2_i386.deb'. +dpkg-deb: building package 'nethack-x11' in '../nethack-x11_3.6.6-2_i386.deb'. dpkg-deb: building package 'nethack-common' in '../nethack-common_3.6.6-2_i386.deb'. -dpkg-deb: building package 'nethack-x11-dbgsym' in '../nethack-x11-dbgsym_3.6.6-2_i386.deb'. +dpkg-deb: building package 'nethack-common-dbgsym' in '../nethack-common-dbgsym_3.6.6-2_i386.deb'. +dpkg-deb: building package 'nethack-console-dbgsym' in '../nethack-console-dbgsym_3.6.6-2_i386.deb'. dpkg-deb: building package 'nethack-qt-dbgsym' in '../nethack-qt-dbgsym_3.6.6-2_i386.deb'. -dpkg-deb: building package 'nethack-x11' in '../nethack-x11_3.6.6-2_i386.deb'. -dpkg-deb: building package 'nethack-qt' in '../nethack-qt_3.6.6-2_i386.deb'. +dpkg-deb: building package 'nethack-x11-dbgsym' in '../nethack-x11-dbgsym_3.6.6-2_i386.deb'. dpkg-genbuildinfo --build=binary dpkg-genchanges --build=binary >../nethack_3.6.6-2_i386.changes dpkg-genchanges: info: binary-only upload (no source code included) dpkg-source --after-build . dpkg-buildpackage: info: binary-only upload (no source included) I: copying local configuration +I: user script /srv/workspace/pbuilder/651/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/651/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/39102 and its subdirectories -I: Current time: Fri Aug 26 08:21:57 -12 2022 -I: pbuilder-time-stamp: 1661545317 +I: removing directory /srv/workspace/pbuilder/651 and its subdirectories +I: Current time: Sun Jul 25 04:08:48 +14 2021 +I: pbuilder-time-stamp: 1627135728