
Frequently asked questions (FAQ) on gnu.chess.
Last modified on Mon Aug 29 13:26:05 PDT 1994 by mann

[1] What is the gnu.chess newsgroup for?
[2] What is GNU Chess?
[3] What is GNU Chess's rating?
[4] What is XBoard?
[5] Can I use XBoard to play a game of chess with another human?
[6] What is XChess?
[7] What is WinBoard?  Will WinBoard run on DOS/Windows?
[8] What is cmail?
[9] Where can I get chess software?
[10] What are the current version numbers for GNU Chess and XBoard?
[11] Who is working on this project?  How do I report bugs, offer help, etc.?
[12] Does GNU Chess run on a PC under DOS (or Windows)?
[13] Does GNU Chess run on an Amiga?
[14] Does GNU Chess run on a Macintosh?
[15] How do I build GNU Chess?  Do I have to have gcc?
[16] How do I build XBoard?  Do I have to have gcc?
[17] When I try to use GNU Chess with XBoard, it immediately says
  "Error: first chess program (gnuchessx) exited unexpectedly".  What
  do I do?   
[18] Sometimes GNU Chess doesn't seem to know when the game is over.  What's
  the matter? 
[19] XBoard sometimes hangs when I'm using it to play against GNU Chess on a
  position that I've modified with Edit Position.  What's the matter?
[20] GNU Chess often uses a little too much time and lets its flag fall
  near the end of a time control period.  What's the matter?
[21] When I use GNU Chess with XBoard, it seems to freeze on me after
  it gets out of its opening book.  What do I do?
[22] When I use GNU Chess with XBoard, it sometimes tells me that moves
  are illegal when they aren't.  What's the matter?
[23] GNU Chess crashes when I try to compile and run it on the DEC Alpha AXP
  with -DLONG64 included in the Makefile OPTS.  What do I do?
[24] I get an error message about FIONREAD when trying to build the gnuchess
  book.  What do I do? 
[25] I am having trouble building XBoard on HP-UX.  What can I do?

-----
[1] What is the gnu.chess newsgroup for?

The gnu.chess newsgroup is for the discussion of GNU Chess, XBoard, and other
related software.  It is not for general chess or computer chess discussion.
You won't be flamed if you post such messages here, but you will find more
information if you use rec.games.chess.  There is a rec.games.chess FAQ file
with a great deal of general chess information; see topic [9] below.

The gnu.chess newsgroup is gatewayed bidirectionally with the mailing list
info-gnu-chess@prep.ai.mit.edu.  If you want to be added to or deleted from
this mailing list, send mail to info-gnu-chess-request@prep.ai.mit.edu, not to
the list (or newsgroup) itself.

-----
[2] What is GNU Chess?

GNU Chess is a chess-playing program developed as part of the GNU project of
the Free Software Foundation (FSF).

GNU Chess is a communal chess program.  Contributors donate their time and
effort in order to make it a stronger, better, sleeker program.  Contributions
take many forms: interfaces to high-resolution displays, opening book
treatises, speedups of the underlying algorithms, additions of extra
heuristics.  These contributions are then distributed to the large user-base
so that all may enjoy the fruits of our labor.

GNU Chess is intended to run under Unix or Unix-compatible systems.  It is
written in C and should be portable to other systems.

-----
[3] What is GNU Chess's rating?

GNU Chess does not play in tournaments, so strictly speaking, it does not have
a rating.  In any case, its strength depends on how fast a machine you run it
on and how much optimization your C compiler does.  Like all computer players,
GNU Chess is strong tactically but relatively weak strategically.

Zippy, a copy of GNU Chess 4.0 running on a fast DEC Alpha AXP 3000/600
workstation, has achieved a blitz rating of over 2200 on the Internet Chess
Server.  ICS ratings are roughly comparable to USCF and FIDE ratings, but many
players have ICS ratings that are hundreds of points higher or lower than
their USCF or FIDE ratings.

