svn commit: r545824 - head/games/openbor
Jan Beich
jbeich at FreeBSD.org
Sun Aug 23 15:17:19 UTC 2020
Author: jbeich
Date: Sun Aug 23 15:17:19 2020
New Revision: 545824
URL: https://svnweb.freebsd.org/changeset/ports/545824
Log:
games/openbor: unbreak with Clang 11
ld: error: duplicate symbol: anim_list
>>> defined at openbor.c
>>> openbor.o:(anim_list)
>>> defined at openborscript.c
>>> openborscript.o:(.bss+0xD80)
ld: error: duplicate symbol: model_cache
>>> defined at openbor.c
>>> openbor.o:(model_cache)
>>> defined at openborscript.c
>>> openborscript.o:(.bss+0x4B0)
ld: error: duplicate symbol: anim_list
>>> defined at openbor.c
>>> openbor.o:(anim_list)
>>> defined at control.c
>>> sdl/control.o:(.bss+0x68)
ld: error: duplicate symbol: model_cache
>>> defined at openbor.c
>>> openbor.o:(model_cache)
>>> defined at control.c
>>> sdl/control.o:(.bss+0x70)
ld: error: duplicate symbol: anim_list
>>> defined at openbor.c
>>> openbor.o:(anim_list)
>>> defined at menu.c
>>> sdl/menu.o:(.bss+0x30)
ld: error: duplicate symbol: model_cache
>>> defined at openbor.c
>>> openbor.o:(model_cache)
>>> defined at menu.c
>>> sdl/menu.o:(.bss+0x38)
ld: error: duplicate symbol: anim_list
>>> defined at openbor.c
>>> openbor.o:(anim_list)
>>> defined at translation.c
>>> source/gamelib/translation.o:(.bss+0x18)
ld: error: duplicate symbol: model_cache
>>> defined at openbor.c
>>> openbor.o:(model_cache)
>>> defined at translation.c
>>> source/gamelib/translation.o:(.bss+0x20)
ld: error: duplicate symbol: anim_list
>>> defined at openbor.c
>>> openbor.o:(anim_list)
>>> defined at models.c
>>> source/gamelib/models.o:(.bss+0x408)
ld: error: duplicate symbol: model_cache
>>> defined at openbor.c
>>> openbor.o:(model_cache)
>>> defined at models.c
>>> source/gamelib/models.o:(.bss+0x410)
ld: error: duplicate symbol: anim_list
>>> defined at openbor.c
>>> openbor.o:(anim_list)
>>> defined at utils.c
>>> source/utils.o:(.bss+0x850)
ld: error: duplicate symbol: model_cache
>>> defined at openbor.c
>>> openbor.o:(model_cache)
>>> defined at utils.c
>>> source/utils.o:(.bss+0x858)
ld: error: duplicate symbol: anim_list
>>> defined at openbor.c
>>> openbor.o:(anim_list)
>>> defined at animation.c
>>> source/openborscript/animation.o:(.bss+0x0)
ld: error: duplicate symbol: model_cache
>>> defined at openbor.c
>>> openbor.o:(model_cache)
>>> defined at animation.c
>>> source/openborscript/animation.o:(.bss+0x8)
ld: error: duplicate symbol: anim_list
>>> defined at openbor.c
>>> openbor.o:(anim_list)
>>> defined at axis.c
>>> source/openborscript/axis.o:(.bss+0x0)
ld: error: duplicate symbol: model_cache
>>> defined at openbor.c
>>> openbor.o:(model_cache)
>>> defined at axis.c
>>> source/openborscript/axis.o:(.bss+0x8)
ld: error: duplicate symbol: anim_list
>>> defined at openbor.c
>>> openbor.o:(anim_list)
>>> defined at binding.c
>>> source/openborscript/binding.o:(.bss+0x0)
ld: error: duplicate symbol: model_cache
>>> defined at openbor.c
>>> openbor.o:(model_cache)
>>> defined at binding.c
>>> source/openborscript/binding.o:(.bss+0x8)
ld: error: duplicate symbol: anim_list
>>> defined at openbor.c
>>> openbor.o:(anim_list)
>>> defined at drawmethod.c
>>> source/openborscript/drawmethod.o:(.bss+0x0)
ld: error: duplicate symbol: model_cache
>>> defined at openbor.c
>>> openbor.o:(model_cache)
>>> defined at drawmethod.c
>>> source/openborscript/drawmethod.o:(.bss+0x8)
ld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
Reported by: pkg-fallout
Modified:
head/games/openbor/Makefile (contents, props changed)
Modified: head/games/openbor/Makefile
==============================================================================
--- head/games/openbor/Makefile Sun Aug 23 14:31:47 2020 (r545823)
+++ head/games/openbor/Makefile Sun Aug 23 15:17:19 2020 (r545824)
@@ -57,6 +57,7 @@ MAKE_ENV= BUILD_LINUX=1 SDKPATH="${LOCALBASE}" \
MAKE_ARGS= CC="${CC}" LIBRARIES="${LOCALBASE}/lib" \
TARGET_ARCH=${ARCH:S/i386/x86/} ARCHFLAGS="" \
TARGET_FINAL='${TARGET}' BUILD_MMX="" ECHO="${ECHO}"
+CFLAGS+= -fcommon # https://github.com/DCurrent/openbor/issues/206
LDFLAGS+= -Wl,--as-needed # ogg, pthread, zlib
SUB_FILES= pkg-message
SUB_LIST= PKGBASE=${PKGBASE}
More information about the svn-ports-head
mailing list