Server compilation bug on Ubuntu 8.10

3 replies [Last post]
szczur
szczur's picture
User offline. Last seen 2 years 27 weeks ago. Offline
Joined: 2008-06-13
Posts: 182

Server compilation on ubuntu 8.10 ended up with that error.

[4 of 4] Compiling Main             ( /home/jurek/Pulpit/Hedgewars/netserver/hedgewars-server.hs, /home/jurek/Pulpit/Hedgewars/netserver/Main.o )

/home/jurek/Pulpit/Hedgewars/netserver/hedgewars-server.hs:43:29:
    Illegal signature in pattern: IOException
        Use -XPatternSignatures to permit it

/home/jurek/Pulpit/Hedgewars/netserver/hedgewars-server.hs:80:5:
    Illegal signature in pattern: IOException
        Use -XPatternSignatures to permit it

/home/jurek/Pulpit/Hedgewars/netserver/hedgewars-server.hs:87:30:
    Illegal signature in pattern: IOException
        Use -XPatternSignatures to permit it
make[2]: *** [bin/hedgewars-server] Błąd 1
make[1]: *** [netserver/CMakeFiles/hedgewars-server.dir/all] Błąd 2
make: *** [all] Błąd 2

The temporary solution is to edit CMakeLists.txt in netserver folder and add this line:
-XPatternSignatures
below line 21

Later you must change all IOExeption's in file hedgewars-server.hs in lines 43,80 and 87 change to Exeption's

With that changes you can compile it but i dunno how it will work. On localhost it works well ;P

Press any key to continue, or any other key to cancel.

unC0Rr
unC0Rr's picture
User offline. Last seen 1 year 5 weeks ago. Offline
Joined: 2006-11-27
Posts: 576

This problem is caused by ghc 6.10. With such changes it should work ok, but I suggest using server from svn trunk (some bugfixes, server doesn't crash anymore).

szczur
szczur's picture
User offline. Last seen 2 years 27 weeks ago. Offline
Joined: 2008-06-13
Posts: 182

That code was from yesterday's trunk :P. And in LAN it works too (very well Big Grin)

Press any key to continue, or any other key to cancel.

unC0Rr
unC0Rr's picture
User offline. Last seen 1 year 5 weeks ago. Offline
Joined: 2006-11-27
Posts: 576

Oh, sorry, it's broken again Big Grin

User login

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