Several other versions of GNU Chess with various modifications also play on
ICS.  The gnufour player runs experimental, unreleased versions of gnuchess to
help evaluate prospective changes, so its rating often suffers due to bugs or
ideas that don't pan out.

-----
[4] What is XBoard?

XBoard is a graphical chessboard that can serve as a user interface for GNU
Chess, for the Internet Chess Server, or for email correspondence chess, or
can be used by itself.

As an interface to GNU Chess, XBoard lets you play a game against the machine,
set up arbitrary positions, force variations, or watch a game between two
machines.

As an interface to the Internet Chess Server, XBoard lets you play against
other ICS users, observe games they are playing, or review games that have
recently finished.  You don't need GNU Chess for this.

To play email correspondence chess with XBoard, you use it with the cmail
program.  See topic [8] below.

You can also use XBoard as a chessboard to play through games.  It will read
and write game files and allow you to play through variations manually.  You
can use it to browse games off the net, or to review GNU Chess, ICS, and email
correspondence games you have saved.  It saves games in PGN (portable game
notation), and can read almost any game in algebraic notation.  These features
are available at all times, even if you do not have access to GNU Chess or the
ICS.

XBoard runs under Unix or Unix-compatible systems.  It requires the X Window
System, version X11R4 or later.

-----
[5] Can I use XBoard to play a game of chess with another human?

The only way for two humans on different machines to play chess in real time
using XBoard is to use the Internet Chess Server as an intermediary.  That is,
each player runs his own copy of XBoard, both of them log into the ICS, and
they play a game there.  Two copies of XBoard cannot communicate with each
other directly.

Instructions on how to get started with the ICS are included with the XBoard
distribution.  The ICS moves from time to time, so the addresses included in
the XBoard distribution may not always be current.  At this writing, the main
North American ICS is at ics.uoknor.edu, but it will be moving soon.  The
European ICS sites are anemone.aau.dk.edu and dds.hacktic.nl.  There are also
several backup sites.  There is a FICS site at chess.pitt.edu.  On all these
machines, the port number to use is 5000.  Try "finger chess@chess.uoknor.edu"
or "finger tange@daimi.aau.dk" for more address information.

Note: If you don't have network connectivity to any ICS site, you can contact
Daniel Sleator <sleator@cs.cmu.edu> for information on running your own copy
of his ICS implementation, or contact Richard Nash <nash@visus.com> for
information on his alternative implementation, FICS.

The cmail program included with XBoard lets you play email postal games with
another human; see topic [8].

Two humans can play chess on the same machine using one copy of XBoard in
Edit Game mode, but the clocks don't run in this mode, so it's of limited
usefulness.

-----
[6] What is XChess?

XChess is an older chessboard program that is no longer supported.  XChess was
written for X version 10, and you may or may not be able to build and run it
on an X11 system.

XChess has only one significant feature that is not present in XBoard: Two
humans can play chess using XChess on different machines, without using the
Internet Chess Server as an intermediary.  This feature is of interest only if
you don't have network connectivity to the Internet Chess Server.

Note: There actually have been several different different programs called
"XChess" in circulation at various times.  The above describes one that was
associated with GNU Chess.

-----
[7] What is WinBoard?  Will WinBoard run on DOS/Windows?

WinBoard is a port of XBoard to Windows NT.  It uses the same back end chess
code as XBoard, but the front end graphics code is a complete rewrite.

WinBoard does *not* run on DOS/Windows.  Although you can start the program
under the Win32s compatibility package, the major features (interfacing to GNU
Chess and to the ICS) do not work.  The main problem is that DOS does not have
threads or real concurrent processes.  A port of WinBoard to DOS/Windows is
possible in theory, but it would be difficult and messy, and is unlikely to
happen.  Maybe WinBoard will run on Chicago (Windows 4.0) when it comes out.

-----
[8] What is cmail?

cmail is a program that helps you play and keep track of electronic mail
correspondence chess games using XBoard.  It is distributed with XBoard and
has its own manual page.

-----
[9] Where can I get chess software? 

