From Dan.Kelley at phys.ocean.dal.ca  Sat May  1 14:32:43 2004
From: Dan.Kelley at phys.ocean.dal.ca (Dan.Kelley@phys.ocean.dal.ca)
Date: Sat May  1 19:00:54 2004
Subject: [Rd] will not compile on Fedora Core 2 Test 2 (PR#6844)
In-Reply-To: <Pine.LNX.4.44.0405011707550.9788-100000@gannet.stats>
References: <20040501152935.2B564ED92@slim.kubism.ku.dk>
	<Pine.LNX.4.44.0405011707550.9788-100000@gannet.stats>
Message-ID: <1755.142.177.39.160.1083414763.squirrel@www.phys.ocean.dal.ca>

> Please try the r-patched version of R.  This is a serious bug in the
> XFree86 4.4.x headers, that we have worked around by adding the lines
> shown

Thanks very much, Brian, especially for answering on a Saturday.

I wasn't sure what "r-patched" meant, and the developer page won't load
for me (using the link from the main R page), so I just altered the code
as suggested (patch shown below for verification) and it is now compiling
happily away, having jumped over this dataentry.c roadblock smoothly.

This makes me happy because I told some students the other day that they
should try Fedora Core 2, and that they should use R on it.

Dan.  (below shows the change I made, in accordance with your suggestion)

[kelley@localhost X11]$ diff -Naur dataentry.c dataentry.c~
--- dataentry.c 2004-05-01 13:50:58.504206988 -0300
+++ dataentry.c~        2004-03-27 09:46:11.000000000 -0400
@@ -27,10 +27,6 @@

 /* don't use X11 function prototypes (which tend to ...): */
 #define NeedFunctionPrototypes 0
-/* XFree 4.4.0 forgets to define this if NeedFunctionPrototypes=0 */
-#ifndef _Xconst
-#define _Xconst const
-#endif
 #include <X11/X.h>
 #include <X11/Xlib.h>
 #include <X11/Xutil.h>


[Rd] will not compile on Fedora Core 2 Test 2 (PR#6844)
Dan.Kelley@phys.ocean.dal.ca