Article View: gnu.chess
Article #4857Re: Gnu chess pl71 on an Alpha running OSF 1.3.
From: Tim Mann
Date: Tue, 06 Sep 1994 17:39
Date: Tue, 06 Sep 1994 17:39
123 lines
3565 bytes
3565 bytes
In article <344hag$f7t@taurus.fccc.edu> vanderli@aquila.fccc.edu (Michel van der List) writes:
>
>I am trying to build gnuchess pl71 on an Alpha, running OSF 1.3
>with the standard cc.
>
[details deleted]
>
>I might add that this is the first time that I've had problems
>building gnuchess on this configuration. Before I actually try to
>figure out what's wrong, has somebody seen this before?
>
There are patches for this bug in the gnu.chess FAQ. The fix was left out of
pl71 by mistake, but should be in pl72 when it comes out. Here are the
patches again:
*** book.c.~1~ Tue May 10 05:44:19 1994
--- book.c Thu May 19 17:37:38 1994
***************
*** 374,380 ****
Vparse (FILE * fd, UTSHORT *mv, SHORT side, CHAR *opening, int moveno)
{
register int c, i;
! CHAR s[128];
CHAR *p;
while (true)
--- 374,380 ----
Vparse (FILE * fd, UTSHORT *mv, SHORT side, CHAR *opening, int moveno)
{
register int c, i;
! CHAR s[1024];
CHAR *p;
while (true)
***************
*** 579,586 ****
*/
{
register SHORT i;
! CHAR opening[256];
! CHAR msg[256];
int mustwrite = false;
UTSHORT xside, doit, side;
SHORT c;
--- 579,586 ----
*/
{
register SHORT i;
! CHAR opening[1024];
! CHAR msg[1024];
int mustwrite = false;
UTSHORT xside, doit, side;
SHORT c;
***************
*** 1041,1048 ****
register struct bookentry *OB = NULL;
register struct bookentry *OC = NULL;
register SHORT i;
! CHAR opening[80];
! CHAR msg[80];
UTSHORT xside, doit, side;
SHORT c;
UTSHORT mv;
--- 1041,1048 ----
register struct bookentry *OB = NULL;
register struct bookentry *OC = NULL;
register SHORT i;
! CHAR opening[1024];
! CHAR msg[1024];
UTSHORT xside, doit, side;
SHORT c;
UTSHORT mv;
*** ttable.c.~1~ Fri May 20 09:50:46 1994
--- ttable.c Fri May 20 10:43:42 1994
***************
*** 734,739 ****
--- 734,744 ----
unsigned long hashkey, hashbd;
struct hashval hashcode[2][7][64];
+ #ifdef LONG64
+ #define XRANDTSIZE 8000
+ #else
+ #define XRANDTSIZE 4000
+ #endif
#if !defined NOXRAND
unsigned int
***************
*** 744,750 ****
unsigned int msk;
if (!a)
{
! for (i = 0; i < 4000; i++)
b[i] = 0;
return 0;
}
--- 749,755 ----
unsigned int msk;
if (!a)
{
! for (i = 0; i < XRANDTSIZE; i++)
b[i] = 0;
return 0;
}
***************
*** 785,791 ****
InitHashCode(unsigned int seed)
{
SHORT l, c, p;
! unsigned int t[4000];
int cnt = 0;
xrand(cnt++,t);
--- 790,796 ----
InitHashCode(unsigned int seed)
{
SHORT l, c, p;
! unsigned int t[XRANDTSIZE];
int cnt = 0;
xrand(cnt++,t);
Technical Details
Message-ID:
<34i9fr$jls@src-news.pa.dec.com>Path:
arc1-ca.pugleaf.net!nntp.gmd.de!xlink.net!slsv6bt!slbh01.bln.sel.alcatel.de!rcvie!Austria.EU.net!EU.net!uunet!MathWorks.Com!news.duke.edu!concert!decwrl!src.dec.com!mannReferences:
<344hag$f7t@taurus.fccc.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d71d,6a22d32c8dc0570e X-Google-Attributes: gid10d71d,public X-Google-ArrivalTime: 1994-09-07 10:21:42 PST Path: arc1-ca.pugleaf.net!nntp.gmd.de!xlink.net!slsv6bt!slbh01.bln.sel.alcatel.de!rcvie!Austria.EU.net!EU.net!uunet!MathWorks.Com!news.duke.edu!concert!decwrl!src.dec.com!mann From: mann@src.dec.com (Tim Mann) Newsgroups: gnu.chess Subject: Re: Gnu chess pl71 on an Alpha running OSF 1.3. Date: 6 Sep 1994 17:39:07 GMT Organization: DEC Systems Research Center Lines: 127 Message-ID: <34i9fr$jls@src-news.pa.dec.com> References: <344hag$f7t@taurus.fccc.edu> NNTP-Posting-Host: src-mail.pa.dec.com