Like other GNU software, you can get GNU Chess and XBoard by anonymous FTP
from prep.ai.mit.edu and its many mirror sites.  Look in the directory pub/gnu
for files matching the patterns gnuchess-*.gz and xboard-*.gz.  The .gz suffix
indicates the files were compressed with GNU gzip.  You can get gzip from
prep.ai.mit.edu also.

Another good anonymous FTP site to know about is chess.uoknor.edu.  (This site
will probably be moving soon.)  You can get chess software, game collections,
the FAQ file for rec.games.chess, and other chess-related material there.
Sometimes new XBoard versions arrive on this site before they make it to prep.
The FTP server at chess.uoknor.edu can automatically decompress files for you
as you download them, useful if you don't have gzip.

If you'd like a copy of WinBoard, send mail to Tim Mann <mann@src.dec.com>.

Here is a sample anonymous ftp session.  Some of the ftp server's responses
are abbreviated, but all the commands you must type are included.

% ftp prep.ai.mit.edu
Connected to prep.ai.mit.edu
Name: anonymous
Password: your-email-address@your-site
ftp> binary
200 Type set to I.
ftp> cd /pub/gnu
250 CWD command successful.
ftp> dir gnuchess-*.gz
-rw-r--r--  1 14910    wheel     1300031 Aug 11 12:39 gnuchess-4.0.pl71.tar.gz
ftp> get gnuchess-4.0.pl71.tar.gz
150 Opening BINARY mode data connection for gnuchess-4.0.pl71.tar.gz (1300031 bytes).
226 Transfer complete.
ftp> dir xboard-*.gz
-rw-r--r--  1 14910    wheel      232202 Jun 16 02:45 xboard-3.1.pl1.tar.gz
ftp> get xboard-3.1.pl1.tar.gz
150 Opening BINARY mode data connection for xboard-3.1.pl1.tar.gz (232202 bytes).
226 Transfer complete.
ftp> quit

-----
[10] What are the current version numbers for GNU Chess and XBoard?

At this writing, the current version numbers are:

- GNU Chess 4.0 patchlevel 71
- XBoard 3.1 patchlevel 1

-----
[11] Who is working on this project?  How do I report bugs, offer help, etc.?

Stuart Cracraft is the project coordinator.  Mike McGann is the main developer
on GNU Chess 4.0.  Tim Mann is the main developer on XBoard.

You can contact all the members of the project by sending mail to
bug-gnu-chess@prep.ai.mit.edu.  Comments that are of interest to all users of
the software can be sent to info-gnu-chess@prep.ai.mit.edu, or posted to the
gnu.chess newsgroup.  (The mailing list and newsgroup forward to each other.)

Any time you want to report a possible bug in GNU Chess or XBoard, we need to
know exactly what you did, and exactly what error (or other) messages you got.
Run the Unix "script" program, do whatever is necessary to reproduce the
problem, type "exit" to the shell, and mail us the resulting typescript file.
If you're using XBoard, run it with the -debug flag.  We also need to know
what hardware/operating system combination you are using; include this
information in your message.

-----
[12] Does GNU Chess run on a PC under DOS (or Windows, or OS/2)?

Several different ports of GNU Chess to the PC are available on
chess.uoknor.edu, in the directory /pub/chess/DOS.  Here is some information
on them, but check the FTP site itself for more up-to-date information.

Porting GNU software to PCs is not a major focus of the GNU project, and these
ports are not supported by the FSF.  Contact the people who did the ports if
you have questions or problems.

MSDOS:
    gnu40-62.exe     1323260  Probably GNU Chess 4.0.pl62 for MSDOS
    gnu40dos.exe T    317072  GNU Chess 4.0pl60 by Free Software Foundation
                           -  compiled for DOS, executables only
    gnu40src.exe      307786  GNU Chess 4.0pl60 by Free Software Foundation
                           -  sources only
    gnuchs31.exe T    270559  GNU Chess 3.1 by Free Software Foundation
                           -  compiled for DOS, sources and executables
    gnuchs40.exe T    355494  GNU Chess 4.0pl60 by Free Software Foundation
                           -  compiled for 80386er, executables only

