Page 1 of 1

Compile 2.4 beta (2.3.15) fails on x64 linux

Posted: Wed Jun 22, 2011 8:08 am
by Grans Remedy
Howdy,
just trying to compile the latest 2.4 beta on 64bit OpenSuse linux, using:

Code: Select all

./configure --disable-robots --disable-bzadmin --disable-plugins --prefix=/home/grans/bin/bzf-beta 
configures ok, but fails on make here:

Code: Select all

g++ -DHAVE_CONFIG_H -I. -I../../include  -DINSTALL_DATA_DIR=\"/home/grans/bin/bzf-beta/share/bzflag\"  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT   -g -O2 -MT playing.o -MD -MP -MF .deps/playing.Tpo -c -o playing.o playing.cxx
playing.cxx: In function ‘void handleServerMessage(bool, uint16_t, uint16_t, void*)’:
playing.cxx:2348:10: error: jump to case label
playing.cxx:2154:15: error:   crosses initialization of ‘Player* killerPlayer’
playing.cxx:2153:15: error:   crosses initialization of ‘Player* victimPlayer’
playing.cxx:2152:24: error:   crosses initialization of ‘BaseLocalPlayer* killerLocal’
playing.cxx:2151:24: error:   crosses initialization of ‘BaseLocalPlayer* victimLocal’
playing.cxx:2140:11: error:   crosses initialization of ‘int phydrv’
etc...messages above repeated a few times - with different line numbers...then

Code: Select all

playing.cxx:3056:1: error: a function-definition is not allowed here before ‘{’ token
playing.cxx:7283:1: error: expected ‘}’ at end of input
make[2]: *** [playing.o] Error 1
make[2]: Leaving directory `/home/grans/bin/bzflag-2.3.15/src/bzflag'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/grans/bin/bzflag-2.3.15/src'
make: *** [all-recursive] Error 1
any ideas?

thanks
Grans

Re: Compile 2.4 beta (2.3.15) fails on x64 linux

Posted: Wed Jun 22, 2011 9:58 am
by Grans Remedy
oh...compiles fine without the --disable-xyz flags

Looks like a wee bug.

Grans

Re: Compile 2.4 beta (2.3.15) fails on x64 linux

Posted: Wed Jun 22, 2011 1:58 pm
by JeffM
the configure options changed so many of those options you specified are invalid.

Re: Compile 2.4 beta (2.3.15) fails on x64 linux

Posted: Wed Jun 22, 2011 5:00 pm
by Bullet Catcher
The problem is with the --disable-robots option. For now, don't use it.

Re: Compile 2.4 beta (2.3.15) fails on x64 linux

Posted: Thu Jun 23, 2011 5:37 am
by Grans Remedy
JeffM wrote:the configure options changed so many of those options you specified are invalid.
Ahh ok, I suggest then that the configure script be amended to remove the now invalid options. The first thing I did was configure --help to check if those options were still valid.