danasah for linux

Discussions about Winboard/Xboard. News about engines or programs to use with these GUIs (e.g. tournament managers or adapters) belong in this sub forum.

Moderator: Andres Valverde

danasah for linux

Postby Pedro Castro » 18 Mar 2008, 01:26

I tried to make a compilation of danasah for linux (without books and without egbb), can anyone prove that it works?

http://danasah.googlepages.com/danasah363

As parameter must pass the engine "xboard"

Thank you,
Best wishes,

Pedro Castro
User avatar
Pedro Castro
 
Posts: 180
Joined: 28 Jan 2005, 01:09
Location: Pays Basque (Spain)

Re: danasah for linux

Postby Volker Pittlik » 18 Mar 2008, 07:17

Pedro Castro wrote:... can anyone prove that it works? ...


At least it starts working here in a SUSE 10.2 32-bit:

Code: Select all
volker@vpittlik:~/schach/danasah> ./danasah363 xboard
DanaSah v.3.63 FRC, web: http://danasah.tk
04/02/2008, Pedro Castro, Spain

DanaSah only supports the winboard interface.
Type command quit to exit

Ini file danasah.ini no found.
Ownbook: off
Table hash size: 16 Mb.
Eval cache size: 2 Mb.
Bitbases path: ./egbb/
Bitbases men: 4
Bitbases cache size: 4
Kibitz: off.
danasah> protover 2
danasah> danasah> xboard
feature done=0
protover 2
feature setboard=1 draw=0 sigint=0 sigterm=0 myname="DanaSah v.3.63 FRC" variants="normal,fischerandom" colors=0 ics=1
feature done=1
new
variante = normal
level 0 1 1
white
time 6000
go
2 0 0 79 b1c3  g8f6
3 59 0 290 b1c3  g8f6  e2e4
4 0 0 830 b1c3  g8f6  e2e4  b8c6
5 51 1 3823 b1c3  g8f6  g1f3  b8c6  d2d4
6 4 1 6645 b1c3  g8f6  e2e4  b8c6  d2d4  d7d5
7 44 6 23413 b1c3  g8f6  g1f3  b8c6  d2d4  d7d5  c1f4
8 26 9 38423 b1c3  g8f6  g1f3  b8c6  e2e4  e7e6  d2d4  d7d5
9 32 14 64991 b1c3  g8f6  g1f3  b8c6  d2d4  d7d5  c1f4  c8f5  e2e3
10 6 41 194901 b1c3  g8f6  g1f3  b8c6  d2d4  d7d5  c1f4  c8f5  c3b5  a8c8
10 27 54 263067 g1f3  g8f6  e2e3  d7d6  b1c3  e7e5  f1d3  b8c6  e1g1  c8e6
10 35 96 474248 e2e4  b8c6  d2d4  e7e6  d4d5  c6e5  b1c3  g8f6  g1f3  f6g4  f3e5  g4e5
11 35 146 733417 e2e4  b8c6  b1c3  g8f6  g1f3  d7d5  e4d5  f6d5  d2d4  c8f5  c3d5  d8d5  c1f4
move e2e4
quit


May I ask how you managed that? When I try to make it from the sources I get the following errors:

Code: Select all
volker@vpittlik:~/schach/danasah/363/src> make
cc    -c -o danasah.o danasah.c
In file included from danasah.c:46:
libro.h:17: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘hDLL’
In file included from danasah.c:48:
hash.h:209:2: warning: no newline at end of file
In file included from danasah.c:49:
egbb.h: In function ‘LoadEgbbLibrary’:
egbb.h:46: error: ‘RTLD_LAZY’ undeclared (first use in this function)
egbb.h:46: error: (Each undeclared identifier is reported only once
egbb.h:46: error: for each function it appears in.)
egbb.h:46: warning: assignment makes pointer from integer without a cast
In file included from danasah.c:59:
principal.h: In function ‘main’:
principal.h:53: error: ‘hDLL’ undeclared (first use in this function)
make: *** [danasah.o] Fehler 1
volker@vpittlik:~/schach/danasah/363/src>


It would be interesting to know for me because I'm again interested in compter chess but mainly in open source programs which can be compiled for Linux.

Regards

Volker
User avatar
Volker Pittlik
 
Posts: 1031
Joined: 24 Sep 2004, 10:14
Location: Murten / Morat, Switzerland

Re: danasah for linux

Postby Pedro Castro » 18 Mar 2008, 08:18

Thanks Volker.

DanaSah uses 2 dll files in Windows, one to access the opening book of Rebel/Prodeo and other to access to the bitbases of Scorpio, these are the problems that you have to compile (and function max). I have therefore deleted references to the book and egbb.

In the coming days I will try egbbs in linux (Daniel supports this) and add a book for linux.

For now if you want to compile the code is:
http://danasah.googlepages.com/danasah363linux.zip

The file danasah.ini of configuration would be the same as in windows without set book and egbbs.
Best wishes,

Pedro Castro
User avatar
Pedro Castro
 
Posts: 180
Joined: 28 Jan 2005, 01:09
Location: Pays Basque (Spain)

Re: danasah for linux

Postby Volker Pittlik » 18 Mar 2008, 10:36

Pedro Castro wrote:...
For now if you want to compile the code is:

...


Very good! It compiles without errors and runs!

I saw only some minor small bugs:

Code: Select all
protover 2
feature setboard=1 draw=0 sigint=0 sigterm=0 myname="DanaSah v.3.63 FRC" variants="normal,fischerandom" colors=0 ics=1
feature done=1
jsdgkjh
Error (unknown command): jsdgkjh
1/2-1/2 {Draw by insufficient material}


Someone may try to exploit that.

If I leave the lines about the bitbases in the ini files blank:

Code: Select all
Ini file danasah.ini found.
ownbook off
Table hash size 128 Mb.
Eval cache size 16 Mb.
Eval cache size 16 Mb.
Bitbases path:
Bitbases men: -1209150321
Bitbases cache size: -1080994440


May cause trouble somehow.

Thank you very much again.



Volker
User avatar
Volker Pittlik
 
Posts: 1031
Joined: 24 Sep 2004, 10:14
Location: Murten / Morat, Switzerland


Return to Winboard and related Topics

Who is online

Users browsing this forum: No registered users and 14 guests