Windows:
    chess321.exe W  M 238185  GNU Chess 3.21 ported by Daryl K. Baker

OS/2:
    gpl65os2.zip      677824  gnuchess-4.0.pl65 compiled for os2.
    gc-os2-m.zip      578032  gnuchess 4.0 for os2 with mouse support.
    gnu40os2.zip     1303602  Executables for running gnuchess 4.0 pl62 under
			   -  OS/2. 
    pmchs.exe    W  M  92004  OS/2 PM Chess 1.01 (GNU Chess 3.1 Windows by
                           -  Daryl K. Baker) ported to OS/2 by Kent Cedola
    pmchssrc.exe      110279  OS/2 PM Chess 1.01 (GNU Chess 3.1 Windows by
                           -  Daryl K. Baker) sources only

-----
[13] Does GNU Chess run on an Amiga?

There are at least two ports of GNU Chess to the Amiga.  UChess is newer than
AmigaGnuChess.  Both are available on chess.uoknor.edu, in the directory
/pub/chess/Amiga.  As with the PC ports, they are not supported by the FSF;
contact the people who did the ports if you have problems or questions.

-r--r--r--  1 chess    chess      204025 Mar 31  1993 AmigaGnuChess.lha
-r--r--r--  1 chess    chess       10122 Mar 31  1993 AmigaGnuChess.readme

-r--r--r--  1 chess    chess      705327 May  7 10:28 UChess283.lha
-r--r--r--  1 chess    chess       21478 May  7 10:26 UChess283.readme
-r--r--r--  1 chess    chess      199387 May  7 10:27 UChess283Patch.lha
-r--r--r--  1 chess    chess       21589 May  7 10:26 UChess283Patch.readme

-----
[14] Does GNU Chess run on a Macintosh?

The Free Software Foundation is boycotting Apple Computer because of its "look
and feel" copyright lawsuits.  Therefore ports of GNU software to Apple
products are discouraged.

There is an old port of GNU Chess 3.0 to the Macintosh floating around, but it
is said to be very buggy.  If you have a copy of this port, please don't take
the bugs in it as indicative of the current state of GNU Chess.  GNU Chess has
come a long way since version 3.0.

-----
[15] How do I build GNU Chess?  Do I need gcc?

The first step to building GNU Chess is to get the distribution file and
unpack it.  See topic [9] for places you can ftp the distribution from.

To unpack the gnuchess distribution, gnuchess-*.tar.gz, put it into a new,
empty directory, cd there, and give this Unix command:

	gunzip < gnuchess-*.tar.gz | tar -xvf -

If this command fails because you don't have gunzip, see topic [9], and ask a
local Unix expert if you need more help.

The above command will unpack all the files into a new directory.  Next, cd
into this new directory.  You will find some instructions in a file named
INSTALL.  You will also need to read and edit the Makefile in the src
subdirectory before you build; it may contain information missing from the
INSTALL file.  

You must run both "make" and "make install" to fully build GNU Chess; the
"make install" command builds the book and copies the language file into the
right place so that the GNU Chess can find it.

You don't need to have gcc to build GNU Chess, but you do need an
ANSI-compliant C compiler.  An old compiler that supports only K&R C will not
work.

-----
[16] How do I build XBoard?  Do I need gcc?

The first step to building XBoard is to get the distribution file and unpack
it.  See topic [9] for places you can ftp the software from.

To unpack the xboard distribution, xboard-*.tar.gz, give this Unix command:

	gunzip < xboard-*.tar.gz | tar -xvf -

If this command fails because you don't have gunzip, see topic [9], and ask a
local Unix expert if you need more help.

The above command will unpack all the files into a new directory.  Next, cd
into this new directory.  You will find full instructions in a file named
INSTALL.  Be sure to follow them.  At this writing, the INSTALL file in XBoard
3.1 is up to date, but watch future versions of this FAQ for updates.

You don't need to have gcc to build XBoard, and your C compiler doesn't have
to be ANSI-compliant.

