Re: [R] problems compiling under solaris

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Tue 09 May 2006 - 06:44:01 EST

On Mon, 8 May 2006, Sul, Young L wrote:

> 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?

Not me (nor has it been reported and this has been the same for over a year), but try configuring with --disable-mbcs.

That is a very old OS, and its header files are probably not conformant to C99 or POSIX. (Even Solaris 8 which dates from 2000 needs libiconv installed before it will support MBCS, but this is picked up by configure.)

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

______________________________________________
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:49:48 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.