Re: [R] problems compiling under solaris

From: Peter Dalgaard <p.dalgaard_at_biostat.ku.dk>
Date: Tue 09 May 2006 - 06:46:16 EST

"Sul, Young L" <Sul@hcp.med.harvard.edu> writes:

> Hi!
> I've been trying to compile R with gcc version 3.4.2 on a box running Solaris 2.6.
>
> I keep on hitting this error during the compile:
>
> gcc -I. -I../../src/include -I../../src/include -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -std=gnu99 -c dynload.c -o dynload.o
> In file included from dynload.c:33:
> ../../src/include/Defn.h:943: error: parse error before "mbstate_t"
> make[3]: *** [dynload.o] Error 1
>
> Has anyone else hit this kind of compile error?

Solaris 2.6 is pretty darn old! (August 1997, according to Google)

Is it possible that it has an incomplete definition of the multibyte-character stuff in wchar.h et al.?

If so, it is somewhat odd that you get errors from within

#ifdef SUPPORT_MBCS

but you never know.

-- 
   O__  ---- Peter Dalgaard             ุster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)                  FAX: (+45) 35327907

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Tue May 09 06:50:39 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 09 May 2006 - 08:10:07 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.