Article View: gnu.chess
Article #5744Re: Problem with FIONREAD on SPARC
From: Chiaki Ishikawa
Date: Thu, 02 Jul 1992 09:37
Date: Thu, 02 Jul 1992 09:37
31 lines
2250 bytes
2250 bytes
In article <DAVID.92Jun30221209@delphi.dseg.ti.com> david@dseg.ti.com (david bourgoyne) writes:
> 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.
...
> #CFLAGS= -O -Aa -DSIGQUIT=_SIGQUIT -DSYSV # HPUX cc
> CFLAGS= -O2 -funroll-loops -traditional-cpp # gnu cc 2.00 on SunOS
I think the problem is a well known one on Sun platform. (If you check
gnu.gcc.* newsgroup, the problem is mentioned now and then.)
Namely, Sun's header files contain non-ANSI construct especially with
_IO* () macros. Gcc, being ANSI-compliant, preprorcess the source in a
different way from the way how Sun's cpp expects to handle it. When
you install gcc, the installer is supposed to run `fixincludes' which
`fix'es the header files so that they can be compiled with gcc. I
think using -traditional-cpp is a good solution.
--
------------------------------------------------------------------
Chiaki Ishikawa Phone:+81-3-5702-0351
Personal Media Corp. FAX:+81-3-5702-0359
MY Bldg, 1-7-7 Hiratsuka, UUNET: ... uunet!pmcgw!ishikawa, or
Shinagawa-ku, Tokyo 142 ishikawa%pmcgw@uunet.uu.net
JAPAN JUNET: ishikawa@personal-media.co.jp
------------------------------------------------------------------
Technical Details
Message-ID:
<ISHIKAWA.92Jul2183754@ds5200.personal-media.co.jp>Path:
arc1-ca.pugleaf.net!sparky!uunet!pmcgw!ds5200.personal-media.co.jpReferences:
<1992Jun29.122726.27816@cenaath.cena.dgac.fr> <22178@hacgate.UUCP> <DAVID.92Jun30221209@delphi.dseg.ti.com>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-07-02 06:39:04 PST Path: arc1-ca.pugleaf.net!sparky!uunet!pmcgw!ds5200.personal-media.co.jp From: ishikawa@ds5200.personal-media.co.jp (Chiaki Ishikawa) Newsgroups: gnu.chess Subject: Re: Problem with FIONREAD on SPARC Message-ID: <ISHIKAWA.92Jul2183754@ds5200.personal-media.co.jp> Date: 2 Jul 92 09:37:54 GMT References: <1992Jun29.122726.27816@cenaath.cena.dgac.fr> <22178@hacgate.UUCP> <DAVID.92Jun30221209@delphi.dseg.ti.com> Sender: news@pmcgw.personal-media.co.jp Reply-To: ishikawa@personal-media.co.jp Organization: Personal Media Corp., Tokyo Japan Lines: 31 Nntp-Posting-Host: ds5200 In-reply-to: david@dseg.ti.com's message of 1 Jul 92 04:12:09 GMT