<86>Jan 28 16:47:22 userdel[2317221]: delete user 'rooter' <86>Jan 28 16:47:22 userdel[2317221]: removed group 'rooter' owned by 'rooter' <86>Jan 28 16:47:22 userdel[2317221]: removed shadow group 'rooter' owned by 'rooter' <86>Jan 28 16:47:22 groupadd[2317235]: group added to /etc/group: name=rooter, GID=1814 <86>Jan 28 16:47:22 groupadd[2317235]: group added to /etc/gshadow: name=rooter <86>Jan 28 16:47:22 groupadd[2317235]: new group: name=rooter, GID=1814 <86>Jan 28 16:47:22 useradd[2317249]: new user: name=rooter, UID=1814, GID=1814, home=/root, shell=/bin/bash, from=none <86>Jan 28 16:47:22 userdel[2317267]: delete user 'builder' <86>Jan 28 16:47:22 userdel[2317267]: removed group 'builder' owned by 'builder' <86>Jan 28 16:47:22 userdel[2317267]: removed shadow group 'builder' owned by 'builder' <86>Jan 28 16:47:22 groupadd[2317275]: group added to /etc/group: name=builder, GID=1815 <86>Jan 28 16:47:22 groupadd[2317275]: group added to /etc/gshadow: name=builder <86>Jan 28 16:47:22 groupadd[2317275]: new group: name=builder, GID=1815 <86>Jan 28 16:47:22 useradd[2317282]: new user: name=builder, UID=1815, GID=1815, home=/usr/src, shell=/bin/bash, from=none /usr/src/in/srpm/cube3d-2005.08.29-alt3.src.rpm: license not found in '/usr/share/license' directory: license <13>Jan 28 16:47:26 rpmi: libglvnd-7:1.7.0-alt1 sisyphus+330949.100.1.1 1696424893 installed <13>Jan 28 16:47:26 rpmi: libogg-1.3.5-alt1 sisyphus+278100.3400.1.1 1626058929 installed <13>Jan 28 16:47:26 rpmi: libflac12-1.4.3-alt2 sisyphus+343354.100.1.1 1711118098 installed <13>Jan 28 16:47:26 rpmi: libvorbis-1.3.7-alt1 sisyphus+275738.100.1.1 1624751601 installed <13>Jan 28 16:47:26 rpmi: libjpeg-2:3.0.2-alt2.1 sisyphus+340135.100.1.1 1707449145 installed <13>Jan 28 16:47:26 rpmi: libmpg123-1:1.32.10-alt1 sisyphus+365072.100.1.1 1734226035 installed <13>Jan 28 16:47:26 rpmi: xorg-proto-devel-2024.1-alt1 sisyphus+343583.40.1.1 1711440649 installed <13>Jan 28 16:47:26 rpmi: libexpat-2.6.4-alt1 sisyphus+365521.100.1.1 1734700243 installed <13>Jan 28 16:47:26 rpmi: libwayland-server-1.23.1-alt1.1 sisyphus+356019.140.3.1 1724572111 installed <13>Jan 28 16:47:26 rpmi: libGLES-7:1.7.0-alt1 sisyphus+330949.100.1.1 1696424893 installed <13>Jan 28 16:47:26 rpmi: libOpenGL-7:1.7.0-alt1 sisyphus+330949.100.1.1 1696424893 installed <13>Jan 28 16:47:26 rpmi: libmad-0.15.1b-alt9 sisyphus+278239.100.1.1 1626080123 installed <13>Jan 28 16:47:27 rpmi: timidity-instruments-1:1.0-alt1 sisyphus+276870.100.1.1 1625246545 installed <13>Jan 28 16:47:27 rpmi: libwebp7-1.5.0-alt1 sisyphus+365488.100.1.1 1734677703 installed <13>Jan 28 16:47:27 rpmi: libdeflate-1.23-alt1 sisyphus+366443.100.2.1 1735140380 installed <13>Jan 28 16:47:27 rpmi: libtiff5-4.4.0-alt4 sisyphus+322581.100.1.2 1686180089 installed <13>Jan 28 16:47:27 rpmi: libpng16-1.6.42-alt2 sisyphus+339555.100.1.1 1706781682 installed <13>Jan 28 16:47:27 rpmi: libopus-1.5.2-alt1.1 sisyphus+366209.100.1.1 1734786371 installed <13>Jan 28 16:47:27 rpmi: liblame-3.100-alt1 sisyphus+346342.200.2.2 1716474674 installed <13>Jan 28 16:47:27 rpmi: libgsm-1.0.17-alt1 sisyphus+275359.100.2.1 1624907612 installed <13>Jan 28 16:47:27 rpmi: libsndfile-1.1.0-alt1 sisyphus+339776.7300.6.2 1707350065 installed <13>Jan 28 16:47:27 rpmi: liblz4-1:1.9.4-alt1 sisyphus+309416.100.1.1 1667412981 installed <13>Jan 28 16:47:27 rpmi: libsystemd-1:255.16-alt1 sisyphus+368218.100.2.1 1736510055 installed <13>Jan 28 16:47:27 rpmi: libdbus-1.16.0-alt2 sisyphus+369277.100.1.1 1736680018 installed <13>Jan 28 16:47:27 rpmi: libasyncns-0.8-alt2.qa1 sisyphus+275091.100.1.1 1624402241 installed <13>Jan 28 16:47:27 rpmi: libxshmfence-1.3.2-alt1 sisyphus+311428.400.1.1 1670577525 installed <13>Jan 28 16:47:27 rpmi: libsensors3-3.6.0-alt4 sisyphus+366234.100.1.1 1734814779 installed <13>Jan 28 16:47:27 rpmi: libX11-locales-3:1.8.10-alt1 sisyphus+353866.100.1.1 1722240771 installed <13>Jan 28 16:47:27 rpmi: libspirv-tools0-1:2024.4-alt0.1 sisyphus+365035.200.5.1 1734354502 installed <13>Jan 28 16:47:27 rpmi: llvm18.1-filesystem-18.1.8-alt0.4 sisyphus+364551.100.1.1 1733763186 installed <13>Jan 28 16:47:27 rpmi: llvm18.1-polly-18.1.8-alt0.4 sisyphus+364551.100.1.1 1733763186 installed <13>Jan 28 16:47:27 rpmi: libedit3-3.1.20230828-alt1 sisyphus+330914.200.3.1 1696922743 installed <13>Jan 28 16:47:27 rpmi: llvm18.1-gold-18.1.8-alt0.4 sisyphus+364551.100.1.1 1733763186 installed <13>Jan 28 16:47:29 rpmi: llvm18.1-libs-18.1.8-alt0.4 sisyphus+364551.100.1.1 1733763186 installed <13>Jan 28 16:47:29 rpmi: libXdmcp-1.1.5-alt1 sisyphus+343583.700.1.1 1711441061 installed <13>Jan 28 16:47:29 rpmi: libXau-1.0.11-alt1 sisyphus+311428.100.1.1 1670577439 installed <13>Jan 28 16:47:29 rpmi: libxcb-1.17.0-alt1 sisyphus+345308.200.1.1 1713342004 installed <13>Jan 28 16:47:29 rpmi: libX11-3:1.8.10-alt1 sisyphus+353866.100.1.1 1722240771 installed <13>Jan 28 16:47:29 rpmi: libXext-1.3.6-alt1 sisyphus+343583.1000.1.1 1711441101 installed <13>Jan 28 16:47:29 rpmi: libpulseaudio-17.0-alt2 sisyphus+339257.100.1.1 1706519226 installed <13>Jan 28 16:47:29 rpmi: libmikmod-3.3.11.1-alt2 sisyphus+278211.100.1.1 1626077581 installed <13>Jan 28 16:47:29 rpmi: libXxf86vm-1.1.5-alt1 sisyphus+308663.1400.1.1 1666168523 installed <13>Jan 28 16:47:29 rpmi: libXfixes-6.0.1-alt1 sisyphus+331490.300.1.1 1697023233 installed <13>Jan 28 16:47:29 rpmi: libXrender-0.9.11-alt1 sisyphus+308841.100.1.1 1666436130 installed <13>Jan 28 16:47:29 rpmi: libXrandr-1.5.4-alt1 sisyphus+330992.100.1.1 1696485400 installed <13>Jan 28 16:47:30 rpmi: libxcb-devel-1.17.0-alt1 sisyphus+345308.200.1.1 1713342004 installed <13>Jan 28 16:47:30 rpmi: libX11-devel-3:1.8.10-alt1 sisyphus+353866.100.1.1 1722240771 installed <13>Jan 28 16:47:30 rpmi: libwayland-client-1.23.1-alt1.1 sisyphus+356019.140.3.1 1724572111 installed <13>Jan 28 16:47:30 rpmi: libpciaccess-1:0.18.1-alt1 sisyphus+343583.300.1.1 1711440789 installed <13>Jan 28 16:47:30 rpmi: libdrm-1:2.4.124-alt1 sisyphus+364215.100.1.1 1733469813 installed <13>Jan 28 16:47:30 rpmi: libGLX-mesa-4:24.3.4-alt1 sisyphus+370952.100.1.1 1737620963 installed <13>Jan 28 16:47:30 rpmi: libGLX-7:1.7.0-alt1 sisyphus+330949.100.1.1 1696424893 installed <13>Jan 28 16:47:30 rpmi: libGL-7:1.7.0-alt1 sisyphus+330949.100.1.1 1696424893 installed <13>Jan 28 16:47:30 rpmi: libGLU-4:9.0.1-alt1 sisyphus+278350.100.1.2 1626174382 installed <13>Jan 28 16:47:30 rpmi: libgbm-4:24.3.4-alt1 sisyphus+370952.100.1.1 1737620963 installed <13>Jan 28 16:47:30 rpmi: libEGL-mesa-4:24.3.4-alt1 sisyphus+370952.100.1.1 1737620963 installed <13>Jan 28 16:47:30 rpmi: libEGL-7:1.7.0-alt1 sisyphus+330949.100.1.1 1696424893 installed <13>Jan 28 16:47:30 rpmi: libglvnd-devel-7:1.7.0-alt1 sisyphus+330949.100.1.1 1696424893 installed <13>Jan 28 16:47:30 rpmi: libGLU-devel-4:9.0.1-alt1 sisyphus+278350.100.1.2 1626174382 installed <13>Jan 28 16:47:30 rpmi: gcc-c++-common-1.4.28-alt1 sisyphus+348678.100.1.1 1716396142 installed <13>Jan 28 16:47:31 rpmi: libstdc++14-devel-14.2.1-alt1 sisyphus+360995.100.1.1 1730131018 installed <13>Jan 28 16:47:31 rpmi: gcc14-c++-14.2.1-alt1 sisyphus+360995.100.1.1 1730131018 installed <13>Jan 28 16:47:31 rpmi: alsa-ucm-conf-1.2.13-alt1 sisyphus+370533.100.1.1 1737298866 installed <13>Jan 28 16:47:31 rpmi: alsa-topology-conf-1.2.5.1-alt1 sisyphus+274777.100.1.1 1624089141 installed <13>Jan 28 16:47:31 rpmi: libalsa-1:1.2.13-alt1 sisyphus+370533.200.1.1 1737298943 installed <13>Jan 28 16:47:31 rpmi: libSDL-1.2.14-alt10 sisyphus+346015.200.2.1 1716212609 installed <13>Jan 28 16:47:31 rpmi: libSDL-devel-1.2.14-alt10 sisyphus+346015.200.2.1 1716212609 installed <13>Jan 28 16:47:31 rpmi: libSDL_image-1.2.12.0.95.7adb-alt1 sisyphus+363546.40.2.1 1732787268 installed <13>Jan 28 16:47:31 rpmi: libSDL_mixer-1.2.12.0.173.ed76-alt1 sisyphus+363399.100.1.1 1732607790 installed <13>Jan 28 16:47:31 rpmi: libSDL_mixer-devel-1.2.12.0.173.ed76-alt1 sisyphus+363399.100.1.1 1732607790 installed <13>Jan 28 16:47:31 rpmi: libSDL_image-devel-1.2.12.0.95.7adb-alt1 sisyphus+363546.40.2.1 1732787268 installed <13>Jan 28 16:47:31 rpmi: gcc-c++-14-alt1 sisyphus+360995.300.1.1 1730139222 installed <13>Jan 28 16:47:31 rpmi: desktop-file-utils-0.26-alt6 sisyphus+331944.100.1.3 1697550026 installed <13>Jan 28 16:47:31 rpmi: zlib-devel-1.3.1-alt1 sisyphus+342532.100.1.1 1710232285 installed Building target platforms: x86_64 Building for target x86_64 Wrote: /usr/src/in/nosrpm/cube3d-2005.08.29-alt3.nosrc.rpm (w1.gzdio) Installing cube3d-2005.08.29-alt3.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.17535 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf cube-src-2005.08.29 + echo 'Source #0 (cube-src-2005.08.29.tar):' Source #0 (cube-src-2005.08.29.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/cube-src-2005.08.29.tar + cd cube-src-2005.08.29 + /bin/chmod -c -Rf u+rwX,go-w . + echo 'Patch #0 (cube3d-2005.08.29-alt-DSO.patch):' Patch #0 (cube3d-2005.08.29-alt-DSO.patch): + /usr/bin/patch -p2 patching file src/Makefile + echo 'Patch #1 (cube3d-2005.08.29-alt-fix-compilation.patch):' Patch #1 (cube3d-2005.08.29-alt-fix-compilation.patch): + /usr/bin/patch -p2 patching file enet/peer.c + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.17535 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd cube-src-2005.08.29 + cd ./enet + touch NEWS AUTHORS ChangeLog + autoreconf -fisv autoreconf-default: export WARNINGS= autoreconf-default: warning: autoconf input should be named 'configure.ac', not 'configure.in' autoreconf-default: Entering directory '.' autoreconf-default: configure.in: not using Gettext autoreconf-default: running: aclocal --force aclocal-default: warning: autoconf input should be named 'configure.ac', not 'configure.in' autoreconf-default: configure.in: tracing autoreconf-default: configure.in: not using Libtool autoreconf-default: configure.in: not using Intltool autoreconf-default: configure.in: not using Gtkdoc autoreconf-default: running: /usr/bin/autoconf-2.71 --force configure.in:2: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated. ./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from... aclocal.m4:429: AM_INIT_AUTOMAKE is expanded from... configure.in:2: the top level configure.in:22: warning: AC_OUTPUT should be used without arguments. configure.in:22: You should run autoupdate. autoreconf-default: configure.in: not using Autoheader autoreconf-default: running: automake --add-missing --force-missing automake-default: warning: autoconf input should be named 'configure.ac', not 'configure.in' configure.in:2: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated. For more info, see: configure.in:2: https://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation configure.in:4: installing './compile' configure.in:2: installing './install-sh' configure.in:2: installing './missing' Makefile.am:3: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') Makefile.am: installing './INSTALL' Makefile.am: installing './COPYING' using GNU General Public License v3 file Makefile.am: Consider adding the COPYING file to the version control system Makefile.am: for your code, to avoid questions about which license your project uses automake-default: warning: autoconf input should be named 'configure.ac', not 'configure.in' Makefile.am: installing './depcomp' autoreconf-default: Leaving directory '.' + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export FFLAGS + FCFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export FCFLAGS + '[' -n '' ']' ++ printf %s '-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' ++ sed -r 's/(^|[[:space:]]+)-[^m][^[:space:]]*//g' + ASFLAGS= + export ASFLAGS + export lt_cv_deplibs_check_method=pass_all + lt_cv_deplibs_check_method=pass_all + readlink -e -- ./configure + xargs -ri dirname -- '{}' + xargs -ri find '{}' -type f '(' -name config.sub -or -name config.guess ')' -printf '%h/\n' + sort -u + xargs -rn1 install -pm755 -- /usr/share/gnu-config/config.sub /usr/share/gnu-config/config.guess + configure_runstatedir_flags= + grep -qF runstatedir=DIR ./configure + configure_runstatedir_flags=--runstatedir=/var/run + ./configure --build=x86_64-alt-linux --host=x86_64-alt-linux --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/lib --localstatedir=/var/lib --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-dependency-tracking --disable-silent-rules --runstatedir=/var/run --without-included-gettext configure: WARNING: unrecognized options: --without-included-gettext checking for a BSD-compatible install... /usr/bin/ginstall -c checking whether build environment is sane... yes checking for a race-free mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking for x86_64-alt-linux-gcc... x86_64-alt-linux-gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether x86_64-alt-linux-gcc accepts -g... yes checking for x86_64-alt-linux-gcc option to enable C11 features... none needed checking whether x86_64-alt-linux-gcc understands -c and -o together... yes checking whether make supports the include directive... yes (GNU style) checking dependency style of x86_64-alt-linux-gcc... none checking for x86_64-alt-linux-ranlib... no checking for ranlib... ranlib checking for gethostbyaddr_r... yes checking for gethostbyname_r... yes checking for poll... yes checking for fcntl... yes checking for struct msghdr.msg_flags... yes checking for socklen_t... yes checking how to run the C preprocessor... x86_64-alt-linux-gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating include/Makefile config.status: creating include/enet/Makefile config.status: executing depfiles commands configure: WARNING: unrecognized options: --without-included-gettext + make -j16 Making all in include Making all in enet make[2]: Nothing to be done for 'all'. make[2]: Nothing to be done for 'all-am'. make[1]: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/enet' x86_64-alt-linux-gcc -DPACKAGE_NAME=\"libenet\" -DPACKAGE_TARNAME=\"libenet\" -DPACKAGE_VERSION=\"7-18-2005\" -DPACKAGE_STRING=\"libenet\ 7-18-2005\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libenet.a\" -DVERSION=\"7-18-2005\" -DHAS_GETHOSTBYADDR_R=1 -DHAS_GETHOSTBYNAME_R=1 -DHAS_POLL=1 -DHAS_FCNTL=1 -DHAS_MSGHDR_FLAGS=1 -DHAS_SOCKLEN_T=1 -I. -Iinclude/ -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -c -o win32.o win32.c make[1]: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/enet' make[1]: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/enet' x86_64-alt-linux-gcc -DPACKAGE_NAME=\"libenet\" -DPACKAGE_TARNAME=\"libenet\" -DPACKAGE_VERSION=\"7-18-2005\" -DPACKAGE_STRING=\"libenet\ 7-18-2005\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libenet.a\" -DVERSION=\"7-18-2005\" -DHAS_GETHOSTBYADDR_R=1 -DHAS_GETHOSTBYNAME_R=1 -DHAS_POLL=1 -DHAS_FCNTL=1 -DHAS_MSGHDR_FLAGS=1 -DHAS_SOCKLEN_T=1 -I. -Iinclude/ -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -c -o list.o list.c make[1]: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/enet' make[1]: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/enet' x86_64-alt-linux-gcc -DPACKAGE_NAME=\"libenet\" -DPACKAGE_TARNAME=\"libenet\" -DPACKAGE_VERSION=\"7-18-2005\" -DPACKAGE_STRING=\"libenet\ 7-18-2005\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libenet.a\" -DVERSION=\"7-18-2005\" -DHAS_GETHOSTBYADDR_R=1 -DHAS_GETHOSTBYNAME_R=1 -DHAS_POLL=1 -DHAS_FCNTL=1 -DHAS_MSGHDR_FLAGS=1 -DHAS_SOCKLEN_T=1 -I. -Iinclude/ -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -c -o packet.o packet.c make[1]: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/enet' make[1]: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/enet' x86_64-alt-linux-gcc -DPACKAGE_NAME=\"libenet\" -DPACKAGE_TARNAME=\"libenet\" -DPACKAGE_VERSION=\"7-18-2005\" -DPACKAGE_STRING=\"libenet\ 7-18-2005\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libenet.a\" -DVERSION=\"7-18-2005\" -DHAS_GETHOSTBYADDR_R=1 -DHAS_GETHOSTBYNAME_R=1 -DHAS_POLL=1 -DHAS_FCNTL=1 -DHAS_MSGHDR_FLAGS=1 -DHAS_SOCKLEN_T=1 -I. -Iinclude/ -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -c -o callbacks.o callbacks.c make[1]: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/enet' make[1]: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/enet' x86_64-alt-linux-gcc -DPACKAGE_NAME=\"libenet\" -DPACKAGE_TARNAME=\"libenet\" -DPACKAGE_VERSION=\"7-18-2005\" -DPACKAGE_STRING=\"libenet\ 7-18-2005\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libenet.a\" -DVERSION=\"7-18-2005\" -DHAS_GETHOSTBYADDR_R=1 -DHAS_GETHOSTBYNAME_R=1 -DHAS_POLL=1 -DHAS_FCNTL=1 -DHAS_MSGHDR_FLAGS=1 -DHAS_SOCKLEN_T=1 -I. -Iinclude/ -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -c -o peer.o peer.c make[1]: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/enet' make[1]: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/enet' x86_64-alt-linux-gcc -DPACKAGE_NAME=\"libenet\" -DPACKAGE_TARNAME=\"libenet\" -DPACKAGE_VERSION=\"7-18-2005\" -DPACKAGE_STRING=\"libenet\ 7-18-2005\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libenet.a\" -DVERSION=\"7-18-2005\" -DHAS_GETHOSTBYADDR_R=1 -DHAS_GETHOSTBYNAME_R=1 -DHAS_POLL=1 -DHAS_FCNTL=1 -DHAS_MSGHDR_FLAGS=1 -DHAS_SOCKLEN_T=1 -I. -Iinclude/ -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -c -o unix.o unix.c make[1]: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/enet' make[1]: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/enet' x86_64-alt-linux-gcc -DPACKAGE_NAME=\"libenet\" -DPACKAGE_TARNAME=\"libenet\" -DPACKAGE_VERSION=\"7-18-2005\" -DPACKAGE_STRING=\"libenet\ 7-18-2005\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libenet.a\" -DVERSION=\"7-18-2005\" -DHAS_GETHOSTBYADDR_R=1 -DHAS_GETHOSTBYNAME_R=1 -DHAS_POLL=1 -DHAS_FCNTL=1 -DHAS_MSGHDR_FLAGS=1 -DHAS_SOCKLEN_T=1 -I. -Iinclude/ -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -c -o host.o host.c make[1]: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/enet' make[1]: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/enet' x86_64-alt-linux-gcc -DPACKAGE_NAME=\"libenet\" -DPACKAGE_TARNAME=\"libenet\" -DPACKAGE_VERSION=\"7-18-2005\" -DPACKAGE_STRING=\"libenet\ 7-18-2005\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libenet.a\" -DVERSION=\"7-18-2005\" -DHAS_GETHOSTBYADDR_R=1 -DHAS_GETHOSTBYNAME_R=1 -DHAS_POLL=1 -DHAS_FCNTL=1 -DHAS_MSGHDR_FLAGS=1 -DHAS_SOCKLEN_T=1 -I. -Iinclude/ -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -c -o protocol.o protocol.c make[1]: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/enet' make[1]: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/enet' rm -f libenet.a ar cru libenet.a host.o list.o callbacks.o packet.o peer.o protocol.o unix.o win32.o ar: `u' modifier ignored since `D' is the default (see `U') ranlib libenet.a make[1]: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/enet' + cd ../src + make -j16 'CXXOPTFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -fsigned-char' 'CXX=g++ -L/usr/lib64' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make -C ../enet all Making all in include Making all in enet make[3]: Nothing to be done for 'all'. make[3]: Nothing to be done for 'all-am'. make[2]: Nothing to be done for 'all-am'. make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib64 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -fsigned-char -I../enet/include `sdl-config --cflags` -c -o entities.o entities.cpp In file included from cube.h:3, from entities.cpp:3: tools.h: In member function 'T* hashtable::access(char*, T*)': tools.h:247:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 247 | for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor | ~~^~~~~~~~ In file included from cube.h:284: protos.h: At global scope: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 127 | extern void fatal(char *s, char *o = ""); | ^ entities.cpp:9:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 9 | "shells", "bullets", "rockets", "rrounds", "health", "boost", | ^~~~~~~~ entities.cpp:9:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 9 | "shells", "bullets", "rockets", "rrounds", "health", "boost", | ^~~~~~~~~ entities.cpp:9:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 9 | "shells", "bullets", "rockets", "rrounds", "health", "boost", | ^~~~~~~~~ entities.cpp:9:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 9 | "shells", "bullets", "rockets", "rrounds", "health", "boost", | ^~~~~~~~~ entities.cpp:9:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 9 | "shells", "bullets", "rockets", "rrounds", "health", "boost", | ^~~~~~~~ entities.cpp:9:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 9 | "shells", "bullets", "rockets", "rrounds", "health", "boost", | ^~~~~~~ entities.cpp:10:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 10 | "g_armour", "y_armour", "quad", "teleporter", | ^~~~~~~~~~ entities.cpp:10:21: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 10 | "g_armour", "y_armour", "quad", "teleporter", | ^~~~~~~~~~ entities.cpp:10:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 10 | "g_armour", "y_armour", "quad", "teleporter", | ^~~~~~ entities.cpp:10:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 10 | "g_armour", "y_armour", "quad", "teleporter", | ^~~~~~~~~~~~ entities.cpp: In function 'void renderentities()': entities.cpp:29:17: warning: the compiler can assume that the address of 'mmi' will never be NULL [-Waddress] 29 | if(!&mmi) continue; | ^~~~ entities.cpp:28:27: note: 'mmi' declared here 28 | mapmodelinfo &mmi = getmminfo(e.attr2); | ^~~ entities.cpp:50:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 50 | renderent(e, "carrot", (float)(1+sin(lastmillis/100.0+e.x+e.y)/20), lastmillis/(e.attr2 ? 1.0f : 10.0f)); | ^~~~~~~~ entities.cpp:53:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 53 | case 4: renderent(e, "switch2", 3, (float)e.attr3*90, (!e.spawned && !triggertime) ? 1 : 0, (e.spawned || !triggertime) ? 1 : 2, triggertime, 1050.0f); break; | ^~~~~~~~~ entities.cpp:54:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 54 | case 5: renderent(e, "switch1", -0.15f, (float)e.attr3*90, (!e.spawned && !triggertime) ? 30 : 0, (e.spawned || !triggertime) ? 1 : 30, triggertime, 35.0f); break; | ^~~~~~~~~ entities.cpp: In function 'void checkitems()': entities.cpp:216:21: warning: narrowing conversion of 'e.entity::persistent_entity.persistent_entity::x' from 'short int' to 'float' [-Wnarrowing] 216 | vec v = { e.x, e.y, S(e.x, e.y)->floor+player1->eyeheight }; | ~~^ entities.cpp:216:26: warning: narrowing conversion of 'e.entity::persistent_entity.persistent_entity::y' from 'short int' to 'float' [-Wnarrowing] 216 | vec v = { e.x, e.y, S(e.x, e.y)->floor+player1->eyeheight }; | ~~^ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib64 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -fsigned-char -I../enet/include `sdl-config --cflags` -c -o physics.o physics.cpp In file included from cube.h:3, from physics.cpp:6: tools.h: In member function 'T* hashtable::access(char*, T*)': tools.h:247:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 247 | for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor | ~~^~~~~~~~ In file included from cube.h:284: protos.h: At global scope: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 127 | extern void fatal(char *s, char *o = ""); | ^ physics.cpp: In function 'void mmcollide(dynent*, float&, float&)': physics.cpp:50:13: warning: the compiler can assume that the address of 'mmi' will never be NULL [-Waddress] 50 | if(!&mmi || !mmi.h) continue; | ^~~~ physics.cpp:49:23: note: 'mmi' declared here 49 | mapmodelinfo &mmi = getmminfo(e.attr2); | ^~~ physics.cpp: In function 'bool collide(dynent*, bool, float, float)': physics.cpp:92:78: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 92 | if(x==x1 && y==y1 && cornertest(0, x, y, -1, -1, bx, by, bs) && fx1-bx+fy1-by<=bs | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ physics.cpp:94:78: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 94 | || x==x1 && y==y2 && cornertest(0, x, y, -1, 1, bx, by, bs) && fx1-bx<=fy2-by | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ physics.cpp:95:78: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 95 | || x==x2 && y==y2 && cornertest(0, x, y, 1, 1, bx, by, bs) && fx2-bx+fy2-by>=bs) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ physics.cpp: At global scope: physics.cpp:165:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 165 | VARP(maxroll, 0, 3, 20); | ^ cube.h:255:56: note: in definition of macro 'VARP' 255 | #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) | ^~~~ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib64 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -fsigned-char -I../enet/include `sdl-config --cflags` -c -o menus.o menus.cpp In file included from cube.h:3, from menus.cpp:3: tools.h: In member function 'T* hashtable::access(char*, T*)': tools.h:247:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 247 | for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor | ~~^~~~~~~~ In file included from cube.h:284: protos.h: At global scope: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 127 | extern void fatal(char *s, char *o = ""); | ^ menus.cpp: In function 'void menumanual(int, int, char*)': menus.cpp:99:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 99 | mitem.action = ""; | ^~ menus.cpp: At global scope: menus.cpp:110:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 110 | COMMAND(menuitem, ARG_2STR); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ menus.cpp:110:1: note: in expansion of macro 'COMMAND' 110 | COMMAND(menuitem, ARG_2STR); | ^~~~~~~ menus.cpp:111:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 111 | COMMAND(showmenu, ARG_1STR); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ menus.cpp:111:1: note: in expansion of macro 'COMMAND' 111 | COMMAND(showmenu, ARG_1STR); | ^~~~~~~ menus.cpp:112:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 112 | COMMAND(newmenu, ARG_1STR); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ menus.cpp:112:1: note: in expansion of macro 'COMMAND' 112 | COMMAND(newmenu, ARG_1STR); | ^~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib64 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -fsigned-char -I../enet/include `sdl-config --cflags` -c -o monster.o monster.cpp In file included from cube.h:3, from monster.cpp:3: tools.h: In member function 'T* hashtable::access(char*, T*)': tools.h:247:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 247 | for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor | ~~^~~~~~~~ In file included from cube.h:284: protos.h: At global scope: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 127 | extern void fatal(char *s, char *o = ""); | ^ monster.cpp:8:56: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 8 | VARF(skill, 1, 3, 10, conoutf("skill is now %d", skill)); | ^ cube.h:257:89: note: in definition of macro 'VARF' 257 | #define VARF(name, min, cur, max, body) void var_##name(); static int name = variable(#name, min, cur, max, &name, var_##name, false); void var_##name() { body; } | ^~~~ monster.cpp:25:79: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 25 | { GUN_FIREBALL, 15, 100, 3, 0, 100, 800, 1, 10, 10, S_PAINO, S_DIE1, "an ogre", "monster/ogro" }, | ^~~~~~~~~ monster.cpp:25:94: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 25 | { GUN_FIREBALL, 15, 100, 3, 0, 100, 800, 1, 10, 10, S_PAINO, S_DIE1, "an ogre", "monster/ogro" }, | ^~~~~~~~~~~~~~ monster.cpp:26:79: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 26 | { GUN_CG, 18, 70, 2, 70, 10, 400, 2, 8, 9, S_PAINR, S_DEATHR, "a rhino", "monster/rhino" }, | ^~~~~~~~~ monster.cpp:26:94: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 26 | { GUN_CG, 18, 70, 2, 70, 10, 400, 2, 8, 9, S_PAINR, S_DEATHR, "a rhino", "monster/rhino" }, | ^~~~~~~~~~~~~~~ monster.cpp:27:79: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 27 | { GUN_SG, 14, 120, 1, 100, 300, 400, 4, 14, 14, S_PAINE, S_DEATHE, "ratamahatta", "monster/rat" }, | ^~~~~~~~~~~~~ monster.cpp:27:94: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 27 | { GUN_SG, 14, 120, 1, 100, 300, 400, 4, 14, 14, S_PAINE, S_DEATHE, "ratamahatta", "monster/rat" }, | ^~~~~~~~~~~~~ monster.cpp:28:79: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 28 | { GUN_RIFLE, 15, 200, 1, 80, 300, 300, 4, 18, 18, S_PAINS, S_DEATHS, "a slith", "monster/slith" }, | ^~~~~~~~~ monster.cpp:28:94: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 28 | { GUN_RIFLE, 15, 200, 1, 80, 300, 300, 4, 18, 18, S_PAINS, S_DEATHS, "a slith", "monster/slith" }, | ^~~~~~~~~~~~~~~ monster.cpp:29:79: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 29 | { GUN_RL, 13, 500, 1, 0, 100, 200, 6, 24, 24, S_PAINB, S_DEATHB, "bauul", "monster/bauul" }, | ^~~~~~~ monster.cpp:29:94: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 29 | { GUN_RL, 13, 500, 1, 0, 100, 200, 6, 24, 24, S_PAINB, S_DEATHB, "bauul", "monster/bauul" }, | ^~~~~~~~~~~~~~~ monster.cpp:30:79: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 30 | { GUN_BITE, 22, 50, 3, 0, 100, 400, 1, 12, 15, S_PAINP, S_PIGGR2, "a hellpig", "monster/hellpig" }, | ^~~~~~~~~~~ monster.cpp:30:94: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 30 | { GUN_BITE, 22, 50, 3, 0, 100, 400, 1, 12, 15, S_PAINP, S_PIGGR2, "a hellpig", "monster/hellpig" }, | ^~~~~~~~~~~~~~~~~ monster.cpp:31:79: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 31 | { GUN_ICEBALL, 12, 250, 1, 0, 10, 400, 6, 18, 18, S_PAINH, S_DEATHH, "a knight", "monster/knight" }, | ^~~~~~~~~~ monster.cpp:31:94: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 31 | { GUN_ICEBALL, 12, 250, 1, 0, 10, 400, 6, 18, 18, S_PAINH, S_DEATHH, "a knight", "monster/knight" }, | ^~~~~~~~~~~~~~~~ monster.cpp:32:79: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 32 | { GUN_SLIMEBALL, 15, 100, 1, 0, 200, 400, 2, 13, 10, S_PAIND, S_DEATHD, "a goblin", "monster/goblin" }, | ^~~~~~~~~~ monster.cpp:32:94: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 32 | { GUN_SLIMEBALL, 15, 100, 1, 0, 200, 400, 2, 13, 10, S_PAIND, S_DEATHD, "a goblin", "monster/goblin" }, | ^~~~~~~~~~~~~~~~ monster.cpp: In function 'void monsterthink()': monster.cpp:314:21: warning: narrowing conversion of 'e.entity::persistent_entity.persistent_entity::x' from 'short int' to 'float' [-Wnarrowing] 314 | vec v = { e.x, e.y, S(e.x, e.y)->floor }; | ~~^ monster.cpp:314:26: warning: narrowing conversion of 'e.entity::persistent_entity.persistent_entity::y' from 'short int' to 'float' [-Wnarrowing] 314 | vec v = { e.x, e.y, S(e.x, e.y)->floor }; | ~~^ monster.cpp:314:42: warning: narrowing conversion of '(world + ((sizetype)(((long unsigned int)((((int)e.entity::persistent_entity.persistent_entity::y) * ssize) + ((int)e.entity::persistent_entity.persistent_entity::x))) * 14)))->sqr::floor' from 'char' to 'float' [-Wnarrowing] 314 | vec v = { e.x, e.y, S(e.x, e.y)->floor }; make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib64 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -fsigned-char -I../enet/include `sdl-config --cflags` -c -o clients2c.o clients2c.cpp In file included from cube.h:3, from clients2c.cpp:3: tools.h: In member function 'T* hashtable::access(char*, T*)': tools.h:247:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 247 | for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor | ~~^~~~~~~~ In file included from cube.h:284: protos.h: At global scope: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 127 | extern void fatal(char *s, char *o = ""); | ^ clients2c.cpp: In function 'void localservertoclient(uchar*, int)': clients2c.cpp:54:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 54 | if(ENET_NET_TO_HOST_16(*(ushort *)buf)!=len) neterr("packet length"); | ^~~~~~~~~~~~~~~ clients2c.cpp:259:31: warning: narrowing conversion of 'ents.vector::operator[](((int)i)).entity::persistent_entity.persistent_entity::x' from 'short int' to 'float' [-Wnarrowing] 259 | vec v = { ents[i].x, ents[i].y, ents[i].z }; clients2c.cpp:259:42: warning: narrowing conversion of 'ents.vector::operator[](((int)i)).entity::persistent_entity.persistent_entity::y' from 'short int' to 'float' [-Wnarrowing] 259 | vec v = { ents[i].x, ents[i].y, ents[i].z }; clients2c.cpp:259:53: warning: narrowing conversion of 'ents.vector::operator[](((int)i)).entity::persistent_entity.persistent_entity::z' from 'short int' to 'float' [-Wnarrowing] 259 | vec v = { ents[i].x, ents[i].y, ents[i].z }; clients2c.cpp:352:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 352 | neterr("type"); | ^~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib64 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -fsigned-char -I../enet/include `sdl-config --cflags` -c -o client.o client.cpp In file included from cube.h:3, from client.cpp:3: tools.h: In member function 'T* hashtable::access(char*, T*)': tools.h:247:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 247 | for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor | ~~^~~~~~~~ In file included from cube.h:284: protos.h: At global scope: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 127 | extern void fatal(char *s, char *o = ""); | ^ client.cpp:28:114: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 28 | VARF(rate, 0, 0, 25000, if(clienthost && (!rate || rate>1000)) enet_host_bandwidth_limit (clienthost, rate, rate)); | ^ cube.h:257:89: note: in definition of macro 'VARF' 257 | #define VARF(name, min, cur, max, body) void var_##name(); static int name = variable(#name, min, cur, max, &name, var_##name, false); void var_##name() { body; } | ^~~~ client.cpp:32:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 32 | VARF(throttle_interval, 0, 5, 30, throttle()); | ^ cube.h:257:89: note: in definition of macro 'VARF' 257 | #define VARF(name, min, cur, max, body) void var_##name(); static int name = variable(#name, min, cur, max, &name, var_##name, false); void var_##name() { body; } | ^~~~ client.cpp:33:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 33 | VARF(throttle_accel, 0, 2, 32, throttle()); | ^ cube.h:257:89: note: in definition of macro 'VARF' 257 | #define VARF(name, min, cur, max, body) void var_##name(); static int name = variable(#name, min, cur, max, &name, var_##name, false); void var_##name() { body; } | ^~~~ client.cpp:34:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 34 | VARF(throttle_decel, 0, 2, 32, throttle()); | ^ cube.h:257:89: note: in definition of macro 'VARF' 257 | #define VARF(name, min, cur, max, body) void var_##name(); static int name = variable(#name, min, cur, max, &name, var_##name, false); void var_##name() { body; } | ^~~~ client.cpp:46:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 46 | COMMANDN(team, newteam, ARG_1STR); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ client.cpp:47:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 47 | COMMANDN(name, newname, ARG_1STR); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ client.cpp:137:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 137 | COMMAND(echo, ARG_VARI); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ client.cpp:137:1: note: in expansion of macro 'COMMAND' 137 | COMMAND(echo, ARG_VARI); | ^~~~~~~ client.cpp:138:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 138 | COMMANDN(say, toserver, ARG_VARI); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ client.cpp:139:37: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 139 | COMMANDN(connect, connects, ARG_1STR); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ client.cpp:140:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 140 | COMMANDN(disconnect, trydisconnect, ARG_NONE); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ client.cpp: In function 'void addmsg(int, int, int, ...)': client.cpp:149:131: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 149 | if(num!=msgsizelookup(type)) { sprintf_sd(s)("inconsistant msg size for %d (%d != %d)", type, num, msgsizelookup(type)); fatal(s); }; | ~~~~~^~~ client.cpp: At global scope: client.cpp:173:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 173 | COMMAND(password, ARG_1STR); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ client.cpp:173:1: note: in expansion of macro 'COMMAND' 173 | COMMAND(password, ARG_1STR); | ^~~~~~~ client.cpp: In function 'void initclientnet()': client.cpp:182:13: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 182 | newname("unnamed"); | ^~~~~~~~~ client.cpp:183:13: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 183 | newteam("red"); | ^~~~~ client.cpp: In function 'void gets2c()': client.cpp:289:11: warning: enumeration value 'ENET_EVENT_TYPE_NONE' not handled in switch [-Wswitch] 289 | switch(event.type) | ^ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib64 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -fsigned-char -I../enet/include `sdl-config --cflags` -c -o editing.o editing.cpp In file included from cube.h:3, from editing.cpp:3: tools.h: In member function 'T* hashtable::access(char*, T*)': tools.h:247:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 247 | for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor | ~~^~~~~~~~ In file included from cube.h:284: protos.h: At global scope: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 127 | extern void fatal(char *s, char *o = ""); | ^ editing.cpp:12:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 12 | variable("selx", 0, 0, 4096, &sel.x, NULL, false), | ^~~~~~ editing.cpp:13:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 13 | variable("sely", 0, 0, 4096, &sel.y, NULL, false), | ^~~~~~ editing.cpp:14:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 14 | variable("selxs", 0, 0, 4096, &sel.xs, NULL, false), | ^~~~~~~ editing.cpp:15:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 15 | variable("selys", 0, 0, 4096, &sel.ys, NULL, false), | ^~~~~~~ editing.cpp:33:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 33 | VAR(editing,0,0,1); | ^ cube.h:256:56: note: in definition of macro 'VAR' 256 | #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) | ^~~~ editing.cpp:56:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 56 | COMMANDN(edittoggle, toggleedit, ARG_NONE); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ editing.cpp:101:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 101 | VAR(flrceil,0,0,2); | ^ cube.h:256:56: note: in definition of macro 'VAR' 256 | #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) | ^~~~ editing.cpp: In function 'void cursorupdate()': editing.cpp:161:16: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] 161 | if(!(ix+1&GRIDM)) line(ix+1, iy, h2, ix+1, iy+1, h3); | ~~^~ editing.cpp:163:16: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] 163 | if(!(iy+1&GRIDM)) line(ix, iy+1, h4, ix+1, iy+1, h3); | ~~^~ editing.cpp: At global scope: editing.cpp:185:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 185 | VARP(undomegs, 0, 1, 10); // bounded by n megs | ^ cube.h:255:56: note: in definition of macro 'VARP' 255 | #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) | ^~~~ editing.cpp: In function 'void editdrag(bool)': editing.cpp:253:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 253 | if(dragging = isdown) | ~~~~~~~~~^~~~~~~~ editing.cpp: At global scope: editing.cpp:290:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 290 | COMMAND(editheight, ARG_2INT); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ editing.cpp:290:1: note: in expansion of macro 'COMMAND' 290 | COMMAND(editheight, ARG_2INT); | ^~~~~~~ editing.cpp: In function 'void edittype(int)': editing.cpp:343:65: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 343 | if(type==CORNER && (sel.xs!=sel.ys || sel.xs==3 || sel.xs>4 && sel.xs!=8 | ~~~~~~~~~^~~~~~~~~~~~ editing.cpp: At global scope: editing.cpp:354:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 354 | COMMAND(heightfield, ARG_1INT); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ editing.cpp:354:1: note: in expansion of macro 'COMMAND' 354 | COMMAND(heightfield, ARG_1INT); | ^~~~~~~ editing.cpp:355:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 355 | COMMAND(solid, ARG_1INT); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ editing.cpp:355:1: note: in expansion of macro 'COMMAND' 355 | COMMAND(solid, ARG_1INT); | ^~~~~~~ editing.cpp:356:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 356 | COMMAND(corner, ARG_NONE); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ editing.cpp:356:1: note: in expansion of macro 'COMMAND' 356 | COMMAND(corner, ARG_NONE); | ^~~~~~~ editing.cpp:381:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 381 | COMMAND(equalize, ARG_1INT); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ editing.cpp:381:1: note: in expansion of macro 'COMMAND' 381 | COMMAND(equalize, ARG_1INT); | ^~~~~~~ editing.cpp:459:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 459 | ); | ^ cube.h:257:89: note: in definition of macro 'VARF' 257 | #define VARF(name, min, cur, max, body) void var_##name(); static int name = variable(#name, min, cur, max, &name, var_##name, false); void var_##name() { body; } | ^~~~ editing.cpp:473:37: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 473 | COMMANDN(select, selectpos, ARG_4INT); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ editing.cpp:474:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 474 | COMMAND(edittag, ARG_1INT); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ editing.cpp:474:1: note: in expansion of macro 'COMMAND' 474 | COMMAND(edittag, ARG_1INT); | ^~~~~~~ editing.cpp:475:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 475 | COMMAND(replace, ARG_NONE); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ editing.cpp:475:1: note: in expansion of macro 'COMMAND' 475 | COMMAND(replace, ARG_NONE); | ^~~~~~~ editing.cpp:476:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 476 | COMMAND(archvertex, ARG_3INT); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ editing.cpp:476:1: note: in expansion of macro 'COMMAND' 476 | COMMAND(archvertex, ARG_3INT); | ^~~~~~~ editing.cpp:477:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 477 | COMMAND(arch, ARG_2INT); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ editing.cpp:477:1: note: in expansion of macro 'COMMAND' 477 | COMMAND(arch, ARG_2INT); | ^~~~~~~ editing.cpp:478:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 478 | COMMAND(slope, ARG_2INT); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ editing.cpp:478:1: note: in expansion of macro 'COMMAND' 478 | COMMAND(slope, ARG_2INT); | ^~~~~~~ editing.cpp:479:37: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 479 | COMMANDN(vdelta, setvdelta, ARG_1INT); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ editing.cpp:480:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 480 | COMMANDN(undo, editundo, ARG_NONE); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ editing.cpp:481:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 481 | COMMAND(copy, ARG_NONE); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ editing.cpp:481:1: note: in expansion of macro 'COMMAND' 481 | COMMAND(copy, ARG_NONE); | ^~~~~~~ editing.cpp:482:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 482 | COMMAND(paste, ARG_NONE); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ editing.cpp:482:1: note: in expansion of macro 'COMMAND' 482 | COMMAND(paste, ARG_NONE); | ^~~~~~~ editing.cpp:483:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 483 | COMMAND(edittex, ARG_2INT); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ editing.cpp:483:1: note: in expansion of macro 'COMMAND' 483 | COMMAND(edittex, ARG_2INT); | ^~~~~~~ editing.cpp:484:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 484 | COMMAND(newent, ARG_5STR); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ editing.cpp:484:1: note: in expansion of macro 'COMMAND' 484 | COMMAND(newent, ARG_5STR); | ^~~~~~~ editing.cpp:485:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 485 | COMMAND(perlin, ARG_3INT); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ editing.cpp:485:1: note: in expansion of macro 'COMMAND' 485 | COMMAND(perlin, ARG_3INT); | ^~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib64 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -fsigned-char -I../enet/include `sdl-config --cflags` -c -o clientextras.o clientextras.cpp In file included from cube.h:3, from clientextras.cpp:3: tools.h: In member function 'T* hashtable::access(char*, T*)': tools.h:247:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 247 | for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor | ~~^~~~~~~~ In file included from cube.h:284: protos.h: At global scope: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 127 | extern void fatal(char *s, char *o = ""); | ^ clientextras.cpp: In function 'void renderclients()': clientextras.cpp:47:128: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 47 | loopv(players) if((d = players[i]) && (!demoplayback || i!=democlientnum)) renderclient(d, isteam(player1->team, d->team), "monster/ogro", false, 1.0f); | ^~~~~~~~~~~~~~ clientextras.cpp: In function 'void renderscores()': clientextras.cpp:104:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 104 | menumanual(0, scorelines.length(), ""); | ^~ clientextras.cpp: At global scope: clientextras.cpp:155:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 155 | COMMAND(sendmap, ARG_1STR); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ clientextras.cpp:155:1: note: in expansion of macro 'COMMAND' 155 | COMMAND(sendmap, ARG_1STR); | ^~~~~~~ clientextras.cpp:156:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 156 | COMMAND(getmap, ARG_NONE); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ clientextras.cpp:156:1: note: in expansion of macro 'COMMAND' 156 | COMMAND(getmap, ARG_NONE); | ^~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib64 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -fsigned-char -I../enet/include `sdl-config --cflags` -c -o command.o command.cpp In file included from cube.h:3, from command.cpp:4: tools.h: In member function 'T* hashtable::access(char*, T*)': tools.h:247:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 247 | for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor | ~~^~~~~~~~ In file included from cube.h:284: protos.h: At global scope: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 127 | extern void fatal(char *s, char *o = ""); | ^ command.cpp:41:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 41 | COMMAND(alias, ARG_2STR); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ command.cpp:41:1: note: in expansion of macro 'COMMAND' 41 | COMMAND(alias, ARG_2STR); | ^~~~~~~ command.cpp: In function 'int execute(char*, bool)': command.cpp:136:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 136 | w[i] = ""; | ^~ command.cpp:139:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 139 | if(!s) { numargs = i; s = ""; }; | ^~ command.cpp: At global scope: command.cpp:303:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 303 | COMMAND(writecfg, ARG_NONE); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ command.cpp:303:1: note: in expansion of macro 'COMMAND' 303 | COMMAND(writecfg, ARG_NONE); | ^~~~~~~ command.cpp: In function 'void loopa(char*, char*)': command.cpp:311:78: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 311 | void loopa(char *times, char *body) { int t = atoi(times); loopi(t) { intset("i", i); execute(body); }; }; | ^~~ command.cpp: In function 'void concat(char*)': command.cpp:315:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 315 | void concat(char *s) { alias("s", s); }; | ^~~ command.cpp: In function 'void concatword(char*)': command.cpp:319:33: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 319 | for(char *a = s, *b = s; *a = *b; b++) if(*a!=' ') a++; | ~~~^~~~ command.cpp: At global scope: command.cpp:339:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 339 | COMMANDN(loop, loopa, ARG_2STR); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ command.cpp:340:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 340 | COMMANDN(while, whilea, ARG_2STR); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ command.cpp:341:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 341 | COMMANDN(if, ifthen, ARG_3STR); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ command.cpp:342:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 342 | COMMAND(onrelease, ARG_DWN1); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ command.cpp:342:1: note: in expansion of macro 'COMMAND' 342 | COMMAND(onrelease, ARG_DWN1); | ^~~~~~~ command.cpp:343:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 343 | COMMAND(exec, ARG_1STR); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ command.cpp:343:1: note: in expansion of macro 'COMMAND' 343 | COMMAND(exec, ARG_1STR); | ^~~~~~~ command.cpp:344:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 344 | COMMAND(concat, ARG_VARI); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ command.cpp:344:1: note: in expansion of macro 'COMMAND' 344 | COMMAND(concat, ARG_VARI); | ^~~~~~~ command.cpp:345:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 345 | COMMAND(concatword, ARG_VARI); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ command.cpp:345:1: note: in expansion of macro 'COMMAND' 345 | COMMAND(concatword, ARG_VARI); | ^~~~~~~ command.cpp:346:21: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 346 | COMMAND(at, ARG_2STR); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ command.cpp:346:1: note: in expansion of macro 'COMMAND' 346 | COMMAND(at, ARG_2STR); | ^~~~~~~ command.cpp:347:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 347 | COMMAND(listlen, ARG_1EST); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ command.cpp:347:1: note: in expansion of macro 'COMMAND' 347 | COMMAND(listlen, ARG_1EST); | ^~~~~~~ command.cpp:349:75: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 349 | int add(int a, int b) { return a+b; }; COMMANDN(+, add, ARG_2EXP); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ command.cpp:350:75: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 350 | int mul(int a, int b) { return a*b; }; COMMANDN(*, mul, ARG_2EXP); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ command.cpp:351:75: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 351 | int sub(int a, int b) { return a-b; }; COMMANDN(-, sub, ARG_2EXP); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ command.cpp:352:78: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 352 | int divi(int a, int b) { return b ? a/b : 0; }; COMMANDN(div, divi, ARG_2EXP); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ command.cpp:353:71: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 353 | int mod(int a, int b) { return b ? a%b : 0; }; COMMAND(mod, ARG_2EXP); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ command.cpp:353:50: note: in expansion of macro 'COMMAND' 353 | int mod(int a, int b) { return b ? a%b : 0; }; COMMAND(mod, ARG_2EXP); | ^~~~~~~ command.cpp:354:77: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 354 | int equal(int a, int b) { return (int)(a==b); }; COMMANDN(=, equal, ARG_2EXP); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ command.cpp:355:74: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 355 | int lt(int a, int b) { return (int)(ab); }; COMMANDN(>, gt, ARG_2EXP); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ command.cpp:358:94: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 358 | int strcmpa(char *a, char *b) { return strcmp(a,b)==0; }; COMMANDN(strcmp, strcmpa, ARG_2EST); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ command.cpp:360:79: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 360 | int rndn(int a) { return a>0 ? rnd(a) : 0; }; COMMANDN(rnd, rndn, ARG_1EXP); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ command.cpp:362:86: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 362 | int explastmillis() { return lastmillis; }; COMMANDN(millis, explastmillis, ARG_1EXP); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib64 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -fsigned-char -I../enet/include `sdl-config --cflags` -c -o renderextras.o renderextras.cpp In file included from cube.h:3, from renderextras.cpp:3: tools.h: In member function 'T* hashtable::access(char*, T*)': tools.h:247:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 247 | for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor | ~~^~~~~~~~ In file included from cube.h:284: protos.h: At global scope: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 127 | extern void fatal(char *s, char *o = ""); | ^ renderextras.cpp: In function 'void renderspheres(int)': renderextras.cpp:110:37: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 110 | for(sphere *p, **pp = &slist; p = *pp;) | ~~^~~~~ renderextras.cpp: At global scope: renderextras.cpp:144:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 144 | "none?", "light", "playerstart", | ^~~~~~~ renderextras.cpp:144:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 144 | "none?", "light", "playerstart", | ^~~~~~~ renderextras.cpp:144:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 144 | "none?", "light", "playerstart", | ^~~~~~~~~~~~~ renderextras.cpp:145:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 145 | "shells", "bullets", "rockets", "riflerounds", | ^~~~~~~~ renderextras.cpp:145:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 145 | "shells", "bullets", "rockets", "riflerounds", | ^~~~~~~~~ renderextras.cpp:145:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 145 | "shells", "bullets", "rockets", "riflerounds", | ^~~~~~~~~ renderextras.cpp:145:37: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 145 | "shells", "bullets", "rockets", "riflerounds", | ^~~~~~~~~~~~~ renderextras.cpp:146:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 146 | "health", "healthboost", "greenarmour", "yellowarmour", "quaddamage", | ^~~~~~~~ renderextras.cpp:146:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 146 | "health", "healthboost", "greenarmour", "yellowarmour", "quaddamage", | ^~~~~~~~~~~~~ renderextras.cpp:146:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 146 | "health", "healthboost", "greenarmour", "yellowarmour", "quaddamage", | ^~~~~~~~~~~~~ renderextras.cpp:146:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 146 | "health", "healthboost", "greenarmour", "yellowarmour", "quaddamage", | ^~~~~~~~~~~~~~ renderextras.cpp:146:61: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 146 | "health", "healthboost", "greenarmour", "yellowarmour", "quaddamage", | ^~~~~~~~~~~~ renderextras.cpp:147:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 147 | "teleport", "teledest", | ^~~~~~~~~~ renderextras.cpp:147:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 147 | "teleport", "teledest", | ^~~~~~~~~~ renderextras.cpp:148:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 148 | "mapmodel", "monster", "trigger", "jumppad", | ^~~~~~~~~~ renderextras.cpp:148:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 148 | "mapmodel", "monster", "trigger", "jumppad", | ^~~~~~~~~ renderextras.cpp:148:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 148 | "mapmodel", "monster", "trigger", "jumppad", | ^~~~~~~~~ renderextras.cpp:148:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 148 | "mapmodel", "monster", "trigger", "jumppad", | ^~~~~~~~~ renderextras.cpp:149:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 149 | "?", "?", "?", "?", "?", | ^~~ renderextras.cpp:149:10: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 149 | "?", "?", "?", "?", "?", | ^~~ renderextras.cpp:149:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 149 | "?", "?", "?", "?", "?", | ^~~ renderextras.cpp:149:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 149 | "?", "?", "?", "?", "?", | ^~~ renderextras.cpp:149:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 149 | "?", "?", "?", "?", "?", | ^~~ renderextras.cpp: In function 'void renderents()': renderextras.cpp:160:21: warning: narrowing conversion of 'e.entity::persistent_entity.persistent_entity::x' from 'short int' to 'float' [-Wnarrowing] 160 | vec v = { e.x, e.y, e.z }; | ~~^ renderextras.cpp:160:26: warning: narrowing conversion of 'e.entity::persistent_entity.persistent_entity::y' from 'short int' to 'float' [-Wnarrowing] 160 | vec v = { e.x, e.y, e.z }; | ~~^ renderextras.cpp:160:31: warning: narrowing conversion of 'e.entity::persistent_entity.persistent_entity::z' from 'short int' to 'float' [-Wnarrowing] 160 | vec v = { e.x, e.y, e.z }; | ~~^ renderextras.cpp:167:152: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 167 | sprintf_s(closeent)("closest entity = %s (%d, %d, %d, %d), selection = (%d, %d)", entnames[c.type], c.attr1, c.attr2, c.attr3, c.attr4, getvar("selxs"), getvar("selys")); | ^~~~~~~ renderextras.cpp:167:169: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 167 | sprintf_s(closeent)("closest entity = %s (%d, %d, %d, %d), selection = (%d, %d)", entnames[c.type], c.attr1, c.attr2, c.attr3, c.attr4, getvar("selxs"), getvar("selys")); | ^~~~~~~ renderextras.cpp: In function 'void loadsky(char*)': renderextras.cpp:175:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 175 | char *side[] = { "ft", "bk", "lf", "rt", "dn", "up" }; | ^~~~ renderextras.cpp:175:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 175 | char *side[] = { "ft", "bk", "lf", "rt", "dn", "up" }; | ^~~~ renderextras.cpp:175:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 175 | char *side[] = { "ft", "bk", "lf", "rt", "dn", "up" }; | ^~~~ renderextras.cpp:175:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 175 | char *side[] = { "ft", "bk", "lf", "rt", "dn", "up" }; | ^~~~ renderextras.cpp:175:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 175 | char *side[] = { "ft", "bk", "lf", "rt", "dn", "up" }; | ^~~~ renderextras.cpp:175:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 175 | char *side[] = { "ft", "bk", "lf", "rt", "dn", "up" }; | ^~~~ renderextras.cpp: At global scope: renderextras.cpp:186:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 186 | COMMAND(loadsky, ARG_1STR); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ renderextras.cpp:186:1: note: in expansion of macro 'COMMAND' 186 | COMMAND(loadsky, ARG_1STR); | ^~~~~~~ renderextras.cpp:257:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 257 | VARP(crosshairsize, 0, 15, 50); | ^ cube.h:255:56: note: in definition of macro 'VARP' 255 | #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) | ^~~~ renderextras.cpp:262:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 262 | VAR(hidestats, 0, 0, 1); | ^ cube.h:256:56: note: in definition of macro 'VAR' 256 | #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) | ^~~~ renderextras.cpp:263:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 263 | VARP(crosshairfx, 0, 1, 1); | ^ cube.h:255:56: note: in definition of macro 'VARP' 255 | #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) | ^~~~ renderextras.cpp: In function 'void gl_drawhud(int, int, int, int, int, bool)': renderextras.cpp:303:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 303 | if(command) draw_textf("> %s_", 20, 1570, 2, command); | ^~~~~~~ renderextras.cpp:339:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 339 | draw_textf("fps %d", 3200, 2390, 2, curfps); | ^~~~~~~~ renderextras.cpp:340:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 340 | draw_textf("wqd %d", 3200, 2460, 2, nquads); | ^~~~~~~~ renderextras.cpp:341:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 341 | draw_textf("wvt %d", 3200, 2530, 2, curvert); | ^~~~~~~~ renderextras.cpp:342:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 342 | draw_textf("evt %d", 3200, 2600, 2, xtraverts); | ^~~~~~~~ renderextras.cpp:351:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 351 | draw_textf("%d", 90, 827, 2, player1->health); | ^~~~ renderextras.cpp:352:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 352 | if(player1->armour) draw_textf("%d", 390, 827, 2, player1->armour); | ^~~~ renderextras.cpp:353:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 353 | draw_textf("%d", 690, 827, 2, player1->ammo[player1->gunselect]); | ^~~~ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib64 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -fsigned-char -I../enet/include `sdl-config --cflags` -c -o rendermd2.o rendermd2.cpp In file included from cube.h:3, from rendermd2.cpp:3: tools.h: In member function 'T* hashtable::access(char*, T*)': tools.h:247:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 247 | for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor | ~~^~~~~~~~ In file included from cube.h:284: protos.h: At global scope: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 127 | extern void fatal(char *s, char *o = ""); | ^ rendermd2.cpp: In function 'void delayedload(md2*)': rendermd2.cpp:203:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 203 | if(!m->load(path(name1))) fatal("loadmodel: ", name1); | ^~~~~~~~~~~~~ rendermd2.cpp: In function 'md2* loadmodel(char*)': rendermd2.cpp:220:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 220 | mapmodelinfo mmi = { 2, 2, 0, 0, "" }; | ^~ rendermd2.cpp: At global scope: rendermd2.cpp:239:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 239 | COMMAND(mapmodel, ARG_5STR); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ rendermd2.cpp:239:1: note: in expansion of macro 'COMMAND' 239 | COMMAND(mapmodel, ARG_5STR); | ^~~~~~~ rendermd2.cpp:240:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 240 | COMMAND(mapmodelreset, ARG_NONE); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ rendermd2.cpp:240:1: note: in expansion of macro 'COMMAND' 240 | COMMAND(mapmodelreset, ARG_NONE); | ^~~~~~~ rendermd2.cpp: In member function 'bool md2::load(char*)': rendermd2.cpp:71:10: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 71 | fread(&header, sizeof(md2_header), 1, file); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rendermd2.cpp:80:10: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 80 | fread(frames, header.frameSize*header.numFrames, 1, file); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rendermd2.cpp:91:10: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 91 | fread(glCommands, header.numGlCommands*sizeof(int), 1, file); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib64 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -fsigned-char -I../enet/include `sdl-config --cflags` -c -o clientgame.o clientgame.cpp In file included from cube.h:3, from clientgame.cpp:3: tools.h: In member function 'T* hashtable::access(char*, T*)': tools.h:247:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 247 | for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor | ~~^~~~~~~~ In file included from cube.h:284: protos.h: At global scope: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 127 | extern void fatal(char *s, char *o = ""); | ^ clientgame.cpp:6:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 6 | VAR(gamemode, 1, 0, 0); | ^ cube.h:256:56: note: in definition of macro 'VAR' 256 | #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) | ^~~~ clientgame.cpp:9:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 9 | COMMAND(mode, ARG_1INT); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ clientgame.cpp:9:1: note: in expansion of macro 'COMMAND' 9 | COMMAND(mode, ARG_1INT); | ^~~~~~~ clientgame.cpp:16:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 16 | VARP(sensitivity, 0, 10, 10000); | ^ cube.h:255:56: note: in definition of macro 'VARP' 255 | #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) | ^~~~ clientgame.cpp:17:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 17 | VARP(sensitivityscale, 1, 1, 10000); | ^ cube.h:255:56: note: in definition of macro 'VARP' 255 | #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) | ^~~~ clientgame.cpp:18:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 18 | VARP(invmouse, 0, 0, 1); | ^ cube.h:255:56: note: in definition of macro 'VARP' 255 | #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) | ^~~~ clientgame.cpp:215:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 215 | COMMANDN(sleep, sleepf, ARG_2STR); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ clientgame.cpp: In function 'void attack(bool)': clientgame.cpp:312:32: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 312 | else if(player1->attacking = on) respawn(); | ~~~~~~~~~~~~~~~~~~~^~~~ clientgame.cpp: At global scope: clientgame.cpp:317:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 317 | COMMAND(backward, ARG_DOWN); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ clientgame.cpp:317:1: note: in expansion of macro 'COMMAND' 317 | COMMAND(backward, ARG_DOWN); | ^~~~~~~ clientgame.cpp:318:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 318 | COMMAND(forward, ARG_DOWN); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ clientgame.cpp:318:1: note: in expansion of macro 'COMMAND' 318 | COMMAND(forward, ARG_DOWN); | ^~~~~~~ clientgame.cpp:319:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 319 | COMMAND(left, ARG_DOWN); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ clientgame.cpp:319:1: note: in expansion of macro 'COMMAND' 319 | COMMAND(left, ARG_DOWN); | ^~~~~~~ clientgame.cpp:320:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 320 | COMMAND(right, ARG_DOWN); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ clientgame.cpp:320:1: note: in expansion of macro 'COMMAND' 320 | COMMAND(right, ARG_DOWN); | ^~~~~~~ clientgame.cpp:321:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 321 | COMMANDN(jump, jumpn, ARG_DOWN); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ clientgame.cpp:322:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 322 | COMMAND(attack, ARG_DOWN); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ clientgame.cpp:322:1: note: in expansion of macro 'COMMAND' 322 | COMMAND(attack, ARG_DOWN); | ^~~~~~~ clientgame.cpp:323:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 323 | COMMAND(showscores, ARG_DOWN); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ clientgame.cpp:323:1: note: in expansion of macro 'COMMAND' 323 | COMMAND(showscores, ARG_DOWN); | ^~~~~~~ clientgame.cpp: In function 'dynent* getclient(int)': clientgame.cpp:420:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 420 | neterr("clientnum"); | ^~~~~~~~~~~ clientgame.cpp: In function 'void startmap(char*)': clientgame.cpp:446:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 446 | setvar("gamespeed", 100); | ^~~~~~~~~~~ clientgame.cpp:447:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 447 | setvar("fog", 180); | ^~~~~ clientgame.cpp:448:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 448 | setvar("fogcolour", 0x8099B3); | ^~~~~~~~~~~ clientgame.cpp: At global scope: clientgame.cpp:455:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 455 | COMMANDN(map, changemap, ARG_1STR); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib64 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -fsigned-char -I../enet/include `sdl-config --cflags` -c -o rendergl.o rendergl.cpp In file included from cube.h:3, from rendergl.cpp:3: tools.h: In member function 'T* hashtable::access(char*, T*)': tools.h:247:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 247 | for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor | ~~^~~~~~~~ In file included from cube.h:284: protos.h: At global scope: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 127 | extern void fatal(char *s, char *o = ""); | ^ rendergl.cpp: In function 'void gl_init(int, int)': rendergl.cpp:56:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 56 | if(!(qsphere = gluNewQuadric())) fatal("glu sphere"); | ^~~~~~~~~~~~ rendergl.cpp:56:43: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 56 | if(!(qsphere = gluNewQuadric())) fatal("glu sphere"); | ~~~~~^~~~~~~~~~~~~~ rendergl.cpp: In function 'bool installtex(int, char*, int&, int&, bool)': rendergl.cpp:93:101: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 93 | if(gluBuild2DMipmaps(GL_TEXTURE_2D, GL_RGB, xs, ys, GL_RGB, GL_UNSIGNED_BYTE, scaledimg)) fatal("could not build mipmaps"); | ^~~~~~~~~~~~~~~~~~~~~~~~~ rendergl.cpp:93:100: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 93 | if(gluBuild2DMipmaps(GL_TEXTURE_2D, GL_RGB, xs, ys, GL_RGB, GL_UNSIGNED_BYTE, scaledimg)) fatal("could not build mipmaps"); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ rendergl.cpp: At global scope: rendergl.cpp:134:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 134 | COMMAND(texturereset, ARG_NONE); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ rendergl.cpp:134:1: note: in expansion of macro 'COMMAND' 134 | COMMAND(texturereset, ARG_NONE); | ^~~~~~~ rendergl.cpp:135:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 135 | COMMAND(texture, ARG_2STR); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ rendergl.cpp:135:1: note: in expansion of macro 'COMMAND' 135 | COMMAND(texture, ARG_2STR); | ^~~~~~~ rendergl.cpp: In function 'int lookuptexture(int, int&, int&)': rendergl.cpp:163:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 163 | if(curtex==MAXTEX) fatal("loaded too many textures"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ rendergl.cpp:163:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 163 | if(curtex==MAXTEX) fatal("loaded too many textures"); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ rendergl.cpp: At global scope: rendergl.cpp:243:2: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 243 | }); | ^ cube.h:258:89: note: in definition of macro 'VARFP' 258 | #define VARFP(name, min, cur, max, body) void var_##name(); static int name = variable(#name, min, cur, max, &name, var_##name, true); void var_##name() { body; } | ^~~~ rendergl.cpp:256:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 256 | VARP(fov, 10, 105, 120); | ^ cube.h:255:56: note: in definition of macro 'VARP' 255 | #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) | ^~~~ rendergl.cpp:260:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 260 | VAR(fog, 64, 180, 1024); | ^ cube.h:256:56: note: in definition of macro 'VAR' 256 | #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) | ^~~~ rendergl.cpp:261:37: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 261 | VAR(fogcolour, 0, 0x8099B3, 0xFFFFFF); | ^ cube.h:256:56: note: in definition of macro 'VAR' 256 | #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) | ^~~~ rendergl.cpp:263:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 263 | VARP(hudgun,0,1,1); | ^ cube.h:255:56: note: in definition of macro 'VARP' 255 | #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) | ^~~~ rendergl.cpp:265:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 265 | char *hudgunnames[] = { "hudguns/fist", "hudguns/shotg", "hudguns/chaing", "hudguns/rocket", "hudguns/rifle" }; | ^~~~~~~~~~~~~~ rendergl.cpp:265:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 265 | char *hudgunnames[] = { "hudguns/fist", "hudguns/shotg", "hudguns/chaing", "hudguns/rocket", "hudguns/rifle" }; | ^~~~~~~~~~~~~~~ rendergl.cpp:265:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 265 | char *hudgunnames[] = { "hudguns/fist", "hudguns/shotg", "hudguns/chaing", "hudguns/rocket", "hudguns/rifle" }; | ^~~~~~~~~~~~~~~~ rendergl.cpp:265:76: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 265 | char *hudgunnames[] = { "hudguns/fist", "hudguns/shotg", "hudguns/chaing", "hudguns/rocket", "hudguns/rifle" }; | ^~~~~~~~~~~~~~~~ rendergl.cpp:265:94: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 265 | char *hudgunnames[] = { "hudguns/fist", "hudguns/shotg", "hudguns/chaing", "hudguns/rocket", "hudguns/rifle" }; | ^~~~~~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib64 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -fsigned-char -I../enet/include `sdl-config --cflags` -c -o console.o console.cpp In file included from cube.h:3, from console.cpp:3: tools.h: In member function 'T* hashtable::access(char*, T*)': tools.h:247:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 247 | for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor | ~~^~~~~~~~ In file included from cube.h:284: protos.h: At global scope: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 127 | extern void fatal(char *s, char *o = ""); | ^ console.cpp:22:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 22 | COMMANDN(conskip, setconskip, ARG_1INT); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ console.cpp: In function 'void conline(const char*, bool)': console.cpp:27:74: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 27 | cl.cref = conlines.length()>100 ? conlines.pop().cref : newstringbuf(""); // constrain the buffer size | ^~ console.cpp: At global scope: console.cpp:88:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 88 | COMMAND(keymap, ARG_3STR); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ console.cpp:88:1: note: in expansion of macro 'COMMAND' 88 | COMMAND(keymap, ARG_3STR); | ^~~~~~~ console.cpp:101:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 101 | COMMANDN(bind, bindkey, ARG_2STR); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ console.cpp: In function 'void saycommand(char*)': console.cpp:107:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 107 | if(!init) init = ""; | ^~ console.cpp: At global scope: console.cpp:113:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 113 | COMMAND(saycommand, ARG_VARI); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ console.cpp:113:1: note: in expansion of macro 'COMMAND' 113 | COMMAND(saycommand, ARG_VARI); | ^~~~~~~ console.cpp:114:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 114 | COMMAND(mapmsg, ARG_1STR); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ console.cpp:114:1: note: in expansion of macro 'COMMAND' 114 | COMMAND(mapmsg, ARG_1STR); | ^~~~~~~ console.cpp:168:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 168 | COMMAND(history, ARG_1INT); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ console.cpp:168:1: note: in expansion of macro 'COMMAND' 168 | COMMAND(history, ARG_1INT); | ^~~~~~~ console.cpp: In function 'void keypress(int, bool, int)': console.cpp:206:49: warning: narrowing conversion of 'cooked' from 'int' to 'char' [-Wnarrowing] 206 | if(cooked) { char add[] = { cooked, 0 }; strcat_s(commandbuf, add); }; | ^~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib64 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -fsigned-char -I../enet/include `sdl-config --cflags` -c -o main.o main.cpp In file included from cube.h:3, from main.cpp:3: tools.h: In member function 'T* hashtable::access(char*, T*)': tools.h:247:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 247 | for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor | ~~^~~~~~~~ In file included from cube.h:284: protos.h: At global scope: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 127 | extern void fatal(char *s, char *o = ""); | ^ main.cpp: In function 'void* alloc(int)': main.cpp:41:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 41 | if(!b) fatal("out of memory!"); | ^~~~~~~~~~~~~~~~ main.cpp:41:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 41 | if(!b) fatal("out of memory!"); | ~~~~~^~~~~~~~~~~~~~~~~~ main.cpp: In function 'void screenshot()': main.cpp:53:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 53 | if(image = SDL_CreateRGBSurface(SDL_SWSURFACE, scr_w, scr_h, 24, 0x0000FF, 0x00FF00, 0xFF0000, 0)) | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:55:18: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 55 | if(temp = SDL_CreateRGBSurface(SDL_SWSURFACE, scr_w, scr_h, 24, 0x0000FF, 0x00FF00, 0xFF0000, 0)) | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: At global scope: main.cpp:72:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 72 | COMMAND(screenshot, ARG_NONE); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ main.cpp:72:1: note: in expansion of macro 'COMMAND' 72 | COMMAND(screenshot, ARG_NONE); | ^~~~~~~ main.cpp:73:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 73 | COMMAND(quit, ARG_NONE); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ main.cpp:73:1: note: in expansion of macro 'COMMAND' 73 | COMMAND(quit, ARG_NONE); | ^~~~~~~ main.cpp:81:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 81 | VARF(gamespeed, 10, 100, 1000, if(multiplayer()) gamespeed = 100); | ^ cube.h:257:89: note: in definition of macro 'VARF' 257 | #define VARF(name, min, cur, max, body) void var_##name(); static int name = variable(#name, min, cur, max, &name, var_##name, false); void var_##name() { body; } | ^~~~ main.cpp:82:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 82 | VARP(minmillis, 0, 5, 1000); | ^ cube.h:255:56: note: in definition of macro 'VARP' 255 | #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) | ^~~~ main.cpp: In function 'int main(int, char**)': main.cpp:91:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 91 | char *sdesc = "", *ip = "", *master = NULL, *passwd = ""; | ^~ main.cpp:91:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 91 | char *sdesc = "", *ip = "", *master = NULL, *passwd = ""; | ^~ main.cpp:91:59: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 91 | char *sdesc = "", *ip = "", *master = NULL, *passwd = ""; | ^~ main.cpp:122:61: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 122 | if(SDL_Init(SDL_INIT_TIMER|SDL_INIT_VIDEO|par)<0) fatal("Unable to initialize SDL"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:122:60: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 122 | if(SDL_Init(SDL_INIT_TIMER|SDL_INIT_VIDEO|par)<0) fatal("Unable to initialize SDL"); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:125:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 125 | if(enet_initialize()<0) fatal("Unable to initialise network module"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:125:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 125 | if(enet_initialize()<0) fatal("Unable to initialise network module"); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:134:51: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 134 | if(SDL_InitSubSystem(SDL_INIT_VIDEO)<0) fatal("Unable to initialize SDL Video"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:134:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 134 | if(SDL_InitSubSystem(SDL_INIT_VIDEO)<0) fatal("Unable to initialize SDL Video"); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:138:70: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 138 | if(SDL_SetVideoMode(scr_w, scr_h, 0, SDL_OPENGL|fs)==NULL) fatal("Unable to create OpenGL screen"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:138:69: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 138 | if(SDL_SetVideoMode(scr_w, scr_h, 0, SDL_OPENGL|fs)==NULL) fatal("Unable to create OpenGL screen"); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:151:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 151 | if(!installtex(2, path(newstring("data/newchars.png")), xs, ys) || | ^~~~~~~~~~~~~~~~~~~ main.cpp:152:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 152 | !installtex(3, path(newstring("data/martin/base.png")), xs, ys) || | ^~~~~~~~~~~~~~~~~~~~~~ main.cpp:153:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 153 | !installtex(6, path(newstring("data/martin/ball1.png")), xs, ys) || | ^~~~~~~~~~~~~~~~~~~~~~~ main.cpp:154:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 154 | !installtex(7, path(newstring("data/martin/smoke.png")), xs, ys) || | ^~~~~~~~~~~~~~~~~~~~~~~ main.cpp:155:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 155 | !installtex(8, path(newstring("data/martin/ball2.png")), xs, ys) || | ^~~~~~~~~~~~~~~~~~~~~~~ main.cpp:156:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 156 | !installtex(9, path(newstring("data/martin/ball3.png")), xs, ys) || | ^~~~~~~~~~~~~~~~~~~~~~~ main.cpp:157:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 157 | !installtex(4, path(newstring("data/explosion.jpg")), xs, ys) || | ^~~~~~~~~~~~~~~~~~~~ main.cpp:158:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 158 | !installtex(5, path(newstring("data/items.png")), xs, ys) || | ^~~~~~~~~~~~~~~~ main.cpp:159:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 159 | !installtex(1, path(newstring("data/crosshair.png")), xs, ys)) fatal("could not find core textures (hint: run cube from the parent of the bin directory)"); | ^~~~~~~~~~~~~~~~~~~~ main.cpp:159:78: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 159 | !installtex(1, path(newstring("data/crosshair.png")), xs, ys)) fatal("could not find core textures (hint: run cube from the parent of the bin directory)"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:159:77: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 159 | !installtex(1, path(newstring("data/crosshair.png")), xs, ys)) fatal("could not find core textures (hint: run cube from the parent of the bin directory)"); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:165:13: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 165 | newmenu("frags\tpj\tping\tteam\tname"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:166:13: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 166 | newmenu("ping\tplr\tserver"); | ^~~~~~~~~~~~~~~~~~~ main.cpp:167:10: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 167 | exec("data/keymap.cfg"); | ^~~~~~~~~~~~~~~~~ main.cpp:168:10: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 168 | exec("data/menus.cfg"); | ^~~~~~~~~~~~~~~~ main.cpp:169:10: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 169 | exec("data/prefabs.cfg"); | ^~~~~~~~~~~~~~~~~~ main.cpp:170:10: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 170 | exec("data/sounds.cfg"); | ^~~~~~~~~~~~~~~~~ main.cpp:171:10: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 171 | exec("servers.cfg"); | ^~~~~~~~~~~~~ main.cpp:172:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 172 | if(!execfile("config.cfg")) execfile("data/defaults.cfg"); | ^~~~~~~~~~~~ main.cpp:172:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 172 | if(!execfile("config.cfg")) execfile("data/defaults.cfg"); | ^~~~~~~~~~~~~~~~~~~ main.cpp:173:10: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 173 | exec("autoexec.cfg"); | ^~~~~~~~~~~~~~ main.cpp:177:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 177 | changemap("metl3"); // if this map is changed, also change depthcorrect() | ^~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib64 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -fsigned-char -I../enet/include `sdl-config --cflags` -c -o rendercubes.o rendercubes.cpp In file included from cube.h:3, from rendercubes.cpp:3: tools.h: In member function 'T* hashtable::access(char*, T*)': tools.h:247:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 247 | for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor | ~~^~~~~~~~ In file included from cube.h:284: protos.h: At global scope: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 127 | extern void fatal(char *s, char *o = ""); | ^ rendercubes.cpp: In function 'void reallocv()': rendercubes.cpp:20:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 20 | if(!verts) fatal("no vertex memory!"); | ^~~~~~~~~~~~~~~~~~~ rendercubes.cpp:20:21: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 20 | if(!verts) fatal("no vertex memory!"); | ~~~~~^~~~~~~~~~~~~~~~~~~~~ rendercubes.cpp: At global scope: rendercubes.cpp:48:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 48 | COMMAND(showmip, ARG_NONE); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ rendercubes.cpp:48:1: note: in expansion of macro 'COMMAND' 48 | COMMAND(showmip, ARG_NONE); | ^~~~~~~ rendercubes.cpp:54:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 54 | VAR(lighterror,1,8,100); | ^ cube.h:256:56: note: in definition of macro 'VAR' 256 | #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) | ^~~~ rendercubes.cpp:266:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 266 | VAR(watersubdiv, 1, 4, 64); | ^ cube.h:256:56: note: in definition of macro 'VAR' 256 | #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) | ^~~~ rendercubes.cpp:267:81: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 267 | VARF(waterlevel, -128, -128, 127, if(!noteditmode()) hdr.waterlevel = waterlevel); | ^ cube.h:257:89: note: in definition of macro 'VARF' 257 | #define VARF(name, min, cur, max, body) void var_##name(); static int name = variable(#name, min, cur, max, &name, var_##name, false); void var_##name() { body; } | ^~~~ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib64 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -fsigned-char -I../enet/include `sdl-config --cflags` -c -o rndmap.o rndmap.cpp In file included from cube.h:3, from rndmap.cpp:3: tools.h: In member function 'T* hashtable::access(char*, T*)': tools.h:247:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 247 | for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor | ~~^~~~~~~~ In file included from cube.h:284: protos.h: At global scope: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 127 | extern void fatal(char *s, char *o = ""); | ^ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib64 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -fsigned-char -I../enet/include `sdl-config --cflags` -c -o renderparticles.o renderparticles.cpp In file included from cube.h:3, from renderparticles.cpp:3: tools.h: In member function 'T* hashtable::access(char*, T*)': tools.h:247:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 247 | for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor | ~~^~~~~~~~ In file included from cube.h:284: protos.h: At global scope: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 127 | extern void fatal(char *s, char *o = ""); | ^ renderparticles.cpp:11:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 11 | VARP(maxparticles, 100, 2000, MAXPARTICLES-500); | ^ cube.h:255:56: note: in definition of macro 'VARP' 255 | #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) | ^~~~ renderparticles.cpp:38:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 38 | VAR(demotracking, 0, 0, 1); | ^ cube.h:256:56: note: in definition of macro 'VAR' 256 | #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) | ^~~~ renderparticles.cpp:39:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 39 | VARP(particlesize, 20, 100, 500); | ^ cube.h:255:56: note: in definition of macro 'VARP' 255 | #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) | ^~~~ renderparticles.cpp: In function 'void render_particles(int)': renderparticles.cpp:73:41: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 73 | for(particle *p, **pp = &parlist; p = *pp;) | ~~^~~~~ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib64 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -fsigned-char -I../enet/include `sdl-config --cflags` -c -o rendertext.o rendertext.cpp In file included from cube.h:3, from rendertext.cpp:3: tools.h: In member function 'T* hashtable::access(char*, T*)': tools.h:247:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 247 | for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor | ~~^~~~~~~~ In file included from cube.h:284: protos.h: At global scope: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 127 | extern void fatal(char *s, char *o = ""); | ^ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib64 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -fsigned-char -I../enet/include `sdl-config --cflags` -c -o tools.o tools.cpp In file included from tools.cpp:3: tools.h: In member function 'T* hashtable::access(char*, T*)': tools.h:247:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 247 | for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor | ~~^~~~~~~~ tools.cpp: In function 'char* path(char*)': tools.cpp:105:24: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 105 | for(char *t = s; t = strpbrk(t, "/\\"); *t++ = PATHDIV); | ~~^~~~~~~~~~~~~~~~~~~ tools.cpp: In function 'char* loadfile(char*, int*)': tools.cpp:121:11: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 121 | if(len!=rlen || len<=0) | ~~~^~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib64 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -fsigned-char -I../enet/include `sdl-config --cflags` -c -o savegamedemo.o savegamedemo.cpp In file included from cube.h:3, from savegamedemo.cpp:3: tools.h: In member function 'T* hashtable::access(char*, T*)': tools.h:247:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 247 | for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor | ~~^~~~~~~~ In file included from cube.h:284: protos.h: At global scope: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 127 | extern void fatal(char *s, char *o = ""); | ^ savegamedemo.cpp: In function 'void gzcheck(int, int)': savegamedemo.cpp:20:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 20 | void gzcheck(int a, int b) { if(a!=b) fatal("savegame file corrupt (short)"); }; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegamedemo.cpp:20:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 20 | void gzcheck(int a, int b) { if(a!=b) fatal("savegame file corrupt (short)"); }; | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegamedemo.cpp: At global scope: savegamedemo.cpp:214:37: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 214 | VAR(demoplaybackspeed, 10, 100, 1000); | ^ cube.h:256:56: note: in definition of macro 'VAR' 256 | #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) | ^~~~ savegamedemo.cpp:239:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 239 | VAR(demodelaymsec, 0, 120, 500); | ^ cube.h:256:56: note: in definition of macro 'VAR' 256 | #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) | ^~~~ savegamedemo.cpp: In function 'void demoplaybackstep()': savegamedemo.cpp:285:19: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 285 | if(extras = gzget()) // read additional client side state not present in normal network stream | ~~~~~~~^~~~~~~~~ savegamedemo.cpp:297:36: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 297 | if(bdamage = gzgeti()) damageblend(bdamage); | ~~~~~~~~^~~~~~~~~~ savegamedemo.cpp:298:36: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 298 | if(ddamage = gzgeti()) { gzgetv(dorig); particle_splash(3, ddamage, 1000, dorig); }; | ~~~~~~~~^~~~~~~~~~ savegamedemo.cpp: At global scope: savegamedemo.cpp:355:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 355 | COMMAND(record, ARG_1STR); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ savegamedemo.cpp:355:1: note: in expansion of macro 'COMMAND' 355 | COMMAND(record, ARG_1STR); | ^~~~~~~ savegamedemo.cpp:356:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 356 | COMMAND(demo, ARG_1STR); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ savegamedemo.cpp:356:1: note: in expansion of macro 'COMMAND' 356 | COMMAND(demo, ARG_1STR); | ^~~~~~~ savegamedemo.cpp:357:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 357 | COMMANDN(stop, stopn, ARG_NONE); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ savegamedemo.cpp:359:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 359 | COMMAND(savegame, ARG_1STR); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ savegamedemo.cpp:359:1: note: in expansion of macro 'COMMAND' 359 | COMMAND(savegame, ARG_1STR); | ^~~~~~~ savegamedemo.cpp:360:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 360 | COMMAND(loadgame, ARG_1STR); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ savegamedemo.cpp:360:1: note: in expansion of macro 'COMMAND' 360 | COMMAND(loadgame, ARG_1STR); | ^~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib64 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -fsigned-char -I../enet/include `sdl-config --cflags` -c -o serverms.o serverms.cpp In file included from cube.h:3, from serverms.cpp:3: tools.h: In member function 'T* hashtable::access(char*, T*)': tools.h:247:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 247 | for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor | ~~^~~~~~~~ In file included from cube.h:284: protos.h: At global scope: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 127 | extern void fatal(char *s, char *o = ""); | ^ serverms.cpp: In function 'void updatemasterserver(int)': serverms.cpp:65:61: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 65 | httpgetsend(masterserver, masterbase, path, "cubeserver", "Cube Server"); | ^~~~~~~~~~~~ serverms.cpp:65:75: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 65 | httpgetsend(masterserver, masterbase, path, "cubeserver", "Cube Server"); | ^~~~~~~~~~~~~ serverms.cpp: In function 'uchar* retrieveservers(uchar*, int)': serverms.cpp:83:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 83 | httpgetsend(masterserver, masterbase, path, "cubeserver", "Cube Server"); | ^~~~~~~~~~~~ serverms.cpp:83:63: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 83 | httpgetsend(masterserver, masterbase, path, "cubeserver", "Cube Server"); | ^~~~~~~~~~~~~ serverms.cpp: In function 'void servermsinit(const char*, char*, bool)': serverms.cpp:139:48: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 139 | if(pongsock == ENET_SOCKET_NULL) fatal("could not create server info socket\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ serverms.cpp:139:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 139 | if(pongsock == ENET_SOCKET_NULL) fatal("could not create server info socket\n"); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib64 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -fsigned-char -I../enet/include `sdl-config --cflags` -c -o weapon.o weapon.cpp In file included from cube.h:3, from weapon.cpp:3: tools.h: In member function 'T* hashtable::access(char*, T*)': tools.h:247:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 247 | for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor | ~~^~~~~~~~ In file included from cube.h:284: protos.h: At global scope: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 127 | extern void fatal(char *s, char *o = ""); | ^ weapon.cpp:14:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 14 | { S_PUNCH1, 250, 50, 0, 0, 1, "fist" }, | ^~~~~~ weapon.cpp:15:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 15 | { S_SG, 1400, 10, 0, 0, 20, "shotgun" }, // *SGRAYS | ^~~~~~~~~ weapon.cpp:16:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 16 | { S_CG, 100, 30, 0, 0, 7, "chaingun" }, | ^~~~~~~~~~ weapon.cpp:17:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 17 | { S_RLFIRE, 800, 120, 80, 0, 10, "rocketlauncher" }, | ^~~~~~~~~~~~~~~~ weapon.cpp:18:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 18 | { S_RIFLE, 1500, 100, 0, 0, 30, "rifle" }, | ^~~~~~~ weapon.cpp:19:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 19 | { S_FLAUNCH, 200, 20, 50, 4, 1, "fireball" }, | ^~~~~~~~~~ weapon.cpp:20:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 20 | { S_ICEBALL, 200, 40, 30, 6, 1, "iceball" }, | ^~~~~~~~~ weapon.cpp:21:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 21 | { S_SLIMEBALL, 200, 30, 160, 7, 1, "slimeball" }, | ^~~~~~~~~~~ weapon.cpp:22:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 22 | { S_PIGR1, 250, 50, 0, 0, 1, "bite" }, | ^~~~~~ weapon.cpp:51:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 51 | COMMAND(weapon, ARG_3STR); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ weapon.cpp:51:1: note: in expansion of macro 'COMMAND' 51 | COMMAND(weapon, ARG_3STR); | ^~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib64 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -fsigned-char -I../enet/include `sdl-config --cflags` -c -o serverbrowser.o serverbrowser.cpp In file included from cube.h:3, from serverbrowser.cpp:3: tools.h: In member function 'T* hashtable::access(char*, T*)': tools.h:247:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 247 | for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor | ~~^~~~~~~~ In file included from cube.h:284: protos.h: At global scope: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 127 | extern void fatal(char *s, char *o = ""); | ^ serverbrowser.cpp:290:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 290 | COMMAND(addserver, ARG_1STR); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ serverbrowser.cpp:290:1: note: in expansion of macro 'COMMAND' 290 | COMMAND(addserver, ARG_1STR); | ^~~~~~~ serverbrowser.cpp:291:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 291 | COMMAND(servermenu, ARG_NONE); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ serverbrowser.cpp:291:1: note: in expansion of macro 'COMMAND' 291 | COMMAND(servermenu, ARG_NONE); | ^~~~~~~ serverbrowser.cpp:292:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 292 | COMMAND(updatefrommaster, ARG_NONE); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ serverbrowser.cpp:292:1: note: in expansion of macro 'COMMAND' 292 | COMMAND(updatefrommaster, ARG_NONE); | ^~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib64 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -fsigned-char -I../enet/include `sdl-config --cflags` -c -o sound.o sound.cpp In file included from cube.h:3, from sound.cpp:3: tools.h: In member function 'T* hashtable::access(char*, T*)': tools.h:247:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 247 | for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor | ~~^~~~~~~~ In file included from cube.h:284: protos.h: At global scope: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 127 | extern void fatal(char *s, char *o = ""); | ^ sound.cpp:9:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 9 | VARP(soundvol, 0, 255, 255); | ^ cube.h:255:56: note: in definition of macro 'VARP' 255 | #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) | ^~~~ sound.cpp:10:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 10 | VARP(musicvol, 0, 128, 255); | ^ cube.h:255:56: note: in definition of macro 'VARP' 255 | #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) | ^~~~ sound.cpp:52:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 52 | VAR(soundbufferlen, 128, 1024, 4096); | ^ cube.h:256:56: note: in definition of macro 'VAR' 256 | #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) | ^~~~ sound.cpp: In function 'void music(char*)': sound.cpp:84:20: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 84 | if(mod = Mix_LoadMUS(path(sn))) | ~~~~^~~~~~~~~~~~~~~~~~~~~~~ sound.cpp: At global scope: sound.cpp:108:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 108 | COMMAND(music, ARG_1STR); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ sound.cpp:108:1: note: in expansion of macro 'COMMAND' 108 | COMMAND(music, ARG_1STR); | ^~~~~~~ sound.cpp:126:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 126 | COMMAND(registersound, ARG_1EST); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ sound.cpp:126:1: note: in expansion of macro 'COMMAND' 126 | COMMAND(registersound, ARG_1EST); | ^~~~~~~ sound.cpp:139:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 139 | VAR(stereo, 0, 1, 1); | ^ cube.h:256:56: note: in definition of macro 'VAR' 256 | #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) | ^~~~ sound.cpp:226:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 226 | COMMAND(sound, ARG_1INT); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ sound.cpp:226:1: note: in expansion of macro 'COMMAND' 226 | COMMAND(sound, ARG_1INT); | ^~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib64 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -fsigned-char -I../enet/include `sdl-config --cflags` -c -o worldlight.o worldlight.cpp In file included from cube.h:3, from worldlight.cpp:3: tools.h: In member function 'T* hashtable::access(char*, T*)': tools.h:247:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 247 | for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor | ~~^~~~~~~~ In file included from cube.h:284: protos.h: At global scope: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 127 | extern void fatal(char *s, char *o = ""); | ^ worldlight.cpp:7:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 7 | VAR(lightscale,1,4,100); | ^ cube.h:256:56: note: in definition of macro 'VAR' 256 | #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) | ^~~~ worldlight.cpp: In function 'void calclightsource(persistent_entity&)': tools.h:39:25: warning: value computed is not used [-Wunused-value] 39 | #define rnd(max) (rand()%(max)) | ~~~~~~~^~~~~~~ tools.h:41:43: note: in expansion of macro 'rnd' 41 | #define rndtime() { loopi(lastmillis&0xF) rnd(i+1); } | ^~~ worldlight.cpp:121:5: note: in expansion of macro 'rndtime' 121 | rndtime(); | ^~~~~~~ worldlight.cpp: In function 'void calclight()': worldlight.cpp:157:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 157 | setvar("fullbright", 0); | ^~~~~~~~~~~~ worldlight.cpp: At global scope: worldlight.cpp:160:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 160 | VARP(dynlight, 0, 16, 32); | ^ cube.h:255:56: note: in definition of macro 'VARP' 255 | #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) | ^~~~ worldlight.cpp: In function 'void dodynlight(vec&, vec&, int, int, dynent*)': worldlight.cpp:191:29: warning: narrowing conversion of '(int)v->vec::x' from 'int' to 'short int' [-Wnarrowing] 191 | persistent_entity l = { (int)v.x, (int)v.y, (int)v.z, reach, LIGHT, strength, 0, 0 }; | ^~~~~~~~ worldlight.cpp:191:39: warning: narrowing conversion of '(int)v->vec::y' from 'int' to 'short int' [-Wnarrowing] 191 | persistent_entity l = { (int)v.x, (int)v.y, (int)v.z, reach, LIGHT, strength, 0, 0 }; | ^~~~~~~~ worldlight.cpp:191:49: warning: narrowing conversion of '(int)v->vec::z' from 'int' to 'short int' [-Wnarrowing] 191 | persistent_entity l = { (int)v.x, (int)v.y, (int)v.z, reach, LIGHT, strength, 0, 0 }; | ^~~~~~~~ worldlight.cpp:191:59: warning: narrowing conversion of 'reach' from 'int' to 'short int' [-Wnarrowing] 191 | persistent_entity l = { (int)v.x, (int)v.y, (int)v.z, reach, LIGHT, strength, 0, 0 }; | ^~~~~ worldlight.cpp:191:73: warning: narrowing conversion of 'strength' from 'int' to 'uchar' {aka 'unsigned char'} [-Wnarrowing] 191 | persistent_entity l = { (int)v.x, (int)v.y, (int)v.z, reach, LIGHT, strength, 0, 0 }; | ^~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib64 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -fsigned-char -I../enet/include `sdl-config --cflags` -c -o server.o server.cpp In file included from cube.h:3, from server.cpp:4: tools.h: In member function 'T* hashtable::access(char*, T*)': tools.h:247:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 247 | for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor | ~~^~~~~~~~ In file included from cube.h:284: protos.h: At global scope: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 127 | extern void fatal(char *s, char *o = ""); | ^ server.cpp:46:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 46 | char *serverpassword = ""; | ^~ server.cpp: In function 'bool vote(char*, int, int)': server.cpp:144:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 144 | sendservmsg("vote passed"); | ^~~~~~~~~~~~~ server.cpp: In function 'void process(ENetPacket*, int)': server.cpp:156:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 156 | disconnect_client(sender, "packet length"); | ^~~~~~~~~~~~~~~ server.cpp:224:43: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 224 | disconnect_client(sender, "client num"); | ^~~~~~~~~~~~ server.cpp:254:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 254 | if(size==-1) { disconnect_client(sender, "tag type"); return; }; | ^~~~~~~~~~ server.cpp:259:43: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 259 | if(p>end) { disconnect_client(sender, "end of packet"); return; }; | ^~~~~~~~~~~~~~~ server.cpp: In function 'void serverslice(int, unsigned int)': server.cpp:384:15: warning: enumeration value 'ENET_EVENT_TYPE_NONE' not handled in switch [-Wswitch] 384 | switch(event.type) | ^ server.cpp:415:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 415 | disconnect_client(lastconnect, "maxclients reached"); | ^~~~~~~~~~~~~~~~~~~~ server.cpp: In function 'void initserver(bool, int, char*, char*, char*, char*, int)': server.cpp:447:20: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 447 | if(isdedicated = dedicated) | ~~~~~~~~~~~~^~~~~~~~~~~ server.cpp:452:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 452 | if(!serverhost) fatal("could not create server host\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ server.cpp:452:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 452 | if(!serverhost) fatal("could not create server host\n"); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib64 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -fsigned-char -I../enet/include `sdl-config --cflags` -c -o worldio.o worldio.cpp In file included from cube.h:3, from worldio.cpp:3: tools.h: In member function 'T* hashtable::access(char*, T*)': tools.h:247:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 247 | for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor | ~~^~~~~~~~ In file included from cube.h:284: protos.h: At global scope: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 127 | extern void fatal(char *s, char *o = ""); | ^ worldio.cpp: In function 'void load_world(char*)': worldio.cpp:219:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 219 | if(strncmp(hdr.head, "CUBE", 4)!=0) fatal("while reading map: header malformatted"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ worldio.cpp:219:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 219 | if(strncmp(hdr.head, "CUBE", 4)!=0) fatal("while reading map: header malformatted"); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ worldio.cpp:220:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 220 | if(hdr.version>MAPVERSION) fatal("this map requires a newer version of cube"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ worldio.cpp:220:37: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 220 | if(hdr.version>MAPVERSION) fatal("this map requires a newer version of cube"); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ worldio.cpp:221:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 221 | if(sfactorLARGEST_FACTOR) fatal("illegal map size"); | ^~~~~~~~~~~~~~~~~~ worldio.cpp:221:64: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 221 | if(sfactorLARGEST_FACTOR) fatal("illegal map size"); | ~~~~~^~~~~~~~~~~~~~~~~~~~ worldio.cpp:288:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 288 | fatal("while reading map: type out of range: ", t); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ worldio.cpp:313:19: warning: the address of 'texuse' will never be NULL [-Waddress] 313 | loopi(256) if(texuse) lookuptexture(i, xs, ys); | ^~~~~~ worldio.cpp:246:14: note: 'texuse' declared here 246 | char texuse[256]; | ^~~~~~ worldio.cpp:320:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 320 | if(identexists(aliasname)) alias(aliasname, ""); | ^~ worldio.cpp:322:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 322 | execfile("data/default_map_settings.cfg"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ worldio.cpp: At global scope: worldio.cpp:327:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 327 | COMMANDN(savemap, save_world, ARG_1STR); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib64 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -fsigned-char -I../enet/include `sdl-config --cflags` -c -o worldocull.o worldocull.cpp In file included from cube.h:3, from worldocull.cpp:3: tools.h: In member function 'T* hashtable::access(char*, T*)': tools.h:247:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 247 | for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor | ~~^~~~~~~~ In file included from cube.h:284: protos.h: At global scope: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 127 | extern void fatal(char *s, char *o = ""); | ^ worldocull.cpp:13:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 13 | COMMAND(toggleocull, ARG_NONE); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ worldocull.cpp:13:1: note: in expansion of macro 'COMMAND' 13 | COMMAND(toggleocull, ARG_NONE); | ^~~~~~~ worldocull.cpp: In function 'void computeraytable(float, float)': worldocull.cpp:22:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 22 | odist = getvar("fog")*1.5f; | ^~~~~ worldocull.cpp:25:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 25 | float af = getvar("fov")/2+apitch/1.5f+3; | ^~~~~ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib64 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -fsigned-char -I../enet/include `sdl-config --cflags` -c -o serverutil.o serverutil.cpp In file included from cube.h:3, from serverutil.cpp:3: tools.h: In member function 'T* hashtable::access(char*, T*)': tools.h:247:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 247 | for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor | ~~^~~~~~~~ In file included from cube.h:284: protos.h: At global scope: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 127 | extern void fatal(char *s, char *o = ""); | ^ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib64 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -fsigned-char -I../enet/include `sdl-config --cflags` -c -o world.o world.cpp In file included from cube.h:3, from world.cpp:3: tools.h: In member function 'T* hashtable::access(char*, T*)': tools.h:247:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 247 | for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor | ~~^~~~~~~~ In file included from cube.h:284: protos.h: At global scope: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 127 | extern void fatal(char *s, char *o = ""); | ^ world.cpp:52:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 52 | COMMAND(trigger, ARG_2INT); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ world.cpp:52:1: note: in expansion of macro 'COMMAND' 52 | COMMAND(trigger, ARG_2INT); | ^~~~~~~ world.cpp: In function 'void remip(block&, int)': world.cpp:63:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 63 | int lighterr = getvar("lighterror")*3; | ^~~~~~~~~~~~ world.cpp: In function 'int closestent()': world.cpp:170:21: warning: narrowing conversion of 'e.entity::persistent_entity.persistent_entity::x' from 'short int' to 'float' [-Wnarrowing] 170 | vec v = { e.x, e.y, e.z }; | ~~^ world.cpp:170:26: warning: narrowing conversion of 'e.entity::persistent_entity.persistent_entity::y' from 'short int' to 'float' [-Wnarrowing] 170 | vec v = { e.x, e.y, e.z }; | ~~^ world.cpp:170:31: warning: narrowing conversion of 'e.entity::persistent_entity.persistent_entity::z' from 'short int' to 'float' [-Wnarrowing] 170 | vec v = { e.x, e.y, e.z }; | ~~^ world.cpp: In function 'entity* newentity(int, int, int, char*, int, int, int, int)': world.cpp:215:29: warning: narrowing conversion of 'x' from 'int' to 'short int' [-Wnarrowing] 215 | persistent_entity e = { x, y, z, v1, type, v2, v3, v4 }; | ^ world.cpp:215:32: warning: narrowing conversion of 'y' from 'int' to 'short int' [-Wnarrowing] 215 | persistent_entity e = { x, y, z, v1, type, v2, v3, v4 }; | ^ world.cpp:215:35: warning: narrowing conversion of 'z' from 'int' to 'short int' [-Wnarrowing] 215 | persistent_entity e = { x, y, z, v1, type, v2, v3, v4 }; | ^ world.cpp:215:38: warning: narrowing conversion of 'v1' from 'int' to 'short int' [-Wnarrowing] 215 | persistent_entity e = { x, y, z, v1, type, v2, v3, v4 }; | ^~ world.cpp:215:42: warning: narrowing conversion of 'type' from 'int' to 'uchar' {aka 'unsigned char'} [-Wnarrowing] 215 | persistent_entity e = { x, y, z, v1, type, v2, v3, v4 }; | ^~~~ world.cpp:215:48: warning: narrowing conversion of 'v2' from 'int' to 'uchar' {aka 'unsigned char'} [-Wnarrowing] 215 | persistent_entity e = { x, y, z, v1, type, v2, v3, v4 }; | ^~ world.cpp:215:52: warning: narrowing conversion of 'v3' from 'int' to 'uchar' {aka 'unsigned char'} [-Wnarrowing] 215 | persistent_entity e = { x, y, z, v1, type, v2, v3, v4 }; | ^~ world.cpp:215:56: warning: narrowing conversion of 'v4' from 'int' to 'uchar' {aka 'unsigned char'} [-Wnarrowing] 215 | persistent_entity e = { x, y, z, v1, type, v2, v3, v4 }; | ^~ world.cpp: At global scope: world.cpp:252:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 252 | COMMAND(clearents, ARG_1STR); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ world.cpp:252:1: note: in expansion of macro 'COMMAND' 252 | COMMAND(clearents, ARG_1STR); | ^~~~~~~ world.cpp:280:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 280 | COMMAND(scalelights, ARG_2INT); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ world.cpp:280:1: note: in expansion of macro 'COMMAND' 280 | COMMAND(scalelights, ARG_2INT); | ^~~~~~~ world.cpp: In function 'void empty_world(int, bool)': world.cpp:355:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 355 | startmap("base/unnamed"); | ^~~~~~~~~~~~~~ world.cpp:360:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 360 | execute("fullbright 1"); | ^~~~~~~~~~~~~~ world.cpp: At global scope: world.cpp:367:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 367 | COMMAND(mapenlarge, ARG_NONE); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ world.cpp:367:1: note: in expansion of macro 'COMMAND' 367 | COMMAND(mapenlarge, ARG_NONE); | ^~~~~~~ world.cpp:368:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 368 | COMMAND(newmap, ARG_1INT); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ world.cpp:368:1: note: in expansion of macro 'COMMAND' 368 | COMMAND(newmap, ARG_1INT); | ^~~~~~~ world.cpp:369:37: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 369 | COMMANDN(recalc, calclight, ARG_NONE); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ world.cpp:370:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 370 | COMMAND(delent, ARG_NONE); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ world.cpp:370:1: note: in expansion of macro 'COMMAND' 370 | COMMAND(delent, ARG_NONE); | ^~~~~~~ world.cpp:371:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 371 | COMMAND(entproperty, ARG_2INT); | ^ cube.h:253:76: note: in definition of macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^~~~ world.cpp:371:1: note: in expansion of macro 'COMMAND' 371 | COMMAND(entproperty, ARG_2INT); | ^~~~~~~ world.cpp: In function 'empty_world(int, bool)': world.cpp:326:12: warning: 'strncpy' output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation] 326 | strncpy(hdr.head, "CUBE", 4); | ^ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib64 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -fsigned-char -I../enet/include `sdl-config --cflags` -DSTANDALONE -o standalone.o -c serverutil.cpp In file included from cube.h:3, from serverutil.cpp:3: tools.h: In member function 'T* hashtable::access(char*, T*)': tools.h:247:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 247 | for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor | ~~^~~~~~~~ In file included from cube.h:284: protos.h: At global scope: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 127 | extern void fatal(char *s, char *o = ""); | ^ serverutil.cpp: In function 'void* alloc(int)': serverutil.cpp:94:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 94 | void *alloc(int s) { void *b = calloc(1,s); if(!b) fatal("no memory!"); return b; }; | ^~~~~~~~~~~~ serverutil.cpp:94:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 94 | void *alloc(int s) { void *b = calloc(1,s); if(!b) fatal("no memory!"); return b; }; | ~~~~~^~~~~~~~~~~~~~ serverutil.cpp: In function 'int main(int, char**)': serverutil.cpp:99:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 99 | char *sdesc = "", *ip = "", *master = NULL, *passwd = ""; | ^~ serverutil.cpp:99:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 99 | char *sdesc = "", *ip = "", *master = NULL, *passwd = ""; | ^~ serverutil.cpp:99:59: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 99 | char *sdesc = "", *ip = "", *master = NULL, *passwd = ""; | ^~ serverutil.cpp:116:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 116 | if(enet_initialize()<0) fatal("Unable to initialise network module"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ serverutil.cpp:116:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 116 | if(enet_initialize()<0) fatal("Unable to initialise network module"); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib64 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -fsigned-char -I../enet/include `sdl-config --cflags` -c -o worldrender.o worldrender.cpp In file included from cube.h:3, from worldrender.cpp:4: tools.h: In member function 'T* hashtable::access(char*, T*)': tools.h:247:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 247 | for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor | ~~^~~~~~~~ In file included from cube.h:284: protos.h: At global scope: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 127 | extern void fatal(char *s, char *o = ""); | ^ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib64 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -fsigned-char -I../enet/include `sdl-config --cflags` -o cube_server standalone.o serverms.o server.o tools.o -L../enet -lenet make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib64 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -fsigned-char -I../enet/include `sdl-config --cflags` -o cube_client client.o clientextras.o clientgame.o clients2c.o command.o console.o editing.o entities.o main.o menus.o monster.o physics.o rendercubes.o renderextras.o rendergl.o rendermd2.o renderparticles.o rendertext.o rndmap.o savegamedemo.o server.o serverbrowser.o serverms.o serverutil.o sound.o tools.o weapon.o world.o worldio.o worldlight.o worldocull.o worldrender.o -L../enet -lenet `sdl-config --libs` -lSDL_image -lSDL_mixer -lz -lGL -lGLU -lX11 make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.44036 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/cube3d-buildroot + : + /bin/rm -rf -- /usr/src/tmp/cube3d-buildroot + PATH=/usr/libexec/rpm-build:/usr/src/bin:/usr/bin:/bin:/usr/local/bin:/usr/games + cd cube-src-2005.08.29 + install -pD -m755 src/cube_client /usr/src/tmp/cube3d-buildroot/usr/games/cube_client + install -pD -m755 src/cube_server /usr/src/tmp/cube3d-buildroot/usr/games/cube_server + install -pD -m755 cube3d.sh /usr/src/tmp/cube3d-buildroot/usr/games/cube3d + install -m755 -d /usr/src/tmp/cube3d-buildroot/usr/share/applications/ + cat + desktop-file-install --dir /usr/src/tmp/cube3d-buildroot/usr/share/applications --remove-category=Action --add-category=ActionGame /usr/src/tmp/cube3d-buildroot/usr/share/applications/cube3d.desktop + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/cube3d-buildroot (auto) Verifying and fixing files in /usr/src/tmp/cube3d-buildroot (binconfig,pkgconfig,libtool,desktop,gnuconfig) Checking contents of files in /usr/src/tmp/cube3d-buildroot/ (default) Compressing files in /usr/src/tmp/cube3d-buildroot (auto) Verifying ELF objects in /usr/src/tmp/cube3d-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) Splitting links to aliased files under /{,s}bin in /usr/src/tmp/cube3d-buildroot Processing files: cube3d-2005.08.29-alt3 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.61181 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd cube-src-2005.08.29 + DOCDIR=/usr/src/tmp/cube3d-buildroot/usr/share/doc/cube3d + export DOCDIR + /bin/mkdir -p /usr/src/tmp/cube3d-buildroot/usr/share/doc/cube3d + cp -prL readme.txt /usr/src/tmp/cube3d-buildroot/usr/share/doc/cube3d + chmod -R go-w /usr/src/tmp/cube3d-buildroot/usr/share/doc/cube3d + chmod -R a+rX /usr/src/tmp/cube3d-buildroot/usr/share/doc/cube3d + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.xGrcvj find-provides: running scripts (debuginfo,lib,pam,perl,pkgconfig,python,python3,shell) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.5PmDLg find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services) find-requires: FINDPACKAGE-COMMANDS: cp ln mkdir Requires: cube3d-data >= 2005, /bin/sh, /lib64/ld-linux-x86-64.so.2, coreutils, libGL.so.1()(64bit) >= set:pjdsTwt1StpUwWA49a15e0ibi7T24ZJPt4h5zDyo87ZeifjXQcu8HhszmG5PuL1jYfZmHGA5toZnB2Sgg0dK2ocwQ71Rd0M5CrNDIpzFbloewyUDEbxLK2g6Ro2aWdpU2YCMLKPok56OW8CZlePgyZ1sqE9JAX0cMagVoK6BdZqraX9uXb0, libGLU.so.1()(64bit) >= set:jf2WETbUdzh8jFW1w8HWwpbOL4, libSDL-1.2.so.0()(64bit) >= set:lgh4FqZ1QGvKkPDX3tJgi1ZG9TREIIGOZEoNbG2I0ZsoL9NKMZF7peBNOnmQB1Z4i92iGjy9iTNeffj0, libSDL_image-1.2.so.0()(64bit) >= set:jifK3, libSDL_mixer-1.2.so.0()(64bit) >= set:kgIdCOqKEupQY3CJN8sqedRO7p7WxkxEcp, libX11.so.6()(64bit) >= set:omNQNN6cW, libc.so.6(GLIBC_2.14)(64bit), libc.so.6(GLIBC_2.2.5)(64bit), libc.so.6(GLIBC_2.3.4)(64bit), libc.so.6(GLIBC_2.34)(64bit), libc.so.6(GLIBC_2.38)(64bit), libc.so.6(GLIBC_2.4)(64bit), libc.so.6(GLIBC_2.7)(64bit), libgcc_s.so.1(GCC_3.0)(64bit), libgcc_s.so.1(GCC_3.3.1)(64bit), libm.so.6(GLIBC_2.2.5)(64bit), libm.so.6(GLIBC_2.29)(64bit), libstdc++.so.6(CXXABI_1.3.8)(64bit), libstdc++.so.6(CXXABI_1.3.9)(64bit), libstdc++.so.6(GLIBCXX_3.4)(64bit), libz.so.1()(64bit) >= set:khU3OnBq0dZE5LwrS9i18, rtld(GNU_HASH) Requires(rpmlib): rpmlib(SetVersions) Finding debuginfo files (using /usr/lib/rpm/find-debuginfo-files) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.OVl3FO Creating cube3d-debuginfo package Processing files: cube3d-debuginfo-2005.08.29-alt3 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.B1ih1G find-provides: running scripts (debuginfo) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.0eNBNs find-requires: running scripts (debuginfo) Requires: cube3d = 2005.08.29-alt3, /usr/lib/debug/lib64/ld-linux-x86-64.so.2.debug, debug64(libGL.so.1), debug64(libGLU.so.1), debug64(libSDL-1.2.so.0), debug64(libSDL_image-1.2.so.0), debug64(libSDL_mixer-1.2.so.0), debug64(libX11.so.6), debug64(libc.so.6), debug64(libgcc_s.so.1), debug64(libm.so.6), debug64(libstdc++.so.6), debug64(libz.so.1) Adding to cube3d-debuginfo a strict dependency on cube3d Wrote: /usr/src/RPM/RPMS/x86_64/cube3d-2005.08.29-alt3.x86_64.rpm (w2.lzdio) Wrote: /usr/src/RPM/RPMS/x86_64/cube3d-debuginfo-2005.08.29-alt3.x86_64.rpm (w2.lzdio) 18.42user 5.13system 0:12.16elapsed 193%CPU (0avgtext+0avgdata 75080maxresident)k 0inputs+0outputs (0major+768958minor)pagefaults 0swaps /.out/cube3d-2005.08.29-alt3.x86_64.rpm: license not found in '/usr/share/license' directory: license /.out/cube3d-debuginfo-2005.08.29-alt3.x86_64.rpm: license not found in '/usr/share/license' directory: license 3.87user 2.76system 0:27.63elapsed 24%CPU (0avgtext+0avgdata 138404maxresident)k 0inputs+0outputs (0major+224161minor)pagefaults 0swaps --- cube3d-2005.08.29-alt3.x86_64.rpm.repo 2025-01-28 12:11:03.639254695 +0000 +++ cube3d-2005.08.29-alt3.x86_64.rpm.hasher 2025-01-28 16:47:47.011759190 +0000 @@ -36,4 +36,4 @@ File: /usr/games/cube3d 100755 root:root 1d83e4e865b414363c31852f83ded82e -File: /usr/games/cube_client 100755 root:root e28046e252e5fd04bced63b27b358a67 -File: /usr/games/cube_server 100755 root:root 00b515e264df3f1c4ca3ddb758903e71 +File: /usr/games/cube_client 100755 root:root 5cc85afe3cc9a4d98b21c785e0d5c6db +File: /usr/games/cube_server 100755 root:root 0d89e51adbdee347b4cc28158623661f File: /usr/share/applications/cube3d.desktop 100644 root:root 432f4749a59a669f39f323766e8630ef @@ -41,2 +41,2 @@ File: /usr/share/doc/cube3d/readme.txt 100644 root:root d291368f307f6ef5baf636e8b9b7ad1f -RPMIdentity: 62216982bf362919fc823dbfcf088dd83c43651c71d559e528cc84548b7174ab50d09d7309bf547c814f046356fc50e624f93beb3186f9d94e46e1cb07dcc729 +RPMIdentity: 7b9972ecfeb0f5f90b64a291987f4a4dae9d2c77fa3cca848aba7469cfb37354c6dace3cf2b43307af07d37c5befae48a7012a9c5d9e18b65ee609618365473e --- cube3d-debuginfo-2005.08.29-alt3.x86_64.rpm.repo 2025-01-28 12:11:03.484253185 +0000 +++ cube3d-debuginfo-2005.08.29-alt3.x86_64.rpm.hasher 2025-01-28 16:47:47.076760001 +0000 @@ -1,7 +1,7 @@ -/usr/lib/debug/.build-id/6b 40755 root:root -/usr/lib/debug/.build-id/6b/da6384a4953cf9840f4a79346b65e6602644b6 120777 root:root ../../../../games/cube_server -/usr/lib/debug/.build-id/6b/da6384a4953cf9840f4a79346b65e6602644b6.debug 120777 root:root ../../usr/games/cube_server.debug -/usr/lib/debug/.build-id/93 40755 root:root -/usr/lib/debug/.build-id/93/2a25ab3a8aa63acced9350fb1541ccd547a3a5 120777 root:root ../../../../games/cube_client -/usr/lib/debug/.build-id/93/2a25ab3a8aa63acced9350fb1541ccd547a3a5.debug 120777 root:root ../../usr/games/cube_client.debug +/usr/lib/debug/.build-id/46 40755 root:root +/usr/lib/debug/.build-id/46/e665047333e0f6f948f59e0c35f48728609af9 120777 root:root ../../../../games/cube_client +/usr/lib/debug/.build-id/46/e665047333e0f6f948f59e0c35f48728609af9.debug 120777 root:root ../../usr/games/cube_client.debug +/usr/lib/debug/.build-id/c0 40755 root:root +/usr/lib/debug/.build-id/c0/e1d52adfce2c87044d74cecb5443970c7e83b5 120777 root:root ../../../../games/cube_server +/usr/lib/debug/.build-id/c0/e1d52adfce2c87044d74cecb5443970c7e83b5.debug 120777 root:root ../../usr/games/cube_server.debug /usr/lib/debug/usr/games/cube_client.debug 100644 root:root @@ -76,10 +76,10 @@ Provides: cube3d-debuginfo = 2005.08.29-alt3:sisyphus+371987.100.1.1 -File: /usr/lib/debug/.build-id/6b 40755 root:root -File: /usr/lib/debug/.build-id/6b/da6384a4953cf9840f4a79346b65e6602644b6 120777 root:root ../../../../games/cube_server -File: /usr/lib/debug/.build-id/6b/da6384a4953cf9840f4a79346b65e6602644b6.debug 120777 root:root ../../usr/games/cube_server.debug -File: /usr/lib/debug/.build-id/93 40755 root:root -File: /usr/lib/debug/.build-id/93/2a25ab3a8aa63acced9350fb1541ccd547a3a5 120777 root:root ../../../../games/cube_client -File: /usr/lib/debug/.build-id/93/2a25ab3a8aa63acced9350fb1541ccd547a3a5.debug 120777 root:root ../../usr/games/cube_client.debug -File: /usr/lib/debug/usr/games/cube_client.debug 100644 root:root 181abd98f43e749c21fd693f994998a4 -File: /usr/lib/debug/usr/games/cube_server.debug 100644 root:root 0b47103edd46c02e63aa8c4ae88feeff +File: /usr/lib/debug/.build-id/46 40755 root:root +File: /usr/lib/debug/.build-id/46/e665047333e0f6f948f59e0c35f48728609af9 120777 root:root ../../../../games/cube_client +File: /usr/lib/debug/.build-id/46/e665047333e0f6f948f59e0c35f48728609af9.debug 120777 root:root ../../usr/games/cube_client.debug +File: /usr/lib/debug/.build-id/c0 40755 root:root +File: /usr/lib/debug/.build-id/c0/e1d52adfce2c87044d74cecb5443970c7e83b5 120777 root:root ../../../../games/cube_server +File: /usr/lib/debug/.build-id/c0/e1d52adfce2c87044d74cecb5443970c7e83b5.debug 120777 root:root ../../usr/games/cube_server.debug +File: /usr/lib/debug/usr/games/cube_client.debug 100644 root:root 9764807755c346100fe3fcbed270e97b +File: /usr/lib/debug/usr/games/cube_server.debug 100644 root:root 28660b6a5f9f61ef15784f64d24318d1 File: /usr/src/debug/cube-src-2005.08.29 40755 root:root @@ -137,2 +137,2 @@ File: /usr/src/debug/cube-src-2005.08.29/src/worldrender.cpp 100644 root:root 5040fe36bae2be442126701e3d2103b5 -RPMIdentity: 69d6e0b1b4f1f2e0d039d31aea6d3b44e816190c559dd3f6b2ae17b1bc77f77785dc642014128edd0514f8874866575f652649f9fc5442401e9c25249cfb1c83 +RPMIdentity: 4f69b68fe3011634cf9d39c79c7f4792c2a74b607dd6c27a69713962f8394d43967060272dcc466ae03af7a5c22da75921aea0e2481f419b4c812ceff16a92ac