Diff of the two buildlogs: -- --- b1/build.log 2021-08-18 01:57:16.859197359 +0000 +++ b2/build.log 2021-08-18 01:58:35.872247469 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Tue Aug 17 13:55:40 -12 2021 -I: pbuilder-time-stamp: 1629251740 +I: Current time: Tue Sep 20 22:20:21 +14 2022 +I: pbuilder-time-stamp: 1663662021 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/bullseye-reproducible-base.tgz] I: copying local configuration @@ -16,8 +16,8 @@ I: copying [./tomatoes_1.55-10.debian.tar.xz] I: Extracting source gpgv: unknown type of key resource 'trustedkeys.kbx' -gpgv: keyblock resource '/tmp/dpkg-verify-sig.Iu9_epCx/trustedkeys.kbx': General error -gpgv: Signature made Fri Jan 29 07:45:11 2021 -12 +gpgv: keyblock resource '/tmp/dpkg-verify-sig.JL4zxqe7/trustedkeys.kbx': General error +gpgv: Signature made Sat Jan 30 09:45:11 2021 +14 gpgv: using RSA key 05DB6A837E105F4B1D02C55FBBA9FAADCCFB4707 gpgv: Can't check signature: No public key dpkg-source: warning: failed to verify signature on ./tomatoes_1.55-10.dsc @@ -36,135 +36,169 @@ dpkg-source: info: applying 09_sort_source_files.diff I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/17662/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/8617/tmp/hooks/D01_modify_environment starting +debug: Running on codethink13-arm64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +Removing 'diversion of /bin/sh to /bin/sh.distrib by dash' +Adding 'diversion of /bin/sh to /bin/sh.distrib by bash' +Removing 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash' +Adding 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by bash' +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/8617/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/8617/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='arm64' - DEBIAN_FRONTEND='noninteractive' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="1" [2]="4" [3]="1" [4]="release" [5]="aarch64-unknown-linux-gnu") + BASH_VERSION='5.1.4(1)-release' + BUILDDIR=/build + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=arm64 + DEBIAN_FRONTEND=noninteractive DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all,-fixfilepath parallel=8' - DISTRIBUTION='' - HOME='/var/lib/jenkins' - HOST_ARCH='arm64' + DIRSTACK=() + DISTRIBUTION= + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/var/lib/jenkins + HOSTNAME=i-capture-the-hostname + HOSTTYPE=aarch64 + HOST_ARCH=arm64 IFS=' ' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='17662' - PS1='# ' - PS2='> ' + LANG=C + LANGUAGE=nl_BE:nl + LC_ALL=C + MACHTYPE=aarch64-unknown-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=8617 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.Xa9ImVFc5c/pbuilderrc_RRZh --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.Xa9ImVFc5c/b1 --logfile b1/build.log tomatoes_1.55-10.dsc' - SUDO_GID='117' - SUDO_UID='110' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - USERNAME='root' - _='/usr/bin/systemd-run' - http_proxy='http://192.168.101.16:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/tmp.Xa9ImVFc5c/pbuilderrc_PEvN --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.Xa9ImVFc5c/b2 --logfile b2/build.log tomatoes_1.55-10.dsc' + SUDO_GID=117 + SUDO_UID=110 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + USERNAME=root + _='I: set' + http_proxy=http://192.168.101.16:3128 I: uname -a - Linux codethink14-arm64 4.15.0-154-generic #161-Ubuntu SMP Fri Jul 30 13:01:15 UTC 2021 aarch64 GNU/Linux + Linux i-capture-the-hostname 4.15.0-154-generic #161-Ubuntu SMP Fri Jul 30 13:01:15 UTC 2021 aarch64 GNU/Linux I: ls -l /bin total 5252 - -rwxr-xr-x 1 root root 1282512 Aug 4 08:25 bash - -rwxr-xr-x 3 root root 34808 Jul 20 2020 bunzip2 - -rwxr-xr-x 3 root root 34808 Jul 20 2020 bzcat - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzcmp -> bzdiff - -rwxr-xr-x 1 root root 2225 Jul 20 2020 bzdiff - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzegrep -> bzgrep - -rwxr-xr-x 1 root root 4877 Sep 4 2019 bzexe - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzfgrep -> bzgrep - -rwxr-xr-x 1 root root 3775 Jul 20 2020 bzgrep - -rwxr-xr-x 3 root root 34808 Jul 20 2020 bzip2 - -rwxr-xr-x 1 root root 14264 Jul 20 2020 bzip2recover - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzless -> bzmore - -rwxr-xr-x 1 root root 1297 Jul 20 2020 bzmore - -rwxr-xr-x 1 root root 39832 Sep 22 2020 cat - -rwxr-xr-x 1 root root 64512 Sep 22 2020 chgrp - -rwxr-xr-x 1 root root 60368 Sep 22 2020 chmod - -rwxr-xr-x 1 root root 64528 Sep 22 2020 chown - -rwxr-xr-x 1 root root 138896 Sep 22 2020 cp - -rwxr-xr-x 1 root root 129544 Dec 10 2020 dash - -rwxr-xr-x 1 root root 101384 Sep 22 2020 date - -rwxr-xr-x 1 root root 80984 Sep 22 2020 dd - -rwxr-xr-x 1 root root 89824 Sep 22 2020 df - -rwxr-xr-x 1 root root 143088 Sep 22 2020 dir - -rwxr-xr-x 1 root root 76152 Jul 28 07:09 dmesg - lrwxrwxrwx 1 root root 8 Nov 6 2019 dnsdomainname -> hostname - lrwxrwxrwx 1 root root 8 Nov 6 2019 domainname -> hostname - -rwxr-xr-x 1 root root 35632 Sep 22 2020 echo - -rwxr-xr-x 1 root root 28 Nov 9 2020 egrep - -rwxr-xr-x 1 root root 31512 Sep 22 2020 false - -rwxr-xr-x 1 root root 28 Nov 9 2020 fgrep - -rwxr-xr-x 1 root root 64856 Jul 28 07:09 findmnt - -rwsr-xr-x 1 root root 34824 Feb 26 04:12 fusermount - -rwxr-xr-x 1 root root 178400 Nov 9 2020 grep - -rwxr-xr-x 2 root root 2346 Mar 2 11:30 gunzip - -rwxr-xr-x 1 root root 6376 Mar 2 11:30 gzexe - -rwxr-xr-x 1 root root 93744 Mar 2 11:30 gzip - -rwxr-xr-x 1 root root 18440 Nov 6 2019 hostname - -rwxr-xr-x 1 root root 68720 Sep 22 2020 ln - -rwxr-xr-x 1 root root 52720 Feb 7 2020 login - -rwxr-xr-x 1 root root 143088 Sep 22 2020 ls - -rwxr-xr-x 1 root root 161960 Jul 28 07:09 lsblk - -rwxr-xr-x 1 root root 85200 Sep 22 2020 mkdir - -rwxr-xr-x 1 root root 68744 Sep 22 2020 mknod - -rwxr-xr-x 1 root root 43976 Sep 22 2020 mktemp - -rwxr-xr-x 1 root root 51368 Jul 28 07:09 more - -rwsr-xr-x 1 root root 51360 Jul 28 07:09 mount - -rwxr-xr-x 1 root root 14496 Jul 28 07:09 mountpoint - -rwxr-xr-x 1 root root 134808 Sep 22 2020 mv - lrwxrwxrwx 1 root root 8 Nov 6 2019 nisdomainname -> hostname - lrwxrwxrwx 1 root root 14 Apr 18 03:38 pidof -> /sbin/killall5 - -rwxr-xr-x 1 root root 35720 Sep 22 2020 pwd - lrwxrwxrwx 1 root root 4 Aug 4 08:25 rbash -> bash - -rwxr-xr-x 1 root root 43872 Sep 22 2020 readlink - -rwxr-xr-x 1 root root 68592 Sep 22 2020 rm - -rwxr-xr-x 1 root root 43880 Sep 22 2020 rmdir - -rwxr-xr-x 1 root root 19208 Sep 27 2020 run-parts - -rwxr-xr-x 1 root root 114016 Dec 22 2018 sed - lrwxrwxrwx 1 root root 4 Aug 15 21:27 sh -> dash - -rwxr-xr-x 1 root root 35656 Sep 22 2020 sleep - -rwxr-xr-x 1 root root 72640 Sep 22 2020 stty - -rwsr-xr-x 1 root root 67776 Jul 28 07:09 su - -rwxr-xr-x 1 root root 35672 Sep 22 2020 sync - -rwxr-xr-x 1 root root 535768 Feb 16 21:55 tar - -rwxr-xr-x 1 root root 10568 Sep 27 2020 tempfile - -rwxr-xr-x 1 root root 89120 Sep 22 2020 touch - -rwxr-xr-x 1 root root 31512 Sep 22 2020 true - -rwxr-xr-x 1 root root 14264 Feb 26 04:12 ulockmgr_server - -rwsr-xr-x 1 root root 30880 Jul 28 07:09 umount - -rwxr-xr-x 1 root root 35640 Sep 22 2020 uname - -rwxr-xr-x 2 root root 2346 Mar 2 11:30 uncompress - -rwxr-xr-x 1 root root 143088 Sep 22 2020 vdir - -rwxr-xr-x 1 root root 59584 Jul 28 07:09 wdctl - lrwxrwxrwx 1 root root 8 Nov 6 2019 ypdomainname -> hostname - -rwxr-xr-x 1 root root 1984 Mar 2 11:30 zcat - -rwxr-xr-x 1 root root 1678 Mar 2 11:30 zcmp - -rwxr-xr-x 1 root root 5880 Mar 2 11:30 zdiff - -rwxr-xr-x 1 root root 29 Mar 2 11:30 zegrep - -rwxr-xr-x 1 root root 29 Mar 2 11:30 zfgrep - -rwxr-xr-x 1 root root 2081 Mar 2 11:30 zforce - -rwxr-xr-x 1 root root 7585 Mar 2 11:30 zgrep - -rwxr-xr-x 1 root root 2206 Mar 2 11:30 zless - -rwxr-xr-x 1 root root 1842 Mar 2 11:30 zmore - -rwxr-xr-x 1 root root 4553 Mar 2 11:30 znew -I: user script /srv/workspace/pbuilder/17662/tmp/hooks/D02_print_environment finished + -rwxr-xr-x 1 root root 1282512 Aug 5 2021 bash + -rwxr-xr-x 3 root root 34808 Jul 21 2020 bunzip2 + -rwxr-xr-x 3 root root 34808 Jul 21 2020 bzcat + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzcmp -> bzdiff + -rwxr-xr-x 1 root root 2225 Jul 21 2020 bzdiff + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzegrep -> bzgrep + -rwxr-xr-x 1 root root 4877 Sep 5 2019 bzexe + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzfgrep -> bzgrep + -rwxr-xr-x 1 root root 3775 Jul 21 2020 bzgrep + -rwxr-xr-x 3 root root 34808 Jul 21 2020 bzip2 + -rwxr-xr-x 1 root root 14264 Jul 21 2020 bzip2recover + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzless -> bzmore + -rwxr-xr-x 1 root root 1297 Jul 21 2020 bzmore + -rwxr-xr-x 1 root root 39832 Sep 23 2020 cat + -rwxr-xr-x 1 root root 64512 Sep 23 2020 chgrp + -rwxr-xr-x 1 root root 60368 Sep 23 2020 chmod + -rwxr-xr-x 1 root root 64528 Sep 23 2020 chown + -rwxr-xr-x 1 root root 138896 Sep 23 2020 cp + -rwxr-xr-x 1 root root 129544 Dec 11 2020 dash + -rwxr-xr-x 1 root root 101384 Sep 23 2020 date + -rwxr-xr-x 1 root root 80984 Sep 23 2020 dd + -rwxr-xr-x 1 root root 89824 Sep 23 2020 df + -rwxr-xr-x 1 root root 143088 Sep 23 2020 dir + -rwxr-xr-x 1 root root 76152 Jul 29 2021 dmesg + lrwxrwxrwx 1 root root 8 Nov 8 2019 dnsdomainname -> hostname + lrwxrwxrwx 1 root root 8 Nov 8 2019 domainname -> hostname + -rwxr-xr-x 1 root root 35632 Sep 23 2020 echo + -rwxr-xr-x 1 root root 28 Nov 10 2020 egrep + -rwxr-xr-x 1 root root 31512 Sep 23 2020 false + -rwxr-xr-x 1 root root 28 Nov 10 2020 fgrep + -rwxr-xr-x 1 root root 64856 Jul 29 2021 findmnt + -rwsr-xr-x 1 root root 34824 Feb 27 2021 fusermount + -rwxr-xr-x 1 root root 178400 Nov 10 2020 grep + -rwxr-xr-x 2 root root 2346 Mar 3 2021 gunzip + -rwxr-xr-x 1 root root 6376 Mar 3 2021 gzexe + -rwxr-xr-x 1 root root 93744 Mar 3 2021 gzip + -rwxr-xr-x 1 root root 18440 Nov 8 2019 hostname + -rwxr-xr-x 1 root root 68720 Sep 23 2020 ln + -rwxr-xr-x 1 root root 52720 Feb 8 2020 login + -rwxr-xr-x 1 root root 143088 Sep 23 2020 ls + -rwxr-xr-x 1 root root 161960 Jul 29 2021 lsblk + -rwxr-xr-x 1 root root 85200 Sep 23 2020 mkdir + -rwxr-xr-x 1 root root 68744 Sep 23 2020 mknod + -rwxr-xr-x 1 root root 43976 Sep 23 2020 mktemp + -rwxr-xr-x 1 root root 51368 Jul 29 2021 more + -rwsr-xr-x 1 root root 51360 Jul 29 2021 mount + -rwxr-xr-x 1 root root 14496 Jul 29 2021 mountpoint + -rwxr-xr-x 1 root root 134808 Sep 23 2020 mv + lrwxrwxrwx 1 root root 8 Nov 8 2019 nisdomainname -> hostname + lrwxrwxrwx 1 root root 14 Apr 19 2021 pidof -> /sbin/killall5 + -rwxr-xr-x 1 root root 35720 Sep 23 2020 pwd + lrwxrwxrwx 1 root root 4 Aug 5 2021 rbash -> bash + -rwxr-xr-x 1 root root 43872 Sep 23 2020 readlink + -rwxr-xr-x 1 root root 68592 Sep 23 2020 rm + -rwxr-xr-x 1 root root 43880 Sep 23 2020 rmdir + -rwxr-xr-x 1 root root 19208 Sep 28 2020 run-parts + -rwxr-xr-x 1 root root 114016 Dec 23 2018 sed + lrwxrwxrwx 1 root root 4 Sep 20 22:20 sh -> bash + lrwxrwxrwx 1 root root 4 Sep 18 05:48 sh.distrib -> dash + -rwxr-xr-x 1 root root 35656 Sep 23 2020 sleep + -rwxr-xr-x 1 root root 72640 Sep 23 2020 stty + -rwsr-xr-x 1 root root 67776 Jul 29 2021 su + -rwxr-xr-x 1 root root 35672 Sep 23 2020 sync + -rwxr-xr-x 1 root root 535768 Feb 17 2021 tar + -rwxr-xr-x 1 root root 10568 Sep 28 2020 tempfile + -rwxr-xr-x 1 root root 89120 Sep 23 2020 touch + -rwxr-xr-x 1 root root 31512 Sep 23 2020 true + -rwxr-xr-x 1 root root 14264 Feb 27 2021 ulockmgr_server + -rwsr-xr-x 1 root root 30880 Jul 29 2021 umount + -rwxr-xr-x 1 root root 35640 Sep 23 2020 uname + -rwxr-xr-x 2 root root 2346 Mar 3 2021 uncompress + -rwxr-xr-x 1 root root 143088 Sep 23 2020 vdir + -rwxr-xr-x 1 root root 59584 Jul 29 2021 wdctl + lrwxrwxrwx 1 root root 8 Nov 8 2019 ypdomainname -> hostname + -rwxr-xr-x 1 root root 1984 Mar 3 2021 zcat + -rwxr-xr-x 1 root root 1678 Mar 3 2021 zcmp + -rwxr-xr-x 1 root root 5880 Mar 3 2021 zdiff + -rwxr-xr-x 1 root root 29 Mar 3 2021 zegrep + -rwxr-xr-x 1 root root 29 Mar 3 2021 zfgrep + -rwxr-xr-x 1 root root 2081 Mar 3 2021 zforce + -rwxr-xr-x 1 root root 7585 Mar 3 2021 zgrep + -rwxr-xr-x 1 root root 2206 Mar 3 2021 zless + -rwxr-xr-x 1 root root 1842 Mar 3 2021 zmore + -rwxr-xr-x 1 root root 4553 Mar 3 2021 znew +I: user script /srv/workspace/pbuilder/8617/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -406,7 +440,7 @@ Get: 198 http://deb.debian.org/debian bullseye/main arm64 libsdl-mixer1.2 arm64 1.2.12-16+b1 [86.1 kB] Get: 199 http://deb.debian.org/debian bullseye/main arm64 libvorbis-dev arm64 1.3.7-1 [321 kB] Get: 200 http://deb.debian.org/debian bullseye/main arm64 libsdl-mixer1.2-dev arm64 1.2.12-16+b1 [108 kB] -Fetched 83.7 MB in 3s (29.2 MB/s) +Fetched 83.7 MB in 3s (27.0 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package bsdextrautils. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19646 files and directories currently installed.) @@ -1229,7 +1263,8 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/tomatoes-1.55/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../tomatoes_1.55-10_source.changes +hostname: Temporary failure in name resolution +I: Running cd /build/tomatoes-1.55/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../tomatoes_1.55-10_source.changes dpkg-buildpackage: info: source package tomatoes dpkg-buildpackage: info: source version 1.55-10 dpkg-buildpackage: info: source distribution unstable @@ -1262,73 +1297,73 @@ g++ -g -O2 -fdebug-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-10\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/enemy.cpp -o obj/enemy.o g++ -g -O2 -fdebug-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-10\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/font.cpp -o obj/font.o g++ -g -O2 -fdebug-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-10\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/game.cpp -o obj/game.o -In file included from src/bomb.cpp:32: +In file included from src/enemy.cpp:32: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46, - from src/bomb.cpp:32: + from src/enemy.cpp:32: /usr/include/GL/glext.h:54: note: this is the location of the previous definition 54 | #define GL_GLEXT_VERSION 20190805 | -In file included from src/effects.cpp:32: +In file included from src/comments.cpp:34: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46, - from src/effects.cpp:32: + from src/comments.cpp:34: /usr/include/GL/glext.h:54: note: this is the location of the previous definition 54 | #define GL_GLEXT_VERSION 20190805 | -In file included from src/bonus.cpp:32: -/usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined - 116 | #define GL_GLEXT_VERSION 29 - | -In file included from src/comments.cpp:34: +In file included from src/bomb.cpp:32: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46, - from src/comments.cpp:34: + from src/bomb.cpp:32: /usr/include/GL/glext.h:54: note: this is the location of the previous definition 54 | #define GL_GLEXT_VERSION 20190805 | +In file included from src/bonus.cpp:32: +/usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined + 116 | #define GL_GLEXT_VERSION 29 + | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46, from src/bonus.cpp:32: /usr/include/GL/glext.h:54: note: this is the location of the previous definition 54 | #define GL_GLEXT_VERSION 20190805 | -In file included from src/game.cpp:32: +In file included from src/effects.cpp:32: +/usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined + 116 | #define GL_GLEXT_VERSION 29 + | +In file included from src/font.cpp:35: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46, - from src/game.cpp:32: + from src/effects.cpp:32: /usr/include/GL/glext.h:54: note: this is the location of the previous definition 54 | #define GL_GLEXT_VERSION 20190805 | -In file included from src/enemy.cpp:32: -/usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined - 116 | #define GL_GLEXT_VERSION 29 - | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46, - from src/enemy.cpp:32: + from src/font.cpp:35: /usr/include/GL/glext.h:54: note: this is the location of the previous definition 54 | #define GL_GLEXT_VERSION 20190805 | -In file included from src/font.cpp:35: +In file included from src/game.cpp:32: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46, - from src/font.cpp:35: + from src/game.cpp:32: /usr/include/GL/glext.h:54: note: this is the location of the previous definition 54 | #define GL_GLEXT_VERSION 20190805 | @@ -1340,7 +1375,6 @@ src/config.cpp:134:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 134 | error_msg("Unable to save config file: %s!", file.c_str()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -g++ -g -O2 -fdebug-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-10\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/helpers.cpp -o obj/helpers.o src/config.cpp: In function 'void load_config(std::string, CONFIG*)': src/config.cpp:109:8: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 109 | fscanf(f, "video_mode = %d x %d\n", &(conf->vid_w), &(conf->vid_h)); @@ -1390,6 +1424,7 @@ src/config.cpp:124:8: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 124 | fscanf(f, "moving_style = %d %d\n", &(conf->moving_style[0]), &(conf->moving_style[1])); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +g++ -g -O2 -fdebug-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-10\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/helpers.cpp -o obj/helpers.o In file included from src/helpers.cpp:32: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 @@ -1400,6 +1435,14 @@ /usr/include/GL/glext.h:54: note: this is the location of the previous definition 54 | #define GL_GLEXT_VERSION 20190805 | +src/bonus.cpp: In function 'void load_bonus()': +src/bonus.cpp:97:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 97 | bonus_tex = load_png("bonus.png", true, false, false); + | ^~~~~~~~~~~ +src/bonus.cpp:98:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 98 | bonus_particle = load_jpg("bonus_part.jpg", false, false, true); + | ^~~~~~~~~~~~~~~~ +g++ -g -O2 -fdebug-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-10\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/hiscore.cpp -o obj/hiscore.o src/bomb.cpp: In function 'void load_bombs()': src/bomb.cpp:80:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 80 | bomb_tex[0] = load_png("bomb1.png", true, false, false); @@ -1408,24 +1451,6 @@ src/bomb.cpp:456:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 456 | add_comment(COL_DEFAULT, "Five enemies with one bomb!"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -g++ -g -O2 -fdebug-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-10\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/hiscore.cpp -o obj/hiscore.o -src/bonus.cpp: In function 'void load_bonus()': -src/bonus.cpp:97:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 97 | bonus_tex = load_png("bonus.png", true, false, false); - | ^~~~~~~~~~~ -src/bonus.cpp:98:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 98 | bonus_particle = load_jpg("bonus_part.jpg", false, false, true); - | ^~~~~~~~~~~~~~~~ -src/game.cpp: In function 'void draw()': -src/game.cpp:223:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 223 | glprintf_center(font1, 0, 0, 9, -25, "FPS: %02.1f", fps); - | ^~~~~~~~~~~~~ -src/game.cpp:260:43: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 260 | glprintf_center(font1, 0, 0, 2.0f, -13, "ARE YOU SURE YOU WANT TO EXIT?"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/game.cpp:261:43: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 261 | glprintf_center(font1, 0, 0, 1.1f, -13, "Press ESC to exit, or ENTER to resume."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/enemy.cpp: In function 'void load_enemies()': src/enemy.cpp:80:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 80 | enemy_anim[0] = load_png("enemy1.png", true, false, false); @@ -1436,11 +1461,6 @@ src/enemy.cpp:82:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 82 | enemy_anim[2] = load_png("enemy3.png", true, false, false); | ^~~~~~~~~~~~ -src/game.cpp: In function 'void start_game(bool)': -src/game.cpp:526:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 526 | int place = list.add_name("null", kill_count); - | ^~~~~~ -g++ -g -O2 -fdebug-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-10\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/init.cpp -o obj/init.o In file included from src/hiscore.cpp:34: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 @@ -1451,7 +1471,9 @@ /usr/include/GL/glext.h:54: note: this is the location of the previous definition 54 | #define GL_GLEXT_VERSION 20190805 | +g++ -g -O2 -fdebug-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-10\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/init.cpp -o obj/init.o g++ -g -O2 -fdebug-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-10\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/levels.cpp -o obj/levels.o +g++ -g -O2 -fdebug-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-10\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/main.cpp -o obj/main.o In file included from src/init.cpp:39: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 @@ -1462,27 +1484,48 @@ /usr/include/GL/glext.h:54: note: this is the location of the previous definition 54 | #define GL_GLEXT_VERSION 20190805 | -In file included from src/levels.cpp:33: +In file included from src/main.cpp:32: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46, - from src/levels.cpp:33: + from src/main.cpp:32: /usr/include/GL/glext.h:54: note: this is the location of the previous definition 54 | #define GL_GLEXT_VERSION 20190805 | -g++ -g -O2 -fdebug-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-10\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/main.cpp -o obj/main.o -In file included from src/main.cpp:32: +In file included from src/levels.cpp:33: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46, - from src/main.cpp:32: + from src/levels.cpp:33: /usr/include/GL/glext.h:54: note: this is the location of the previous definition 54 | #define GL_GLEXT_VERSION 20190805 | +src/game.cpp: In function 'void draw()': +src/game.cpp:223:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 223 | glprintf_center(font1, 0, 0, 9, -25, "FPS: %02.1f", fps); + | ^~~~~~~~~~~~~ +src/game.cpp:260:43: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 260 | glprintf_center(font1, 0, 0, 2.0f, -13, "ARE YOU SURE YOU WANT TO EXIT?"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/game.cpp:261:43: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 261 | glprintf_center(font1, 0, 0, 1.1f, -13, "Press ESC to exit, or ENTER to resume."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/game.cpp: In function 'void start_game(bool)': +src/game.cpp:526:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 526 | int place = list.add_name("null", kill_count); + | ^~~~~~ +src/helpers.cpp: In function 'void load_wisps()': +src/helpers.cpp:85:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 85 | wisp_tex = load_jpg("wisp.jpg", false, false, true); + | ^~~~~~~~~~ +src/helpers.cpp: In function 'void load_potatoman()': +src/helpers.cpp:300:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 300 | potatoman_tex = load_png("potatoman.png", true, false, false); + | ^~~~~~~~~~~~~~~ g++ -g -O2 -fdebug-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-10\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/menu.cpp -o obj/menu.o src/hiscore.cpp: In member function 'void HISCORE_LIST::input_name(int)': src/hiscore.cpp:333:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] @@ -1501,19 +1544,42 @@ src/hiscore.cpp:380:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 380 | glprintf(font1, 0, 3.4f, ypos, -13, "%03d", list[f].score); | ^~~~~~ -src/helpers.cpp: In function 'void load_wisps()': -src/helpers.cpp:85:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 85 | wisp_tex = load_jpg("wisp.jpg", false, false, true); - | ^~~~~~~~~~ src/hiscore.cpp: In member function 'void HISCORE_LIST::save(std::string)': src/hiscore.cpp:408:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 408 | error_msg("Unable to save the hiscore list to %s!\n", file.c_str()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from src/menu.cpp:34: +/usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined + 116 | #define GL_GLEXT_VERSION 29 + | +In file included from /usr/include/GL/gl.h:2050, + from /usr/include/SDL/SDL_opengl.h:46, + from src/menu.cpp:34: +/usr/include/GL/glext.h:54: note: this is the location of the previous definition + 54 | #define GL_GLEXT_VERSION 20190805 + | +src/hiscore.cpp: In member function 'void HISCORE_LIST::load(std::string)': +src/hiscore.cpp:436:8: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 436 | fread(&list[f].score, sizeof(int), 1, fin); + | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/hiscore.cpp:440:8: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 440 | fread(list[f].name, NAME_LEN, 1, fin); + | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/main.cpp: In function 'void loading_screen()': +src/main.cpp:61:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 61 | logo_tex = load_png("logotex.png", true, false, true); + | ^~~~~~~~~~~~~ +src/main.cpp:95:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 95 | glprintf_center(font1, 0, 0, -1, -20, "...LOADING..."); + | ^~~~~~~~~~~~~~~ +src/main.cpp: In function 'int main(int, char**)': +src/main.cpp:116:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 116 | font1 = load_png("fonts.png", true, false, true); + | ^~~~~~~~~~~ +src/main.cpp:125:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 125 | font_num = load_png("fonts_num.png", true, false, true); + | ^~~~~~~~~~~~~~~ g++ -g -O2 -fdebug-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-10\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/mpak.cpp -o obj/mpak.o -src/helpers.cpp: In function 'void load_potatoman()': -src/helpers.cpp:300:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 300 | potatoman_tex = load_png("potatoman.png", true, false, false); - | ^~~~~~~~~~~~~~~ src/init.cpp: In function 'void init_sdl_and_gl()': src/init.cpp:94:13: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 94 | error_msg("Sorry, 8-bit color depth is not supported!\nYou must use 15, 16, 24 or 32-bit mode.\n"); @@ -1544,23 +1610,6 @@ src/init.cpp:135:13: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 135 | error_msg("Unable to set the OpenGL video mode %d x %d (%d bit)!\n%s", config.vid_w, config.vid_h, config.vid_color_depth, SDL_GetError()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from src/menu.cpp:34: -/usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined - 116 | #define GL_GLEXT_VERSION 29 - | -In file included from /usr/include/GL/gl.h:2050, - from /usr/include/SDL/SDL_opengl.h:46, - from src/menu.cpp:34: -/usr/include/GL/glext.h:54: note: this is the location of the previous definition - 54 | #define GL_GLEXT_VERSION 20190805 - | -src/hiscore.cpp: In member function 'void HISCORE_LIST::load(std::string)': -src/hiscore.cpp:436:8: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 436 | fread(&list[f].score, sizeof(int), 1, fin); - | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/hiscore.cpp:440:8: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 440 | fread(list[f].name, NAME_LEN, 1, fin); - | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mpak.cpp: In member function 'int MPAK_FILE::open_mpk(int, char*, char*)': src/mpak.cpp:277:8: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 277 | fread(&crc_checksum, sizeof(crc_checksum), 1, fpointer); @@ -1582,54 +1631,6 @@ 536 | fread(buffer, 1, bytes_left, fin); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -g -O2 -fdebug-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-10\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/mymath.cpp -o obj/mymath.o -src/main.cpp: In function 'void loading_screen()': -src/main.cpp:61:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 61 | logo_tex = load_png("logotex.png", true, false, true); - | ^~~~~~~~~~~~~ -src/main.cpp:95:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 95 | glprintf_center(font1, 0, 0, -1, -20, "...LOADING..."); - | ^~~~~~~~~~~~~~~ -src/main.cpp: In function 'int main(int, char**)': -src/main.cpp:116:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 116 | font1 = load_png("fonts.png", true, false, true); - | ^~~~~~~~~~~ -src/main.cpp:125:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 125 | font_num = load_png("fonts_num.png", true, false, true); - | ^~~~~~~~~~~~~~~ -g++ -g -O2 -fdebug-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-10\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/particle.cpp -o obj/particle.o -src/levels.cpp: In function 'void load_bg_number(int)': -src/levels.cpp:181:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 181 | load_texture_into(cur_bground, str, "JPG", false, false, true); - | ^~~~~ -src/levels.cpp: In function 'void init_levels()': -src/levels.cpp:209:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 209 | add_comment(COL_DEFAULT, "Press ENTER to begin level %s.", level_names[cur_level]); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/levels.cpp: In function 'bool change_level()': -src/levels.cpp:256:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 256 | add_comment(COL_DEFAULT, "Ten seconds left."); - | ^~~~~~~~~~~~~~~~~~~ -src/levels.cpp:318:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 318 | add_comment(COL_DEFAULT, "Level finished."); - | ^~~~~~~~~~~~~~~~~ -src/levels.cpp:320:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 320 | add_comment(COL_DEFAULT, "GAME OVER"); - | ^~~~~~~~~~~ -src/levels.cpp: In function 'void next_level()': -src/levels.cpp:378:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 378 | add_comment(COL_DEFAULT, "Press ENTER to begin level %s.", level_names[cur_level]); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -g++ -g -O2 -fdebug-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-10\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/pathfinder.cpp -o obj/pathfinder.o -In file included from src/particle.cpp:32: -/usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined - 116 | #define GL_GLEXT_VERSION 29 - | -In file included from /usr/include/GL/gl.h:2050, - from /usr/include/SDL/SDL_opengl.h:46, - from src/particle.cpp:32: -/usr/include/GL/glext.h:54: note: this is the location of the previous definition - 54 | #define GL_GLEXT_VERSION 20190805 - | src/menu.cpp: In function 'char* key_name(int)': src/menu.cpp:111:11: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 111 | return "LEFT ARROW"; @@ -1740,66 +1741,84 @@ src/menu.cpp:931:21: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 931 | menu_bg = load_jpg("menubg.jpg", false, true, true); | ^~~~~~~~~~~~ -In file included from src/pathfinder.cpp:32: +g++ -g -O2 -fdebug-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-10\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/particle.cpp -o obj/particle.o +g++ -g -O2 -fdebug-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-10\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/pathfinder.cpp -o obj/pathfinder.o +g++ -g -O2 -fdebug-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-10\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/player.cpp -o obj/player.o +g++ -g -O2 -fdebug-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-10\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/screenshot.cpp -o obj/screenshot.o +g++ -g -O2 -fdebug-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-10\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/select_special.cpp -o obj/select_special.o +In file included from src/particle.cpp:32: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46, - from src/pathfinder.cpp:32: + from src/particle.cpp:32: /usr/include/GL/glext.h:54: note: this is the location of the previous definition 54 | #define GL_GLEXT_VERSION 20190805 | -g++ -g -O2 -fdebug-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-10\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/player.cpp -o obj/player.o -g++ -g -O2 -fdebug-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-10\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/screenshot.cpp -o obj/screenshot.o -In file included from src/player.cpp:32: +src/levels.cpp: In function 'void load_bg_number(int)': +src/levels.cpp:181:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 181 | load_texture_into(cur_bground, str, "JPG", false, false, true); + | ^~~~~ +src/levels.cpp: In function 'void init_levels()': +src/levels.cpp:209:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 209 | add_comment(COL_DEFAULT, "Press ENTER to begin level %s.", level_names[cur_level]); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/levels.cpp: In function 'bool change_level()': +src/levels.cpp:256:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 256 | add_comment(COL_DEFAULT, "Ten seconds left."); + | ^~~~~~~~~~~~~~~~~~~ +In file included from src/pathfinder.cpp:32: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46, - from src/player.cpp:32: + from src/pathfinder.cpp:32: /usr/include/GL/glext.h:54: note: this is the location of the previous definition 54 | #define GL_GLEXT_VERSION 20190805 | -g++ -g -O2 -fdebug-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-10\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/select_special.cpp -o obj/select_special.o -In file included from src/screenshot.cpp:34: +src/levels.cpp:318:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 318 | add_comment(COL_DEFAULT, "Level finished."); + | ^~~~~~~~~~~~~~~~~ +src/levels.cpp:320:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 320 | add_comment(COL_DEFAULT, "GAME OVER"); + | ^~~~~~~~~~~ +src/levels.cpp: In function 'void next_level()': +src/levels.cpp:378:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 378 | add_comment(COL_DEFAULT, "Press ENTER to begin level %s.", level_names[cur_level]); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from src/player.cpp:32: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46, - from src/screenshot.cpp:34: + from src/player.cpp:32: /usr/include/GL/glext.h:54: note: this is the location of the previous definition 54 | #define GL_GLEXT_VERSION 20190805 | g++ -g -O2 -fdebug-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-10\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/soundmusic.cpp -o obj/soundmusic.o -g++ -g -O2 -fdebug-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-10\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/special_power.cpp -o obj/special_power.o -In file included from src/select_special.cpp:32: +In file included from src/screenshot.cpp:34: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46, - from src/select_special.cpp:32: + from src/screenshot.cpp:34: /usr/include/GL/glext.h:54: note: this is the location of the previous definition 54 | #define GL_GLEXT_VERSION 20190805 | -src/screenshot.cpp: In function 'void save_tga(char*, short int, short int, unsigned char*)': -src/screenshot.cpp:123:13: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 123 | error_msg("Unable to save a screenshot to \"%s\"!\n", filename); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from src/special_power.cpp:32: +In file included from src/select_special.cpp:32: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46, - from src/special_power.cpp:32: + from src/select_special.cpp:32: /usr/include/GL/glext.h:54: note: this is the location of the previous definition 54 | #define GL_GLEXT_VERSION 20190805 | -g++ -g -O2 -fdebug-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-10\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/teleport.cpp -o obj/teleport.o src/particle.cpp: In function 'void load_particles()': src/particle.cpp:69:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 69 | part_spark = load_jpg("spark.jpg", false, false, true); @@ -1822,16 +1841,65 @@ src/particle.cpp:75:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 75 | part_flower = load_png("flower.png", true, false, true); | ^~~~~~~~~~~~ -In file included from src/teleport.cpp:32: +src/screenshot.cpp: In function 'void save_tga(char*, short int, short int, unsigned char*)': +src/screenshot.cpp:123:13: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 123 | error_msg("Unable to save a screenshot to \"%s\"!\n", filename); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +g++ -g -O2 -fdebug-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-10\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/special_power.cpp -o obj/special_power.o +In file included from src/special_power.cpp:32: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46, - from src/teleport.cpp:32: + from src/special_power.cpp:32: /usr/include/GL/glext.h:54: note: this is the location of the previous definition 54 | #define GL_GLEXT_VERSION 20190805 | +g++ -g -O2 -fdebug-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-10\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/teleport.cpp -o obj/teleport.o +src/player.cpp: In function 'void load_players()': +src/player.cpp:99:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 99 | player1_anim = load_png("player1.png", true, false, false); + | ^~~~~~~~~~~~~ +src/player.cpp:102:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 102 | sprite_shadow = load_png("shadow.png", true, false, true); + | ^~~~~~~~~~~~ +src/player.cpp:105:21: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 105 | p_icons = load_png("picons.png", true, false, false); + | ^~~~~~~~~~~~ +g++ -g -O2 -fdebug-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-10\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/texture.cpp -o obj/texture.o +src/player.cpp: In member function 'void PLAYER::die()': +src/player.cpp:772:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 772 | add_comment(COL_DEFAULT, "Respawning soon..."); + | ^~~~~~~~~~~~~~~~~~~~ +src/player.cpp: In member function 'void PLAYER::pick_bonus(BONUS*)': +src/player.cpp:796:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 796 | add_comment(COL_RED, "You have received a Trap."); break; + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/player.cpp:798:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 798 | add_comment(COL_RED, "You have received a Wild Fire."); break; + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/player.cpp:800:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 800 | add_comment(COL_RED, "You have received a Napalm Strike."); break; + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/player.cpp:802:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 802 | add_comment(COL_GREEN, "You have received a Will O' The Wisp."); break; + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/player.cpp:804:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 804 | add_comment(COL_GREEN, "You have received a Potato Man."); break; + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/player.cpp:806:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 806 | add_comment(COL_GREEN, "You have received a Flower Power."); break; + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/player.cpp:808:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 808 | add_comment(COL_BLUE, "You have received a Teleport."); break; + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/player.cpp:810:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 810 | add_comment(COL_BLUE, "You have received a Turn."); break; + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/player.cpp:812:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 812 | add_comment(COL_BLUE, "You have received a Lightning Bolt."); break; + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/soundmusic.cpp: In function 'void load_sound(char*)': src/soundmusic.cpp:173:13: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 173 | error_msg("load_sounds():\nTrying to load too many sounds!\nNUM_SOUNDS is defined as %d.\n", NUM_SOUNDS); @@ -1931,7 +1999,16 @@ src/soundmusic.cpp:284:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 284 | add_comment(COL_DEFAULT, "Playing \"%s\"...", file); | ^~~~~~~~~~~~~~~~~~~ -g++ -g -O2 -fdebug-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-10\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/texture.cpp -o obj/texture.o +In file included from src/teleport.cpp:32: +/usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined + 116 | #define GL_GLEXT_VERSION 29 + | +In file included from /usr/include/GL/gl.h:2050, + from /usr/include/SDL/SDL_opengl.h:46, + from src/teleport.cpp:32: +/usr/include/GL/glext.h:54: note: this is the location of the previous definition + 54 | #define GL_GLEXT_VERSION 20190805 + | In file included from src/texture.cpp:35: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 @@ -1942,50 +2019,17 @@ /usr/include/GL/glext.h:54: note: this is the location of the previous definition 54 | #define GL_GLEXT_VERSION 20190805 | -src/player.cpp: In function 'void load_players()': -src/player.cpp:99:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 99 | player1_anim = load_png("player1.png", true, false, false); - | ^~~~~~~~~~~~~ -src/player.cpp:102:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 102 | sprite_shadow = load_png("shadow.png", true, false, true); - | ^~~~~~~~~~~~ -src/player.cpp:105:21: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 105 | p_icons = load_png("picons.png", true, false, false); - | ^~~~~~~~~~~~ -src/player.cpp: In member function 'void PLAYER::die()': -src/player.cpp:772:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 772 | add_comment(COL_DEFAULT, "Respawning soon..."); - | ^~~~~~~~~~~~~~~~~~~~ -src/player.cpp: In member function 'void PLAYER::pick_bonus(BONUS*)': -src/player.cpp:796:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 796 | add_comment(COL_RED, "You have received a Trap."); break; - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/player.cpp:798:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 798 | add_comment(COL_RED, "You have received a Wild Fire."); break; - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/player.cpp:800:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 800 | add_comment(COL_RED, "You have received a Napalm Strike."); break; - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/player.cpp:802:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 802 | add_comment(COL_GREEN, "You have received a Will O' The Wisp."); break; - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/player.cpp:804:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 804 | add_comment(COL_GREEN, "You have received a Potato Man."); break; - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/player.cpp:806:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 806 | add_comment(COL_GREEN, "You have received a Flower Power."); break; - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/player.cpp:808:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 808 | add_comment(COL_BLUE, "You have received a Teleport."); break; - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/player.cpp:810:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 810 | add_comment(COL_BLUE, "You have received a Turn."); break; - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/player.cpp:812:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 812 | add_comment(COL_BLUE, "You have received a Lightning Bolt."); break; - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -g -O2 -fdebug-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-10\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/tilemap.cpp -o obj/tilemap.o -g++ -g -O2 -fdebug-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-10\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/timer.cpp -o obj/timer.o +In file included from src/tilemap.cpp:32: +/usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined + 116 | #define GL_GLEXT_VERSION 29 + | +In file included from /usr/include/GL/gl.h:2050, + from /usr/include/SDL/SDL_opengl.h:46, + from src/tilemap.cpp:32: +/usr/include/GL/glext.h:54: note: this is the location of the previous definition + 54 | #define GL_GLEXT_VERSION 20190805 + | src/select_special.cpp: In function 'void do_special_selection()': src/select_special.cpp:308:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 308 | add_comment(COL_YELLOW, "%s chosen.", (char*)icon_names[power]); @@ -2003,34 +2047,8 @@ src/select_special.cpp:350:21: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 350 | icon_bg = load_png("iconbg.png", true, false, false); | ^~~~~~~~~~~~ -src/teleport.cpp: In function 'void load_teleports()': -src/teleport.cpp:121:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 121 | teleport_tex = load_png("teleport1.png", true, false, false); - | ^~~~~~~~~~~~~~~ -src/teleport.cpp:122:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 122 | part_teleport = load_jpg("teleport2.jpg", false, false, true); - | ^~~~~~~~~~~~~~~ -In file included from src/tilemap.cpp:32: -/usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined - 116 | #define GL_GLEXT_VERSION 29 - | -In file included from /usr/include/GL/gl.h:2050, - from /usr/include/SDL/SDL_opengl.h:46, - from src/tilemap.cpp:32: -/usr/include/GL/glext.h:54: note: this is the location of the previous definition - 54 | #define GL_GLEXT_VERSION 20190805 - | +g++ -g -O2 -fdebug-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-10\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/timer.cpp -o obj/timer.o g++ -g -O2 -fdebug-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-10\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/trap.cpp -o obj/trap.o -In file included from src/trap.cpp:32: -/usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined - 116 | #define GL_GLEXT_VERSION 29 - | -In file included from /usr/include/GL/gl.h:2050, - from /usr/include/SDL/SDL_opengl.h:46, - from src/trap.cpp:32: -/usr/include/GL/glext.h:54: note: this is the location of the previous definition - 54 | #define GL_GLEXT_VERSION 20190805 - | src/texture.cpp: In function 'GLuint load_png(char*, bool, bool, bool)': src/texture.cpp:71:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 71 | return load_texture(file, "PNG", alpha, repeat, mipmaps); @@ -2063,6 +2081,16 @@ src/texture.cpp:269:13: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 269 | error_msg("Unable to create an empty texture!"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from src/trap.cpp:32: +/usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined + 116 | #define GL_GLEXT_VERSION 29 + | +In file included from /usr/include/GL/gl.h:2050, + from /usr/include/SDL/SDL_opengl.h:46, + from src/trap.cpp:32: +/usr/include/GL/glext.h:54: note: this is the location of the previous definition + 54 | #define GL_GLEXT_VERSION 20190805 + | src/timer.cpp: In function 'void start_timer(int)': src/timer.cpp:59:13: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 59 | error_msg("Error setting timer!\n%s", SDL_GetError()); @@ -2074,6 +2102,13 @@ src/tilemap.cpp:488:13: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 488 | error_msg("'%s' is not a level file for this game!\n", file); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/teleport.cpp: In function 'void load_teleports()': +src/teleport.cpp:121:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 121 | teleport_tex = load_png("teleport1.png", true, false, false); + | ^~~~~~~~~~~~~~~ +src/teleport.cpp:122:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 122 | part_teleport = load_jpg("teleport2.jpg", false, false, true); + | ^~~~~~~~~~~~~~~ src/trap.cpp: In function 'void load_traps()': src/trap.cpp:58:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 58 | trap_texture = load_png("trap.png", true, false, false); @@ -2113,8 +2148,8 @@ dh_md5sums dh_builddeb dpkg-deb: building package 'tomatoes-dbgsym' in '../tomatoes-dbgsym_1.55-10_arm64.deb'. -dpkg-deb: building package 'tomatoes-data' in '../tomatoes-data_1.55-10_all.deb'. dpkg-deb: building package 'tomatoes' in '../tomatoes_1.55-10_arm64.deb'. +dpkg-deb: building package 'tomatoes-data' in '../tomatoes-data_1.55-10_all.deb'. dpkg-genbuildinfo --build=binary dpkg-genchanges --build=binary >../tomatoes_1.55-10_arm64.changes dpkg-genchanges: info: binary-only upload (no source code included) @@ -2122,12 +2157,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: not including original source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/8617/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/8617/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/17662 and its subdirectories -I: Current time: Tue Aug 17 13:57:15 -12 2021 -I: pbuilder-time-stamp: 1629251835 +I: removing directory /srv/workspace/pbuilder/8617 and its subdirectories +I: Current time: Tue Sep 20 22:21:34 +14 2022 +I: pbuilder-time-stamp: 1663662095