[Rd] Install Error on SGI Irix 6.5 (PR#637)

Peter Dalgaard BSA p.dalgaard@biostat.ku.dk
17 Aug 2000 11:39:03 +0200


dick@b6ori1.bauv.unibw-muenchen.de writes:

> 	gcc -I. -I../../../src/include -I../../../src/include
> 	-I../../../src/include/R_ext  -I/usr/local/include -DHAVE_CONFIG_H
> 	-fPIC  -g -O2 -c rbitmap.c -o rbitmap.o
> 
> results in the following errors:
> 
> 	rbitmap.c: In function `R_SaveAsPng':
> 	rbitmap.c:168: `PNG_INTERLACE_NONE' undeclared (first use in this
> 	function)
> 	rbitmap.c:168: (Each undeclared identifier is reported only once
> 	rbitmap.c:168: for each function it appears in.)
> 	rbitmap.c:168: `PNG_COMPRESSION_TYPE_BASE' undeclared (first use in
> this
> 	function)
> 	rbitmap.c:169: `PNG_FILTER_TYPE_BASE' undeclared (first use in this
> 	function)
> 
> This file wasn't present in the R Versions before 1.1.0.
> 
> There don't seem to be any errors in the config.log file.
> 
> Does maybe anybodey know how to solve this problem?

A guess would be that your PNG library is old and that the PNG_
macros are not defined in png.h. But new enough that configure thinks
it is usable.

You might try turning off PNG support by commenting out

#define HAVE_PNG 1

in src/include/config.h after running configure. That would give you a
running R (hopefully) but obviously no support for .png bitmaps.
Otherwise maybe install a newer libpng &al.

-- 
   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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._