Skip to content

will not compile on Fedora Core 2 Test 2 (PR#6844)

4 messages · Dan Kelley, Dan.Kelley@phys.ocean.dal.ca, Brian Ripley

#
Full_Name: Dan Kelley
Version: 1.9.0
OS: Fedora Core 2 Test 2
Submission from: (NULL) (142.177.39.160)


Pasted below is part of the output from    ./configure && make     on Fedora
Core 2 Test 2.  I am not sure what else to try, but if there are tests that
might help, I'd be very happy to do them.  (Note: this OS is pretty fresh, just
having been released a few days ago.  This is the first x11-employing
application I've built on the machine.)

make[4]: Entering directory `/home/kelley/src/R-1.9.0/src/modules/X11'
gcc -I. -I../../../src/include -I../../../src/include -I/usr/X11R6/include
-I/usr/local/include -DHAVE_CONFIG_H -D__NO_MATH_INLINES -mieee-fp -fPIC  -g -O2
-c dataentry.c -o dataentry.lo
In file included from dataentry.c:31:
/usr/X11R6/include/X11/Xlib.h:1400: error: syntax error before "_Xconst"
/usr/X11R6/include/X11/Xlib.h:1488: error: syntax error before "char"
/
#
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

/* 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

to dataentry.c.  This works for me on a XFree86 4.4.0 system, and for a 
few others, but we would appreciate confirmation.
On Sat, 1 May 2004 Dan.Kelley@Dal.Ca wrote:

            

  
    
#
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>
#
On Sat, 1 May 2004 Dan.Kelley@phys.ocean.dal.ca wrote:

            
See the R FAQ: it's the patched release at

ftp://ftp.stat.math.ethz.ch/Software/R/