🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.chess
Article #3748

Re: Compiling on Irix

#3748
From: dale southard
Date: Wed, 18 Dec 1996 00:00
61 lines
2600 bytes
Kent A Vander Velden (graphix@iastate.edu) wrote:
>    What needs to be changed in order to compile gnuchess on Irix 5.3?  I
> get the following error message:
> 
> src|Tue9:41pm} make
>         rm -f gnuchess.eco step1.eco step2.eco
>         echo 0 0 | ./ecor -b ./../book/eco.pgn -B step1.eco
> 
> FIONREAD: Operation not applicable
> You probably have a non-ANSI <ioctl.h>; see README. -1 89 4004667f
> *** Error code 1 (bu21)
> 
> 
>   Thanks.

From the GNUChess FAQ:

---begin quote---

[C.8] Running (or building) GNU Chess fails with a message about FIONREAD. 

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 all the places in dspcom.c 
(and gnuan.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. 

---end quote---

I can verify that the second approach words under IRIX 6.2 when
using the SGI compilers (-n32 ABI).  It will probably also work
under 5.3/-32 ABI.


-- 
/* Dale Southard Jr.   [http://www.nd.edu/~dsouth]   AFF/I  SL/I      */
/* Science Computing Associate  [pgp on www]          S&TA  D-11216   */
/* University of Notre Dame, 202B NSH           Sr. Rigger  VectorTM  */
/* southard.1@nd.edu   219/631-7326          "I'd rather be skydiving"*/
Technical Details
Message-ID: <599c6o$lnt@news.nd.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <graphix.850880472@spiff.cc.iastate.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d71d,6502fca17203b4e3
X-Google-Attributes: gid10d71d,public
From: dsouth@tin.helios.nd.edu (dale southard)
Subject: Re: Compiling on Irix
Date: 1996/12/18
Message-ID: <599c6o$lnt@news.nd.edu>
X-Deja-AN: 204773265
references: <graphix.850880472@spiff.cc.iastate.edu>
organization: University of Notre Dame
newsgroups: gnu.chess