Build failure with GCC 10 on Fedora 32
Current jumpnbump 1.61 doesn't build on Fedora 32 (Rawhide) which uses in-development GCC 10.
Fedora bug report: https://bugzilla.redhat.com/show_bug.cgi?id=1799558
Build logs:
+ /usr/bin/make -O -j4 V=1 VERBOSE=1 PREFIX=/usr
sed -e "s#%%DATADIR%%#/usr/share#g" < globals.pre > globals.h
cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=zEC12 -mtune=z13 -fasynchronous-unwind-tables -fstack-clash-protection -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -DNDEBUG -DUSE_SDL -DUSE_NET -DZLIB_SUPPORT -DBZLIB_SUPPORT `sdl2-config --cflags` -I. -c -o filter.o filter.c
/usr/bin/make -C sdl
cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=zEC12 -mtune=z13 -fasynchronous-unwind-tables -fstack-clash-protection -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -DNDEBUG -DUSE_SDL -DUSE_NET -DZLIB_SUPPORT -DBZLIB_SUPPORT `sdl2-config --cflags` -I. -c -o menu.o menu.c
/usr/bin/make -C modify
cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=zEC12 -mtune=z13 -fasynchronous-unwind-tables -fstack-clash-protection -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -DNDEBUG -DUSE_SDL -DUSE_NET -DZLIB_SUPPORT -DBZLIB_SUPPORT `sdl2-config --cflags` -I. -c -o network.o network.c
network.c: In function 'tellServerNewPosition':
network.c:166:26: warning: '*((void *)&pkt+16)' may be used uninitialized in this function [-Wmaybe-uninitialized]
166 | *((Uint32*) (buf + 16)) = SDLNet_Read32(&pkt->arg4);
network.c:334:12: note: '*((void *)&pkt+16)' was declared here
334 | NetPacket pkt;
| ^~~
In file included from network.h:31,
from network.c:28:
network.c: In function 'serverSendAlive':
/usr/include/SDL2/SDL_net.h:402:25: warning: '*((void *)&pkt+16)' may be used uninitialized in this function [-Wmaybe-uninitialized]
402 | return SDL_SwapBE32(*(const Uint32 *)areap);
| ^
network.c: In function 'init_server':
network.c:166:26: warning: '*((void *)&pkt+16)' may be used uninitialized in this function [-Wmaybe-uninitialized]
166 | *((Uint32*) (buf + 16)) = SDLNet_Read32(&pkt->arg4);
network.c:476:12: note: '*((void *)&pkt+16)' was declared here
476 | NetPacket pkt;
| ^~~
network.c:165:26: warning: '*((void *)&pkt+12)' may be used uninitialized in this function [-Wmaybe-uninitialized]
165 | *((Uint32*) (buf + 12)) = SDLNet_Read32(&pkt->arg3);
network.c:476:12: note: '*((void *)&pkt+12)' was declared here
476 | NetPacket pkt;
| ^~~
network.c:164:26: warning: '*((void *)&pkt+8)' may be used uninitialized in this function [-Wmaybe-uninitialized]
164 | *((Uint32*) (buf + 8)) = SDLNet_Read32(&pkt->arg2);
network.c:476:12: note: '*((void *)&pkt+8)' was declared here
476 | NetPacket pkt;
| ^~~
In file included from network.h:31,
from network.c:28:
network.c: In function 'connect_to_server':
/usr/include/SDL2/SDL_net.h:402:25: warning: '*((void *)&pkt+16)' may be used uninitialized in this function [-Wmaybe-uninitialized]
402 | return SDL_SwapBE32(*(const Uint32 *)areap);
| ^
/usr/include/SDL2/SDL_net.h:402:25: warning: '*((void *)&pkt+8)' may be used uninitialized in this function [-Wmaybe-uninitialized]
make[1]: Entering directory '/builddir/build/BUILD/jumpnbump-1.61/modify'
cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=zEC12 -mtune=z13 -fasynchronous-unwind-tables -fstack-clash-protection -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -DNDEBUG -DUSE_SDL -DUSE_NET -DZLIB_SUPPORT -DBZLIB_SUPPORT `sdl2-config --cflags` -I. -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -DNDEBUG -DUSE_SDL -DUSE_NET -DZLIB_SUPPORT -DBZLIB_SUPPORT -I. -I.. -c -o gobpack.o gobpack.c
make[1]: Leaving directory '/builddir/build/BUILD/jumpnbump-1.61/modify'
gobpack.c: In function 'read_gob':
gobpack.c:101:2: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
101 | fread(gob_data, 1, len, handle);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gobpack.c: In function 'main':
gobpack.c:212:6: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
212 | fread(pal, 1, 768, f);
| ^~~~~~~~~~~~~~~~~~~~~
gobpack.c:362:4: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
362 | fscanf(f, "%s %i\n", buffer, &value);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: Entering directory '/builddir/build/BUILD/jumpnbump-1.61/sdl'
cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=zEC12 -mtune=z13 -fasynchronous-unwind-tables -fstack-clash-protection -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -DNDEBUG -DUSE_SDL -DUSE_NET -DZLIB_SUPPORT -DBZLIB_SUPPORT `sdl2-config --cflags` -I. -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -DNDEBUG -DUSE_SDL -DUSE_NET -DZLIB_SUPPORT -DBZLIB_SUPPORT `sdl2-config --cflags` -I. -I.. -c -o gfx.o gfx.c
make[1]: Leaving directory '/builddir/build/BUILD/jumpnbump-1.61/sdl'
make[1]: Entering directory '/builddir/build/BUILD/jumpnbump-1.61/modify'
cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=zEC12 -mtune=z13 -fasynchronous-unwind-tables -fstack-clash-protection -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -DNDEBUG -DUSE_SDL -DUSE_NET -DZLIB_SUPPORT -DBZLIB_SUPPORT `sdl2-config --cflags` -I. -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -DNDEBUG -DUSE_SDL -DUSE_NET -DZLIB_SUPPORT -DBZLIB_SUPPORT -I. -I.. -c -o jnbpack.o jnbpack.c
make[1]: Leaving directory '/builddir/build/BUILD/jumpnbump-1.61/modify'
jnbpack.c: In function 'main':
jnbpack.c:139:3: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
139 | write(fd, &temp, 1);
| ^~~~~~~~~~~~~~~~~~~
jnbpack.c:141:3: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
141 | write(fd, &temp, 1);
| ^~~~~~~~~~~~~~~~~~~
jnbpack.c:143:3: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
143 | write(fd, &temp, 1);
| ^~~~~~~~~~~~~~~~~~~
jnbpack.c:145:3: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
145 | write(fd, &temp, 1);
| ^~~~~~~~~~~~~~~~~~~
jnbpack.c:152:3: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
152 | write(fd, &datafile[i].filename, 12);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
jnbpack.c:154:3: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
154 | write(fd, &temp, 1);
| ^~~~~~~~~~~~~~~~~~~
jnbpack.c:156:3: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
156 | write(fd, &temp, 1);
| ^~~~~~~~~~~~~~~~~~~
jnbpack.c:158:3: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
158 | write(fd, &temp, 1);
| ^~~~~~~~~~~~~~~~~~~
jnbpack.c:160:3: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
160 | write(fd, &temp, 1);
| ^~~~~~~~~~~~~~~~~~~
jnbpack.c:162:3: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
162 | write(fd, &temp, 1);
| ^~~~~~~~~~~~~~~~~~~
jnbpack.c:164:3: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
164 | write(fd, &temp, 1);
| ^~~~~~~~~~~~~~~~~~~
jnbpack.c:166:3: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
166 | write(fd, &temp, 1);
| ^~~~~~~~~~~~~~~~~~~
jnbpack.c:168:3: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
168 | write(fd, &temp, 1);
| ^~~~~~~~~~~~~~~~~~~
jnbpack.c:184:3: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result]
184 | read(infd, buf, datafile[i].size);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
jnbpack.c:186:3: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
186 | write(fd, buf, datafile[i].size);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: Entering directory '/builddir/build/BUILD/jumpnbump-1.61/modify'
cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=zEC12 -mtune=z13 -fasynchronous-unwind-tables -fstack-clash-protection -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -DNDEBUG -DUSE_SDL -DUSE_NET -DZLIB_SUPPORT -DBZLIB_SUPPORT `sdl2-config --cflags` -I. -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -DNDEBUG -DUSE_SDL -DUSE_NET -DZLIB_SUPPORT -DBZLIB_SUPPORT -I. -I.. -o ../gobpack gobpack.o -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld
make[1]: Leaving directory '/builddir/build/BUILD/jumpnbump-1.61/modify'
make[1]: Entering directory '/builddir/build/BUILD/jumpnbump-1.61/modify'
cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=zEC12 -mtune=z13 -fasynchronous-unwind-tables -fstack-clash-protection -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -DNDEBUG -DUSE_SDL -DUSE_NET -DZLIB_SUPPORT -DBZLIB_SUPPORT `sdl2-config --cflags` -I. -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -DNDEBUG -DUSE_SDL -DUSE_NET -DZLIB_SUPPORT -DBZLIB_SUPPORT -I. -I.. -o ../jnbpack jnbpack.o -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld
make[1]: Leaving directory '/builddir/build/BUILD/jumpnbump-1.61/modify'
make[1]: Entering directory '/builddir/build/BUILD/jumpnbump-1.61/modify'
cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=zEC12 -mtune=z13 -fasynchronous-unwind-tables -fstack-clash-protection -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -DNDEBUG -DUSE_SDL -DUSE_NET -DZLIB_SUPPORT -DBZLIB_SUPPORT `sdl2-config --cflags` -I. -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -DNDEBUG -DUSE_SDL -DUSE_NET -DZLIB_SUPPORT -DBZLIB_SUPPORT -I. -I.. -c -o jnbunpack.o jnbunpack.c
make[1]: Leaving directory '/builddir/build/BUILD/jumpnbump-1.61/modify'
jnbunpack.c: In function 'main':
jnbunpack.c:65:5: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result]
65 | read(fd, &num_entries, 4);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
jnbunpack.c:70:5: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result]
70 | read(fd, datafile, num_entries * sizeof(DirEntry));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
jnbunpack.c:100:2: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result]
100 | read(fd, buf, datafile[i].size);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
jnbunpack.c:101:2: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
101 | write(outfd, buf, datafile[i].size);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: Entering directory '/builddir/build/BUILD/jumpnbump-1.61/modify'
cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=zEC12 -mtune=z13 -fasynchronous-unwind-tables -fstack-clash-protection -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -DNDEBUG -DUSE_SDL -DUSE_NET -DZLIB_SUPPORT -DBZLIB_SUPPORT `sdl2-config --cflags` -I. -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -DNDEBUG -DUSE_SDL -DUSE_NET -DZLIB_SUPPORT -DBZLIB_SUPPORT -I. -I.. -o ../jnbunpack jnbunpack.o -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld
make[1]: Leaving directory '/builddir/build/BUILD/jumpnbump-1.61/modify'
make[1]: Entering directory '/builddir/build/BUILD/jumpnbump-1.61/sdl'
cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=zEC12 -mtune=z13 -fasynchronous-unwind-tables -fstack-clash-protection -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -DNDEBUG -DUSE_SDL -DUSE_NET -DZLIB_SUPPORT -DBZLIB_SUPPORT `sdl2-config --cflags` -I. -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -DNDEBUG -DUSE_SDL -DUSE_NET -DZLIB_SUPPORT -DBZLIB_SUPPORT `sdl2-config --cflags` -I. -I.. -c -o interrpt.o interrpt.c
make[1]: Leaving directory '/builddir/build/BUILD/jumpnbump-1.61/sdl'
/usr/bin/make -C data
make[1]: Entering directory '/builddir/build/BUILD/jumpnbump-1.61/data'
exec ../gobpack font
font.gob build
make[1]: Leaving directory '/builddir/build/BUILD/jumpnbump-1.61/data'
make[1]: Entering directory '/builddir/build/BUILD/jumpnbump-1.61/data'
exec ../gobpack numbers
numbers.gob build
make[1]: Leaving directory '/builddir/build/BUILD/jumpnbump-1.61/data'
make[1]: Entering directory '/builddir/build/BUILD/jumpnbump-1.61/data'
exec ../gobpack objects
objects.gob build
make[1]: Leaving directory '/builddir/build/BUILD/jumpnbump-1.61/data'
make[1]: Entering directory '/builddir/build/BUILD/jumpnbump-1.61/data'
exec ../gobpack rabbit
rabbit.gob build
make[1]: Leaving directory '/builddir/build/BUILD/jumpnbump-1.61/data'
make[1]: Entering directory '/builddir/build/BUILD/jumpnbump-1.61/data'
exec ../jnbpack -o jumpbump.dat bump.mod calib.dat death.smp fly.smp jump.mod jump.smp levelmap.txt level.pcx mask.pcx menu.pcx menumask.pcx font.gob numbers.gob objects.gob rabbit.gob scores.mod splash.smp spring.smp
18 files to pack
Opened jumpbump.dat
adding bump.mod OK
adding calib.dat OK
adding death.smp OK
adding fly.smp OK
adding jump.mod OK
adding jump.smp OK
adding levelmap.txt OK
adding level.pcx OK
adding mask.pcx OK
adding menu.pcx OK
adding menumask.pcx OK
adding font.gob OK
adding numbers.gob OK
adding objects.gob OK
adding rabbit.gob OK
adding scores.mod OK
adding splash.smp OK
adding spring.smp OK
make[1]: Leaving directory '/builddir/build/BUILD/jumpnbump-1.61/data'
make[1]: Entering directory '/builddir/build/BUILD/jumpnbump-1.61/sdl'
cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=zEC12 -mtune=z13 -fasynchronous-unwind-tables -fstack-clash-protection -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -DNDEBUG -DUSE_SDL -DUSE_NET -DZLIB_SUPPORT -DBZLIB_SUPPORT `sdl2-config --cflags` -I. -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -DNDEBUG -DUSE_SDL -DUSE_NET -DZLIB_SUPPORT -DBZLIB_SUPPORT `sdl2-config --cflags` -I. -I.. -c -o input.o input.c
make[1]: Leaving directory '/builddir/build/BUILD/jumpnbump-1.61/sdl'
make[1]: Entering directory '/builddir/build/BUILD/jumpnbump-1.61/sdl'
cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=zEC12 -mtune=z13 -fasynchronous-unwind-tables -fstack-clash-protection -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -DNDEBUG -DUSE_SDL -DUSE_NET -DZLIB_SUPPORT -DBZLIB_SUPPORT `sdl2-config --cflags` -I. -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -DNDEBUG -DUSE_SDL -DUSE_NET -DZLIB_SUPPORT -DBZLIB_SUPPORT `sdl2-config --cflags` -I. -I.. -c -o sound.o sound.c
make[1]: Leaving directory '/builddir/build/BUILD/jumpnbump-1.61/sdl'
make[1]: Entering directory '/builddir/build/BUILD/jumpnbump-1.61/sdl'
ar cru ../sdl.a gfx.o interrpt.o sound.o input.o
ranlib ../sdl.a
make[1]: Leaving directory '/builddir/build/BUILD/jumpnbump-1.61/sdl'
cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=zEC12 -mtune=z13 -fasynchronous-unwind-tables -fstack-clash-protection -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -DNDEBUG -DUSE_SDL -DUSE_NET -DZLIB_SUPPORT -DBZLIB_SUPPORT `sdl2-config --cflags` -I. -c -o main.o main.c
main.c: In function 'write_calib_data':
main.c:2810:2: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
2810 | fread(mem, 1, len, handle);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=zEC12 -mtune=z13 -fasynchronous-unwind-tables -fstack-clash-protection -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -DNDEBUG -DUSE_SDL -DUSE_NET -DZLIB_SUPPORT -DBZLIB_SUPPORT `sdl2-config --cflags` -I. -o jumpnbump main.o menu.o filter.o network.o -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld sdl.a `sdl2-config --libs` -lSDL2_mixer -lSDL2_net -lbz2 -lz -lm
/usr/bin/ld: menu.o:/builddir/build/BUILD/jumpnbump-1.61/globals.h:270: multiple definition of `endscore_reached'; main.o:/builddir/build/BUILD/jumpnbump-1.61/globals.h:270: first defined here
/usr/bin/ld: network.o:/builddir/build/BUILD/jumpnbump-1.61/network.h:77: multiple definition of `net_info'; main.o:/builddir/build/BUILD/jumpnbump-1.61/network.h:77: first defined here
/usr/bin/ld: network.o:/builddir/build/BUILD/jumpnbump-1.61/globals.h:270: multiple definition of `endscore_reached'; main.o:/builddir/build/BUILD/jumpnbump-1.61/globals.h:270: first defined here
/usr/bin/ld: sdl.a(gfx.o):/builddir/build/BUILD/jumpnbump-1.61/sdl/../globals.h:270: multiple definition of `endscore_reached'; main.o:/builddir/build/BUILD/jumpnbump-1.61/globals.h:270: first defined here
/usr/bin/ld: sdl.a(interrpt.o):/builddir/build/BUILD/jumpnbump-1.61/sdl/../globals.h:270: multiple definition of `endscore_reached'; main.o:/builddir/build/BUILD/jumpnbump-1.61/globals.h:270: first defined here
/usr/bin/ld: sdl.a(sound.o):/builddir/build/BUILD/jumpnbump-1.61/sdl/../globals.h:270: multiple definition of `endscore_reached'; main.o:/builddir/build/BUILD/jumpnbump-1.61/globals.h:270: first defined here
/usr/bin/ld: sdl.a(input.o):/builddir/build/BUILD/jumpnbump-1.61/sdl/../globals.h:270: multiple definition of `endscore_reached'; main.o:/builddir/build/BUILD/jumpnbump-1.61/globals.h:270: first defined here
collect2: error: ld returned 1 exit status
make: *** [Makefile:41: jumpnbump] Error 1
Edited by Rémi Verschelde