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

albrecht.gebhardt@uni-klu.ac.at albrecht.gebhardt@uni-klu.ac.at
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) (

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

--- 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>
 /* Here's the extended error handler struct */> version

with this patch R compiles and passes "make test", the 
full version is:

> version
platform i386-pc-solaris2.7
arch     i386              
os       solaris2.7        
system   i386, solaris2.7  
major    1                 
minor    1.1               
year     2000              
month    August            
day      15                
language R                 


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