=>> Building games/brikx build started at Sat Apr 6 22:02:59 BST 2024 port directory: /usr/ports/games/brikx package name: brikx-0.4.5_9 building for: FreeBSD pkg-builder.dan.net.uk 13.2-RELEASE-p10 FreeBSD 13.2-RELEASE-p10 amd64 maintained by: amdmi3@FreeBSD.org Makefile datestamp: -rw-r--r-- 1 root wheel 875 Mar 8 2023 /usr/ports/games/brikx/Makefile Ports top last git commit: c2c35d895e Ports top unclean checkout: yes Port dir last git commit: c014f9c79a Port dir unclean checkout: no Poudriere version: poudriere-git-3.4.99.20240122_1 Host OSVERSION: 1400097 Jail OSVERSION: 1302001 Job Id: 13 ---Begin Environment--- SHELL=/bin/csh OSVERSION=1302001 UNAME_v=FreeBSD 13.2-RELEASE-p10 UNAME_r=13.2-RELEASE-p10 BLOCKSIZE=K MAIL=/var/mail/root MM_CHARSET=UTF-8 LANG=C.UTF-8 STATUS=1 HOME=/root PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin MAKE_OBJDIR_CHECK_WRITABLE=0 LOCALBASE=/usr/local USER=root POUDRIERE_NAME=poudriere-git LIBEXECPREFIX=/usr/local/libexec/poudriere POUDRIERE_VERSION=3.4.99.20240122_1 MASTERMNT=/usr/local/poudriere/data/.m/13-amd64-default-dan/ref LC_COLLATE=C POUDRIERE_BUILD_TYPE=bulk PACKAGE_BUILDING=yes SAVED_TERM=screen OUTPUT_REDIRECTED_STDERR=4 OUTPUT_REDIRECTED=1 PWD=/usr/local/poudriere/data/.m/13-amd64-default-dan/13/.p OUTPUT_REDIRECTED_STDOUT=3 P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS MASTERNAME=13-amd64-default-dan SCRIPTPREFIX=/usr/local/share/poudriere SCRIPTNAME=bulk.sh OLDPWD=/usr/local/poudriere/data/.m/13-amd64-default-dan/ref/.p/pool POUDRIERE_PKGNAME=poudriere-git-3.4.99.20240122_1 SCRIPTPATH=/usr/local/share/poudriere/bulk.sh POUDRIEREPATH=/usr/local/bin/poudriere ---End Environment--- ---Begin Poudriere Port Flags/Env--- PORT_FLAGS= PKGENV= FLAVOR= MAKE_ARGS= ---End Poudriere Port Flags/Env--- ---Begin OPTIONS List--- ---End OPTIONS List--- --MAINTAINER-- amdmi3@FreeBSD.org --End MAINTAINER-- --CONFIGURE_ARGS-- --prefix=/usr/local ${_LATE_CONFIGURE_ARGS} --End CONFIGURE_ARGS-- --CONFIGURE_ENV-- SDL_CONFIG=/usr/local/bin/sdl-config XDG_DATA_HOME=/wrkdirs/usr/ports/games/brikx/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/games/brikx/work XDG_CACHE_HOME=/wrkdirs/usr/ports/games/brikx/work/.cache HOME=/wrkdirs/usr/ports/games/brikx/work TMPDIR="/tmp" PATH=/ccache/libexec/ccache:/wrkdirs/usr/ports/games/brikx/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/games/brikx/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig SHELL=/bin/sh CONFIG_SHELL=/bin/sh CCACHE_DIR="/root/.ccache" CONFIG_SITE=/usr/ports/Templates/config.site lt_cv_sys_max_cmd_len=524288 --End CONFIGURE_ENV-- --MAKE_ENV-- SDL_CONFIG=/usr/local/bin/sdl-config XDG_DATA_HOME=/wrkdirs/usr/ports/games/brikx/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/games/brikx/work XDG_CACHE_HOME=/wrkdirs/usr/ports/games/brikx/work/.cache HOME=/wrkdirs/usr/ports/games/brikx/work TMPDIR="/tmp" PATH=/ccache/libexec/ccache:/wrkdirs/usr/ports/games/brikx/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/games/brikx/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local LOCALBASE=/usr/local CC="cc" CFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" -fstack-protector-strong " LIBS="" CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing -std=c++98 " CCACHE_DIR="/root/.ccache" BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 0644" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" --End MAKE_ENV-- --PLIST_SUB-- OSREL=13.2 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/brikx" EXAMPLESDIR="share/examples/brikx" DATADIR="share/brikx" WWWDIR="www/brikx" ETCDIR="etc/brikx" --End PLIST_SUB-- --SUB_LIST-- PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/brikx DOCSDIR=/usr/local/share/doc/brikx EXAMPLESDIR=/usr/local/share/examples/brikx WWWDIR=/usr/local/www/brikx ETCDIR=/usr/local/etc/brikx --End SUB_LIST-- ---Begin make.conf--- USE_PACKAGE_DEPENDS=yes BATCH=yes WRKDIRPREFIX=/wrkdirs PORTSDIR=/usr/ports PACKAGES=/packages DISTDIR=/distfiles FORCE_PACKAGE=yes PACKAGE_BUILDING=yes PACKAGE_BUILDING_FLAVORS=yes #### #### CCACHE_CPP2=1 WITH_SSP_PORTS=yes WITH_SSP=yes #WITH_LTO=yes DISABLE_LICENSES=yes LICENSES_ACCEPTED=AGPLv3 APACHE10 APACHE11 APACHE20 ART10 ARTPERL10 ART20 BSD BSD2CLAUSE BSD3CLAUSE BSD4CLAUSE BSL CC0-1.0 CDDL ClArtistic EPL GFDL GMGPL GPLv1 GPLv2 GPLv3 GPLv3RLE ISCL LGPL20 LGPL21 LGPL3 LPPL10 LPPL11 LPPL12 LPPL13 LPPL13a LPPL13b LPPL13c MIT MPL OpenSSL OFL10 OFL11 OWL PostgreSQL PHP202 PHP30 PHP301 PSFL RUBY ZLIB ZPL21 SVM-Light EULA ALASIR Microsoft-exFAT SIMIAN UDEVGAME unknown MTA COMMERCIAL teamspeak NO_LICENSES_DIALOGS=yes #### #### NO_IGNORE=yes DEFAULT_VERSIONS+=ssl=openssl mysql=8.0 imagemagick=7 samba=4.13 java=18 WITH_SETID_MODE=force PHP_ZTS=enabled OPTIONS_UNSET+=OPENJPEG OPTIONS_UNSET+=GSSAPI_BASE OPTIONS_SET+=ZTS OPTIONS_SET+=GSSAPI_NONE WITH_CCACHE_BUILD=yes CCACHE_DIR=/root/.ccache NO_CCACHE_DEPEND=1 CCACHE_WRAPPER_PATH= /ccache/libexec/ccache #### Misc Poudriere #### .include "/etc/make.conf.ports_env" GID=0 UID=0 DISABLE_MAKE_JOBS=poudriere ---End make.conf--- --Resource limits-- cpu time (seconds, -t) unlimited file size (512-blocks, -f) unlimited data seg size (kbytes, -d) 33554432 stack size (kbytes, -s) 524288 core file size (512-blocks, -c) unlimited max memory size (kbytes, -m) unlimited locked memory (kbytes, -l) unlimited max user processes (-u) 89999 open files (-n) 8192 virtual mem size (kbytes, -v) unlimited swap limit (kbytes, -w) unlimited socket buffer size (bytes, -b) unlimited pseudo-terminals (-p) unlimited kqueues (-k) unlimited umtx shared locks (-o) unlimited --End resource limits-- =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> brikx-0.4.5_9 depends on file: /usr/local/sbin/pkg - not found ===> Installing existing package /packages/All/pkg-1.20.9_1.pkg [pkg-builder.dan.net.uk] Installing pkg-1.20.9_1... [pkg-builder.dan.net.uk] Extracting pkg-1.20.9_1: .......... done ===> brikx-0.4.5_9 depends on file: /usr/local/sbin/pkg - found ===> Returning to build of brikx-0.4.5_9 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Fetching all distfiles required by brikx-0.4.5_9 for building =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Fetching all distfiles required by brikx-0.4.5_9 for building => SHA256 Checksum OK for brikx-0.4.5-src.tar.bz2. =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Fetching all distfiles required by brikx-0.4.5_9 for building ===> Extracting for brikx-0.4.5_9 => SHA256 Checksum OK for brikx-0.4.5-src.tar.bz2. =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Patching for brikx-0.4.5_9 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> brikx-0.4.5_9 depends on file: /usr/local/bin/sdl-config - not found ===> Installing existing package /packages/All/sdl-1.2.15_17,2.pkg [pkg-builder.dan.net.uk] Installing sdl-1.2.15_17,2... [pkg-builder.dan.net.uk] `-- Installing aalib-1.4.r5_14... [pkg-builder.dan.net.uk] | `-- Installing indexinfo-0.3.1... [pkg-builder.dan.net.uk] | `-- Extracting indexinfo-0.3.1: . done [pkg-builder.dan.net.uk] `-- Extracting aalib-1.4.r5_14: .......... done [pkg-builder.dan.net.uk] `-- Installing libGLU-9.0.2_2... [pkg-builder.dan.net.uk] | `-- Installing libglvnd-1.7.0... [pkg-builder.dan.net.uk] | | `-- Installing libX11-1.8.7_1,1... [pkg-builder.dan.net.uk] | | `-- Installing libxcb-1.16.1... [pkg-builder.dan.net.uk] | | | `-- Installing libXau-1.0.9_1... [pkg-builder.dan.net.uk] | | | `-- Extracting libXau-1.0.9_1: .......... done [pkg-builder.dan.net.uk] | | | `-- Installing libXdmcp-1.1.5... [pkg-builder.dan.net.uk] | | | `-- Installing xorgproto-2023.2... [pkg-builder.dan.net.uk] | | | `-- Extracting xorgproto-2023.2: .......... done [pkg-builder.dan.net.uk] | | | `-- Extracting libXdmcp-1.1.5: ...... done [pkg-builder.dan.net.uk] | | `-- Extracting libxcb-1.16.1: .......... done [pkg-builder.dan.net.uk] | | `-- Extracting libX11-1.8.7_1,1: .......... done [pkg-builder.dan.net.uk] | | `-- Installing libXext-1.3.6,1... [pkg-builder.dan.net.uk] | | `-- Extracting libXext-1.3.6,1: .......... done [pkg-builder.dan.net.uk] | `-- Extracting libglvnd-1.7.0: .......... done [pkg-builder.dan.net.uk] `-- Extracting libGLU-9.0.2_2: ..... done [pkg-builder.dan.net.uk] `-- Installing libXrandr-1.5.2_1... [pkg-builder.dan.net.uk] | `-- Installing libXrender-0.9.10_2... [pkg-builder.dan.net.uk] | `-- Extracting libXrender-0.9.10_2: ....... done [pkg-builder.dan.net.uk] `-- Extracting libXrandr-1.5.2_1: .......... done [pkg-builder.dan.net.uk] Extracting sdl-1.2.15_17,2: .......... done ===== Message from aalib-1.4.r5_14: -- ===> NOTICE: The aalib port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://docs.freebsd.org/en/articles/contributing/#ports-contributing ===== Message from sdl-1.2.15_17,2: -- Your SDL library has been built with libvgl support, which means that you can run almost any SDL application straight on your console (VESA 2.0 compatible videocard is required). To do this you have to load the vesa kernel module or enable it in your kernel, and set environment variable "SDL_VIDEODRIVER=vgl". ===> brikx-0.4.5_9 depends on file: /usr/local/bin/sdl-config - found ===> Returning to build of brikx-0.4.5_9 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> brikx-0.4.5_9 depends on shared library: libSDL_image.so - not found ===> Installing existing package /packages/All/sdl_image-1.2.12_13.pkg [pkg-builder.dan.net.uk] Installing sdl_image-1.2.12_13... [pkg-builder.dan.net.uk] `-- Installing jpeg-turbo-3.0.2... [pkg-builder.dan.net.uk] `-- Extracting jpeg-turbo-3.0.2: .......... done [pkg-builder.dan.net.uk] `-- Installing png-1.6.43... [pkg-builder.dan.net.uk] `-- Extracting png-1.6.43: .......... done [pkg-builder.dan.net.uk] `-- Installing tiff-4.4.0_3... [pkg-builder.dan.net.uk] | `-- Installing jbigkit-2.1_2... [pkg-builder.dan.net.uk] | `-- Extracting jbigkit-2.1_2: .......... done [pkg-builder.dan.net.uk] | `-- Installing libdeflate-1.19... [pkg-builder.dan.net.uk] | `-- Extracting libdeflate-1.19: .......... done [pkg-builder.dan.net.uk] | `-- Installing zstd-1.5.5_1... [pkg-builder.dan.net.uk] | | `-- Installing liblz4-1.9.4_1,1... [pkg-builder.dan.net.uk] | | `-- Extracting liblz4-1.9.4_1,1: .......... done [pkg-builder.dan.net.uk] | `-- Extracting zstd-1.5.5_1: .......... done [pkg-builder.dan.net.uk] `-- Extracting tiff-4.4.0_3: .......... done [pkg-builder.dan.net.uk] `-- Installing webp-1.3.2_1... [pkg-builder.dan.net.uk] | `-- Installing freeglut-3.2.1... [pkg-builder.dan.net.uk] | | `-- Installing libICE-1.1.0_2,1... [pkg-builder.dan.net.uk] | | `-- Extracting libICE-1.1.0_2,1: .......... done [pkg-builder.dan.net.uk] | | `-- Installing libXi-1.8_1,1... [pkg-builder.dan.net.uk] | | `-- Installing libXfixes-6.0.0_1... [pkg-builder.dan.net.uk] | | `-- Extracting libXfixes-6.0.0_1: ....... done [pkg-builder.dan.net.uk] | | `-- Extracting libXi-1.8_1,1: .......... done [pkg-builder.dan.net.uk] | | `-- Installing libXxf86vm-1.1.4_4... [pkg-builder.dan.net.uk] | | `-- Extracting libXxf86vm-1.1.4_4: .......... done [pkg-builder.dan.net.uk] | `-- Extracting freeglut-3.2.1: .......... done [pkg-builder.dan.net.uk] | `-- Installing giflib-5.2.1_1... [pkg-builder.dan.net.uk] | `-- Extracting giflib-5.2.1_1: .......... done [pkg-builder.dan.net.uk] `-- Extracting webp-1.3.2_1: .......... done [pkg-builder.dan.net.uk] Extracting sdl_image-1.2.12_13: ....... done ===== Message from freeglut-3.2.1: -- Joystick support is untested and it is unknown if it works. Do not hesitate to contact x11@FreeBSD.org if this causes issues. ===> brikx-0.4.5_9 depends on shared library: libSDL_image.so - found (/usr/local/lib/libSDL_image.so) ===> Returning to build of brikx-0.4.5_9 ===> brikx-0.4.5_9 depends on shared library: libSDL_mixer.so - not found ===> Installing existing package /packages/All/sdl_mixer-1.2.12_14.pkg [pkg-builder.dan.net.uk] Installing sdl_mixer-1.2.12_14... [pkg-builder.dan.net.uk] `-- Installing flac-1.4.3_1,1... [pkg-builder.dan.net.uk] | `-- Installing libogg-1.3.5,4... [pkg-builder.dan.net.uk] | `-- Extracting libogg-1.3.5,4: .......... done [pkg-builder.dan.net.uk] `-- Extracting flac-1.4.3_1,1: .......... done [pkg-builder.dan.net.uk] `-- Installing libmikmod-3.3.11.1_2... [pkg-builder.dan.net.uk] `-- Extracting libmikmod-3.3.11.1_2: .......... done [pkg-builder.dan.net.uk] `-- Installing libvorbis-1.3.7_2,3... [pkg-builder.dan.net.uk] `-- Extracting libvorbis-1.3.7_2,3: .......... done [pkg-builder.dan.net.uk] `-- Installing smpeg-0.4.4_18... [pkg-builder.dan.net.uk] `-- Extracting smpeg-0.4.4_18: .......... done [pkg-builder.dan.net.uk] `-- Installing timidity-0.2i_1... [pkg-builder.dan.net.uk] `-- Extracting timidity-0.2i_1: .......... done [pkg-builder.dan.net.uk] Extracting sdl_mixer-1.2.12_14: ...... done ===== Message from timidity-0.2i_1: -- ===> NOTICE: The timidity port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://docs.freebsd.org/en/articles/contributing/#ports-contributing ===> brikx-0.4.5_9 depends on shared library: libSDL_mixer.so - found (/usr/local/lib/libSDL_mixer.so) ===> Returning to build of brikx-0.4.5_9 ===> brikx-0.4.5_9 depends on shared library: libSDL.so - found (/usr/local/lib/libSDL.so) ===> brikx-0.4.5_9 depends on shared library: libSDL_ttf.so - not found ===> Installing existing package /packages/All/sdl_ttf-2.0.11_8.pkg [pkg-builder.dan.net.uk] Installing sdl_ttf-2.0.11_8... [pkg-builder.dan.net.uk] `-- Installing freetype2-2.13.2... [pkg-builder.dan.net.uk] `-- Extracting freetype2-2.13.2: .......... done [pkg-builder.dan.net.uk] Extracting sdl_ttf-2.0.11_8: ........ done ===== Message from freetype2-2.13.2: -- The 2.7.x series now uses the new subpixel hinting mode (V40 port's option) as the default, emulating a modern version of ClearType. This change inevitably leads to different rendering results, and you might change port's options to adapt it to your taste (or use the new "FREETYPE_PROPERTIES" environment variable). The environment variable "FREETYPE_PROPERTIES" can be used to control the driver properties. Example: FREETYPE_PROPERTIES=truetype:interpreter-version=35 \ cff:no-stem-darkening=1 \ autofitter:warping=1 This allows to select, say, the subpixel hinting mode at runtime for a given application. If LONG_PCF_NAMES port's option was enabled, the PCF family names may include the foundry and information whether they contain wide characters. For example, "Sony Fixed" or "Misc Fixed Wide", instead of "Fixed". This can be disabled at run time with using pcf:no-long-family-names property, if needed. Example: FREETYPE_PROPERTIES=pcf:no-long-family-names=1 How to recreate fontconfig cache with using such environment variable, if needed: # env FREETYPE_PROPERTIES=pcf:no-long-family-names=1 fc-cache -fsv The controllable properties are listed in the section "Controlling FreeType Modules" in the reference's table of contents (/usr/local/share/doc/freetype2/reference/index.html, if documentation was installed). ===> brikx-0.4.5_9 depends on shared library: libSDL_ttf.so - found (/usr/local/lib/libSDL_ttf.so) ===> Returning to build of brikx-0.4.5_9 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Configuring for brikx-0.4.5_9 configure: loading site script /usr/ports/Templates/config.site checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... (cached) /usr/bin/awk checking whether make sets $(MAKE)... yes checking for C++ compiler default output file name... a.out checking whether the C++ compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether c++ accepts -g... yes checking for style of include used by make... GNU checking dependency style of c++... gcc3 ./configure: AM_PROG_LIBTOOL: not found checking for sdl-config... /usr/local/bin/sdl-config configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating config.h config.status: executing depfiles commands =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Building for brikx-0.4.5_9 /usr/bin/make all-recursive Making all in src if c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -std=c++98 -MT brikx-brikx.o -MD -MP -MF ".deps/brikx-brikx.Tpo" -c -o brikx-brikx.o `test -f 'brikx.cpp' || echo './'`brikx.cpp; then mv -f ".deps/brikx-brikx.Tpo" ".deps/brikx-brikx.Po"; else rm -f ".deps/brikx-brikx.Tpo"; exit 1; fi In file included from brikx.cpp:12: ./brikx.h:201:101: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] int SaveGame(level table,long score,int levnum,long timer,int timelimit,int diff,maxes m,char *name="0",char *leveltext=NULL); ^ ./brikx.h:202:108: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] int LoadGame(level &table,long &score,int &levnum,long &timer,int &timelimit,int &diff,maxes &m,char *name="0",char *leveltext=NULL); ^ brikx.cpp:50:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (loaded=IMG_Load(fname)) ~~~~~~^~~~~~~~~~~~~~~~ brikx.cpp:50:15: note: place parentheses around the assignment to silence this warning if (loaded=IMG_Load(fname)) ^ ( ) brikx.cpp:50:15: note: use '==' to turn this assignment into an equality comparison if (loaded=IMG_Load(fname)) ^ == brikx.cpp:125:25: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if (text) fprintf(f,text); ^~~~ brikx.cpp:125:25: note: treat the string as an argument to avoid this if (text) fprintf(f,text); ^ "%s", brikx.cpp:226:40: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] fprintf(f,"%d\n%d\n%d\n%s\n",h[j].score,h[j].level,h[j].difficulty,h[j].name); ~~ ^~~~~~~~~~ %ld 5 warnings generated. if c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -std=c++98 -MT brikx-button.o -MD -MP -MF ".deps/brikx-button.Tpo" -c -o brikx-button.o `test -f 'button.cpp' || echo './'`button.cpp; then mv -f ".deps/brikx-button.Tpo" ".deps/brikx-button.Po"; else rm -f ".deps/brikx-button.Tpo"; exit 1; fi button.cpp:25:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (loaded=IMG_Load(fname)) ~~~~~~^~~~~~~~~~~~~~~~ button.cpp:25:15: note: place parentheses around the assignment to silence this warning if (loaded=IMG_Load(fname)) ^ ( ) button.cpp:25:15: note: use '==' to turn this assignment into an equality comparison if (loaded=IMG_Load(fname)) ^ == button.cpp:27:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (image=SDL_DisplayFormat(loaded)) ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ button.cpp:27:18: note: place parentheses around the assignment to silence this warning if (image=SDL_DisplayFormat(loaded)) ^ ( ) button.cpp:27:18: note: use '==' to turn this assignment into an equality comparison if (image=SDL_DisplayFormat(loaded)) ^ == 2 warnings generated. if c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -std=c++98 -MT brikx-main.o -MD -MP -MF ".deps/brikx-main.Tpo" -c -o brikx-main.o `test -f 'main.cpp' || echo './'`main.cpp; then mv -f ".deps/brikx-main.Tpo" ".deps/brikx-main.Po"; else rm -f ".deps/brikx-main.Tpo"; exit 1; fi In file included from main.cpp:16: ./brikx.h:201:101: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] int SaveGame(level table,long score,int levnum,long timer,int timelimit,int diff,maxes m,char *name="0",char *leveltext=NULL); ^ ./brikx.h:202:108: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] int LoadGame(level &table,long &score,int &levnum,long &timer,int &timelimit,int &diff,maxes &m,char *name="0",char *leveltext=NULL); ^ main.cpp:147:34: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] void Help(long &timer,char *type="play") ^ main.cpp:251:44: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] Button *yes=new Button(270,200,100,40,IMAGE_YES), ^ ./brikx.h:114:25: note: expanded from macro 'IMAGE_YES' #define IMAGE_YES DIR_IMAGE"menu_yes.png" ^ ./brikx.h:90:25: note: expanded from macro 'DIR_IMAGE' #define DIR_IMAGE DIR_DATA"images/" ^ ./brikx.h:74:25: note: expanded from macro 'DIR_DATA' #define DIR_DATA "/usr/local/share/brikx/" ^ main.cpp:252:44: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] *no=new Button(270,280,100,40,IMAGE_NO); ^ ./brikx.h:115:25: note: expanded from macro 'IMAGE_NO' #define IMAGE_NO DIR_IMAGE"menu_no.png" ^ ./brikx.h:90:25: note: expanded from macro 'DIR_IMAGE' #define DIR_IMAGE DIR_DATA"images/" ^ ./brikx.h:74:25: note: expanded from macro 'DIR_DATA' #define DIR_DATA "/usr/local/share/brikx/" ^ main.cpp:254:34: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] SDL_Surface *text=LoadImage(IMAGE_ASKQUIT),*back=NULL; ^ ./brikx.h:118:25: note: expanded from macro 'IMAGE_ASKQUIT' #define IMAGE_ASKQUIT DIR_IMAGE"ask_quit.png" ^ ./brikx.h:90:25: note: expanded from macro 'DIR_IMAGE' #define DIR_IMAGE DIR_DATA"images/" ^ ./brikx.h:74:25: note: expanded from macro 'DIR_DATA' #define DIR_DATA "/usr/local/share/brikx/" ^ main.cpp:284:31: warning: 227 enumeration values not handled in switch: 'SDLK_UNKNOWN', 'SDLK_BACKSPACE', 'SDLK_TAB'... [-Wswitch] switch (event.key.keysym.sym) ^~~~~~~~~~~~~~~~~~~~ main.cpp:342:22: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] void Play(char *load="",int playlevel=0) ^ main.cpp:357:51: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] Button *button_build=new Button(500,260,60,60,IMAGE_BUILD),*button_clear=new Button(560,260,60,60,IMAGE_CLEAR), ^ ./brikx.h:120:25: note: expanded from macro 'IMAGE_BUILD' #define IMAGE_BUILD DIR_IMAGE"button_build.png" ^ ./brikx.h:90:25: note: expanded from macro 'DIR_IMAGE' #define DIR_IMAGE DIR_DATA"images/" ^ ./brikx.h:74:25: note: expanded from macro 'DIR_DATA' #define DIR_DATA "/usr/local/share/brikx/" ^ main.cpp:357:103: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] Button *button_build=new Button(500,260,60,60,IMAGE_BUILD),*button_clear=new Button(560,260,60,60,IMAGE_CLEAR), ^ ./brikx.h:121:25: note: expanded from macro 'IMAGE_CLEAR' #define IMAGE_CLEAR DIR_IMAGE"button_clear.png" ^ ./brikx.h:90:25: note: expanded from macro 'DIR_IMAGE' #define DIR_IMAGE DIR_DATA"images/" ^ ./brikx.h:74:25: note: expanded from macro 'DIR_DATA' #define DIR_DATA "/usr/local/share/brikx/" ^ main.cpp:358:43: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] *button_undo=new Button(500,330,60,60,IMAGE_UNDO),*button_normal=new Button(500,400,60,60,IMAGE_NORMAL), ^ ./brikx.h:128:25: note: expanded from macro 'IMAGE_UNDO' #define IMAGE_UNDO DIR_IMAGE"button_undo.png" ^ ./brikx.h:90:25: note: expanded from macro 'DIR_IMAGE' #define DIR_IMAGE DIR_DATA"images/" ^ ./brikx.h:74:25: note: expanded from macro 'DIR_DATA' #define DIR_DATA "/usr/local/share/brikx/" ^ main.cpp:358:95: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] *button_undo=new Button(500,330,60,60,IMAGE_UNDO),*button_normal=new Button(500,400,60,60,IMAGE_NORMAL), ^ ./brikx.h:122:25: note: expanded from macro 'IMAGE_NORMAL' #define IMAGE_NORMAL DIR_IMAGE"button_normal.png" ^ ./brikx.h:90:25: note: expanded from macro 'DIR_IMAGE' #define DIR_IMAGE DIR_DATA"images/" ^ ./brikx.h:74:25: note: expanded from macro 'DIR_DATA' #define DIR_DATA "/usr/local/share/brikx/" ^ main.cpp:359:45: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] *button_reload=new Button(560,330,60,60,IMAGE_RELOAD),*button_save=new Button(560,400,60,60,IMAGE_SAVEBUTTON), ^ ./brikx.h:145:22: note: expanded from macro 'IMAGE_RELOAD' #define IMAGE_RELOAD DIR_IMAGE"reload.png" ^ ./brikx.h:90:25: note: expanded from macro 'DIR_IMAGE' #define DIR_IMAGE DIR_DATA"images/" ^ ./brikx.h:74:25: note: expanded from macro 'DIR_DATA' #define DIR_DATA "/usr/local/share/brikx/" ^ main.cpp:359:97: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] *button_reload=new Button(560,330,60,60,IMAGE_RELOAD),*button_save=new Button(560,400,60,60,IMAGE_SAVEBUTTON), ^ ./brikx.h:129:26: note: expanded from macro 'IMAGE_SAVEBUTTON' #define IMAGE_SAVEBUTTON DIR_IMAGE"button_save.png" ^ ./brikx.h:90:25: note: expanded from macro 'DIR_IMAGE' #define DIR_IMAGE DIR_DATA"images/" ^ ./brikx.h:74:25: note: expanded from macro 'DIR_DATA' #define DIR_DATA "/usr/local/share/brikx/" ^ main.cpp:360:46: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] *button_push=new Button(500,190,60,60,IMAGE_PUSH),*button_swap=new Button(560,190,60,60,IMAGE_SWAP), ^ ./brikx.h:123:25: note: expanded from macro 'IMAGE_PUSH' #define IMAGE_PUSH DIR_IMAGE"button_push.png" ^ ./brikx.h:90:25: note: expanded from macro 'DIR_IMAGE' #define DIR_IMAGE DIR_DATA"images/" ^ ./brikx.h:74:25: note: expanded from macro 'DIR_DATA' #define DIR_DATA "/usr/local/share/brikx/" ^ main.cpp:360:96: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] *button_push=new Button(500,190,60,60,IMAGE_PUSH),*button_swap=new Button(560,190,60,60,IMAGE_SWAP), ^ ./brikx.h:124:25: note: expanded from macro 'IMAGE_SWAP' #define IMAGE_SWAP DIR_IMAGE"button_swap.png" ^ ./brikx.h:90:25: note: expanded from macro 'DIR_IMAGE' #define DIR_IMAGE DIR_DATA"images/" ^ ./brikx.h:74:25: note: expanded from macro 'DIR_DATA' #define DIR_DATA "/usr/local/share/brikx/" ^ main.cpp:361:39: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] *help=new Button(580,130,40,40,IMAGE_HELPBUTTON); ^ ./brikx.h:125:26: note: expanded from macro 'IMAGE_HELPBUTTON' #define IMAGE_HELPBUTTON DIR_IMAGE"help.png" ^ ./brikx.h:90:25: note: expanded from macro 'DIR_IMAGE' #define DIR_IMAGE DIR_DATA"images/" ^ ./brikx.h:74:25: note: expanded from macro 'DIR_DATA' #define DIR_DATA "/usr/local/share/brikx/" ^ main.cpp:368:33: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] SDL_Surface *base=LoadImage(BACKGROUND_BASE),*tile[MAX_TILES+1], ^ ./brikx.h:106:25: note: expanded from macro 'BACKGROUND_BASE' #define BACKGROUND_BASE DIR_IMAGE"play_sidebar.png" ^ ./brikx.h:90:25: note: expanded from macro 'DIR_IMAGE' #define DIR_IMAGE DIR_DATA"images/" ^ ./brikx.h:74:25: note: expanded from macro 'DIR_DATA' #define DIR_DATA "/usr/local/share/brikx/" ^ main.cpp:369:28: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] *clock=LoadImage(IMAGE_TIMER,0,0,0),*sand=LoadImage(IMAGE_SAND), ^ ./brikx.h:143:25: note: expanded from macro 'IMAGE_TIMER' #define IMAGE_TIMER DIR_IMAGE"timer.png" ^ ./brikx.h:90:25: note: expanded from macro 'DIR_IMAGE' #define DIR_IMAGE DIR_DATA"images/" ^ ./brikx.h:74:25: note: expanded from macro 'DIR_DATA' #define DIR_DATA "/usr/local/share/brikx/" ^ main.cpp:369:63: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] *clock=LoadImage(IMAGE_TIMER,0,0,0),*sand=LoadImage(IMAGE_SAND), ^ ./brikx.h:144:25: note: expanded from macro 'IMAGE_SAND' #define IMAGE_SAND DIR_IMAGE"sand.png" ^ ./brikx.h:90:25: note: expanded from macro 'DIR_IMAGE' #define DIR_IMAGE DIR_DATA"images/" ^ ./brikx.h:74:25: note: expanded from macro 'DIR_DATA' #define DIR_DATA "/usr/local/share/brikx/" ^ main.cpp:370:95: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] *text=NULL,*back=NULL,*cursor=NULL,*shine[SHINE_FRAMES],*toolcursor=LoadImage(IMAGE_TOOLCURSOR,0,0,0); ^ ./brikx.h:147:26: note: expanded from macro 'IMAGE_TOOLCURSOR' #define IMAGE_TOOLCURSOR DIR_IMAGE"tools_cursor.png" ^ ./brikx.h:90:25: note: expanded from macro 'DIR_IMAGE' #define DIR_IMAGE DIR_DATA"images/" ^ ./brikx.h:74:25: note: expanded from macro 'DIR_DATA' #define DIR_DATA "/usr/local/share/brikx/" ^ main.cpp:376:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (cursor=SDL_CreateRGBSurface(SDL_SRCALPHA | SDL_SWSURFACE | SDL_RLEACCEL,TILE_WIDTH,TILE_HEIGHT,BPP,rmask,gmask,bmask,amask)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:376:15: note: place parentheses around the assignment to silence this warning if (cursor=SDL_CreateRGBSurface(SDL_SRCALPHA | SDL_SWSURFACE | SDL_RLEACCEL,TILE_WIDTH,TILE_HEIGHT,BPP,rmask,gmask,bmask,amask)) ^ ( ) main.cpp:376:15: note: use '==' to turn this assignment into an equality comparison if (cursor=SDL_CreateRGBSurface(SDL_SRCALPHA | SDL_SWSURFACE | SDL_RLEACCEL,TILE_WIDTH,TILE_HEIGHT,BPP,rmask,gmask,bmask,amask)) ^ == main.cpp:387:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (shine[i]=LoadImage(s,0)) ~~~~~~~~^~~~~~~~~~~~~~~ main.cpp:387:23: note: place parentheses around the assignment to silence this warning if (shine[i]=LoadImage(s,0)) ^ ( ) main.cpp:387:23: note: use '==' to turn this assignment into an equality comparison if (shine[i]=LoadImage(s,0)) ^ == main.cpp:420:70: warning: data argument not used by format string [-Wformat-extra-args] if (verbose) fprintf(stderr,"WARNING: %s not found!\n",s,i); ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ main.cpp:451:22: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] back=LoadImage(BACKGROUND_BYE); ^ ./brikx.h:108:25: note: expanded from macro 'BACKGROUND_BYE' #define BACKGROUND_BYE DIR_IMAGE"bye.jpg" ^ ./brikx.h:90:25: note: expanded from macro 'DIR_IMAGE' #define DIR_IMAGE DIR_DATA"images/" ^ ./brikx.h:74:25: note: expanded from macro 'DIR_DATA' #define DIR_DATA "/usr/local/share/brikx/" ^ main.cpp:1107:93: warning: operator '?:' has lower precedence than '|'; '|' will be evaluated first [-Wbitwise-conditional-parentheses] screen=SDL_SetVideoMode(WIDTH,HEIGHT,BPP,SDL_SWSURFACE | (fullscreen=!fullscreen)?SDL_FULLSCREEN:0); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ main.cpp:1107:93: note: place parentheses around the '|' expression to silence this warning screen=SDL_SetVideoMode(WIDTH,HEIGHT,BPP,SDL_SWSURFACE | (fullscreen=!fullscreen)?SDL_FULLSCREEN:0); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ main.cpp:1107:93: note: place parentheses around the '?:' expression to evaluate it first screen=SDL_SetVideoMode(WIDTH,HEIGHT,BPP,SDL_SWSURFACE | (fullscreen=!fullscreen)?SDL_FULLSCREEN:0); ^ ( ) main.cpp:1118:24: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] Help(paused,"play"); ^ main.cpp:1101:18: warning: 220 enumeration values not handled in switch: 'SDLK_UNKNOWN', 'SDLK_BACKSPACE', 'SDLK_CLEAR'... [-Wswitch] switch (event.key.keysym.sym) ^~~~~~~~~~~~~~~~~~~~ main.cpp:1187:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] Help(paused,"play"); ^ main.cpp:1194:105: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] if (!SaveGame(table,score-cost[MODE_SAVE],levnum,step=timer-nulltime,timelimit,difficulty,max,"0",leveltext)) ^ main.cpp:1253:28: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (event.type = SDL_MOUSEBUTTONDOWN) ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ main.cpp:1253:28: note: place parentheses around the assignment to silence this warning if (event.type = SDL_MOUSEBUTTONDOWN) ^ ( ) main.cpp:1253:28: note: use '==' to turn this assignment into an equality comparison if (event.type = SDL_MOUSEBUTTONDOWN) ^ == main.cpp:1411:87: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] Button *b_full=new Button(LEFT,(int)round((HEIGHT-BORDERY*2)/DIVIDE*0+TOP),158,40,IMAGE_FULLSCREEN), ^ ./brikx.h:130:26: note: expanded from macro 'IMAGE_FULLSCREEN' #define IMAGE_FULLSCREEN DIR_IMAGE"menu_fullscreen.png" ^ ./brikx.h:90:25: note: expanded from macro 'DIR_IMAGE' #define DIR_IMAGE DIR_DATA"images/" ^ ./brikx.h:74:25: note: expanded from macro 'DIR_DATA' #define DIR_DATA "/usr/local/share/brikx/" ^ main.cpp:1412:93: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] *b_autoreload=new Button(LEFT,(int)round((HEIGHT-BORDERY*2)/DIVIDE*1+TOP),158,40,IMAGE_AUTORELOAD), ^ ./brikx.h:126:26: note: expanded from macro 'IMAGE_AUTORELOAD' #define IMAGE_AUTORELOAD DIR_IMAGE"menu_autoreload.png" ^ ./brikx.h:90:25: note: expanded from macro 'DIR_IMAGE' #define DIR_IMAGE DIR_DATA"images/" ^ ./brikx.h:74:25: note: expanded from macro 'DIR_DATA' #define DIR_DATA "/usr/local/share/brikx/" ^ main.cpp:1413:93: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] *b_autonormal=new Button(LEFT,(int)round((HEIGHT-BORDERY*2)/DIVIDE*2+TOP),158,40,IMAGE_AUTONORMAL), ^ ./brikx.h:127:26: note: expanded from macro 'IMAGE_AUTONORMAL' #define IMAGE_AUTONORMAL DIR_IMAGE"menu_autonormal.png" ^ ./brikx.h:90:25: note: expanded from macro 'DIR_IMAGE' #define DIR_IMAGE DIR_DATA"images/" ^ ./brikx.h:74:25: note: expanded from macro 'DIR_DATA' #define DIR_DATA "/usr/local/share/brikx/" ^ main.cpp:1414:90: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] *b_tileset=new Button(LEFT,(int)round((HEIGHT-BORDERY*2)/DIVIDE*3+TOP),158,40,IMAGE_TILESET), ^ ./brikx.h:131:25: note: expanded from macro 'IMAGE_TILESET' #define IMAGE_TILESET DIR_IMAGE"menu_tileset.png" ^ ./brikx.h:90:25: note: expanded from macro 'DIR_IMAGE' #define DIR_IMAGE DIR_DATA"images/" ^ ./brikx.h:74:25: note: expanded from macro 'DIR_DATA' #define DIR_DATA "/usr/local/share/brikx/" ^ main.cpp:1415:93: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] *b_difficulty=new Button(LEFT,(int)round((HEIGHT-BORDERY*2)/DIVIDE*4+TOP),158,40,IMAGE_DIFFICULTY), ^ ./brikx.h:132:26: note: expanded from macro 'IMAGE_DIFFICULTY' #define IMAGE_DIFFICULTY DIR_IMAGE"menu_difficulty.png" ^ ./brikx.h:90:25: note: expanded from macro 'DIR_IMAGE' #define DIR_IMAGE DIR_DATA"images/" ^ ./brikx.h:74:25: note: expanded from macro 'DIR_DATA' #define DIR_DATA "/usr/local/share/brikx/" ^ main.cpp:1416:90: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] *b_bgalpha=new Button(LEFT,(int)round((HEIGHT-BORDERY*2)/DIVIDE*5+TOP),158,40,IMAGE_BGALPHA), ^ ./brikx.h:133:25: note: expanded from macro 'IMAGE_BGALPHA' #define IMAGE_BGALPHA DIR_IMAGE"menu_bgalpha.png" ^ ./brikx.h:90:25: note: expanded from macro 'DIR_IMAGE' #define DIR_IMAGE DIR_DATA"images/" ^ ./brikx.h:74:25: note: expanded from macro 'DIR_DATA' #define DIR_DATA "/usr/local/share/brikx/" ^ main.cpp:1417:89: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] *b_cursor=new Button(LEFT,(int)round((HEIGHT-BORDERY*2)/DIVIDE*6+TOP),158,40,IMAGE_CURSOR), ^ ./brikx.h:134:25: note: expanded from macro 'IMAGE_CURSOR' #define IMAGE_CURSOR DIR_IMAGE"menu_cursor.png" ^ ./brikx.h:90:25: note: expanded from macro 'DIR_IMAGE' #define DIR_IMAGE DIR_DATA"images/" ^ ./brikx.h:74:25: note: expanded from macro 'DIR_DATA' #define DIR_DATA "/usr/local/share/brikx/" ^ main.cpp:1418:87: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] *b_back=new Button(LEFT,(int)round((HEIGHT-BORDERY*2)/DIVIDE*7+TOP),158,40,IMAGE_BACK); ^ ./brikx.h:135:25: note: expanded from macro 'IMAGE_BACK' #define IMAGE_BACK DIR_IMAGE"menu_back.png" ^ ./brikx.h:90:25: note: expanded from macro 'DIR_IMAGE' #define DIR_IMAGE DIR_DATA"images/" ^ ./brikx.h:74:25: note: expanded from macro 'DIR_DATA' #define DIR_DATA "/usr/local/share/brikx/" ^ main.cpp:1421:66: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] SDL_Surface *text=NULL,*back=NULL,*save=NULL,*tick=LoadImage(IMAGE_TICK,0),*cross=LoadImage(IMAGE_CROSS,0), ^ ./brikx.h:136:25: note: expanded from macro 'IMAGE_TICK' #define IMAGE_TICK DIR_IMAGE"tick.png" ^ ./brikx.h:90:25: note: expanded from macro 'DIR_IMAGE' #define DIR_IMAGE DIR_DATA"images/" ^ ./brikx.h:74:25: note: expanded from macro 'DIR_DATA' #define DIR_DATA "/usr/local/share/brikx/" ^ main.cpp:1421:97: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] SDL_Surface *text=NULL,*back=NULL,*save=NULL,*tick=LoadImage(IMAGE_TICK,0),*cross=LoadImage(IMAGE_CROSS,0), ^ ./brikx.h:137:25: note: expanded from macro 'IMAGE_CROSS' #define IMAGE_CROSS DIR_IMAGE"cross.png" ^ ./brikx.h:90:25: note: expanded from macro 'DIR_IMAGE' #define DIR_IMAGE DIR_DATA"images/" ^ ./brikx.h:74:25: note: expanded from macro 'DIR_DATA' #define DIR_DATA "/usr/local/share/brikx/" ^ main.cpp:1576:108: warning: operator '?:' has lower precedence than '|'; '|' will be evaluated first [-Wbitwise-conditional-parentheses] screen=SDL_SetVideoMode(WIDTH,HEIGHT,BPP,SDL_SWSURFACE | (fullscreen=!fullscreen)?SDL_FULLSCREEN:0); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ main.cpp:1576:108: note: place parentheses around the '|' expression to silence this warning screen=SDL_SetVideoMode(WIDTH,HEIGHT,BPP,SDL_SWSURFACE | (fullscreen=!fullscreen)?SDL_FULLSCREEN:0); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ main.cpp:1576:108: note: place parentheses around the '?:' expression to evaluate it first screen=SDL_SetVideoMode(WIDTH,HEIGHT,BPP,SDL_SWSURFACE | (fullscreen=!fullscreen)?SDL_FULLSCREEN:0); ^ ( ) main.cpp:1608:114: warning: operator '?:' has lower precedence than '|'; '|' will be evaluated first [-Wbitwise-conditional-parentheses] screen=SDL_SetVideoMode(WIDTH,HEIGHT,BPP,SDL_SWSURFACE | (fullscreen=!fullscreen)?SDL_FULLSCREEN:0); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ main.cpp:1608:114: note: place parentheses around the '|' expression to silence this warning screen=SDL_SetVideoMode(WIDTH,HEIGHT,BPP,SDL_SWSURFACE | (fullscreen=!fullscreen)?SDL_FULLSCREEN:0); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ main.cpp:1608:114: note: place parentheses around the '?:' expression to evaluate it first screen=SDL_SetVideoMode(WIDTH,HEIGHT,BPP,SDL_SWSURFACE | (fullscreen=!fullscreen)?SDL_FULLSCREEN:0); ^ ( ) main.cpp:1605:30: warning: 228 enumeration values not handled in switch: 'SDLK_UNKNOWN', 'SDLK_BACKSPACE', 'SDLK_TAB'... [-Wswitch] switch (event.key.keysym.sym) ^~~~~~~~~~~~~~~~~~~~ main.cpp:1661:33: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] SDL_Surface *base=LoadImage(BACKGROUND_EDIT),*tile[MAX_TILES],*tile_small[MAX_TILES],*text=NULL; ^ ./brikx.h:107:25: note: expanded from macro 'BACKGROUND_EDIT' #define BACKGROUND_EDIT DIR_IMAGE"edit.png" ^ ./brikx.h:90:25: note: expanded from macro 'DIR_IMAGE' #define DIR_IMAGE DIR_DATA"images/" ^ ./brikx.h:74:25: note: expanded from macro 'DIR_DATA' #define DIR_DATA "/usr/local/share/brikx/" ^ main.cpp:1662:91: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] Button *load=new Button(WINDOWX+TILE_WIDTH*8+TILE_WIDTH/2,WINDOWY+TILE_HEIGHT*7,32,32,IMAGE_LOAD), ^ ./brikx.h:140:24: note: expanded from macro 'IMAGE_LOAD' #define IMAGE_LOAD DIR_IMAGE"load.png" ^ ./brikx.h:90:25: note: expanded from macro 'DIR_IMAGE' #define DIR_IMAGE DIR_DATA"images/" ^ ./brikx.h:74:25: note: expanded from macro 'DIR_DATA' #define DIR_DATA "/usr/local/share/brikx/" ^ main.cpp:1663:82: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] *save=new Button(WINDOWX+TILE_WIDTH*9+4,WINDOWY+TILE_HEIGHT*7+4,24,24,IMAGE_SAVE), ^ ./brikx.h:141:24: note: expanded from macro 'IMAGE_SAVE' #define IMAGE_SAVE DIR_IMAGE"save.png" ^ ./brikx.h:90:25: note: expanded from macro 'DIR_IMAGE' #define DIR_IMAGE DIR_DATA"images/" ^ ./brikx.h:74:25: note: expanded from macro 'DIR_DATA' #define DIR_DATA "/usr/local/share/brikx/" ^ main.cpp:1664:92: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] *clock=new Button(WINDOWX+TILE_WIDTH*9+TILE_WIDTH/2,WINDOWY+TILE_HEIGHT*7,32,32,IMAGE_CLOCK), ^ ./brikx.h:142:25: note: expanded from macro 'IMAGE_CLOCK' #define IMAGE_CLOCK DIR_IMAGE"clock.png" ^ ./brikx.h:90:25: note: expanded from macro 'DIR_IMAGE' #define DIR_IMAGE DIR_DATA"images/" ^ ./brikx.h:74:25: note: expanded from macro 'DIR_DATA' #define DIR_DATA "/usr/local/share/brikx/" ^ main.cpp:1665:105: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] *play=new Button(WINDOWX+TILE_WIDTH*8+TILE_WIDTH/2,WINDOWY+TILE_HEIGHT*6+TILE_HEIGHT/2,32,32,IMAGE_EDITPLAY), ^ ./brikx.h:138:24: note: expanded from macro 'IMAGE_EDITPLAY' #define IMAGE_EDITPLAY DIR_IMAGE"play.png" ^ ./brikx.h:90:25: note: expanded from macro 'DIR_IMAGE' #define DIR_IMAGE DIR_DATA"images/" ^ ./brikx.h:74:25: note: expanded from macro 'DIR_DATA' #define DIR_DATA "/usr/local/share/brikx/" ^ main.cpp:1666:108: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] *maxbutt=new Button(WINDOWX+TILE_WIDTH*9+TILE_WIDTH/2,WINDOWY+TILE_HEIGHT*6+TILE_HEIGHT/2,32,32,IMAGE_MAXIMUMS); ^ ./brikx.h:139:25: note: expanded from macro 'IMAGE_MAXIMUMS' #define IMAGE_MAXIMUMS DIR_IMAGE"max.png" ^ ./brikx.h:90:25: note: expanded from macro 'DIR_IMAGE' #define DIR_IMAGE DIR_DATA"images/" ^ ./brikx.h:74:25: note: expanded from macro 'DIR_DATA' #define DIR_DATA "/usr/local/share/brikx/" ^ main.cpp:1684:99: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] if (verbose) fprintf(stderr,"WARNING: %s%s/%d.png not found!\n",DIR_TILESET,tileset,i); ~~ ^ %ld main.cpp:1691:104: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] if (verbose) fprintf(stderr,"WARNING: %s%s/small/%d.png not found!\n",DIR_TILESET,tileset,i); ~~ ^ %ld main.cpp:1737:52: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] if (play->Inside(event)) Play("",levnum); ^ main.cpp:1828:114: warning: operator '?:' has lower precedence than '|'; '|' will be evaluated first [-Wbitwise-conditional-parentheses] screen=SDL_SetVideoMode(WIDTH,HEIGHT,BPP,SDL_SWSURFACE | (fullscreen=!fullscreen)?SDL_FULLSCREEN:0); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ main.cpp:1828:114: note: place parentheses around the '|' expression to silence this warning screen=SDL_SetVideoMode(WIDTH,HEIGHT,BPP,SDL_SWSURFACE | (fullscreen=!fullscreen)?SDL_FULLSCREEN:0); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ main.cpp:1828:114: note: place parentheses around the '?:' expression to evaluate it first screen=SDL_SetVideoMode(WIDTH,HEIGHT,BPP,SDL_SWSURFACE | (fullscreen=!fullscreen)?SDL_FULLSCREEN:0); ^ ( ) main.cpp:1831:38: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] Play("",levnum); ^ main.cpp:1843:40: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] Help(i,"edit"); ^ main.cpp:1825:30: warning: 224 enumeration values not handled in switch: 'SDLK_UNKNOWN', 'SDLK_BACKSPACE', 'SDLK_TAB'... [-Wswitch] switch (event.key.keysym.sym) ^~~~~~~~~~~~~~~~~~~~ main.cpp:1932:30: warning: 229 enumeration values not handled in switch: 'SDLK_UNKNOWN', 'SDLK_BACKSPACE', 'SDLK_TAB'... [-Wswitch] switch (event.key.keysym.sym) ^~~~~~~~~~~~~~~~~~~~ main.cpp:2030:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (D=opendir(DIR_DATA)) closedir(D); ~^~~~~~~~~~~~~~~~~~ main.cpp:2030:10: note: place parentheses around the assignment to silence this warning if (D=opendir(DIR_DATA)) closedir(D); ^ ( ) main.cpp:2030:10: note: use '==' to turn this assignment into an equality comparison if (D=opendir(DIR_DATA)) closedir(D); ^ == main.cpp:2071:71: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] Button *button_play=new Button(450,BUTTONTOP+BUTTONSPACE*0,158,40,IMAGE_PLAY), ^ ./brikx.h:111:25: note: expanded from macro 'IMAGE_PLAY' #define IMAGE_PLAY DIR_IMAGE"menu_play.png" ^ ./brikx.h:90:25: note: expanded from macro 'DIR_IMAGE' #define DIR_IMAGE DIR_DATA"images/" ^ ./brikx.h:74:25: note: expanded from macro 'DIR_DATA' #define DIR_DATA "/usr/local/share/brikx/" ^ main.cpp:2072:75: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] *button_continue=new Button(450,BUTTONTOP+BUTTONSPACE*1,158,40,IMAGE_CONTINUE), ^ ./brikx.h:112:25: note: expanded from macro 'IMAGE_CONTINUE' #define IMAGE_CONTINUE DIR_IMAGE"menu_continue.png" ^ ./brikx.h:90:25: note: expanded from macro 'DIR_IMAGE' #define DIR_IMAGE DIR_DATA"images/" ^ ./brikx.h:74:25: note: expanded from macro 'DIR_DATA' #define DIR_DATA "/usr/local/share/brikx/" ^ main.cpp:2073:71: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] *button_edit=new Button(450,BUTTONTOP+BUTTONSPACE*2,158,40,IMAGE_EDIT), ^ ./brikx.h:113:25: note: expanded from macro 'IMAGE_EDIT' #define IMAGE_EDIT DIR_IMAGE"menu_edit.png" ^ ./brikx.h:90:25: note: expanded from macro 'DIR_IMAGE' #define DIR_IMAGE DIR_DATA"images/" ^ ./brikx.h:74:25: note: expanded from macro 'DIR_DATA' #define DIR_DATA "/usr/local/share/brikx/" ^ main.cpp:2074:74: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] *button_options=new Button(450,BUTTONTOP+BUTTONSPACE*3,158,40,IMAGE_OPTIONS), ^ ./brikx.h:119:25: note: expanded from macro 'IMAGE_OPTIONS' #define IMAGE_OPTIONS DIR_IMAGE"menu_options.png" ^ ./brikx.h:90:25: note: expanded from macro 'DIR_IMAGE' #define DIR_IMAGE DIR_DATA"images/" ^ ./brikx.h:74:25: note: expanded from macro 'DIR_DATA' #define DIR_DATA "/usr/local/share/brikx/" ^ main.cpp:2075:71: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] *button_help=new Button(450,BUTTONTOP+BUTTONSPACE*4,158,40,IMAGE_HELP), ^ ./brikx.h:116:25: note: expanded from macro 'IMAGE_HELP' #define IMAGE_HELP DIR_IMAGE"menu_help.png" ^ ./brikx.h:90:25: note: expanded from macro 'DIR_IMAGE' #define DIR_IMAGE DIR_DATA"images/" ^ ./brikx.h:74:25: note: expanded from macro 'DIR_DATA' #define DIR_DATA "/usr/local/share/brikx/" ^ main.cpp:2076:72: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] *button_highs=new Button(450,BUTTONTOP+BUTTONSPACE*5,158,40,IMAGE_HIGHS), ^ ./brikx.h:117:25: note: expanded from macro 'IMAGE_HIGHS' #define IMAGE_HIGHS DIR_IMAGE"menu_highs.png" ^ ./brikx.h:90:25: note: expanded from macro 'DIR_IMAGE' #define DIR_IMAGE DIR_DATA"images/" ^ ./brikx.h:74:25: note: expanded from macro 'DIR_DATA' #define DIR_DATA "/usr/local/share/brikx/" ^ main.cpp:2077:71: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] *button_quit=new Button(450,BUTTONTOP+BUTTONSPACE*6,158,40,IMAGE_QUIT); ^ ./brikx.h:110:25: note: expanded from macro 'IMAGE_QUIT' #define IMAGE_QUIT DIR_IMAGE"menu_quit.png" ^ ./brikx.h:90:25: note: expanded from macro 'DIR_IMAGE' #define DIR_IMAGE DIR_DATA"images/" ^ ./brikx.h:74:25: note: expanded from macro 'DIR_DATA' #define DIR_DATA "/usr/local/share/brikx/" ^ main.cpp:2091:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] menu=LoadImage(BACKGROUND_MENU); ^ ./brikx.h:105:25: note: expanded from macro 'BACKGROUND_MENU' #define BACKGROUND_MENU DIR_IMAGE"title_background.jpg" ^ ./brikx.h:90:25: note: expanded from macro 'DIR_IMAGE' #define DIR_IMAGE DIR_DATA"images/" ^ ./brikx.h:74:25: note: expanded from macro 'DIR_DATA' #define DIR_DATA "/usr/local/share/brikx/" ^ main.cpp:2152:63: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] if (button_continue->Inside(event)) Play("0"); ^ main.cpp:2172:114: warning: operator '?:' has lower precedence than '|'; '|' will be evaluated first [-Wbitwise-conditional-parentheses] screen=SDL_SetVideoMode(WIDTH,HEIGHT,BPP,SDL_SWSURFACE | (fullscreen=!fullscreen)?SDL_FULLSCREEN:0); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ main.cpp:2172:114: note: place parentheses around the '|' expression to silence this warning screen=SDL_SetVideoMode(WIDTH,HEIGHT,BPP,SDL_SWSURFACE | (fullscreen=!fullscreen)?SDL_FULLSCREEN:0); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ main.cpp:2172:114: note: place parentheses around the '?:' expression to evaluate it first screen=SDL_SetVideoMode(WIDTH,HEIGHT,BPP,SDL_SWSURFACE | (fullscreen=!fullscreen)?SDL_FULLSCREEN:0); ^ ( ) main.cpp:2159:30: warning: 223 enumeration values not handled in switch: 'SDLK_UNKNOWN', 'SDLK_BACKSPACE', 'SDLK_TAB'... [-Wswitch] switch (event.key.keysym.sym) ^~~~~~~~~~~~~~~~~~~~ 70 warnings generated. c++ -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -std=c++98 -fstack-protector-strong -o brikx -L/usr/local/lib brikx-brikx.o brikx-button.o brikx-main.o -lSDL_mixer -lSDL_image -lSDL_ttf -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL -pthread =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Staging for brikx-0.4.5_9 ===> Generating temporary packing list Making install in src test -z "/usr/local/bin" || /bin/sh ../mkinstalldirs "/wrkdirs/usr/ports/games/brikx/work/stage/usr/local/bin" install -s -m 555 'brikx' '/wrkdirs/usr/ports/games/brikx/work/stage/usr/local/bin/brikx' cd /wrkdirs/usr/ports/games/brikx/work/brikx/src/data && /bin/sh -c '(/usr/bin/find -Ed $1 $3 | /usr/bin/cpio -dumpl $2 >/dev/null 2>&1) && /usr/bin/find -Ed $1 $3 \( -type d -exec /bin/sh -c '\''cd '\''$2'\'' && chmod 755 "$@"'\'' . {} + -o -type f -exec /bin/sh -c '\''cd '\''$2'\'' && chmod 0644 "$@"'\'' . {} + \)' COPYTREE_SHARE . /wrkdirs/usr/ports/games/brikx/work/stage/usr/local/share/brikx/ ====> Compressing man pages (compress-man) =========================================================================== =================================================== ===== env: 'PKG_NOTES=build_timestamp ports_top_git_hash ports_top_checkout_unclean port_git_hash port_checkout_unclean built_by' 'PKG_NOTE_build_timestamp=2024-04-06T21:02:59+0000' 'PKG_NOTE_ports_top_git_hash=c2c35d895e' 'PKG_NOTE_ports_top_checkout_unclean=yes' 'PKG_NOTE_port_git_hash=c014f9c79a' 'PKG_NOTE_port_checkout_unclean=no' 'PKG_NOTE_built_by=poudriere-git-3.4.99.20240122_1' NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Building packages for brikx-0.4.5_9 ===> Building brikx-0.4.5_9 =========================================================================== =>> Cleaning up wrkdir ===> Cleaning for brikx-0.4.5_9 build of games/brikx | brikx-0.4.5_9 ended at Sat Apr 6 22:03:22 BST 2024 build time: 00:00:24