I have to `make sdl` to override the default SDL2 choice. (Actually `make sdl RO_GAME_DIR=/usr/share/games/rocksndiamonds RW_GAME_DIR=/var/games/rocksndiamonds`, not wanting to maintain local edits to the makefile...)
`make run` fails with a bunch of "sdl2-config: Command not found"
`make sdl` eventually fails with:
...
ilbmtoppm RocksToons.ilbm | pnmtopng > RocksToons.png
ilbmtoppm: unknown chunk type DPPS - skipping
ilbmtoppm: input is a 6-plane EHB ILBM
pnmtopng: 34 colors found
../../rocksndiamonds -e "create CE image RocksCE.bmp"
Segmentation fault (core dumped)
make[3]: *** [RocksCE.ilbm] Error 139
Debug:
filbo@kidlap1:/usr/share/games/rocksndiamonds/downloads/src/rocksndiamonds-git/rocksndiamonds$ gdb ./rocksndiamonds
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <
http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<
http://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from /usr/share/games/rocksndiamonds/downloads/src/rocksndiamonds-git/rocksndiamonds/rocksndiamonds...done.
(gdb) run -e "create CE image RocksCE.bmp"
Starting program: /usr/share/games/rocksndiamonds/downloads/src/rocksndiamonds-git/rocksndiamonds/rocksndiamonds -e "create CE image RocksCE.bmp"
warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7ffff7ffa000
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
__strchr_sse2 () at ../sysdeps/x86_64/multiarch/../strchr.S:33
33 ../sysdeps/x86_64/multiarch/../strchr.S: No such file or directory.
(gdb) where
#0 __strchr_sse2 () at ../sysdeps/x86_64/multiarch/../strchr.S:33
#1 0x00007ffff6e3cc68 in putenv (string=0x0) at putenv.c:56
#2 0x00000000004b9800 in SDLInitVideoDisplay () at sdl.c:257
#3 0x0000000000493451 in CreateCustomElementImages (filename=0x7fffffffe8ff "RocksCE.bmp") at files.c:9785
#4 0x000000000040bf91 in Execute_Command (command=0x7fffffffe8ef "create CE image RocksCE.bmp") at init.c:4739
#5 0x000000000040dea2 in OpenAll () at init.c:5677
#6 0x0000000000403641 in main (argc=3, argv=0x7fffffffe598) at main.c:5639
filbo@kidlap1:/usr/share/games/rocksndiamonds/downloads/src/rocksndiamonds-git/rocksndiamonds$ ltrace -o lol ./rocksndiamonds -e "create CE image RocksCE.bmp"
filbo@kidlap1:/usr/share/games/rocksndiamonds/downloads/src/rocksndiamonds-git/rocksndiamonds$ tail -5 lol
strncmp("create CE image RocksCE.bmp", "create images ", 14) = -38
strncmp("create CE image RocksCE.bmp", "create CE image ", 16) = 0
putenv(NULL <unfinished ...>
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++