-----
[17] When I try to use GNU Chess with XBoard, it immediately says
  "Error: first chess program (gnuchessx) exited unexpectedly".  What 
  do I do?   

Try running XBoard again with the "-debug" flag on the command line.  This
will print out all the messages received from GNU Chess.  Most likely GNU
Chess is exiting with an error message.  If you see the message "NO LANGFILE",
it means that you did not install GNU Chess correctly, and it is unable to
find the file gnuchess.lang.  Make sure that you defined LIBDIR in the
gnuchess Makefile, and that gnuchess.lang is in that directory.  If
gnuchess.lang is not there, you probably didn't type "make install" in the
gnuchess src directory; you must do this to install gnuchess.lang and to build
and install the gnuchess book.

-----
[18] Sometimes GNU Chess doesn't seem to know when the game is over.  What's
  the matter? 

This is a bug in some versions of GNU Chess, but it is fixed in the current
patchlevel (4.0 pl 71).  Get the latest patchlevel if you see this problem.

-----
[19] XBoard sometimes hangs when I'm using it to play against GNU Chess on a
  position that I've modified with Edit Position.  What's the matter?

You need to get the latest version of GNU Chess.  A few recent versions of GNU
Chess contained a subtle change to the behavior of the "new" command that made
them incompatible with previous versions and with XBoard.  There is no way to
restore compatibility by changing XBoard, so instead, GNU Chess has been
changed back in the latest patchlevel.  See topic [10].

-----
[20] GNU Chess often uses a little too much time and lets its flag fall
  near the end of a time control period.  What's the matter?

GNU Chess is known to be a bit too aggressive in using its clock time and
sometimes lets its flag fall.  Some bugs that caused this symptom have been
fixed, but more work on the problem may be needed.

-----
[21] When I use GNU Chess with XBoard, it seems to freeze on me after
  it gets out of its opening book.  What do I do?

First, be sure you have the latest versions of GNU Chess and XBoard; see topic
[10] above.  If you do, and you still have this problem, check the following.

a) Perhaps the feature in GNU Chess that lets you stop it thinking on your
time by just entering your move is not working.  This feature relies on the
FIONREAD ioctl, which seems to be broken on some versions of Unix.  XBoard
uses this feature if the flag -DATTENTION is not present on the DEFINES line
of the XBoard Imakefile.  XBoard 3.1 and later are distributed with this flag
already set, so you should not have a problem unless you have removed it.  If
you have an earlier version of XBoard, edit the Imakefile to add -DATTENTION
to the DEFINES line, then type "make Makefile; rm *.o; make" in the XBoard
source directory, and try XBoard again.

b) You might have built your GNU Chess with the wrong -D options.  With some
versions of GNU Chess, this can cause GNU Chess and XBoard to disagree about
what units time is measured in, causing GNU Chess to think for 100 times as
long as it should.  Look at your GNU Chess Makefile and check that the line of
options marked "normal", not the line marked "gnufour ICS client", is
uncommented, something like this:

# gnufour ICS client
#
#OPT= -DUSEINT -DCACHE -DCLIENT -DGDX -DHASGETTIMEOFDAY -DNULLMOVE -DQUIETBACKGROUND -DBAREBONES -DWAY4PL64 -DHISTORY -DAGING 
# normal
OPT= -DUSEINT -DCACHE -DGDX -DHASGETTIMEOFDAY -DNULLMOVE -DQUIETBACKGROUND -DSEMIQUIETBOOKGEN -DWAY4PL64 -DHISTORY -DHASHSTATS -DAGING 

c) You might have a persistent transposition table (hashfile) that has been
corrupted.  Look in the LIBDIR directory you defined in the GNU Chess
Makefile, and if you find a file named gnuchess.hash there, remove it.  Do not
use the hashfile if you are running multiple copies of GNU Chess at the same
time (for instance, with Two Machines mode in XBoard).

-----
[22] When I use GNU Chess with XBoard, it sometimes tells me that moves
  are illegal when they aren't.  What's the matter?

