Compile 2.4 beta (2.3.15) fails on x64 linux

Questions or HOWTOs about the above? Post 'em here...
Post Reply
User avatar
Grans Remedy
Private First Class
Private First Class
Posts: 91
Joined: Sun Dec 05, 2004 10:47 pm
Location: New Zealand

Compile 2.4 beta (2.3.15) fails on x64 linux

Post by Grans Remedy » Wed Jun 22, 2011 8:08 am

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
No coffee, no workee

User avatar
Grans Remedy
Private First Class
Private First Class
Posts: 91
Joined: Sun Dec 05, 2004 10:47 pm
Location: New Zealand

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

Post by Grans Remedy » Wed Jun 22, 2011 9:58 am

oh...compiles fine without the --disable-xyz flags

Looks like a wee bug.

Grans
No coffee, no workee

User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5173
Joined: Fri Dec 13, 2002 4:11 am
Location: https://discord.gg/NN9uAvx
Contact:

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

Post by JeffM » Wed Jun 22, 2011 1:58 pm

the configure options changed so many of those options you specified are invalid.

User avatar
Bullet Catcher
Captain
Captain
Posts: 553
Joined: Sat Dec 23, 2006 7:56 am
Location: Escondido, California

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

Post by Bullet Catcher » Wed Jun 22, 2011 5:00 pm

The problem is with the --disable-robots option. For now, don't use it.

User avatar
Grans Remedy
Private First Class
Private First Class
Posts: 91
Joined: Sun Dec 05, 2004 10:47 pm
Location: New Zealand

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

Post by Grans Remedy » Thu Jun 23, 2011 5:37 am

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.
No coffee, no workee

Post Reply