🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.chess
Article #5743

Re: Problem with FIONREAD on SPARC

#5743
From: david bourgoyne
Date: Wed, 01 Jul 1992 04:12
53 lines
3079 bytes
In article <22178@hacgate.UUCP> schulman@madmax.hrl.hac.com (Joel Schulman) writes:

   Path: fstop.csc.ti.com!tilde.csc.ti.com!csc.ti.com!cs.utexas.edu!sun-barr!ames!elroy.jpl.nasa.gov!usc!hacgate!madmax!schulman
   From: schulman@madmax.hrl.hac.com (Joel Schulman)
   Newsgroups: gnu.chess
   Date: 29 Jun 92 16:21:30 GMT
   References: <1992Jun29.122726.27816@cenaath.cena.dgac.fr>
   Sender: news@hacgate.UUCP
   Organization: Hughes Research Labs, Malibu, Calif.
   Lines: 22

   In article <1992Jun29.122726.27816@cenaath.cena.dgac.fr> desquine@stna.dgac.fr (Bruno Desquines STNA 7SU p8069 BD24) writes:
   >
   >	First , thanks to Stuart Cracraft for his work on Gnuchess.
   >
   > I have a problem with gnuchess4.0.pl52 , I can't execute it .
   > I've got always the same message , error ioctl with FIONREAD.
   > I've tried to compile it with gcc1.40 , gcc2.0 and gcc2.2 without success.
   >
   >	Anybody can help me ? Thanks a lot.

   I had the same problem, and I cannot understand the
   "WARNING" file that supposedly explains what to do
   with FIONREAD.
   So I compiled it with ordinary cc (SPARC IPX, SunOS4.1.1).
   You will need an unprotoizer. I found one, "unproto", at
   gatekeeper.dec.com in Volume27 of comp.sources.misc. DO
   NOT use the patch in Volume28; it screws it up. unproto
   compiles with no problem and produces "cpp". Then, choose
   the line in the gnuchess Makefile which uses the Qpath
   switch to point to the subdirectory where cpp is.

   JOEl

After scratching my head for several minutes trying to understand
the "WARNING" file, I uncommented the last CFLAGS line in the
Makefile.  This did the trick.

# Miscellaneous CFLAGS. Uncomment the one you need and comment 
# the other.
#CFLAGS= -p -Dinline=""	 -traditional-cpp
#CFLAGS=	-O4 -Qpath .  # SunOS cc using unprotoize
#CFLAGS= -O4 # Sun acc
#CFLAGS= -g # debug
#CFLAGS= -O   -finline-functions -fstrength-reduce  # gnu cc 1.40
#CFLAGS= -O   -finline-functions -fstrength-reduce -D__mips -D__LANGUAGE_C # gnu cc on DS5000
#CFLAGS= -O2   -funroll-loops  # gnu cc  2.00 on others
#CFLAGS= -O -Aa -DSIGQUIT=_SIGQUIT -DSYSV # HPUX cc 
CFLAGS= -O2  -funroll-loops -traditional-cpp  # gnu cc  2.00 on SunOS


David W. Bourgoyne      (david@bacchus.dseg.ti.com)
Texas Instruments
Technical Details
Message-ID: <DAVID.92Jun30221209@delphi.dseg.ti.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!cs.utexas.edu!csc.ti.com!tilde.csc.ti.com!fstop.csc.ti.com!fstop!david
References: <1992Jun29.122726.27816@cenaath.cena.dgac.fr> <22178@hacgate.UUCP>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d71d,59953e5278b81dd8
X-Google-Attributes: gid10d71d,public
X-Google-ArrivalTime: 1992-06-30 11:36:18 PST
Newsgroups: gnu.chess
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!cs.utexas.edu!csc.ti.com!tilde.csc.ti.com!fstop.csc.ti.com!fstop!david
From: david@dseg.ti.com (david bourgoyne)
Subject: Re: Problem with FIONREAD on SPARC
In-Reply-To: schulman@madmax.hrl.hac.com's message of 29 Jun 92 16:21:30 GMT
Message-ID: <DAVID.92Jun30221209@delphi.dseg.ti.com>
Sender: usenet@csc.ti.com
Nntp-Posting-Host: delphi.dseg.ti.com
Organization: /home/david/.organization
References: <1992Jun29.122726.27816@cenaath.cena.dgac.fr> <22178@hacgate.UUCP>
Date: Wed, 1 Jul 1992 04:12:09 GMT
Lines: 53