From p.dalgaard@biostat.ku.dk  Fri Sep  8 12:37:55 2000
From: p.dalgaard@biostat.ku.dk (Peter Dalgaard BSA)
Date: 08 Sep 2000 13:37:55 +0200
Subject: [Rd] Installing R from source ? (PR#655)
In-Reply-To: ripley@stats.ox.ac.uk's message of "Fri, 8 Sep 2000 13:14:41 +0200 (MET DST)"
References: <200009081114.NAA10794@pubhealth.ku.dk>
Message-ID: <x2bsxz15d8.fsf@blueberry.kubism.ku.dk>

ripley@stats.ox.ac.uk writes:

> > I tried to install R today and got the following at the first try
> > 
> > rbitmap.c:239: parse error before `jmp_buf'
> > rbitmap.c:239: warning: no semicolon at end of struct or union
> > rbitmap.c: In function `my_error_exit':
> > rbitmap.c:257: dereferencing pointer to incomplete type
> > rbitmap.c: In function `R_SaveAsJpeg':
> > rbitmap.c:279: storage size of `jerr' isn't known
> > 
> > after changing the source code (replacing the ';' with a ',' and adding some
> > ','
> > of rbitmap.c in lines 239 and 240 it installed correctly.
> 
> Ah, but it was correct before you altered its meaning.  What
> the error message appears to say is that `jmp_buf' is not defined on
> your system.  jmp_buf is defined on Solaris 2.7 in
> /usr/include/setjmp.h, which should be included.
> 
> Do you have png installed?  I've run this assuming not and got similar
> error messages. Solve them by adding
> 
> #include <setjmp.h>
> 
> at line 234 of rbitmap.c.  The png stuff includes setjmp.h.

Could well be a better diagnosis than what I suggested. Compiler
errors are often a word or two off relative to the actual location of
the problem. Easy thing to try, certainly. 

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] Installing R from source ? (PR#655)
Peter Dalgaard BSA