[Rd] R build on i86pc Solaris 2.7 (PR#677)

ripley@stats.ox.ac.uk ripley@stats.ox.ac.uk
Mon, 2 Oct 2000 17:59:35 +0200 (MET DST)


It's related to having jpeg and not png, and it is already fixed in the
R-devel tree. An unconditional <setjmp.h> is fine.


> From: albrecht.gebhardt@uni-klu.ac.at
> Date: Mon, 2 Oct 2000 17:52:47 +0200 (MET DST)
> 
> Full_Name: Albrecht Gebhardt
> Version: 1.1.1
> OS: i86pc Solaris 2.7
> Submission from: (NULL) (143.205.61.82)
> 
> 
> jmp_buf type undeclared, may be related to the installed version of libjpeg
> (this is v6b), compiler is gcc/g77 2.95.2:
> 
> root@pc05-stat[X11]# make
> creating src/unix/X11/Makefile
> making rbitmap.d from rbitmap.c
> make[1]: Entering directory `/usr/share/src/R-1.1.1/src/unix/X11'
> gcc -I. -I../../../src/include -I../../../src/include
> -I../../../src/include/R_ext -I/usr/openwin/include -I/usr/local/include
> -DHAVE_CONFIG_H -mieee-fp -fPIC  -g -O2 -c rbitmap.c -o rbitmap.o
> 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
> make[1]: *** [rbitmap.o] Error 1
> make[1]: Leaving directory `/usr/share/src/R-1.1.1/src/unix/X11'
> make: *** [R] Error 2
> 
> 
> Solution:
> *************************************************
> --- src/unix/X11/rbitmap.c.jpeg-patch   Mon Oct  2 16:18:16 2000
> +++ src/unix/X11/rbitmap.c      Mon Oct  2 16:40:36 2000
> @@ -231,6 +231,9 @@
>  #ifdef HAVE_JPEG
>  
>  #include <jpeglib.h>
> +#if __sun__ & __i386
> +#include <setjmp.h>
> +#endif
> 

R-devel has

#ifdef HAVE_JPEG

#include <jpeglib.h>
#include <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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._