Skip to content

Re R-beta: 0.61.3: Problems on DEC Unix 4.0

2 messages · David Barber, Peter Dalgaard

#
I have been playing around with compiling R using cc some more this
afternoon.  

I fixed the newline problem in graphics.c by combining the statement
into one line, eliminating the newlines in the middle of the statement.

This then got me to another problem.  The compile failed because 
readline.h was to be included in unix/system.c   This problem apparently
occurs because of the definition of HAVE_READLINE in Platform.h.
That file appears to be generated by the ./configure script, so the problem
must be the way that this script has been written.

After I commented out this definition, everything compiles fine but now I
get the error message 
 
Error in paste("echo $", i, sep = "") : negative length vectors are not
allowed

when I start the program and when I try to run the demos.  I have not
yet looked for the cause of this problem.   Can anyone suggest a place
to look?

David Barber

----------
error
following
complain.
lines.
the
----------------------------------------------------------------------------
--
----------------------------------------------------------------------------
--
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
-.-
http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
_._

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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 at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
"David Barber" <david at ohiolink.edu> writes:
As I mentioned in another post, the problem is that it doesn't want to
look all over the system disk for the location of the readline include
files, so what can happen is that it finds libreadline in a standard
location and decides that readline is there but can't find the include
files later on.

All you have to do is to supply a -I argument to gcc with the correct
location. Of course, there are some locations that are semi-standard
(/opt/gnu, e.g.) and probably configure can be persuaded to do a
better search. Or, make a symbolic link to the actual location from
/usr/local/include.
This one is nasty! I bet something is not quite 64-bit clean. If you
know your way around gdb, it would be very nice to see a stack trace
at the point where the error is generated (line 307,
src/main/memory.c).