Re: R-beta: Problems during compilation of R for Solaris 2.6

Kurt Hornik (Kurt.Hornik@ci.tuwien.ac.at)
Sat, 28 Mar 1998 09:31:39 +0100


Date: Sat, 28 Mar 1998 09:31:39 +0100
Message-Id: <199803280831.JAA17648@aragorn.ci.tuwien.ac.at>
From: Kurt Hornik <Kurt.Hornik@ci.tuwien.ac.at>
To: Thomas Lumley <thomas@biostat.washington.edu>
Subject: Re: R-beta: Problems during compilation of R for Solaris 2.6
In-Reply-To: <Pine.SUN.3.95.980327093733.29935A-100000@chekov>
	<Pine.SUN.3.95.980327093733.29935A-100000@chekov>

>>>>> Thomas Lumley writes:

> On Fri, 27 Mar 1998, Dott. Nunzia Galdi wrote:
>> I am inexperienced in C program compilation and I receive the following
>> error during the compilation of R (version 0.61.2) for Solaris 2.6.
>> I have installed the gcc 2.8.0 version.
>> 
>> >> gcc  -o R.binary arithmetic.o  array.o  attrib.o  bind.o  builtin.o  character.o  >> coerce.o  colors.o  complex.o  context.o  cov.o  cum.o  dataframe.o  debug.o  >> deparse.o  deriv.o  dotcode.o  dstruct.o  duplicate.o  envir.o  errors.o  eval.o  >> format.o  fourier.o  iosupport.o  gram.o  list.o  logic.o  main.o  match.o  memory.o >> model.o  names.o  objects.o  optimize.o  options.o  par.o  paste.o plot.o  plot3d.o  >> plotmath.o  print.o  printarray.o  printvector.o  printutils.o  random.o  relop.o  >> saveload.o  scan.o  seq.o  sort.o  source.o  split.o  subassign.o  subscript.o  >> subset.o  summary.o  unique.o  util.o  version.o ../lib/libgraphics.a  >> ../lib/libunix.a  ../lib/libappl.a  ../lib/libmath.a -lSM -lICE -L/usr/openwin/lib >> -R/usr/openwin/lib -lX11 -lsocket  -lnsl -ldl -lreadline -ltermcap -lm
>> >>
>> >> Undefined                       first referenced
>> >>  symbol                             in file
>> >> xrealloc                            /usr/local/lib/libreadline.a(readline.o)
>> >> xmalloc                             /usr/local/lib/libreadline.a(readline.o)
>> >> ld: fatal: Symbol referencing errors. No output written to R.binary

> I have this problem under SunOS.  It seems that there is something wrong
> with your system's version of the readline library.  You can either get a
> new version (from any GNU archive) or build R without readline support.
> This disables the nice command-line editing features, but you can get them
> back by running R under emacs using ESS (see the R FAQ for details).

> You can disable readline support by removing the line
>    #define HAVE_LIBREADLINE 1
> from src/include/Platform.h

> (In theory you should be able to just do 
> 	configure --without-readline
>  but this hasn't been implemented)

In practice and 0.62, it is there, but called --enable-readline.
I.e.

	./configure --enable-readline		# use readline
	./configure --enable-readline=yes	# use readline

	./configure --enable-readline=no	# don't use it

-k
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._