a) First, be sure you have the latest versions of GNU Chess and XBoard; see
topic [10] above.  Several different bugs that could cause this symptom
existed in old versions but have been fixed in the latest ones.

b) One bug remains in gnuchess 4.0 pl71 that needs to be fixed.  Here is a
patch to genmoves.c:

*** genmoves.c.~1~	Tue May 10 05:44:21 1994
--- genmoves.c	Mon Aug 29 13:18:18 1994
***************
*** 285,291 ****
  		  }
  		else
  		  {
! 		      /* same row - */ for (p = &board[sq - 1], q = &color[sq - 1]; p > &board[(f / 8) * 8]; p -= 1, q -= 1)
  			{
  			    if (*q == neutral || p == &board[f])
  				continue;
--- 285,291 ----
  		  }
  		else
  		  {
! 		      /* same row - */ for (p = &board[sq - 1], q = &color[sq - 1]; p >= &board[(f / 8) * 8]; p -= 1, q -= 1)
  			{
  			    if (*q == neutral || p == &board[f])
  				continue;


c) Another possibility is that you have a persistent transposition table
(hashfile) that has been corrupted.  Look in the LIBDIR directory you defined
in the GNU Chess Makefile, and if you find a file named gnuchess.hash there,
remove it.  Do not use the hashfile if you are running multiple copies of GNU
Chess at the same time (for instance, with Two Machines mode in XBoard).

-----
[23] GNU Chess crashes when I try to compile and run it on the DEC Alpha AXP
  with -DLONG64 included in the Makefile OPTS.  What do I do?

This is a known bug in GNU Chess 4.0 patchlevel 70.  If you have that
version, you can apply the following patch to fix the bug:

*** 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);

-----
[24] I get an error message about FIONREAD when trying to build the GNU Chess
  book.  What do I do?

The message looks something like this:

> FIONREAD: Operation not supported on socket
> You probably have a non-ANSI <ioctl.h>; see README. -1 45 4004787f

If you are using gcc to compile, the solution to this error message is usually
to go to the GNU Chess Makefile, find the line that starts "CFLAGS=" (with no
# character in front of it), and append the flag "-traditional-cpp" to the end
of the line.  Then do

	rm dspcom*.o gnuan.o
	make
	make install

to rebuild gnuchess.

If you aren't using gcc, we don't really understand why this should happen,
but we do have a brute-force workaround: You can simply disable the gnuchess
feature that uses FIONREAD.  Find the two places in dspcom.c where the line
"#ifdef FIONREAD" occurs.  Change each of them to "#ifdef NOTDEF".  Then
recompile gnuchess.

With this code disabled, if you tell gnuchess to think on your time ("hard"
mode), you will have to type ^C to make it stop thinking when you want to make
your move.  The current version of XBoard does this automatically, so
disabling the code has no effect on XBoard.

-----
[25] I am having trouble building XBoard on HP-UX.  What can I do?

First, be sure you have the latest version of XBoard (see topic [10]).  Read
the INSTALL file carefully.  It contains special instructions for HP users,
including instructions on how to get the pieces of the X distribution that you
need to build XBoard but that HP does not supply.

If you have XBoard 3.1.pl1, and you are not using gcc to compile, apply the
following patch to XBoard's Imakefile, and then do "make Makefile; rm *.o;
make" to rebuild.

*** 1.8	1994/06/06 04:15:00
--- Imakefile	1994/06/13 00:15:37
***************
*** 19,25 ****
  #            LEX = flex
  
  #ifdef HPArchitecture
! #ifdef HasGcc
         CCOPTIONS = -fwritable-strings -D_HPUX_SOURCE
  #else
         CCOPTIONS = -Aa -D_HPUX_SOURCE
--- 19,25 ----
  #            LEX = flex
  
  #ifdef HPArchitecture
! #if HasGcc
         CCOPTIONS = -fwritable-strings -D_HPUX_SOURCE
  #else
         CCOPTIONS = -Aa -D_HPUX_SOURCE


-----
** End of gnu.chess FAQ **
