Bug#966063: rocksndiamonds: FTBFS with GCC 10: multiple definition of ... due to -fno-common

Andreas Beckmann anbe at debian.org
Wed Jul 22 14:35:39 BST 2020


Package: rocksndiamonds
Version: 4.1.4.1+dfsg-1
Severity: serious
Tags: ftbfs
Justification: fails to build from source (but built successfully in the past)
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-10

Hi,

rocksndiamonds started to FTBFS when GCC 10 was made the default compiler:

gcc  main.o conf_gfx.o conf_snd.o conf_mus.o conf_hlp.o init.o config.o events.o tools.o screens.o game.o editor.o files.o tape.o anim.o network.o netserv.o  libgame/libgame.a game_em/game_em.a game_sp/game_sp.a game_mm/game_mm.a -Wl,-z,relro -Wl,-z,now -lSDL2_image -lSDL2_mixer -lSDL2_net -lSDL2  -lm -lz -o ../rocksndiamonds
/usr/bin/ld: libgame/libgame.a(system.o):./src/libgame/system.c:42: multiple definition of `setup'; main.o:./src/main.c:135: first defined here
/usr/bin/ld: game_sp/game_sp.a(main.o):./src/game_sp/main.c:12: multiple definition of `GfxFrame'; main.o:./src/main.c:70: first defined here
collect2: error: ld returned 1 exit status

More information about the corresponding GCC change can be found here:
https://gcc.gnu.org/gcc-10/porting_to.html
"Default to -fno-common"


Andreas



More information about the Pkg-games-devel mailing list