I have tried to compile the 0.11.5 release with gcc 3.3
on IRIX 6.5.26.
The compilation went smoth and the game starts. All
menu works and accepting the changes but when
starting a single player game a recieved a segfault. I
notices also some "libpng error: incorrect data check" in
my console during running. Last what i can see is
the 'Loading' screen and than it crashed.
Same and more is happend when using the Mips CC
compiler. It bailed out serverals time. I have workaround
on
- hardcoded GCC compilerflags in ./configure (PNG Check
for SDL_image returns false)
- missing libs on linkline (-lm)
- unresolved symbols (removing a bunch of inline
declarations)
- some ugly code....
but the result is exactly the same. Here are the
messages from the console followed by a backtrace
[octane]:/usr2/MIPS/bomberclone-0.11.5/src $ ldd
bomberclone
libSDL_image-1.2.so.1
=> /usr/nekoware/lib/libSDL_image-1.2.so.1
libSDL-1.2.so.1 => /usr/nekoware/lib/libSDL-
1.2.so.1
libpthread.so => /usr/lib32/libpthread.so
libSDL_mixer-1.2.so.1
=> /usr/nekoware/lib/libSDL_mixer-1.2.so.1
libm.so => /usr/lib32/libm.so
libc.so.1 => /usr/lib32/libc.so.1
libjpeg.so => /usr/nekoware/lib/libjpeg.so
libpng.so.3 => /usr/nekoware/lib/libpng.so.3
libz.so => /usr/nekoware/lib/libz.so
libaudio.so => /usr/lib32/libaudio.so
libX11.so.1 => /usr/lib32/libX11.so.1
libXext.so => /usr/lib32/libXext.so
libvorbisfile.so.4
=> /usr/nekoware/lib/libvorbisfile.so.4
libvorbis.so.1
=> /usr/nekoware/lib/libvorbis.so.1
libogg.so.1 => /usr/nekoware/lib/libogg.so.1
[octane]:/usr2/MIPS/bomberclone-0.11.5/src
$ ./bomberclone
libpng error: incorrect data check
libpng error: incorrect data check
libpng error: incorrect data check
[ 0] :Opened audio at 22050 Hz 16 bit stereo
[ 0] :could not load icon. (/usr/nekoware-
build/share/games/bomberclone/pixmaps/bomberclone.png
)
[ 16318] :menu_change_focus: ID:2 Name:Start
[ 23540] :player_set_gfx: name: Player1 from
gfx -1 to gfx -1.
[ 25350] :player_set_gfx: name: Player1 from
gfx -1 to gfx 1.
[ 25350] :player_set_gfx: name: AI 2 from gfx -
1 to gfx 7.
[ 25350] :team_choose need to rewrite this part
[ 25350] :single_create_ai: Player 1 Created Name:AI 2
[ 25350] :player_set_gfx: name: Player1 from gfx
1 to gfx 1.
[ 25350] :map_set_playerposition
[ 25350] :Readin 16 Entrys in the Directory
[ 25350] :Random Tileset 2 of 14 selected
[ 25350] : cucumber
[ 25350] :Loading Tileset: cucumber
[ 25350] :gfx_load_players (39, 39)
libpng error: incorrect data check
libpng error: incorrect data check
libpng error: incorrect data check
[ 25350] :Loading Audioset
[ 25350] :Readin 8 Entrys in the Directory
[ 30535] :---------------> GAME START
[ 30535] :Nr Name GFX Sta Pkt Win Team
net_flag [Addr]
[ 30535] : 0 Player1 1 13 0 0 0 0
[:]
[ 30535] : 1 AI 2 7 29 0 0 1 1
[localhost:11000]
[ 30535] : 2 -1 0 0 0 -1 0 [:]
[ 30535] : 3 -1 0 0 0 -1 0 [:]
[ 30535] : 4 -1 0 0 0 -1 0 [:]
[ 30535] : 5 -1 0 0 0 -1 0 [:]
[ 30535] : 6 -1 0 0 0 -1 0 [:]
[ 30535] : 7 -1 0 0 0 -1 0 [:]
[ 30535] : 8 -1 0 0 0 -1 0 [:]
[ 30535] : 9 -1 0 0 0 -1 0 [:]
[ 30535] :10 -1 0 0 0 -1 0 [:]
[ 30535] :11 -1 0 0 0 -1 0 [:]
[ 30535] :12 -1 0 0 0 -1 0 [:]
[ 30535] :13 -1 0 0 0 -1 0 [:]
[ 30535] :14 -1 0 0 0 -1 0 [:]
[ 30535] :15 -1 0 0 0 -1 0 [:]
[ 30535] :p_nr = 0 [ 30535] :p_servnr = 0
[ 30535] :players_nr = 3 [ 30535] :players_nr_s = 2
[ 30535] :gametype = 0 [ 30535] :state = 5
Segmentation fault (core dumped)
[octane]:/usr2/MIPS/bomberclone-0.11.5/src $ file core
core: IRIX N32 core dump of 'bomberclone'
[octane]:/usr2/MIPS/bomberclone-0.11.5/src $
dbx ./bomberclone core
dbx version 7.3.6 (95791_Apr06 MR) Apr 6 2004
10:33:31
Core from signal SIGSEGV: Segmentation violation
(dbx) where
Thread 0x10000
> 0 ai_bombpoints(0xaf488, 0x2, 0x2, 0x5a785a78, 0x0,
0x0, 0x4, 0x1) ["/usr2/MIPS/bomberclone-
0.11.5/src/single.c":261, 0x10043e54]
1 ai_findbestbombdir(0xaf488, 0x0, 0x2, 0x5a785a78,
0x0, 0x0, 0x4, 0x1) ["/usr2/MIPS/bomberclone-
0.11.5/src/single.c":303, 0x10044518]
2 single_loop(0xaf488, 0x5a78, 0x2, 0x5a785a78, 0x0,
0x0, 0x4, 0x1) ["/usr2/MIPS/bomberclone-
0.11.5/src/single.c":647, 0x10046114]
3 game_loop(0xaf488, 0x5a78, 0x2, 0x5a785a78, 0x0,
0x0, 0x4, 0x1) ["/usr2/MIPS/bomberclone-
0.11.5/src/game.c":290, 0x10020c60]
4 single_playergame(0x0, 0x1, 0x2, 0x5a785a78, 0x0,
0x0, 0x4, 0x1) ["/usr2/MIPS/bomberclone-
0.11.5/src/single.c":609, 0x10045ed0]
5 single_menu(0xaf488, 0x5a78, 0x2, 0x5a785a78,
0x0, 0x0, 0x4, 0x1) ["/usr2/MIPS/bomberclone-
0.11.5/src/single.c":768, 0x10046900]
6 main(0x1, 0x7ffe7ef4, 0x2, 0x5a785a78, 0x0, 0x0,
0x4, 0x1) ["/usr2/MIPS/bomberclone-
0.11.5/src/main.c":56, 0x10008198]
7 __start() ["/xlv55/kudzu-
apr12/work/irix/lib/libc/libc_n32_M4/csu/crt1text.s":177,
0x10007f08]
(dbx)
regards
Joerg