www.delorie.com/archives/browse.cgi   search  
Mail Archives: pgcc/1998/01/16/21:00:18

X-POP3-Rcpt: mlehmann AT universe DOT sgh-net DOT de
16 Jan 1998 21:00:18 +0000 (GMT) :
From: Bernhard Rosenkraenzer <linux AT bero-online DOT ml DOT org>
X-Sender: linux AT ufp DOT in-trier DOT de
To: Jeffrey Hundstad <jeffrey DOT hundstad AT mankato DOT msus DOT edu>
cc: beastium-list AT Desk DOT nl
Subject: Re: pgcc-2.91.03 971225 (gcc-2.8.0) fails where gcc-2.7.2.3 doesn't - X 11R6
In-Reply-To: <199801161632.KAA10155@mail.mankato.msus.edu>
Message-ID: <Pine.LNX.3.96.980116204626.612B-100000@ufp.in-trier.de>
MIME-Version: 1.0
Sender: Marc Lehmann <pcg AT goof DOT com>
Status: RO
Lines: 36

On Fri, 16 Jan 1998, Jeffrey Hundstad wrote:

> When compiling X11R6-331 from
>
> check.c: In function `CheckFloat':
> check.c:136: array size missing in `lastfp'
> check.c: In function `HackFloat':
> check.c:196: array size missing in `lastfp'
> make[6]: *** [check.o] Error 1
> 
> 
> while gcc-2.7.2.3 compiles this file with no warnings... or errors....

This is a bug in X. check.c relies on a nonstandard behavior in gcc 2.7.x,
and won't compile with egcs, pgcc or gcc 2.8.0.

You can fix it by changing line 136 of check.c to:
extern INT16 lastfp[MAXCLIENTS];

Similarily, line 196 should read
extern INT16 lastfp[MAXCLIENTS];


LLaP
bero

-- bero AT bero-online DOT ml DOT org - ICQ/UIN 6545964 - http://www.star-trek.ml.org/ --

"Nobody will ever need more than 640k RAM!"
                           -- Bill Gates, 1981
"Windows 95 needs at least 8 MB RAM."
                           -- Bill Gates, 1996
"Nobody will ever need Windows 95."
                           -- logical conclusion



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019