dick@b6ori1.bauv.unibw-muenchen.de
2000-Aug-17 09:09 UTC
[Rd] Install Error on SGI Irix 6.5 (PR#637)
Hi, I'm using R since Version 0.99 on a SGI Indigo 2 with Irix 6.5. I could compile all Versions of R until 1.1.0. When I try to compile Version 1.1.0 or 1.1.1 I get an error in the directory /R-1.1.1/src/unix/X11. Trying to compile the file rbitmap.c in this directory with the gcc compiler command 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? Thank you Thomas Dick -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> From: dick@b6ori1.bauv.unibw-muenchen.de > Date: Thu, 17 Aug 2000 11:09:05 +0200 (MET DST) > > Hi, > > I'm using R since Version 0.99 on a SGI Indigo 2 with Irix 6.5. I couldcompile> all Versions of R until 1.1.0. > > When I try to compile Version 1.1.0 or 1.1.1 I get an error in the directory > /R-1.1.1/src/unix/X11. Trying to compile the file rbitmap.c in this directory > with the gcc compiler command > > 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?Update your libpng installation. Those should be defined in png.h. They certainly are in the current 1.0.8 and back to 1.0.6 at least. If you don't want to do that, you can undef HAVE_PNG in config.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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._