<86>Dec 30 02:48:19 userdel[3761766]: delete user 'rooter' <86>Dec 30 02:48:19 userdel[3761766]: removed group 'rooter' owned by 'rooter' <86>Dec 30 02:48:19 userdel[3761766]: removed shadow group 'rooter' owned by 'rooter' <86>Dec 30 02:48:19 groupadd[3761797]: group added to /etc/group: name=rooter, GID=1850 <86>Dec 30 02:48:19 groupadd[3761797]: group added to /etc/gshadow: name=rooter <86>Dec 30 02:48:19 groupadd[3761797]: new group: name=rooter, GID=1850 <86>Dec 30 02:48:19 useradd[3761845]: new user: name=rooter, UID=1850, GID=1850, home=/root, shell=/bin/bash, from=none <86>Dec 30 02:48:19 userdel[3761911]: delete user 'builder' <86>Dec 30 02:48:19 userdel[3761911]: removed group 'builder' owned by 'builder' <86>Dec 30 02:48:19 userdel[3761911]: removed shadow group 'builder' owned by 'builder' <86>Dec 30 02:48:19 groupadd[3761958]: group added to /etc/group: name=builder, GID=1851 <86>Dec 30 02:48:19 groupadd[3761958]: group added to /etc/gshadow: name=builder <86>Dec 30 02:48:19 groupadd[3761958]: new group: name=builder, GID=1851 <86>Dec 30 02:48:19 useradd[3761993]: new user: name=builder, UID=1851, GID=1851, home=/usr/src, shell=/bin/bash, from=none /usr/src/in/srpm/Maelstrom-3.0.6-alt3.1.qa1.src.rpm: bad symbols in the license tag: , <13>Dec 30 02:48:24 rpmi: libglvnd-7:1.7.0-alt1 sisyphus+330949.100.1.1 1696424893 installed <13>Dec 30 02:48:24 rpmi: libogg-1.3.5-alt1 sisyphus+278100.3400.1.1 1626058929 installed <13>Dec 30 02:48:24 rpmi: libflac12-1.4.3-alt2 sisyphus+343354.100.1.1 1711118098 installed <13>Dec 30 02:48:24 rpmi: xorg-proto-devel-2024.1-alt1 sisyphus+343583.40.1.1 1711440649 installed <13>Dec 30 02:48:24 rpmi: libexpat-2.6.4-alt1 sisyphus+365521.100.1.1 1734700243 installed <13>Dec 30 02:48:24 rpmi: libwayland-server-1.23.1-alt1.1 sisyphus+356019.140.3.1 1724572111 installed <13>Dec 30 02:48:24 rpmi: libaudiofile1-0.3.6-alt5 sisyphus+339776.4700.6.2 1707348218 installed <13>Dec 30 02:48:24 rpmi: libvorbis-1.3.7-alt1 sisyphus+275738.100.1.1 1624751601 installed <13>Dec 30 02:48:24 rpmi: libGLES-7:1.7.0-alt1 sisyphus+330949.100.1.1 1696424893 installed <13>Dec 30 02:48:24 rpmi: libOpenGL-7:1.7.0-alt1 sisyphus+330949.100.1.1 1696424893 installed <13>Dec 30 02:48:24 rpmi: libopus-1.5.2-alt1.1 sisyphus+366209.100.1.1 1734786371 installed <13>Dec 30 02:48:24 rpmi: libmpg123-1:1.32.10-alt1 sisyphus+365072.100.1.1 1734226035 installed <13>Dec 30 02:48:24 rpmi: liblame-3.100-alt1 sisyphus+346342.200.2.2 1716474674 installed <13>Dec 30 02:48:24 rpmi: libgsm-1.0.17-alt1 sisyphus+275359.100.2.1 1624907612 installed <13>Dec 30 02:48:24 rpmi: libsndfile-1.1.0-alt1 sisyphus+339776.7300.6.2 1707350065 installed <13>Dec 30 02:48:24 rpmi: liblz4-1:1.9.4-alt1 sisyphus+309416.100.1.1 1667412981 installed <13>Dec 30 02:48:24 rpmi: libsystemd-1:255.13-alt1 sisyphus+359453.100.2.1 1728651180 installed <13>Dec 30 02:48:24 rpmi: libdbus-1.14.10-alt1 sisyphus+327286.5700.14.1 1711487401 installed <13>Dec 30 02:48:24 rpmi: libasyncns-0.8-alt2.qa1 sisyphus+275091.100.1.1 1624402241 installed <13>Dec 30 02:48:24 rpmi: libxshmfence-1.3.2-alt1 sisyphus+311428.400.1.1 1670577525 installed <13>Dec 30 02:48:24 rpmi: libsensors3-3.6.0-alt4 sisyphus+366234.100.1.1 1734814779 installed <13>Dec 30 02:48:24 rpmi: libX11-locales-3:1.8.10-alt1 sisyphus+353866.100.1.1 1722240771 installed <13>Dec 30 02:48:24 rpmi: libspirv-tools0-1:2024.4-alt0.1 sisyphus+365035.200.5.1 1734354502 installed <13>Dec 30 02:48:24 rpmi: llvm18.1-filesystem-18.1.8-alt0.4 sisyphus+364551.100.1.1 1733763186 installed <13>Dec 30 02:48:24 rpmi: llvm18.1-polly-18.1.8-alt0.4 sisyphus+364551.100.1.1 1733763186 installed <13>Dec 30 02:48:24 rpmi: libedit3-3.1.20230828-alt1 sisyphus+330914.200.3.1 1696922743 installed <13>Dec 30 02:48:24 rpmi: llvm18.1-gold-18.1.8-alt0.4 sisyphus+364551.100.1.1 1733763186 installed <13>Dec 30 02:48:26 rpmi: llvm18.1-libs-18.1.8-alt0.4 sisyphus+364551.100.1.1 1733763186 installed <13>Dec 30 02:48:26 rpmi: libXdmcp-1.1.5-alt1 sisyphus+343583.700.1.1 1711441061 installed <13>Dec 30 02:48:26 rpmi: libXau-1.0.11-alt1 sisyphus+311428.100.1.1 1670577439 installed <13>Dec 30 02:48:26 rpmi: libxcb-1.17.0-alt1 sisyphus+345308.200.1.1 1713342004 installed <13>Dec 30 02:48:26 rpmi: libX11-3:1.8.10-alt1 sisyphus+353866.100.1.1 1722240771 installed <13>Dec 30 02:48:26 rpmi: libXext-1.3.6-alt1 sisyphus+343583.1000.1.1 1711441101 installed <13>Dec 30 02:48:26 rpmi: libXxf86vm-1.1.5-alt1 sisyphus+308663.1400.1.1 1666168523 installed <13>Dec 30 02:48:26 rpmi: libXfixes-6.0.1-alt1 sisyphus+331490.300.1.1 1697023233 installed <13>Dec 30 02:48:26 rpmi: libXrender-0.9.11-alt1 sisyphus+308841.100.1.1 1666436130 installed <13>Dec 30 02:48:26 rpmi: libXrandr-1.5.4-alt1 sisyphus+330992.100.1.1 1696485400 installed <13>Dec 30 02:48:27 rpmi: libxcb-devel-1.17.0-alt1 sisyphus+345308.200.1.1 1713342004 installed <13>Dec 30 02:48:27 rpmi: libX11-devel-3:1.8.10-alt1 sisyphus+353866.100.1.1 1722240771 installed <13>Dec 30 02:48:27 rpmi: libpulseaudio-17.0-alt2 sisyphus+339257.100.1.1 1706519226 installed <13>Dec 30 02:48:27 rpmi: libwayland-client-1.23.1-alt1.1 sisyphus+356019.140.3.1 1724572111 installed <13>Dec 30 02:48:27 rpmi: libpciaccess-1:0.18.1-alt1 sisyphus+343583.300.1.1 1711440789 installed <13>Dec 30 02:48:27 rpmi: libdrm-1:2.4.124-alt1 sisyphus+364215.100.1.1 1733469813 installed <13>Dec 30 02:48:27 rpmi: libGLX-mesa-4:24.3.2-alt1 sisyphus+365536.100.1.1 1734711581 installed <13>Dec 30 02:48:27 rpmi: libGLX-7:1.7.0-alt1 sisyphus+330949.100.1.1 1696424893 installed <13>Dec 30 02:48:27 rpmi: libGL-7:1.7.0-alt1 sisyphus+330949.100.1.1 1696424893 installed <13>Dec 30 02:48:27 rpmi: libGLU-4:9.0.1-alt1 sisyphus+278350.100.1.2 1626174382 installed <13>Dec 30 02:48:27 rpmi: libgbm-4:24.3.2-alt1 sisyphus+365536.100.1.1 1734711581 installed <13>Dec 30 02:48:27 rpmi: libEGL-mesa-4:24.3.2-alt1 sisyphus+365536.100.1.1 1734711581 installed <13>Dec 30 02:48:27 rpmi: libEGL-7:1.7.0-alt1 sisyphus+330949.100.1.1 1696424893 installed <13>Dec 30 02:48:27 rpmi: libglvnd-devel-7:1.7.0-alt1 sisyphus+330949.100.1.1 1696424893 installed <13>Dec 30 02:48:27 rpmi: libGLU-devel-4:9.0.1-alt1 sisyphus+278350.100.1.2 1626174382 installed <13>Dec 30 02:48:27 rpmi: gcc-c++-common-1.4.28-alt1 sisyphus+348678.100.1.1 1716396142 installed <13>Dec 30 02:48:28 rpmi: libstdc++14-devel-14.2.1-alt1 sisyphus+360995.100.1.1 1730131018 installed <13>Dec 30 02:48:28 rpmi: gcc14-c++-14.2.1-alt1 sisyphus+360995.100.1.1 1730131018 installed <13>Dec 30 02:48:28 rpmi: alsa-ucm-conf-1.2.12-alt1 sisyphus+352670.100.1.1 1720712327 installed <13>Dec 30 02:48:28 rpmi: alsa-topology-conf-1.2.5.1-alt1 sisyphus+274777.100.1.1 1624089141 installed <13>Dec 30 02:48:28 rpmi: libalsa-1:1.2.12-alt1 sisyphus+352670.200.1.1 1720712401 installed <13>Dec 30 02:48:28 rpmi: libSDL-1.2.14-alt10 sisyphus+346015.200.2.1 1716212609 installed <13>Dec 30 02:48:28 rpmi: libSDL-devel-1.2.14-alt10 sisyphus+346015.200.2.1 1716212609 installed <13>Dec 30 02:48:28 rpmi: libSDL_net-1.2.8-alt3.git9a629d6 sisyphus+346019.200.2.1 1716214192 installed <13>Dec 30 02:48:28 rpmi: libesd-0.2.41-alt10 sisyphus+346177.200.2.1 1716348015 installed <13>Dec 30 02:48:28 rpmi: esd-0.2.41-alt10 sisyphus+346177.200.2.1 1716348015 installed <13>Dec 30 02:48:28 rpmi: libSDL_net-devel-1.2.8-alt3.git9a629d6 sisyphus+346019.200.2.1 1716214192 installed <13>Dec 30 02:48:28 rpmi: gcc-c++-14-alt1 sisyphus+360995.300.1.1 1730139222 installed <13>Dec 30 02:48:28 rpmi: libstdc++-devel-14-alt1 sisyphus+360995.300.1.1 1730139222 installed Building target platforms: x86_64 Building for target x86_64 Wrote: /usr/src/in/nosrpm/Maelstrom-3.0.6-alt3.1.qa1.nosrc.rpm (w1.gzdio) Installing Maelstrom-3.0.6-alt3.1.qa1.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.46143 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf Maelstrom-3.0.6 + echo 'Source #0 (Maelstrom-3.0.6.tar.gz):' Source #0 (Maelstrom-3.0.6.tar.gz): + /usr/bin/gzip -dc /usr/src/RPM/SOURCES/Maelstrom-3.0.6.tar.gz + /bin/tar -xf - + cd Maelstrom-3.0.6 + /bin/chmod -c -Rf u+rwX,go-w . + echo 'Patch #1 (Maelstrom-dirs.patch):' Patch #1 (Maelstrom-dirs.patch): + /usr/bin/patch -p1 patching file Makefile.am patching file configure.in + echo 'Patch #2 (Maelstrom-amfix.patch):' Patch #2 (Maelstrom-amfix.patch): + /usr/bin/patch -p1 patching file Makefile.am + echo 'Patch #3 (Maelstrom-sec.patch):' Patch #3 (Maelstrom-sec.patch): + /usr/bin/patch -p1 patching file controls.cpp patching file dialog.h patching file load.cpp patching file maclib/Mac_FontServ.h patching file maclib/Mac_Resource.h patching file maclib/Mac_Sound.h patching file maclib/Mac_Wave.h patching file maclib/macres.cpp patching file maclib/snd2wav.cpp patching file main.cpp patching file myerror.cpp patching file netlogic/game.cpp patching file netlogic/netplay.cpp patching file netscore.cpp patching file screenlib/SDL_FrameBuf.cpp patching file screenlib/SDL_FrameBuf.h + echo 'Patch #10 (Maelstrom-3.0.5-setgid.patch):' Patch #10 (Maelstrom-3.0.5-setgid.patch): + /usr/bin/patch -p1 -b --suffix .setgid patching file scores.cpp patching file main.cpp patching file Maelstrom_Globals.h + echo 'Patch #11 (maelstrom-gcc34.patch):' Patch #11 (maelstrom-gcc34.patch): + /usr/bin/patch -p1 -b --suffix .gcc34 patching file buttonlist.h + echo 'Patch #12 (Maelstrom-3.0.6-64bit.patch):' Patch #12 (Maelstrom-3.0.6-64bit.patch): + /usr/bin/patch -p1 -b --suffix .64bit patching file screenlib/SDL_FrameBuf.cpp + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.46143 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd Maelstrom-3.0.6 + rm -f missing + touch NEWS AUTHORS ChangeLog Makefile.in + aclocal aclocal-default: warning: autoconf input should be named 'configure.ac', not 'configure.in' acinclude.m4:11: warning: underquoted definition of AM_PATH_SDL acinclude.m4:11: run info Automake 'Extending aclocal' acinclude.m4:11: or see https://www.gnu.org/software/automake/manual/automake.html#Extending-aclocal + autoconf configure.in:9: 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:9: the top level configure.in:50: warning: The macro `AC_TRY_RUN' is obsolete. configure.in:50: You should run autoupdate. ./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from... acinclude.m4:11: AM_PATH_SDL is expanded from... configure.in:50: the top level configure.in:50: warning: The macro `AC_TRY_LINK' is obsolete. configure.in:50: You should run autoupdate. ./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from... acinclude.m4:11: AM_PATH_SDL is expanded from... configure.in:50: the top level configure.in:118: warning: AC_OUTPUT should be used without arguments. configure.in:118: You should run autoupdate. + automake -a -f automake-default: warning: autoconf input should be named 'configure.ac', not 'configure.in' configure.in:9: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated. For more info, see: configure.in:9: https://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation configure.in:14: installing './compile' configure.in:9: installing './missing' Makefile.am: installing './depcomp' automake-default: warning: autoconf input should be named 'configure.ac', not 'configure.in' + 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 build system type... x86_64-alt-linux-gnu checking host system type... x86_64-alt-linux-gnu checking target system type... x86_64-alt-linux-gnu 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 whether make sets $(MAKE)... (cached) 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-g++... x86_64-alt-linux-g++ checking whether the compiler supports GNU C++... yes checking whether x86_64-alt-linux-g++ accepts -g... yes checking for x86_64-alt-linux-g++ option to enable C++11 features... none needed checking dependency style of x86_64-alt-linux-g++... none checking for x86_64-alt-linux-ranlib... no checking for ranlib... ranlib checking for sdl-config... /usr/bin/sdl-config checking for SDL - version >= 1.2.0... yes checking for SDLNet_Init in -lSDL_net... yes checking for RSA checksum authentication... no checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating netlogic/Makefile config.status: creating screenlib/Makefile config.status: creating maclib/Makefile config.status: creating Images/Makefile config.status: creating Docs/Makefile config.status: creating Maelstrom.spec config.status: executing depfiles commands configure: WARNING: unrecognized options: --without-included-gettext + /usr/bin/make make: Entering directory '/usr/src/RPM/BUILD/Maelstrom-3.0.6' Making all in netlogic make[1]: Entering directory '/usr/src/RPM/BUILD/Maelstrom-3.0.6/netlogic' x86_64-alt-linux-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I.. -I../netlogic -I../screenlib -I../maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o about.o about.cpp In file included from about.cpp:4: ../load.h:109:39: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] 109 | sprintf(path, "%s"DIR_SEP"%s", directory, filename); | ^ ../load.h: In member function 'const char* LibPath::Path(const char*)': : warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] ../load.h:95:37: note: in expansion of macro 'LIBDIR' 95 | directory = LIBDIR; | ^~~~~~ about.cpp: In function 'void DoAbout()': about.cpp:101:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 101 | "Can't load 'about' title! (ID=%d)\n", idOn); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ about.cpp:182:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 182 | "Can't use New York(18) font! -- Exiting.\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-alt-linux-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I.. -I../netlogic -I../screenlib -I../maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o blit.o blit.cpp blit.cpp: In function 'int RunFrame()': blit.cpp:26:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 26 | error("Game aborted!\n"); | ^~~~~~~~~~~~~~~~~ blit.cpp:93:21: warning: variable 'shakeV' set but not used [-Wunused-but-set-variable] 93 | int shakeV; | ^~~~~~ x86_64-alt-linux-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I.. -I../netlogic -I../screenlib -I../maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o game.o game.cpp In file included from game.cpp:7: ../load.h:109:39: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] 109 | sprintf(path, "%s"DIR_SEP"%s", directory, filename); | ^ ../load.h: In member function 'const char* LibPath::Path(const char*)': : warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] ../load.h:95:37: note: in expansion of macro 'LIBDIR' 95 | directory = LIBDIR; | ^~~~~~ game.cpp: In function 'void DrawStatus(Bool, Bool)': game.cpp:203:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 203 | i = DrawText(x, gStatusLine+11, "Score:", geneva, STYLE_BOLD, | ^~~~~~~~ game.cpp:206:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 206 | i = DrawText(x, gStatusLine+11, "Shield:", geneva, STYLE_BOLD, | ^~~~~~~~~ game.cpp:209:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 209 | i = DrawText(x, gStatusLine+11, "Wave:", geneva, STYLE_BOLD, | ^~~~~~~ game.cpp:212:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 212 | i = DrawText(x, gStatusLine+11, "Lives:", geneva, STYLE_BOLD, | ^~~~~~~~ game.cpp:215:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 215 | DrawText(x, gStatusLine+11, "Bonus:", geneva, STYLE_BOLD, | ^~~~~~~~ game.cpp:220:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 220 | i = DrawText(x, gStatusLine+11, "Frags:", geneva, | ^~~~~~~~ game.cpp: In function 'void NewGame()': game.cpp:450:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 450 | error("Can't use Geneva font! -- Exiting.\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ game.cpp: In function 'void DoGameOver()': game.cpp:733:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 733 | error("Can't load 'gameover' title!\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ game.cpp:743:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 743 | error("Can't use New York font! -- Exiting.\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ game.cpp:792:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 792 | error("Can't use New York font! -- Exiting.\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ game.cpp:798:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 798 | x += DrawText(x, 300, "Enter your name: ", | ^~~~~~~~~~~~~~~~~~~ game.cpp: In function 'void DoBonus()': game.cpp:910:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 910 | DrawText(x, 200, "Bonus Score: ", geneva, STYLE_BOLD, | ^~~~~~~~~~~~~~~~~~~ game.cpp:917:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 917 | DrawText(x, 220, "Score: ", geneva, STYLE_BOLD, | ^~~~~~~~~~~~~ x86_64-alt-linux-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I.. -I../netlogic -I../screenlib -I../maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o logic.o logic.cpp logic.cpp: In function 'void LogicUsage()': logic.cpp:12:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 12 | " -player N[@host][:port] # Designate player N (at host and/or port)\n" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 13 | " -server N@host[:port] # Play with N players using server at host\n" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 14 | " -deathmatch [N] # Play deathmatch to N frags (default = 8)\n" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ logic.cpp: In function 'int LogicParseArgs(char***, int*)': logic.cpp:39:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 39 | "The '-player' option requires an argument!\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ logic.cpp:52:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 52 | error("The '-server' option requires an argument!\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ logic.cpp:33:16: warning: unused variable 'argc' [-Wunused-variable] 33 | int argc = *argcptr; | ^~~~ x86_64-alt-linux-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I.. -I../netlogic -I../screenlib -I../maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o make.o make.cpp make.cpp: In function 'void MakeGravity()': make.cpp:223:31: warning: variable 'rx' set but not used [-Wunused-but-set-variable] 223 | int newsprite, i, rx; | ^~ x86_64-alt-linux-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I.. -I../netlogic -I../screenlib -I../maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o netplay.o netplay.cpp netplay.cpp: In function 'int InitNetData()': netplay.cpp:61:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 61 | error("NetLogic: Couldn't initialize networking!\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ netplay.cpp:70:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 70 | error("Out of memory (creating network buffers)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ netplay.cpp: In function 'int AddPlayer(char*)': netplay.cpp:118:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 118 | "Argument to '-player' must be in integer between 1 and %d inclusive.\r\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ netplay.cpp:125:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 125 | error("Player %d specified multiple times!\r\n", playernum+1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ netplay.cpp:137:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 137 | error("Couldn't resolve host name for %s\r\n", host); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ netplay.cpp:143:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 143 | "More than one local player! (players %d and %d specified as local players)\r\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ netplay.cpp: In function 'int SetServer(char*)': netplay.cpp:166:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 166 | "Server host must be specified in the -server option.\r\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ netplay.cpp:177:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 177 | "The number of players must be an integer between 1 and %d inclusive.\r\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ netplay.cpp:190:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 190 | error("Couldn't resolve host name for %s\r\n", host); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ netplay.cpp: In function 'int CheckPlayers()': netplay.cpp:213:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 213 | AddPlayer("1"); | ^~~ netplay.cpp:220:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 220 | "Player %d not specified! Use the -player option for all players.\r\n", i+1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ netplay.cpp:226:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 226 | error("Which player are you? (Use the -player N option)\r\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ netplay.cpp:230:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 230 | error("You cannot be player %d in a %d player game.\r\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ netplay.cpp:235:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 235 | error("Warning: No deathmatch in a single player game!\r\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ netplay.cpp:243:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 243 | error("Couldn't create bound network socket"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ netplay.cpp:248:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 248 | error("Couldn't create socket watch set"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ netplay.cpp: In function 'int SyncNetwork()': netplay.cpp:323:7: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 323 | error("Timed out waiting for frame %ld\r\n", NextFrame); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ netplay.cpp:337:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 337 | error("Network error: SDLNet_UDP_Recv()"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ netplay.cpp:353:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 353 | error("Unknown packet: 0x%x\n", buf[0]); | ^~~~~~~~~~~~~~~~~~~~~~~~ netplay.cpp:357:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 357 | error("Packet from unknown source\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ netplay.cpp:373:7: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 373 | error("Transmitting packet for old frame (%lu)\r\n", frame); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ netplay.cpp:376:7: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 376 | error("Received packet for next frame! (%lu, current = %lu)\r\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ netplay.cpp:388:7: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 388 | error("Warning! Received packet for really old frame! (%lu, current = %lu)\r\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ netplay.cpp:400:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 400 | "Warning!! \a Frame consistency error with player %d!! (corrected)\r\n", index+1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ netplay.cpp: In function 'int AlertServer(int*, int*, int*)': netplay.cpp:509:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 509 | Message("Connecting to Address Server"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ netplay.cpp:512:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 512 | ErrorMessage("Connection failed"); | ^~~~~~~~~~~~~~~~~~~ netplay.cpp:518:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 518 | message = "Couldn't create socket set"; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ netplay.cpp:531:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 531 | message = "Socket write error"; | ^~~~~~~~~~~~~~~~~~~~ netplay.cpp:535:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 535 | Message("Waiting for other players"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ netplay.cpp:561:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 561 | message = "Error reading player addresses"; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ netplay.cpp:573:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 573 | message = "Error: Short server packet!"; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ netplay.cpp: In function 'int Send_NewGame(int*, int*, int*)': netplay.cpp:704:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 704 | ErrorMessage("Network error receiving packets"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ netplay.cpp: In function 'int Await_NewGame(int*, int*, int*)': netplay.cpp:760:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 760 | Message("Awaiting Player 1 (server)"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ netplay.cpp:781:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 781 | ErrorMessage("Network error receiving packets"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-alt-linux-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I.. -I../netlogic -I../screenlib -I../maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o object.o object.cpp x86_64-alt-linux-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I.. -I../netlogic -I../screenlib -I../maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o objects.o objects.cpp x86_64-alt-linux-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I.. -I../netlogic -I../screenlib -I../maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o player.o player.cpp rm -f liblogic.a ar cru liblogic.a about.o blit.o game.o logic.o make.o netplay.o object.o objects.o player.o ar: `u' modifier ignored since `D' is the default (see `U') ranlib liblogic.a make[1]: Leaving directory '/usr/src/RPM/BUILD/Maelstrom-3.0.6/netlogic' Making all in screenlib make[1]: Entering directory '/usr/src/RPM/BUILD/Maelstrom-3.0.6/screenlib' x86_64-alt-linux-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I.. -I../netlogic -I../screenlib -I../maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o SDL_FrameBuf.o SDL_FrameBuf.cpp SDL_FrameBuf.cpp: In member function 'int FrameBuf::Init(int, int, Uint32, SDL_Color*, SDL_Surface*)': SDL_FrameBuf.cpp:106:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 106 | SetError("Couldn't set %dx%d video mode: %s", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SDL_FrameBuf.cpp:111:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 111 | PrintSurface("Created foreground", screenfg); | ^~~~~~~~~~~~~~~~~~~~ SDL_FrameBuf.cpp:120:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 120 | SetError("Couldn't create background: %s", SDL_GetError()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SDL_FrameBuf.cpp:123:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 123 | PrintSurface("Created background", screenbg); | ^~~~~~~~~~~~~~~~~~~~ SDL_FrameBuf.cpp: In function 'void memswap(Uint8*, Uint8*, Uint8)': SDL_FrameBuf.cpp:522:24: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 522 | register Uint8 tmp; | ^~~ SDL_FrameBuf.cpp: In member function 'int FrameBuf::ScreenDump(char*, Uint16, Uint16, Uint16, Uint16)': SDL_FrameBuf.cpp:642:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 642 | SetError("%s", SDL_GetError()); | ^~~~ SDL_FrameBuf.cpp: In member function 'SDL_Surface* FrameBuf::LoadImage(Uint16, Uint16, Uint8*, Uint8*)': SDL_FrameBuf.cpp:665:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 665 | SetError("Couldn't create artwork: %s", SDL_GetError()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SDL_FrameBuf.cpp:681:23: warning: 'memset' used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size] 681 | memset(used, 0, 256); | ~~~~~~^~~~~~~~~~~~~~ x86_64-alt-linux-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I.. -I../netlogic -I../screenlib -I../maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o pixel.o pixel.cpp rm -f libSDLscreen.a ar cru libSDLscreen.a SDL_FrameBuf.o pixel.o ar: `u' modifier ignored since `D' is the default (see `U') ranlib libSDLscreen.a make[1]: Leaving directory '/usr/src/RPM/BUILD/Maelstrom-3.0.6/screenlib' Making all in maclib make[1]: Entering directory '/usr/src/RPM/BUILD/Maelstrom-3.0.6/maclib' x86_64-alt-linux-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I.. -I../netlogic -I../screenlib -I../maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o macres.o macres.cpp x86_64-alt-linux-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I.. -I../netlogic -I../screenlib -I../maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o Mac_FontServ.o Mac_FontServ.cpp Mac_FontServ.cpp: In constructor 'FontServ::FontServ(const char*)': Mac_FontServ.cpp:80:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 80 | SetError("Couldn't load resources from %s", fontfile); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Mac_FontServ.cpp:84:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 84 | SetError("FontServ: No 'FOND' resources in %s", fontfile); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Mac_FontServ.cpp: In member function 'MFont* FontServ::NewFont(const char*, int)': Mac_FontServ.cpp:116:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 116 | SetError("Warning: Font family '%s' not found", fontname); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Mac_FontServ.cpp:147:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 147 | "Warning: Font family '%s' doesn't have %d pt fonts", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Mac_FontServ.cpp:158:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 158 | "Warning: Can't find NFNT resource for %d pt %s font", ptsize, fontname); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Mac_FontServ.cpp:184:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 184 | SetError("Warning: Bad font Magic number: 0x%04x", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Mac_FontServ.cpp: In member function 'SDL_Surface* FontServ::TextImage(const char*, MFont*, Uint8, SDL_Color, SDL_Color)': Mac_FontServ.cpp:288:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 288 | "FontServ: Italics not implemented!"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Mac_FontServ.cpp:291:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 291 | "FontServ: Unknown text style!"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Mac_FontServ.cpp:329:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 329 | SetError("No text to convert"); | ^~~~~~~~~~~~~~~~~~~~ Mac_FontServ.cpp:337:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 337 | SetError("Unable to allocate bitmap: %s", SDL_GetError()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Mac_FontServ.cpp: In member function 'int FontServ::InvertText(SDL_Surface*)': Mac_FontServ.cpp:409:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 409 | SetError("Not a text bitmap"); | ^~~~~~~~~~~~~~~~~~~ x86_64-alt-linux-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I.. -I../netlogic -I../screenlib -I../maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o Mac_Resource.o Mac_Resource.cpp In file included from Mac_Resource.cpp:45: applefile.h:78:32: warning: "/*" within comment [-Wcomment] 78 | /* 0x0010 /* reserved (System 7) */ applefile.h:83:33: warning: "/*" within comment [-Wcomment] 83 | /* 0x0200 /* reserved (System 7) */ applefile.h:142:33: warning: "/*" within comment [-Wcomment] 142 | /* 7 /* not used */ applefile.h:333:33: warning: "/*" within comment [-Wcomment] 333 | /* Uint8 filedata[]; /* followed by rest of file */ Mac_Resource.cpp: In function 'FILE* Open_MacRes(char**, Uint32*)': Mac_Resource.cpp:197:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 197 | dirname = ""; | ^~ Mac_Resource.cpp: In constructor 'Mac_Resource::Mac_Resource(const char*)': Mac_Resource.cpp:271:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 271 | error("Couldn't open resource file '%s'", filename); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Mac_Resource.cpp:280:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 280 | error("Couldn't read resource info from '%s'", filename); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Mac_Resource.cpp:291:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 291 | error("Couldn't read resource info from '%s'", filename); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Mac_Resource.cpp:309:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 309 | error("Couldn't read resource info from '%s'", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Mac_Resource.cpp:335:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 335 | error("Couldn't read resource info from '%s'", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Mac_Resource.cpp: In member function 'Uint16* Mac_Resource::ResourceIDs(const char*)': Mac_Resource.cpp:437:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 437 | error("Couldn't find resources of type '%s'", res_type); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Mac_Resource.cpp: In member function 'char* Mac_Resource::ResourceName(const char*, Uint16)': Mac_Resource.cpp:454:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 454 | error("Couldn't find resource of type '%s', id %hu", res_type, id); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Mac_Resource.cpp: In member function 'Mac_ResData* Mac_Resource::Resource(const char*, Uint16)': Mac_Resource.cpp:481:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 481 | error("Couldn't read %d bytes", d->length); | ^~~~~~~~~~~~~~~~~~~~~~~~ Mac_Resource.cpp:491:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 491 | error("Couldn't find resource of type '%s', id %hu", res_type, id); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Mac_Resource.cpp: In member function 'Mac_ResData* Mac_Resource::Resource(const char*, const char*)': Mac_Resource.cpp:518:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 518 | error("Couldn't read %d bytes", d->length); | ^~~~~~~~~~~~~~~~~~~~~~~~ Mac_Resource.cpp:528:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 528 | error("Couldn't find resource of type '%s', name %s", res_type, name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Mac_Resource.cpp: In constructor 'Mac_Resource::Mac_Resource(const char*)': Mac_Resource.cpp:357:38: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 357 | fread(&name_len, 1, 1, filep); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ Mac_Resource.cpp:359:38: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 359 | fread(Resources[i].list[n].name, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 360 | 1, name_len, filep); | ~~~~~~~~~~~~~~~~~~~ Mac_Resource.cpp: In function 'void CheckAppleFile(FILE*, Uint32*)': Mac_Resource.cpp:129:22: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 129 | fread(&header.versionNum, | ~~~~~^~~~~~~~~~~~~~~~~~~~ 130 | sizeof(header.versionNum), 1, resfile); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Mac_Resource.cpp:132:22: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 132 | fread(&header.filler, | ~~~~~^~~~~~~~~~~~~~~~ 133 | sizeof(header.filler), 1, resfile); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Mac_Resource.cpp:134:22: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 134 | fread(&header.numEntries, | ~~~~~^~~~~~~~~~~~~~~~~~~~ 135 | sizeof(header.numEntries), 1, resfile); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Mac_Resource.cpp: In member function 'Mac_ResData* Mac_Resource::Resource(const char*, Uint16)': Mac_Resource.cpp:476:46: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 476 | fread(&d->length, 4, 1, filep); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ Mac_Resource.cpp: In member function 'Mac_ResData* Mac_Resource::Resource(const char*, const char*)': Mac_Resource.cpp:513:46: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 513 | fread(&d->length, 4, 1, filep); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-alt-linux-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I.. -I../netlogic -I../screenlib -I../maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o Mac_Sound.o Mac_Sound.cpp Mac_Sound.cpp: In constructor 'Sound::Sound(const char*, Uint8)': Mac_Sound.cpp:110:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 110 | error("%s", soundres->Error()); | ^~~~ Mac_Sound.cpp:114:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 114 | error("No sound resources in '%s'", soundfile); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ Mac_Sound.cpp:122:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 122 | error("%s", soundres->Error()); | ^~~~ Mac_Sound.cpp:128:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 128 | error("%s", wave->Error()); | ^~~~ x86_64-alt-linux-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I.. -I../netlogic -I../screenlib -I../maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o Mac_Wave.o Mac_Wave.cpp Mac_Wave.cpp: In member function 'int Wave::Load(const char*, Uint16)': Mac_Wave.cpp:117:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 117 | error("%s", SDL_GetError()); | ^~~~ Mac_Wave.cpp: In member function 'int Wave::Load(Mac_ResData*, Uint16)': Mac_Wave.cpp:182:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 182 | error("Multi-type sound not supported"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Mac_Wave.cpp:187:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 187 | error("Not a sampled sound resource"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Mac_Wave.cpp:196:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 196 | error("Unknown sound format: 0x%X", snd_version); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ Mac_Wave.cpp:209:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 209 | error("Multi-command sound not supported"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Mac_Wave.cpp:214:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 214 | error("Unknown sound command: 0x%X\n", command); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Mac_Wave.cpp:223:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 223 | error("Offset too large -- corrupt sound?"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Mac_Wave.cpp:241:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 241 | error("Sound samples don't immediately follow header"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Mac_Wave.cpp:251:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 251 | error("Non-standard sound encoding: 0x%X", encoding); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Mac_Wave.cpp:259:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 259 | error("truncated sound resource"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ Mac_Wave.cpp:236:24: warning: variable 'freq_base' set but not used [-Wunused-but-set-variable] 236 | Uint8 freq_base; | ^~~~~~~~~ Mac_Wave.cpp: In member function 'int Wave::Save(char*)': Mac_Wave.cpp:531:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 531 | error("Couldn't open %s for writing", wavefile); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Mac_Wave.cpp:566:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 566 | error("Couldn't write to %s", wavefile); | ^~~~~~~~~~~~~~~~~~~~~~ rm -f libSDLmac.a ar cru libSDLmac.a Mac_FontServ.o Mac_Resource.o Mac_Sound.o Mac_Wave.o ar: `u' modifier ignored since `D' is the default (see `U') ranlib libSDLmac.a x86_64-alt-linux-g++ -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I.. -I../netlogic -I../screenlib -I../maclib -DLIBDIR=\"/usr/share/Maelstrom\" -o macres macres.o libSDLmac.a -lSDL -lpthread -lSDL_net x86_64-alt-linux-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I.. -I../netlogic -I../screenlib -I../maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o playwave.o playwave.cpp playwave.cpp: In function 'int main(int, char**)': playwave.cpp:159:56: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'Uint32' {aka 'unsigned int'} [-Wformat=] 159 | printf("Playing %#.2f seconds (%d bit %s) at %lu Hz\n", | ~~^ | | | long unsigned int | %u ...... 162 | wave->Stereo() ? "stereo" : "mono", wave->Frequency()); | ~~~~~~~~~~~~~~~~~ | | | Uint32 {aka unsigned int} x86_64-alt-linux-g++ -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I.. -I../netlogic -I../screenlib -I../maclib -DLIBDIR=\"/usr/share/Maelstrom\" -o playwave playwave.o libSDLmac.a -lSDL -lpthread -lSDL_net x86_64-alt-linux-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I.. -I../netlogic -I../screenlib -I../maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o snd2wav.o snd2wav.cpp x86_64-alt-linux-g++ -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I.. -I../netlogic -I../screenlib -I../maclib -DLIBDIR=\"/usr/share/Maelstrom\" -o snd2wav snd2wav.o libSDLmac.a -lSDL -lpthread -lSDL_net make[1]: Leaving directory '/usr/src/RPM/BUILD/Maelstrom-3.0.6/maclib' make[1]: Entering directory '/usr/src/RPM/BUILD/Maelstrom-3.0.6' x86_64-alt-linux-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I. -I./netlogic -I./screenlib -I./maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o checksum.o checksum.cpp checksum.cpp: In function 'char* get_checksum(unsigned char*, int)': checksum.cpp:264:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 264 | static char *foo = "Checksum Not Enabled"; | ^~~~~~~~~~~~~~~~~~~~~~ x86_64-alt-linux-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I. -I./netlogic -I./screenlib -I./maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o controls.o controls.cpp In file included from controls.cpp:9: load.h:109:39: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] 109 | sprintf(path, "%s"DIR_SEP"%s", directory, filename); | ^ controls.cpp:86:46: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] 86 | snprintf(datafile, sizeof(datafile), "%s"DIR_SEP"%s", home, MAELSTROM_DATA); | ^ load.h: In member function 'const char* LibPath::Path(const char*)': : warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] load.h:95:37: note: in expansion of macro 'LIBDIR' 95 | directory = LIBDIR; | ^~~~~~ controls.cpp: In function 'void KeyName(SDLKey, char*)': controls.cpp:43:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 43 | name = "up arrow"; | ^~~~~~~~~~ controls.cpp:46:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 46 | name = "down arrow"; | ^~~~~~~~~~~~ controls.cpp:49:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 49 | name = "right arrow"; | ^~~~~~~~~~~~~ controls.cpp:52:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 52 | name = "left arrow"; | ^~~~~~~~~~~~ controls.cpp: In function 'FILE* OpenData(char*, char**)': load.h:34:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 34 | #define CUR_DIR "." | ^~~ controls.cpp:78:32: note: in expansion of macro 'CUR_DIR' 78 | home = CUR_DIR; | ^~~~~~~ controls.cpp:80:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 80 | home=""; | ^~ controls.cpp: In function 'void LoadControls()': controls.cpp:98:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 98 | data = OpenData("r", &datafile); | ^~~ controls.cpp:106:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 106 | "Warning: Data file '%s' is corrupt! (will fix)\n", datafile); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ controls.cpp: In function 'void SaveControls()': controls.cpp:122:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 122 | if ( (data=OpenData("r", NULL)) != NULL ) { | ^~~ controls.cpp:123:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 123 | newmode = "r+"; | ^~~~ controls.cpp:126:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 126 | newmode = "w"; | ^~~ controls.cpp:129:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 129 | error("Warning: Couldn't save controls to %s\n", datafile); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ controls.cpp: At global scope: controls.cpp:160:11: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 160 | { "Fire", 0*BOX_HEIGHT+0*SP, &newcontrols.gFireControl }, | ^~~~~~ controls.cpp:161:11: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 161 | { "Thrust", 1*BOX_HEIGHT+1*SP, &newcontrols.gThrustControl }, | ^~~~~~~~ controls.cpp:162:11: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 162 | { "Shield", 2*BOX_HEIGHT+2*SP, &newcontrols.gShieldControl }, | ^~~~~~~~ controls.cpp:163:11: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 163 | { "Turn Clockwise", 3*BOX_HEIGHT+3*SP, &newcontrols.gTurnRControl }, | ^~~~~~~~~~~~~~~~ controls.cpp:164:11: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 164 | { "Turn Counter-Clockwise", | ^~~~~~~~~~~~~~~~~~~~~~~~ controls.cpp:166:11: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 166 | { "Pause", 5*BOX_HEIGHT+5*SP, &newcontrols.gPauseControl }, | ^~~~~~~ controls.cpp:167:11: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 167 | { "Abort Game", 6*BOX_HEIGHT+6*SP, &newcontrols.gQuitControl }, | ^~~~~~~~~~~~ controls.cpp: In function 'void ConfigureControls()': controls.cpp:263:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 263 | error("Can't use Chicago font!\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ controls.cpp:267:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 267 | error("Can't load configuration splash!\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ controls.cpp:284:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 284 | "Cancel", chicago, fontserv, Cancel_callback); | ^~~~~~~~ controls.cpp:288:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 288 | "OK", chicago, fontserv, OK_callback); | ^~~~ controls.cpp: In function 'void HandleEvent(SDL_Event*)': controls.cpp:425:60: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 425 | screen->ScreenDump("ScreenShot", | ^~~~~~~~~~~~ controls.cpp: In function 'void ShowDawn()': controls.cpp:499:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 499 | "No eternal reward will forgive us", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ controls.cpp:500:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 500 | "now", | ^~~~~ controls.cpp:501:21: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 501 | "for", | ^~~~~ controls.cpp:502:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 502 | "wasting", | ^~~~~~~~~ controls.cpp:503:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 503 | "the", | ^~~~~ controls.cpp:504:37: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 504 | "dawn." | ^~~~~~~ controls.cpp:521:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 521 | error("Can't use Chicago font!\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ controls.cpp:525:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 525 | error("Can't load alien dawn splash!\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ controls.cpp:544:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 544 | "OK", chicago, fontserv, NULL); | ^~~~ controls.cpp: In function 'void LoadControls()': controls.cpp:110:14: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 110 | fread(&gSoundLevel, sizeof(gSoundLevel), 1, data); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ controls.cpp:111:14: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 111 | fread(&controls, sizeof(controls), 1, data); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ controls.cpp:112:14: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 112 | fread(&gGammaCorrect, sizeof(gGammaCorrect), 1, data); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-alt-linux-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I. -I./netlogic -I./screenlib -I./maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o dialog.o dialog.cpp dialog.cpp: In constructor 'Mac_Button::Mac_Button(int, int, int, int, char*, MFont*, FontServ*, int (*)())': dialog.cpp:32:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 32 | SetError("%s", SDL_GetError()); | ^~~~ x86_64-alt-linux-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I. -I./netlogic -I./screenlib -I./maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o fastrand.o fastrand.cpp fastrand.cpp: In function 'Uint16 FastRandom(Uint16)': fastrand.cpp:33:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 33 | register Uint32 calc; | ^~~~ fastrand.cpp:34:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 34 | register Uint32 regD0; | ^~~~~ fastrand.cpp:35:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 35 | register Uint32 regD1; | ^~~~~ fastrand.cpp:36:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 36 | register Uint32 regD2; | ^~~~~ x86_64-alt-linux-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I. -I./netlogic -I./screenlib -I./maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o init.o init.cpp In file included from init.cpp:11: load.h:109:39: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] 109 | sprintf(path, "%s"DIR_SEP"%s", directory, filename); | ^ load.h: In member function 'const char* LibPath::Path(const char*)': : warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] load.h:95:37: note: in expansion of macro 'LIBDIR' 95 | directory = LIBDIR; | ^~~~~~ init.cpp: In function 'void DoSplash()': init.cpp:68:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 68 | error("Can't load Ambrosia splash title! (ID=%d)\n", 999); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ init.cpp: In function 'void DoIntroScreen()': init.cpp:89:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 89 | error("Can't load intro title! (ID=%d)\n", 130); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ init.cpp:117:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 117 | error("Warning: %s\n", fontserv->Error()); | ^~~~~~~~~~~~~~~ init.cpp: In function 'int DoInitializations(Uint32)': init.cpp:732:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 732 | error("Couldn't initialize SDL: %s\n", SDL_GetError()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ init.cpp:749:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 749 | error("Warning: Couldn't open joystick '%s' : %s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ init.cpp:758:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 758 | error("Fatal: %s\n", fontserv->Error()); | ^~~~~~~~~~~~~ init.cpp:765:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 765 | error("Fatal: %s\n", sound->Error()); | ^~~~~~~~~~~~~ init.cpp:772:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 772 | error("Fatal: Couldn't load icon: %s\n", SDL_GetError()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ init.cpp:780:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 780 | error("Fatal: %s\n", screen->Error()); | ^~~~~~~~~~~~~ init.cpp:783:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 783 | screen->SetCaption("Maelstrom"); | ^~~~~~~~~~~ init.cpp:826:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 826 | error("%s\n", spriteres.Error()); | ^~~~~~ init.cpp: In function 'int LoadSprite(Mac_Resource*, Blit**, int, int)': init.cpp:1086:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1086 | "LoadSprite(%d+%d): Couldn't load ICN# resource!\n", baseID, index); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ init.cpp:1094:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1094 | "LoadSprite(%d+%d): Couldn't load icl8 resource!\n", baseID, index); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ init.cpp:1128:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1128 | "LoadSprite(%d+%d): Couldn't convert sprite image!\n", baseID, index); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ init.cpp: In function 'int LoadSmallSprite(Mac_Resource*, Blit**, int, int)': init.cpp:1206:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1206 | "LoadSmallSprite(%d+%d): Couldn't load ics# resource!\n", baseID,index); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ init.cpp:1214:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1214 | "LoadSmallSprite(%d+%d): Couldn't load ics8 resource!\n", baseID,index); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ init.cpp:1248:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1248 | "LoadSprite(%d+%d): Couldn't convert sprite image!\n", baseID, index); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-alt-linux-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I. -I./netlogic -I./screenlib -I./maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o load.o load.cpp In file included from load.cpp:7: load.h:109:39: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] 109 | sprintf(path, "%s"DIR_SEP"%s", directory, filename); | ^ load.cpp:84:38: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] 84 | snprintf(file, sizeof(file), "Images"DIR_SEP"Maelstrom_Titles#%d.bmp", title_id); | ^ load.cpp:106:38: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] 106 | snprintf(file, sizeof(file), "Images"DIR_SEP"Maelstrom_Icon#%hd.cicn", cicn_id); | ^ load.h: In member function 'const char* LibPath::Path(const char*)': : warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] load.h:95:37: note: in expansion of macro 'LIBDIR' 95 | directory = LIBDIR; | ^~~~~~ load.cpp: In function 'SDL_Surface* GetCIcon(FrameBuf*, short int)': load.cpp:108:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 108 | error("GetCIcon(%hd): Can't open CICN %s: ", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ load.cpp:117:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 117 | error("GetCIcon(%hd): Corrupt CICN!\n", cicn_id); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ load.cpp:124:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 124 | error("GetCIcon(%hd): Corrupt CICN!\n", cicn_id); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ load.cpp:136:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 136 | error("GetCIcon(%hd): Couldn't convert CICN!\n", cicn_id); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-alt-linux-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I. -I./netlogic -I./screenlib -I./maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o main.o main.cpp In file included from main.cpp:17: load.h:109:39: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] 109 | sprintf(path, "%s"DIR_SEP"%s", directory, filename); | ^ load.h: In member function 'const char* LibPath::Path(const char*)': : warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] load.h:95:37: note: in expansion of macro 'LIBDIR' 95 | directory = LIBDIR; | ^~~~~~ main.cpp: At global scope: main.cpp:25:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 25 | "Maelstrom v1.4.3 (GPL version 3.0.6) -- 10/19/2002 by Sam Lantinga\n"; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'void RunSpeedTest()': main.cpp:144:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 144 | mesg("Graphics speed test took %d microseconds per cycle.\r\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'void PrintUsage()': main.cpp:155:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 155 | error("\nUsage: %s [-netscores] -printscores\n", progname); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:156:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 156 | error("or\n"); | ^~~~~~ main.cpp:157:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 157 | error("Usage: %s \n\n", progname); | ^~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:158:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 158 | error("Where can be any of:\n\n" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 159 | " -fullscreen # Run Maelstrom in full-screen mode\n" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 160 | " -gamma [0-8] # Set the gamma correction\n" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 161 | " -volume [0-8] # Set the sound volume\n" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 162 | " -netscores # Use the world-wide network score server\n" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:165:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 165 | error("\n"); | ^~~~ main.cpp: In function 'int main(int, char**)': main.cpp:187:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 187 | "Unable to set effective group ID to the group id. -- Exiting.\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:215:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 215 | mesg("Current Gamma correction level: %d\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:222:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 222 | "Gamma correction value must be between 0 and 8. -- Exiting.\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:236:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 236 | mesg("Current volume level: %d\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:242:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 242 | "Volume must be a number between 0 and 8. -- Exiting.\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:255:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 255 | mesg("Checksum = %s\n", get_checksum(NULL, 0)); | ^~~~~~~~~~~~~~~~~ main.cpp:268:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 268 | error("%s", Version); | ^~~~ main.cpp:385:60: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 385 | screen->ScreenDump("ScoreDump", | ^~~~~~~~~~~ main.cpp: In function 'void DrawSoundLevel()': main.cpp:450:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 450 | error("Can't use Geneva font! -- Exiting.\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'void DrawMainScreen()': main.cpp:492:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 492 | error("Can't load 'title' title! (ID=%d)\n", 129); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:527:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 527 | error("Can't use New York (18) font! -- Exiting.\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:530:37: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 530 | DrawText(xOff+5, botDiv+22, "Name", bigfont, STYLE_ULINE, | ^~~~~~ main.cpp:533:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 533 | DrawText(sRt, botDiv+22, "Score", bigfont, STYLE_ULINE, | ^~~~~~~ main.cpp:537:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 537 | DrawText(wRt, botDiv+22, "Wave", bigfont, STYLE_ULINE, | ^~~~~~ main.cpp:544:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 544 | error("Can't use New York (14) font! -- Exiting.\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:573:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 573 | DrawText(xOff+5, botDiv+46+(10*18)+3, "Last Score: ", | ^~~~~~~~~~~~~~ main.cpp:586:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 586 | DrawKey(&pt, "P", " Start playing Maelstrom", RunPlayGame); | ^~~ main.cpp:586:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 586 | DrawKey(&pt, "P", " Start playing Maelstrom", RunPlayGame); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:590:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 590 | DrawKey(&pt, "C", " Configure the game controls", RunConfigureControls); | ^~~ main.cpp:590:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 590 | DrawKey(&pt, "C", " Configure the game controls", RunConfigureControls); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:594:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 594 | DrawKey(&pt, "Z", " Zap the high scores", RunZapScores); | ^~~ main.cpp:594:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 594 | DrawKey(&pt, "Z", " Zap the high scores", RunZapScores); | ^~~~~~~~~~~~~~~~~~~~~~ main.cpp:598:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 598 | DrawKey(&pt, "A", " About Maelstrom...", RunDoAbout); | ^~~ main.cpp:598:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 598 | DrawKey(&pt, "A", " About Maelstrom...", RunDoAbout); | ^~~~~~~~~~~~~~~~~~~~~ main.cpp:604:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 604 | DrawKey(&pt, "Q", " Quit Maelstrom", RunQuitGame); | ^~~ main.cpp:604:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 604 | DrawKey(&pt, "Q", " Quit Maelstrom", RunQuitGame); | ^~~~~~~~~~~~~~~~~ main.cpp:608:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 608 | DrawKey(&pt, "0", " ", DecrementSound); | ^~~ main.cpp:608:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 608 | DrawKey(&pt, "0", " ", DecrementSound); | ^~~ main.cpp:611:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 611 | error("Can't use Geneva font! -- Exiting.\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:614:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 614 | DrawText(pt.h+gKeyIcon->w+3, pt.v+19, "-", | ^~~ main.cpp:618:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 618 | DrawKey(&pt, "8", " Set Sound Volume", IncrementSound); | ^~~ main.cpp:618:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 618 | DrawKey(&pt, "8", " Set Sound Volume", IncrementSound); | ^~~~~~~~~~~~~~~~~~~ main.cpp:622:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 622 | DrawText(xOff+5+68, yOff+5+127, "Port to Linux by Sam Lantinga", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:624:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 624 | DrawText(rightDiv+10, yOff+259, "©1992-4 Ambrosia Software, Inc.", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ : warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] ./netlogic/netlogic.h:6:33: note: in expansion of macro 'VERSION' 6 | #define VERSION_STRING VERSION ".N" | ^~~~~~~ main.cpp:629:37: note: in expansion of macro 'VERSION_STRING' 629 | DrawText(xOff+20, yOff+151, VERSION_STRING, | ^~~~~~~~~~~~~~ main.cpp: In function 'void DrawKey(MPoint*, char*, char*, void (*)())': main.cpp:650:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 650 | error("Can't use Geneva font! -- Exiting.\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'void Message(char*)': main.cpp:677:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 677 | error("Can't use New York(14) font! -- Exiting.\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-alt-linux-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I. -I./netlogic -I./screenlib -I./maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o myerror.o myerror.cpp x86_64-alt-linux-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I. -I./netlogic -I./screenlib -I./maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o netscore.o netscore.cpp In file included from netscore.cpp:10: netscore.cpp: In function 'void RegisterHighScore(Scores)': netscore.h:4:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4 | #define SCORE_HOST "devolution.com" | ^~~~~~~~~~~~~~~~ netscore.cpp:27:35: note: in expansion of macro 'SCORE_HOST' 27 | remote = Goto_ScoreServer(SCORE_HOST, SCORE_PORT); | ^~~~~~~~~~ netscore.cpp:30:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 30 | "Warning: Couldn't connect to Maelstrom Score Server.\r\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ netscore.cpp:31:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 31 | error("-- High Score not registered.\r\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ netscore.cpp:42:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 42 | error("Warning: Score Server protocol error.\r\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ netscore.cpp:43:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 43 | error("-- High Score not registered.\r\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ netscore.cpp:54:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 54 | error("Warning: short authentication key.\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ netscore.cpp:68:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 68 | error("New high score was rejected: %s", netbuf); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ netscore.cpp: In function 'int NetLoadScores()': netscore.h:4:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4 | #define SCORE_HOST "devolution.com" | ^~~~~~~~~~~~~~~~ netscore.cpp:124:35: note: in expansion of macro 'SCORE_HOST' 124 | remote = Goto_ScoreServer(SCORE_HOST, SCORE_PORT); | ^~~~~~~~~~ netscore.cpp:127:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 127 | "Warning: Couldn't connect to Maelstrom Score Server.\r\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ netscore.cpp:171:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 171 | "Warning: Couldn't read complete score list!\r\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ netscore.cpp:172:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 172 | error("Line was: %s", netbuf); | ^~~~~~~~~~~~~~ x86_64-alt-linux-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I. -I./netlogic -I./screenlib -I./maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o rect.o rect.cpp x86_64-alt-linux-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I. -I./netlogic -I./screenlib -I./maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o scores.o scores.cpp In file included from scores.cpp:16: load.h:109:39: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] 109 | sprintf(path, "%s"DIR_SEP"%s", directory, filename); | ^ load.h: In member function 'const char* LibPath::Path(const char*)': : warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] load.h:95:37: note: in expansion of macro 'LIBDIR' 95 | directory = LIBDIR; | ^~~~~~ scores.cpp: In function 'void LoadScores()': scores.cpp:43:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 43 | mesg("Using local score file\n\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ scores.cpp:54:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 54 | "Unable to set group ID to the effective group id. -- Exiting.\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ scores.cpp:69:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 69 | "Unable to set group ID to that of the user. -- Exiting.\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ scores.cpp: In function 'void SaveScores()': scores.cpp:97:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 97 | "Unable to set group ID to the effective group id. -- Exiting.\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ scores.cpp:110:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 110 | error("Warning: Couldn't save scores to %s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ scores.cpp:115:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 115 | "Unable to set group ID to that of the user. -- Exiting.\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ scores.cpp: In function 'int ZapHighScores()': scores.cpp:166:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 166 | error("Can't use Chicago font!\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ scores.cpp:170:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 170 | error("Can't load score zapping splash!\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ scores.cpp:179:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 179 | "Clear", chicago, fontserv, Clear_callback); | ^~~~~~~ scores.cpp:183:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 183 | "Cancel", chicago, fontserv, Cancel_callback); | ^~~~~~~~ scores.cpp: In function 'int GetStartLevel()': scores.cpp:219:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 219 | "Enter the level to start from (1-40). This"; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ scores.cpp:221:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 221 | "disqualifies you from a high score..."; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ scores.cpp:222:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 222 | static char *Ltext3 = "Level:"; | ^~~~~~~~ scores.cpp:223:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 223 | static char *Ltext4 = "Lives:"; | ^~~~~~~~ scores.cpp:228:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 228 | static char *turbotext = "Turbofunk On"; | ^~~~~~~~~~~~~~ scores.cpp:238:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 238 | error("Can't use Chicago font!\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ scores.cpp:242:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 242 | error("Can't load alien level splash!\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ scores.cpp:261:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 261 | "Cancel", chicago, fontserv, Cancel2_callback); | ^~~~~~~~ scores.cpp:264:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 264 | "Do it!", chicago, fontserv, Level_callback); | ^~~~~~~~ x86_64-alt-linux-g++ -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I. -I./netlogic -I./screenlib -I./maclib -DLIBDIR=\"/usr/share/Maelstrom\" -o Maelstrom checksum.o controls.o dialog.o fastrand.o init.o load.o main.o myerror.o netscore.o rect.o scores.o netlogic/liblogic.a screenlib/libSDLscreen.a maclib/libSDLmac.a -lm -lSDL -lpthread -lSDL_net x86_64-alt-linux-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"Maelstrom\" -DVERSION=\"3.0.6\" -I. -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I. -I./netlogic -I./screenlib -I./maclib -DLIBDIR=\"/usr/share/Maelstrom\" -c -o Maelstrom-netd.o Maelstrom-netd.c Maelstrom-netd.c: In function 'DisconnectPlayer': Maelstrom-netd.c:48:24: error: implicit declaration of function 'free' [-Wimplicit-function-declaration] 48 | (void) free(players[which].packet); | ^~~~ Maelstrom-netd.c:24:1: note: include '' or provide a declaration of 'free' 23 | #include "protocol.h" +++ |+#include 24 | Maelstrom-netd.c:48:24: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 48 | (void) free(players[which].packet); | ^~~~ Maelstrom-netd.c:48:24: note: include '' or provide a declaration of 'free' Maelstrom-netd.c: In function 'SendError': Maelstrom-netd.c:62:17: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 62 | exit(3); | ^~~~ Maelstrom-netd.c:62:17: note: include '' or provide a declaration of 'exit' Maelstrom-netd.c:62:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] Maelstrom-netd.c:62:17: note: include '' or provide a declaration of 'exit' Maelstrom-netd.c: In function 'Fatal': Maelstrom-netd.c:82:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 82 | exit(3); | ^~~~ Maelstrom-netd.c:82:9: note: include '' or provide a declaration of 'exit' Maelstrom-netd.c: In function 'CheckPlayers': Maelstrom-netd.c:91:15: error: implicit declaration of function 'time' [-Wimplicit-function-declaration] 91 | now = time(NULL); | ^~~~ Maelstrom-netd.c:24:1: note: 'time' is defined in header ''; this is probably fixable by adding '#include ' 23 | #include "protocol.h" +++ |+#include 24 | Maelstrom-netd.c: In function 'CheckNewGame': Maelstrom-netd.c:127:33: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 127 | sprintf(buffer, | ^~~~~~ | | | unsigned char * In file included from /usr/include/features.h:503, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from Maelstrom-netd.c:4: /usr/include/bits/stdio2.h:28:1: note: expected 'char *' but argument is of type 'unsigned char *' 28 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ Maelstrom-netd.c:157:45: error: implicit declaration of function 'inet_ntoa' [-Wimplicit-function-declaration] 157 | strcpy(ptr, (char *)inet_ntoa(player->raddr.sin_addr)); | ^~~~~~~~~ Maelstrom-netd.c:157:37: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 157 | strcpy(ptr, (char *)inet_ntoa(player->raddr.sin_addr)); | ^ Maelstrom-netd.c: In function 'I_Crashed': Maelstrom-netd.c:181:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 181 | exit(sig); | ^~~~ Maelstrom-netd.c:181:9: note: include '' or provide a declaration of 'exit' Maelstrom-netd.c: At top level: Maelstrom-netd.c:184:1: error: return type defaults to 'int' [-Wimplicit-int] 184 | main(int argc, char *argv[]) | ^~~~ Maelstrom-netd.c: In function 'main': Maelstrom-netd.c:198:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 198 | exit(3); | ^~~~ Maelstrom-netd.c:198:17: note: include '' or provide a declaration of 'exit' Maelstrom-netd.c:207:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 207 | exit(3); | ^~~~ Maelstrom-netd.c:207:17: note: include '' or provide a declaration of 'exit' Maelstrom-netd.c:211:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 211 | exit(3); | ^~~~ Maelstrom-netd.c:211:17: note: include '' or provide a declaration of 'exit' Maelstrom-netd.c:250:33: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 250 | exit(3); | ^~~~ Maelstrom-netd.c:250:33: note: include '' or provide a declaration of 'exit' Maelstrom-netd.c:266:33: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 266 | exit(3); | ^~~~ Maelstrom-netd.c:266:33: note: include '' or provide a declaration of 'exit' Maelstrom-netd.c:272:63: warning: pointer targets in passing argument 3 of 'accept' differ in signedness [-Wpointer-sign] 272 | &players[slot].raddr, &clilen)) < 0 ) { | ^~~~~~~ | | | int * In file included from Maelstrom-netd.c:10: /usr/include/sys/socket.h:307:42: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'int *' 307 | socklen_t *__restrict __addr_len); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ Maelstrom-netd.c:274:33: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 274 | exit(3); | ^~~~ Maelstrom-netd.c:274:33: note: include '' or provide a declaration of 'exit' Maelstrom-netd.c:357:33: error: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] 357 | malloc(players[slot].packetlen)) == NULL) { | ^~~~~~ Maelstrom-netd.c:357:33: note: include '' or provide a declaration of 'malloc' Maelstrom-netd.c:357:33: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] Maelstrom-netd.c:357:33: note: include '' or provide a declaration of 'malloc' Maelstrom-netd.c:367:34: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=] 367 | printf(" the remote address is %s:%lu\n", | ~^ | | | char * | %d 368 | inet_ntoa(players[slot].raddr.sin_addr), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int Maelstrom-netd.c:367:38: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'int' [-Wformat=] 367 | printf(" the remote address is %s:%lu\n", | ~~^ | | | long unsigned int | %u Maelstrom-netd.c: In function 'SendError': Maelstrom-netd.c:68:16: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 68 | (void) write(players[which].sockfd, mesgbuf, mesglen); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Maelstrom-netd.c: In function 'CheckNewGame': Maelstrom-netd.c:169:32: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 169 | (void) write(players[positions[i]].sockfd, buffer, len); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[1]: *** [Makefile:548: Maelstrom-netd.o] Error 1 make[1]: Leaving directory '/usr/src/RPM/BUILD/Maelstrom-3.0.6' make: *** [Makefile:578: all-recursive] Error 1 make: Leaving directory '/usr/src/RPM/BUILD/Maelstrom-3.0.6' error: Bad exit status from /usr/src/tmp/rpm-tmp.46143 (%build) RPM build errors: Bad exit status from /usr/src/tmp/rpm-tmp.46143 (%build) Command exited with non-zero status 1 6.00user 1.81system 0:06.42elapsed 121%CPU (0avgtext+0avgdata 72456maxresident)k 0inputs+0outputs (0major+331455minor)pagefaults 0swaps hsh-rebuild: rebuild of `Maelstrom-3.0.6-alt3.1.qa1.src.rpm' failed. Command exited with non-zero status 1 3.86user 2.80system 0:20.24elapsed 32%CPU (0avgtext+0avgdata 136216maxresident)k 392inputs+0outputs (0major+210010minor)pagefaults 0swaps