From ripley at stats.ox.ac.uk  Sun Jun 20 12:09:24 2004
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Sun Jun 20 12:09:32 2004
Subject: (PR#6992)[Rd] linux: compilation problems with gcc 3.3.3 and xorg
In-Reply-To: <20040620094700.88ED3EAEA@slim.kubism.ku.dk>
Message-ID: <Pine.LNX.4.44.0406201104110.6208-100000@gannet.stats>

This is a known bug in some distributions of XFree 4.4.0 (and not in R).

It is the same as PR#6805 and PR#6844 and PR#6855 and PR#6965 and has been
worked around in R-patched for a couple of months and in R-1.9.1 beta (due 
for release tomorrow).

Please report the bug to the supplier of your Linux distro.

On Sun, 20 Jun 2004 acrux@enduro.zzn.com wrote:

> Full_Name: acrux
> Version: 1.9.0
> OS: linux (Crux2.0)
> Submission from: (NULL) (151.37.85.179)
> 
> 
> info linux distro:
> acrux@vesuvio:~$ crux
> CRUX version 2.0
> acrux@vesuvio:~$ uname -a
> Linux vesuvio 2.6.7-ck1-vesuvio #1 Sat Jun 19 12:52:24 CEST 2004 i686 unknown
> unknown GNU/Linux
> acrux@vesuvio:~$ gcc --ver
> Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/specs
> Configured with: ../gcc-3.3.3/configure --prefix=/usr
> --enable-languages=c,c++,objc,f77 --enable-threads=posix --enable-__cxa_atexit
> --enable-clocale=gnu --enable-shared --disable-nls
> Thread model: posix
> gcc version 3.3.3 (CRUX)
> 
> 
> problems during the source compilation, maybe X.org incompatibility:
> make[4]: Entering directory `/root/ports/r/work/src/R-1.9.0/src/modules/X11'
> /usr/bin/ccache-gcc -I. -I../../../src/include -I../../../src/include -I/usr/X11
>      R6/include -I/usr/local/include -DHAVE_CONFIG_H -D__NO_MATH_INLINES
> -mieee-fp -f      PIC  -O3 -march=athlon-xp -pipe -fomit-frame-pointer -c
> dataentry.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"
> /usr/X11R6/include/X11/Xlib.h:1611: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xlib.h:1661: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xlib.h:1667: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xlib.h:1714: error: parse error before "char"
> /usr/X11R6/include/X11/Xlib.h:1753: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xlib.h:1994: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xlib.h:2078: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xlib.h:2331: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xlib.h:2341: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xlib.h:2413: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xlib.h:2423: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xlib.h:2581: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xlib.h:2596: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xlib.h:2789: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xlib.h:2856: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xlib.h:2861: error: parse error before "char"
> /usr/X11R6/include/X11/Xlib.h:2975: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xlib.h:3001: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xlib.h:3012: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xlib.h:3037: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xlib.h:3046: error: parse error before "char"
> /usr/X11R6/include/X11/Xlib.h:3059: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xlib.h:3202: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xlib.h:3251: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xlib.h:3283: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xlib.h:3374: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xlib.h:3381: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xlib.h:3401: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xlib.h:3407: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xlib.h:3419: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xlib.h:3429: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xlib.h:3439: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xlib.h:3445: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xlib.h:3546: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xlib.h:3563: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xlib.h:3614: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xlib.h:3657: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xlib.h:3663: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xlib.h:3669: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xlib.h:3675: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xlib.h:3683: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xlib.h:3691: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xlib.h:3699: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xlib.h:3711: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xlib.h:3723: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xlib.h:3770: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xlib.h:3781: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xlib.h:3792: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xlib.h:3803: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xlib.h:3814: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xlib.h:3825: error: parse error before "_Xconst"
> In file included from dataentry.c:32:
> /usr/X11R6/include/X11/Xutil.h:566: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xutil.h:606: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xutil.h:666: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xutil.h:678: error: parse error before "_Xconst"
> /usr/X11R6/include/X11/Xutil.h:801: error: parse error before "_Xconst"
> 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] Error 1
> make[4]: Leaving directory `/root/ports/r/work/src/R-1.9.0/src/modules/X11'
> make[3]: *** [R] Error 2
> make[3]: Leaving directory `/root/ports/r/work/src/R-1.9.0/src/modules/X11'
> make[2]: *** [R] Error 1
> make[2]: Leaving directory `/root/ports/r/work/src/R-1.9.0/src/modules'
> make[1]: *** [R] Error 1
> make[1]: Leaving directory `/root/ports/r/work/src/R-1.9.0/src'
> make: *** [R] Error 1
> =======> ERROR: Building '/root/ports/r/r#1.9.0-2.pkg.tar.gz' failed.
> 
> ______________________________________________
> R-devel@stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-devel
> 
> 

-- 
Brian D. Ripley,                  ripley@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


(PR#6992)[Rd] linux: compilation problems with gcc 3.3.3 and xorg
Prof Brian Ripley