Hi, did anybody succeed in building R on SuSE Linux 9.1? My compilation failed with the following error messages: make[4]: Entering directory `/home/lederer/Source/R-1.9.0/src/modules/X11' gcc -I. -I../../../src/include -I../../../src/include -I/usr/X11R6/include -I/us r/local/include -DHAVE_CONFIG_H -D__NO_MATH_INLINES -mieee-fp -fPIC -g -O2 -c d ataentry.c -o dataentry.lo In file included from dataentry.c:31: /usr/X11R6/include/X11/Xlib.h:1400: error: parse error before "_Xconst" /usr/X11R6/include/X11/Xlib.h:1488: error: parse error before "char" /usr/X11R6/include/X11/Xlib.h:1516: error: parse error before "_Xconst" /usr/X11R6/include/X11/Xlib.h:1520: error: parse error before "char" /usr/X11R6/include/X11/Xlib.h:1542: error: parse error before "_Xconst" /usr/X11R6/include/X11/Xlib.h:1577: error: parse error before '*' token /usr/X11R6/include/X11/Xlib.h:1586: error: parse error before "_Xconst" ... lots more ... dataentry.c: In function `GetKey': dataentry.c:1272: warning: passing arg 4 of `XLookupString' from incompatible po inter type dataentry.c: In function `GetCharP': dataentry.c:1281: warning: passing arg 4 of `XLookupString' from incompatible po inter type dataentry.c: In function `doControl': dataentry.c:1302: warning: passing arg 4 of `XLookupString' from incompatible po inter type make[4]: *** [dataentry.lo] Fehler 1 make[4]: Leaving directory `/home/lederer/Source/R-1.9.0/src/modules/X11' make[3]: *** [R] Fehler 2 make[3]: Leaving directory `/home/lederer/Source/R-1.9.0/src/modules/X11' make[2]: *** [R] Fehler 1 make[2]: Leaving directory `/home/lederer/Source/R-1.9.0/src/modules' make[1]: *** [R] Fehler 1 make[1]: Leaving directory `/home/lederer/Source/R-1.9.0/src' make: *** [R] Fehler 1 The same happened for R-1.8.1. However, i cannot believe that SuSE 9.1 contains faulty Xlib.h, since i can compile other programs including this file. Fortunetely i could install the rpm for SuSE 9.0. Christian :-(
Hi! My copy of suse 9.1 is on its way, so I expect rpms by the end of the week. (If I can get past that error ... ) detlef On Mon, 03 May 2004 04:33:12 +0200 christianlederer at t-online.de (Christian Lederer) wrote:> > Hi, > > did anybody succeed in building R on SuSE Linux 9.1? > My compilation failed with the following error messages: > > make[4]: Entering directory `/home/lederer/Source/R-1.9.0/src/modules/X11' > gcc -I. -I../../../src/include -I../../../src/include > -I/usr/X11R6/include -I/us > r/local/include -DHAVE_CONFIG_H -D__NO_MATH_INLINES -mieee-fp -fPIC -g > -O2 -c d > ataentry.c -o dataentry.lo > In file included from dataentry.c:31: > /usr/X11R6/include/X11/Xlib.h:1400: error: parse error before "_Xconst" > /usr/X11R6/include/X11/Xlib.h:1488: error: parse error before "char" > /usr/X11R6/include/X11/Xlib.h:1516: error: parse error before "_Xconst" > /usr/X11R6/include/X11/Xlib.h:1520: error: parse error before "char" > /usr/X11R6/include/X11/Xlib.h:1542: error: parse error before "_Xconst" > /usr/X11R6/include/X11/Xlib.h:1577: error: parse error before '*' token > /usr/X11R6/include/X11/Xlib.h:1586: error: parse error before "_Xconst" > ... > lots more > ... > dataentry.c: In function `GetKey': > dataentry.c:1272: warning: passing arg 4 of `XLookupString' from > incompatible po > inter type > dataentry.c: In function `GetCharP': > dataentry.c:1281: warning: passing arg 4 of `XLookupString' from > incompatible po > inter type > dataentry.c: In function `doControl': > dataentry.c:1302: warning: passing arg 4 of `XLookupString' from > incompatible po > inter type > make[4]: *** [dataentry.lo] Fehler 1 > make[4]: Leaving directory `/home/lederer/Source/R-1.9.0/src/modules/X11' > make[3]: *** [R] Fehler 2 > make[3]: Leaving directory `/home/lederer/Source/R-1.9.0/src/modules/X11' > make[2]: *** [R] Fehler 1 > make[2]: Leaving directory `/home/lederer/Source/R-1.9.0/src/modules' > make[1]: *** [R] Fehler 1 > make[1]: Leaving directory `/home/lederer/Source/R-1.9.0/src' > make: *** [R] Fehler 1 > > The same happened for R-1.8.1. > However, i cannot believe that SuSE 9.1 contains faulty Xlib.h, > since i can compile other programs including this file. > Fortunetely i could install the rpm for SuSE 9.0. > > Christian :-( > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html >-- Detlef Steuer --- http://fawn.unibw-hamburg.de/steuer.html ***** Encrypted mail preferred *****
It is the result of a bug in the XFree 4.4.0 headers. Please try the patched version r-patched (see the FAQ) where we have a workaround in src/modules/X11/dataentry.c (and quite a few other bug fixes). On Mon, 3 May 2004, Christian Lederer wrote:> > Hi, > > did anybody succeed in building R on SuSE Linux 9.1? > My compilation failed with the following error messages: > > make[4]: Entering directory `/home/lederer/Source/R-1.9.0/src/modules/X11' > gcc -I. -I../../../src/include -I../../../src/include > -I/usr/X11R6/include -I/us > r/local/include -DHAVE_CONFIG_H -D__NO_MATH_INLINES -mieee-fp -fPIC -g > -O2 -c d > ataentry.c -o dataentry.lo > In file included from dataentry.c:31: > /usr/X11R6/include/X11/Xlib.h:1400: error: parse error before "_Xconst" > /usr/X11R6/include/X11/Xlib.h:1488: error: parse error before "char" > /usr/X11R6/include/X11/Xlib.h:1516: error: parse error before "_Xconst" > /usr/X11R6/include/X11/Xlib.h:1520: error: parse error before "char" > /usr/X11R6/include/X11/Xlib.h:1542: error: parse error before "_Xconst" > /usr/X11R6/include/X11/Xlib.h:1577: error: parse error before '*' token > /usr/X11R6/include/X11/Xlib.h:1586: error: parse error before "_Xconst" > ... > lots more > ... > dataentry.c: In function `GetKey': > dataentry.c:1272: warning: passing arg 4 of `XLookupString' from > incompatible po > inter type > dataentry.c: In function `GetCharP': > dataentry.c:1281: warning: passing arg 4 of `XLookupString' from > incompatible po > inter type > dataentry.c: In function `doControl': > dataentry.c:1302: warning: passing arg 4 of `XLookupString' from > incompatible po > inter type > make[4]: *** [dataentry.lo] Fehler 1 > make[4]: Leaving directory `/home/lederer/Source/R-1.9.0/src/modules/X11' > make[3]: *** [R] Fehler 2 > make[3]: Leaving directory `/home/lederer/Source/R-1.9.0/src/modules/X11' > make[2]: *** [R] Fehler 1 > make[2]: Leaving directory `/home/lederer/Source/R-1.9.0/src/modules' > make[1]: *** [R] Fehler 1 > make[1]: Leaving directory `/home/lederer/Source/R-1.9.0/src' > make: *** [R] Fehler 1 > > The same happened for R-1.8.1. > However, i cannot believe that SuSE 9.1 contains faulty Xlib.h, > since i can compile other programs including this file. > Fortunetely i could install the rpm for SuSE 9.0. > > Christian :-( > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html > >-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
Maybe Matching Threads
- Build problem with R-1.4.1 on AM64/Linux
- linux: compilation problems with gcc 3.3.3 and xorg (PR#6992)
- R 1.90 make problem with /usr/X11R6/include/X11/Xutil.h on suse linux 9.1?
- With which version of XFree86 can R compile?
- R-release.diff + R-1.9 -> success on Fedora Core 2, R RPM available; ess-emacs-5.1.20 also available