[Rd] R-devel problems

ripley@stats.ox.ac.uk ripley@stats.ox.ac.uk
Tue Feb 25 09:08:07 2003


On Mon, 24 Feb 2003, Jan de Leeuw wrote:

> The OS X configure in R-devel has been changed to use two-level 
> namespaces. There
> are still some problems.
> 
> 1. Trunmed.c in the modreg packages defines a function heapsort(), 
> while heapsort
> is also defined (differently) in /usr/lib/stdlib.h. I (temporarily) 
> disabled the
> definition in stdlib.h.

That's a very recent addition, and we do try to keep an eye on such
things. The R symbol has been changed now.

> 2. If R is configured with the --without-x flag, then CPPFLAGS does not 
> include
> /usr/X11R6/include, while the tk.h files still tries to include 
> X11/xlib.h (and
> can't find it, obviously). I added -I /usr/X11R6/include to the compile 
> of tcltk.o

This looks like a bug in your tkConfig.sh.  For example on Solaris it has

# -I switch(es) to use to make all of the X11 include files accessible:
TK_XINCLUDES='-I/usr/openwin/include'

and that is what R uses, specifically

  if test -n "${TK_XINCLUDES}"; then
    TCLTK_CPPFLAGS="${TCLTK_CPPFLAGS} ${TK_XINCLUDES}"
  else
    TCLTK_CPPFLAGS="${TCLTK_CPPFLAGS} ${X_CFLAGS}"
  fi

Or is tkConfig.sh not being found and you need to point configure at it?

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