> install.packages("imager") Installing package into ‘/usr/local/lib/R/site-library’ (as ‘lib’ is unspecified) trying URL 'https://cloud.r-project.org/src/contrib/imager_0.45.8.tar.gz' Content type 'application/x-gzip' length 4476718 bytes (4.3 MB) ================================================== downloaded 4.3 MB * installing *source* package ‘imager’ ... ** package ‘imager’ successfully unpacked and MD5 sums checked ** using staged installation checking for pkg-config... /usr/bin/pkg-config checking whether the C++ compiler works... yes checking for C++ compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether g++ -std=gnu++17 accepts -g... yes checking how to run the C++ preprocessor... g++ -std=gnu++17 -E checking for X... libraries , headers checking for XOpenDisplay in -lX11... yes X11 library found. configure: Checking if FFTW3 library is available using pkg-config checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for FFTW... yes FFTW3 found! checking whether pkg-config knows about libtiff-4... yes checking for configurable backends... checking whether --static is needed... no checking for g++ -std=gnu++17 option to support OpenMP... -fopenmp configure: creating ./config.status config.status: creating src/Makevars ** libs using C++ compiler: ‘g++ (Debian 8.3.0-6) 8.3.0’ g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG -Dcimg_use_fftw3 -I/usr/include/x86_64-linux-gnu -Dcimg_use_tiff -I../inst/include -DCIMG_COMPILING -Dcimg_use_rng -Dcimg_use_r -Dcimg_use_fftw3_singlethread -Dcimg_verbosity=1 -Dcimg_date='""' -Dcimg_time='""' -I'/usr/local/lib/R/site-library/Rcpp/include' -fopenmp -fpic -g -O2 -fdebug-prefix-map=/home/jranke/git/r-backports/buster/r-base-4.3.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c RcppExports.cpp -o RcppExports.o In file included from ../inst/include/imager.h:12, from RcppExports.cpp:4: ../inst/include/CImg.h:51701:57: error: ‘uint16_t’ does not name a type; did you mean ‘u_int16_t’? void _load_tiff_tiled_contig(TIFF *const tif, const uint16_t samplesperpixel, ^~~~~~~~ u_int16_t ../inst/include/CImg.h:51702:40: error: ‘uint32_t’ does not name a type; did you mean ‘u_int32_t’? const uint32_t nx, const uint32_t ny, const uint32_t tw, const uint32_t th) { ^~~~~~~~ u_int32_t ../inst/include/CImg.h:51702:59: error: ‘uint32_t’ does not name a type; did you mean ‘u_int32_t’? const uint32_t nx, const uint32_t ny, const uint32_t tw, const uint32_t th) { ^~~~~~~~ u_int32_t ../inst/include/CImg.h:51702:78: error: ‘uint32_t’ does not name a type; did you mean ‘u_int32_t’? const uint32_t nx, const uint32_t ny, const uint32_t tw, const uint32_t th) { ^~~~~~~~ u_int32_t ../inst/include/CImg.h:51702:97: error: ‘uint32_t’ does not name a type; did you mean ‘u_int32_t’? const uint32_t nx, const uint32_t ny, const uint32_t tw, const uint32_t th) { ^~~~~~~~ u_int32_t ../inst/include/CImg.h:51725:59: error: ‘uint16_t’ does not name a type; did you mean ‘u_int16_t’? void _load_tiff_tiled_separate(TIFF *const tif, const uint16_t samplesperpixel, ^~~~~~~~ u_int16_t ../inst/include/CImg.h:51726:42: error: ‘uint32_t’ does not name a type; did you mean ‘u_int32_t’? const uint32_t nx, const uint32_t ny, const uint32_t tw, const uint32_t th) { ^~~~~~~~ u_int32_t ../inst/include/CImg.h:51726:61: error: ‘uint32_t’ does not name a type; did you mean ‘u_int32_t’? const uint32_t nx, const uint32_t ny, const uint32_t tw, const uint32_t th) { ^~~~~~~~ u_int32_t ../inst/include/CImg.h:51726:80: error: ‘uint32_t’ does not name a type; did you mean ‘u_int32_t’? const uint32_t nx, const uint32_t ny, const uint32_t tw, const uint32_t th) { ^~~~~~~~ u_int32_t ../inst/include/CImg.h:51726:99: error: ‘uint32_t’ does not name a type; did you mean ‘u_int32_t’? const uint32_t nx, const uint32_t ny, const uint32_t tw, const uint32_t th) { ^~~~~~~~ u_int32_t ../inst/include/CImg.h:51749:51: error: ‘uint16_t’ does not name a type; did you mean ‘u_int16_t’? void _load_tiff_contig(TIFF *const tif, const uint16_t samplesperpixel, const uint32_t nx, const uint32_t ny) { ^~~~~~~~ u_int16_t ../inst/include/CImg.h:51749:83: error: ‘uint32_t’ does not name a type; did you mean ‘u_int32_t’? void _load_tiff_contig(TIFF *const tif, const uint16_t samplesperpixel, const uint32_t nx, const uint32_t ny) { ^~~~~~~~ u_int32_t ../inst/include/CImg.h:51749:102: error: ‘uint32_t’ does not name a type; did you mean ‘u_int32_t’? void _load_tiff_contig(TIFF *const tif, const uint16_t samplesperpixel, const uint32_t nx, const uint32_t ny) { ^~~~~~~~ u_int32_t ../inst/include/CImg.h:51774:53: error: ‘uint16_t’ does not name a type; did you mean ‘u_int16_t’? void _load_tiff_separate(TIFF *const tif, const uint16_t samplesperpixel, const uint32_t nx, const uint32_t ny) { ^~~~~~~~ u_int16_t ../inst/include/CImg.h:51774:85: error: ‘uint32_t’ does not name a type; did you mean ‘u_int32_t’? void _load_tiff_separate(TIFF *const tif, const uint16_t samplesperpixel, const uint32_t nx, const uint32_t ny) { ^~~~~~~~ u_int32_t ../inst/include/CImg.h:51774:104: error: ‘uint32_t’ does not name a type; did you mean ‘u_int32_t’? void _load_tiff_separate(TIFF *const tif, const uint16_t samplesperpixel, const uint32_t nx, const uint32_t ny) { ^~~~~~~~ u_int32_t ../inst/include/CImg.h: In member function ‘void cimg_library::CImg::_load_tiff_contig(TIFF*, int, int, int)’: ../inst/include/CImg.h:51752:9: error: ‘uint32_t’ was not declared in this scope uint32_t row, rowsperstrip = (uint32_t)-1; ^~~~~~~~ ../inst/include/CImg.h:51752:9: note: suggested alternative: ‘u_int32_t’ uint32_t row, rowsperstrip = (uint32_t)-1; ^~~~~~~~ u_int32_t ../inst/include/CImg.h:51753:48: error: ‘rowsperstrip’ was not declared in this scope TIFFGetField(tif,TIFFTAG_ROWSPERSTRIP,&rowsperstrip); ^~~~~~~~~~~~ ../inst/include/CImg.h:51755:19: error: expected ‘;’ before ‘nrow’ uint32_t nrow = (row + rowsperstrip>ny?ny - row:rowsperstrip); ^~~~~ ; ../inst/include/CImg.h:51765:40: error: ‘nrow’ was not declared in this scope for (unsigned int rr = 0; rr::_load_tiff_separate(TIFF*, int, int, int)’: ../inst/include/CImg.h:51777:9: error: ‘uint32_t’ was not declared in this scope uint32_t row, rowsperstrip = (uint32_t)-1; ^~~~~~~~ ../inst/include/CImg.h:51777:9: note: suggested alternative: ‘u_int32_t’ uint32_t row, rowsperstrip = (uint32_t)-1; ^~~~~~~~ u_int32_t ../inst/include/CImg.h:51778:48: error: ‘rowsperstrip’ was not declared in this scope TIFFGetField(tif,TIFFTAG_ROWSPERSTRIP,&rowsperstrip); ^~~~~~~~~~~~ ../inst/include/CImg.h:51781:21: error: expected ‘;’ before ‘nrow’ uint32_t nrow = (row + rowsperstrip>ny?ny - row:rowsperstrip); ^~~~~ ; ../inst/include/CImg.h:51791:41: error: ‘nrow’ was not declared in this scope for (unsigned int rr = 0;rr& cimg_library::CImg::_load_tiff(TIFF*, unsigned int, float*, cimg_library::CImg::type>*)’: ../inst/include/CImg.h:51802:7: error: ‘uint16_t’ was not declared in this scope uint16_t samplesperpixel = 1, bitspersample = 8, photo = 0; ^~~~~~~~ ../inst/include/CImg.h:51802:7: note: suggested alternative: ‘u_int16_t’ uint16_t samplesperpixel = 1, bitspersample = 8, photo = 0; ^~~~~~~~ u_int16_t ../inst/include/CImg.h:51803:15: error: expected ‘;’ before ‘sampleformat’ uint16_t sampleformat = 1; ^~~~~~~~~~~~~ ; ../inst/include/CImg.h:51804:7: error: ‘uint32_t’ was not declared in this scope uint32_t nx = 1, ny = 1; ^~~~~~~~ ../inst/include/CImg.h:51804:7: note: suggested alternative: ‘u_int32_t’ uint32_t nx = 1, ny = 1; ^~~~~~~~ u_int32_t ../inst/include/CImg.h:51806:75: error: ‘samplesperpixel’ was not declared in this scope const bool is_spp = (bool)TIFFGetField(tif,TIFFTAG_SAMPLESPERPIXEL,&samplesperpixel); ^~~~~~~~~~~~~~~ ../inst/include/CImg.h:51807:44: error: ‘nx’ was not declared in this scope TIFFGetField(tif,TIFFTAG_IMAGEWIDTH,&nx); ^~ ../inst/include/CImg.h:51808:45: error: ‘ny’ was not declared in this scope TIFFGetField(tif,TIFFTAG_IMAGELENGTH,&ny); ^~ ../inst/include/CImg.h:51809:48: error: ‘sampleformat’ was not declared in this scope TIFFGetField(tif, TIFFTAG_SAMPLEFORMAT, &sampleformat); ^~~~~~~~~~~~ ../inst/include/CImg.h:51809:48: note: suggested alternative: ‘tsample_t’ TIFFGetField(tif, TIFFTAG_SAMPLEFORMAT, &sampleformat); ^~~~~~~~~~~~ tsample_t ../inst/include/CImg.h:51810:56: error: ‘bitspersample’ was not declared in this scope TIFFGetFieldDefaulted(tif,TIFFTAG_BITSPERSAMPLE,&bitspersample); ^~~~~~~~~~~~~ ../inst/include/CImg.h:51811:45: error: ‘photo’ was not declared in this scope TIFFGetField(tif,TIFFTAG_PHOTOMETRIC,&photo); ^~~~~ ../inst/include/CImg.h:51843:19: error: expected primary-expression before ‘const’ uint32_t *const raster = (uint32_t*)_TIFFmalloc(nx*ny*sizeof(uint32_t)); ^~~~~ ../inst/include/CImg.h:51844:14: error: ‘raster’ was not declared in this scope if (!raster) { ^~~~~~ ../inst/include/CImg.h:51844:14: note: suggested alternative: ‘system’ if (!raster) { ^~~~~~ system ../inst/include/CImg.h:51851:37: error: ‘raster’ was not declared in this scope TIFFReadRGBAImage(tif,nx,ny,raster,0); ^~~~~~ ../inst/include/CImg.h:51851:37: note: suggested alternative: ‘system’ TIFFReadRGBAImage(tif,nx,ny,raster,0); ^~~~~~ system ../inst/include/CImg.h:51875:17: error: expected ‘;’ before ‘config’ uint16_t config; ^~~~~~~ ; ../inst/include/CImg.h:51876:48: error: ‘config’ was not declared in this scope TIFFGetField(tif,TIFFTAG_PLANARCONFIG,&config); ^~~~~~ ../inst/include/CImg.h:51876:48: note: suggested alternative: ‘cone3d’ TIFFGetField(tif,TIFFTAG_PLANARCONFIG,&config); ^~~~~~ cone3d ../inst/include/CImg.h:51878:19: error: expected ‘;’ before ‘tw’ uint32_t tw = 1, th = 1; ^~~ ; ../inst/include/CImg.h:51879:47: error: ‘tw’ was not declared in this scope TIFFGetField(tif,TIFFTAG_TILEWIDTH,&tw); ^~ ../inst/include/CImg.h:51879:47: note: suggested alternative: ‘tm’ TIFFGetField(tif,TIFFTAG_TILEWIDTH,&tw); ^~ tm ../inst/include/CImg.h:51880:48: error: ‘th’ was not declared in this scope TIFFGetField(tif,TIFFTAG_TILELENGTH,&th); ^~ ../inst/include/CImg.h:51880:48: note: suggested alternative: ‘tm’ TIFFGetField(tif,TIFFTAG_TILELENGTH,&th); ^~ tm ../inst/include/CImg.h: In member function ‘const cimg_library::CImg& cimg_library::CImg::_save_tiff(TIFF*, unsigned int, unsigned int, const t&, unsigned int, const float*, const char*) const’: ../inst/include/CImg.h:55879:7: error: ‘uint32_t’ was not declared in this scope uint32_t rowsperstrip = (uint32_t)-1; ^~~~~~~~ ../inst/include/CImg.h:55879:7: note: suggested alternative: ‘u_int32_t’ uint32_t rowsperstrip = (uint32_t)-1; ^~~~~~~~ u_int32_t ../inst/include/CImg.h:55880:7: error: ‘uint16_t’ was not declared in this scope uint16_t spp = _spectrum, bpp = sizeof(t)*8, photometric; ^~~~~~~~ ../inst/include/CImg.h:55880:7: note: suggested alternative: ‘u_int16_t’ uint16_t spp = _spectrum, bpp = sizeof(t)*8, photometric; ^~~~~~~~ u_int16_t ../inst/include/CImg.h:55881:11: error: ‘spp’ was not declared in this scope if (spp==3 || spp==4) photometric = PHOTOMETRIC_RGB; ^~~ ../inst/include/CImg.h:55881:11: note: suggested alternative: ‘swap’ if (spp==3 || spp==4) photometric = PHOTOMETRIC_RGB; ^~~ swap ../inst/include/CImg.h:55881:29: error: ‘photometric’ was not declared in this scope if (spp==3 || spp==4) photometric = PHOTOMETRIC_RGB; ^~~~~~~~~~~ ../inst/include/CImg.h:55882:12: error: ‘photometric’ was not declared in this scope else photometric = PHOTOMETRIC_MINISBLACK; ^~~~~~~~~~~ ../inst/include/CImg.h:55897:48: error: ‘spp’ was not declared in this scope TIFFSetField(tif,TIFFTAG_SAMPLESPERPIXEL,spp); ^~~ ../inst/include/CImg.h:55897:48: note: suggested alternative: ‘swap’ TIFFSetField(tif,TIFFTAG_SAMPLESPERPIXEL,spp); ^~~ swap ../inst/include/CImg.h:55904:46: error: ‘bpp’ was not declared in this scope TIFFSetField(tif,TIFFTAG_BITSPERSAMPLE,bpp); ^~~ ../inst/include/CImg.h:55906:44: error: ‘photometric’ was not declared in this scope TIFFSetField(tif,TIFFTAG_PHOTOMETRIC,photometric); ^~~~~~~~~~~ ../inst/include/CImg.h:55909:7: error: ‘rowsperstrip’ was not declared in this scope rowsperstrip = TIFFDefaultStripSize(tif,rowsperstrip); ^~~~~~~~~~~~ ../inst/include/CImg.h:55917:19: error: expected ‘;’ before ‘nrow’ uint32_t nrow = (row + rowsperstrip>_height?_height - row:rowsperstrip); ^~~~~ ; ../inst/include/CImg.h:55920:40: error: ‘nrow’ was not declared in this scope for (unsigned int rr = 0; rr