[Rd] R-beta_2010-10-02_r53128 fails to compile on FreeBSD

Prof Brian Ripley ripley at stats.ox.ac.uk
Sun Oct 3 17:58:43 CEST 2010


On Sun, 3 Oct 2010, Rainer Hurling wrote:

...
>>> Is this a known error? I would really appreciate if someone could give
>>> me a hint.
>> 
>> Not known, and as it is a POSIX construction almost all OSes have it.
>
> Hmmm. It seems its implementation in FreeBSD (CURRENT) is a little different 
> from other OSes?
>
>> Can you try (in sysutils.c and sys-unix.c) replacing
>> 
>> #ifdef HAVE_SYS_WAIT_H
>> 
>> by
>> 
>> #if defined(HAVE_SYS_WAIT_H) && defined(WEXITSTATUS)
>> 
>> ?
>
> Yes, with this patch in both files all works again. I tried it with gcc-4.4.5 
> and gcc-4.5.2. Is there any chance to get it in the release (R-2.12.0)?

Yes, of course.  (After a little more testing on other platforms.)

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



More information about the R-devel mailing list