Date: Sun, 26 Aug 2018 05:11:39 +0000 (UTC) From: Tobias Kortkamp <tobik@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r478099 - head/games/vegastrike Message-ID: <201808260511.w7Q5Bd6q097912@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tobik Date: Sun Aug 26 05:11:38 2018 New Revision: 478099 URL: https://svnweb.freebsd.org/changeset/ports/478099 Log: games/vegastrike: Fix build with Clang 6 In file included from src/cmd/ai/aggressive.cpp:24: ./src/vs_random.h:132:48: error: non-constant-expression cannot be narrowed from type 'int' to 'unsigned int' in initializer list [-Wc++11-narrowing] static unsigned int mag01[2] = {0x0UL, MATRIX_A()}; ^~~~~~~~~~ http://beefy11.nyi.freebsd.org/data/head-i386-default/p477696_s338122/logs/errors/vegastrike-0.5.1.r1_13.log In file included from src/config_xml.cpp:27: In file included from ./src/xml_support.h:6: ... /usr/include/c++/v1/cstdlib:128:9: error: no member named 'rpl_realloc' in the global namespace using ::realloc; ~~^ ./config.h:444:17: note: expanded from macro 'realloc' #define realloc rpl_realloc ^ Second error is caused by failing configure checks and as a consequence the build assumes FreeBSD does not have realloc() etc.: In file included from conftest.cc:77: In file included from /usr/include/c++/v1/stdlib.h:94: /usr/include/stdlib.h:97:1: error: function declared '[[noreturn]]' after its first declaration _Noreturn void exit(int); ^ Modified: head/games/vegastrike/Makefile Modified: head/games/vegastrike/Makefile ============================================================================== --- head/games/vegastrike/Makefile Sun Aug 26 04:34:34 2018 (r478098) +++ head/games/vegastrike/Makefile Sun Aug 26 05:11:38 2018 (r478099) @@ -22,6 +22,7 @@ LIB_DEPENDS= ${PY_BOOST} \ USES= dos2unix gmake localbase:ldflags openal:al pkgconfig python:2.7 \ tar:bzip2 +USE_CXXSTD= c++98 GNU_CONFIGURE= yes USE_SDL= sdl USE_GL= glut
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808260511.w7Q5Bd6q097912>