Ok, I finally managed to compile it, but it crashes when I try to run it. I used the full source package by Atanor.
First the solution:
1) Compile flex2.5.4, you can get the tarbal at:
http://ftp.debian.org/debian/pool/main/f/flex/flex_2.5.4a.orig.tar.gz2) Put the flex binary in a directory that\'s in your PATH before the 2.5.31 version of flex. In my case (Debian unstable) 2.5.31 is in /usr/bin, so I put 2.5.4 in ~/bin which I\'ve put on the first place in my PATH.
3) Edit \'planeshift_dir\'/CS/plugins/aws/skinpars.yy and remove the second \"window_item\" on line 61. This double declaration crashes bison.
4) sh build.sh
You shouldn\'t encounter any errors.
Ok, that was the good part, now for the bad.
When I try to run pssetup -verbose I get the following error (sorry, I know it\'s a bit big):
Warning: Failed to load `aws\'; reason(s):
DLERROR (aws): .//aws.so: undefined symbol: _Z6awslexP7YYSTYPE
Warning: Failed to load `aws\'; reason(s):
DLERROR (aws): .//aws.so: undefined symbol: _Z6awslexP7YYSTYPE
WARNING: could not load plugin \'crystalspace.window.alternatemanager\'
Warning: Failed to load `csjngimg\'; reason(s):
.//csjngimg.so: File not found
.//lib/csjngimg.so: File not found
./csjngimg.so: File not found
/home/bas/games/my_planeshift/distro/planeshift/csjngimg.so: File not found
Warning: Failed to load `csjngimg\'; reason(s):
.//csjngimg.so: File not found
.//libcsjngimg.so: File not found
.//lib/csjngimg.so: File not found
.//lib/libcsjngimg.so: File not found
./csjngimg.so: File not found
./libcsjngimg.so: File not found
/home/bas/games/my_planeshift/distro/planeshift/csjngimg.so: File not found
/home/bas/games/my_planeshift/distro/planeshift/libcsjngimg.so: File not found
WARNING: could not load plugin \'crystalspace.graphic.image.io.jng\'
Couldn\'t load iAws plugin!
Error initializing system!
Anybody got any great ideas on how to fix this?