OK; I have good news, and I have better news.
The good news is I've now got it working. (Well, as far as the splash and title screen, anyhow; I immediately quit - properly this time, using the menu - to try and recreate the original error and see if I could say something useful about what was causing it).
The better news is, I can recreate the error. What I did to recreate the error is the following:
- Unzip the source package (but not the image package) into an empty directory
- cd GH2
- ppc386 gearhead
- ./gearhead
- note, I have still not unzipped the image package yet. Naturally, I get an error
- cd ..
- unzip gh2-0623-image.zip
- cd GH2
- ppc386 gearhead
- ./gearhead
At this point, I run into the original error. However, if I wipe the directory and extract both the source and the image packages before compiling, then it works.
I can only presume that the presence of the image package affects some of the files in the build process, and these files are not rebuilt if the image directory is added afterwards. Nonetheless, it now works.
Incidentally, I also notice that there are a few files in both packages, apparently all meshes judging from the file names. I presume both copies are identical.
Also incidentally, adding -gl didn't give me a line number. I think the crash is actually happening somewhere in the SDL libraries; running in GDB throws up the following:
Program received signal SIGFPE, Arithmetic exception.
[Switching to Thread -1214622032 (LWP 6473)]
0xb732379d in ?? () from /usr/lib/libGLcore.so.1
...and tells me that it can't do a backtrace after the crash. (I'm using an older version of the compiler from before it had built-in SDL libraries, so this might not even happen with later compilers).