compiling server haskell errors

2 replies [Last post]
pandora
User offline. Last seen 13 years 5 weeks ago. Offline
Joined: 2011-10-17
Posts: 2

When compiling the hedgewars with DWITH_SERVER=1 i get some funny haskell compile errors:

[11 of 21] Compiling ClientIO         ( ClientIO.hs, /home/inf01/.hedgewar   >s/hedgewars-src-0.9.16/gameServer/ClientIO.o )

ClientIO.hs:25:17: Not in scope: `state'
make[2]: *** [bin/hedgewars-server] Fehler 1
make[1]: *** [gameServer/CMakeFiles/hedgewars-server.dir/all] Fehler 2
make: *** [all] Fehler 2

The solution to this one is simple: open gameserver/ClientIO.hs with your favorite editor, goto line 25 and change state to State.

----

At the moment im stuck at the next error:

[13 of 21] Compiling Actions          ( Actions.hs, /home/inf01/.hedgewars   >/hedgewars-src-0.9.16/gameServer/Actions.o )

Actions.hs:429:13: Not in scope: `Exception.mask'
make[2]: *** [bin/hedgewars-server] Fehler 1
make[1]: *** [gameServer/CMakeFiles/hedgewars-server.dir/all] Fehler 2
make: *** [all] Fehler 2

Exception is an alias for Control.Exception, but somehow that does not help me. I tried some variations, but did not find the correct version.
If there were some comments in the text maybe i would be able to fix this myself, but the whole file is un-commented, so sorry, i feel unable to fix this myself.

nemo
nemo's picture
User offline. Last seen 19 weeks 3 days ago. Offline
Joined: 2009-01-28
Posts: 1861

Server now requires libghc base 4.3

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

pandora
User offline. Last seen 13 years 5 weeks ago. Offline
Joined: 2011-10-17
Posts: 2

Ok, mine is only 4.2 )-: So I'll need to do a dist-upgrade before calling back )-:

User login

Copyright © 2004-2024 Hedgewars Project. All rights reserved. [ contact ]