From ripley@stats.ox.ac.uk  Tue Feb 25 18:19:02 2003
From: ripley@stats.ox.ac.uk (ripley@stats.ox.ac.uk)
Date: Tue Feb 25 18:19:02 2003
Subject: [Rd] R-devel problems
In-Reply-To: <A0742091-1E3E-11B2-B84B-000393860F3C@stat.ucla.edu>
Message-ID: <Pine.LNX.4.44.0302251717050.18232-100000@gannet.stats>

If you

1) Tell configure not to look for X includes

2) Tell it a TCLTK_CPPFLAGS omitting X includes

then I think you should expect no X includes to be found, no?

Brian

On Thu, 1 Jan 1970, Jan de Leeuw wrote:

> As for the tcl/tk, I actually configured without pointing to 
> tclConfig.sh
> and tkConfig.sh at all, but putting TCLTK_LIBS and TCLTK_CPPFLAGS
> in the environment.
> 
> I could try to use, in addition,  --with-tclconfig and --with-tkconfig, 
> but I
> thought that would not be necessary if location of headers and libs are
> defined explicitly.
> 
> On Tuesday, February 25, 2003, at 12:06 AM, ripley@stats.ox.ac.uk wrote:
> 
> > 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
> >
> 
> ______________________________________________
> R-devel@stat.math.ethz.ch mailing list
> http://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



[Rd] R-devel problems
ripley@stats.ox.ac.uk