X-POP3-Rcpt: mlehmann AT universe DOT sgh-net DOT de 16 Jan 1998 21:00:18 +0000 (GMT) From: Bernhard Rosenkraenzer X-Sender: linux AT ufp DOT in-trier DOT de To: Jeffrey Hundstad 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: Marc Lehmann Status: RO Content-Length: 989 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