Re: 4.6.99.2 Problem

David Dawes <[email protected]>
Newsgroups gmane.comp.xfree86.devel
Message-ID <[email protected]>
On Tue, Jun 27, 2006 at 03:37:29AM +0900, Takaaki Nomura wrote:
>I've tested 4.6.99.2 static/loader servers on Linux and FreeBSD.
>The servers didn't work. The problem didn't occur with 4.6.99.1.
>I've attached the servers' logs and gdb stack trace of the static
>server.

I committed the following patch that fixes this.

Thanks for the report.

David
fix.diff (text/plain, 622 B)
Index: xf86Init.c
===================================================================
RCS file: /home/x-cvs/xc/programs/Xserver/hw/xfree86/common/xf86Init.c,v
retrieving revision 3.242
retrieving revision 3.243
diff -u -r3.242 -r3.243
--- xf86Init.c	19 Jun 2006 13:43:26 -0000	3.242
+++ xf86Init.c	25 Jun 2006 04:12:54 -0000	3.243
@@ -211,7 +211,14 @@
 #endif
 };
 
-static int numFormats = sizeof(formats) / sizeof(formats[0]);
+#ifdef RENDER
+#define NUMDEFFORMATS 7
+#else
+#define NUMDEFFORMATS 6
+#endif
+
+static int numFormats = NUMDEFFORMATS;
+
 static Bool formatsDone = FALSE;
 
 InputDriverRec xf86KEYBOARD = {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.