From ripley@stats.ox.ac.uk  Fri Sep  8 12:14:41 2000
From: ripley@stats.ox.ac.uk (ripley@stats.ox.ac.uk)
Date: Fri, 8 Sep 2000 13:14:41 +0200 (MET DST)
Subject: [Rd] Installing R from source ? (PR#655)
Message-ID: <200009081114.NAA10794@pubhealth.ku.dk>


> From: jniesch@gwdg.de
> Date: Fri, 8 Sep 2000 11:40:01 +0200 (MET DST)
> To: r-devel@stat.math.ethz.ch
> Subject: [Rd] Installing R from source ? (PR#655)
> CC: R-bugs@biostat.ku.dk
> X-Loop: R-bugs@biostat.ku.dk
> 
> Full_Name: Jens Nieschulze
> Version: R-1.1.1
> OS: sparc sun solaris 2.7
> Submission from: (NULL) (134.76.192.150)
> 
> 
> 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.

-- 
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 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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)
ripley@stats.ox.ac.uk