Article View: gnu.chess
Article #5486Re: Compile error for gnuchess
From: Jonah Michaud
Date: Fri, 27 Aug 1993 00:37
Date: Fri, 27 Aug 1993 00:37
37 lines
2314 bytes
2314 bytes
david@ocelot.mvision.com writes: } Help. I'm running Solaris 2.2 on a sparcstation2 and am trying to } compile gnuchess4.0p62 . I get the following error: } .. Im surprised these are the only errors.. When I tried compiling under sol2.2 w/ sunpro, these were only a small subset. Many more errors may pop up after you fix gnuchess.h.. Try gcc? To compile w/ gcc, use the default options, ie: CC= gcc -W $(OPT), and CFLAGS= -g -O2 -funroll-loops -traditional-cpp. Also edit these lines: eval.c:171: bcopy (svalue, &(ptbl->sscore), sizeof (svalue)); eval.c:200: bcopy (&(ptbl->sscore),svalue, sizeof (svalue)); util.c:103:bzero(ttable[white],(unsigned)(ttblsize+rehash)); util.c:104:bzero(ttable[black],(unsigned)(ttblsize+rehash)); nondsp.c:69:#ifndef SYSV nondsp.c:70: setlinebuf (stdout); nondsp.c:71:#else nondsp.c:72: setvbuf (stdout, NULL, _IOLBF, BUFSIZ); nondsp.c:73:#endif 1) Replace bcopy(a,b,c) w/ memcpy(b,a,c), and bzero(a,b) w/ memset(a,0,b). 2) Delete lines 69-71, and 73 in nondsp.c. You may be unaware: theres a non-fatal, significant bug in eval.c, which was noticed by ralf@ark.abg.sub.org, who posted a fix.. Here it is again: eval.c:666: if ( ply == 1 || eval.c:667:#ifdef CACHE eval.c:668: (CheckEETable (side)) || eval.c:669:#endif eval.c:670: slk || eval.c:671: (Sdepth == ply) || eval.c:672: (ply > Sdepth && (s >= (alpha - 30) && s <= (beta + 30)) )) Replace 666 w/ "if (!slk && (ply == 1 ||" and 672 w/ "(ply > Sdepth && (s >= (alpha - 30) && s <= (beta + 30)) )))". Delete 670..
Technical Details
Message-ID:
<25jkvrINN8r7@gap.caltech.edu>Path:
arc1-ca.pugleaf.net!gmd.de!rrz.uni-koeln.de!unidui!math.fu-berlin.de!news.rrz.uni-hamburg.de!news.dkrz.de!dscomsa!dxcern!mcsun!uunet!elroy.jpl.nasa.gov!news.claremont.edu!nntp-server.caltech.edu!jonahReferences:
<DAVID.93Aug24200540@ocelot.mvision.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d71d,dd231b3d8d79d2c0 X-Google-Attributes: gid10d71d,public X-Google-ArrivalTime: 1993-08-26 19:39:57 PST Path: arc1-ca.pugleaf.net!gmd.de!rrz.uni-koeln.de!unidui!math.fu-berlin.de!news.rrz.uni-hamburg.de!news.dkrz.de!dscomsa!dxcern!mcsun!uunet!elroy.jpl.nasa.gov!news.claremont.edu!nntp-server.caltech.edu!jonah From: jonah@cco.caltech.edu (Jonah Michaud) Newsgroups: gnu.chess Subject: Re: Compile error for gnuchess Date: 27 Aug 1993 00:37:15 GMT Organization: California Institute of Technology, Pasadena Lines: 37 Distribution: world Message-ID: <25jkvrINN8r7@gap.caltech.edu> References: <DAVID.93Aug24200540@ocelot.mvision.com> NNTP-Posting-Host: coil.caltech.edu