* installing *source* package ‘dicomr’ ...
** this is package ‘dicomr’ version ‘0.1.0’
** package ‘dicomr’ successfully unpacked and MD5 sums checked
** using staged installation
* found libjpeg with pkg-config (version 9.6.0)
* libjpeg and zlib: OK
** libs
using C++ compiler: ‘Apple clang version 14.0.3 (clang-1403.0.22.14.1)’
using SDK: ‘MacOSX11.3.1.sdk’
clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/R/x86_64/include -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/Rcpp/include' -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -c RcppExports.cpp -o RcppExports.o
clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/R/x86_64/include -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/Rcpp/include' -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -c dict.cpp -o dict.o
clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/R/x86_64/include -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/Rcpp/include' -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -c parser.cpp -o parser.o
clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/R/x86_64/include -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.5/Rcpp/include' -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -c pixels.cpp -o pixels.o
In file included from pixels.cpp:14:
In file included from /opt/R/x86_64/include/jpeglib.h:27:
/opt/R/x86_64/include/jmorecfg.h:317:16: error: redefinition of enumerator 'FALSE'
typedef enum { FALSE = 0, TRUE = 1 } boolean;
^
/Library/Frameworks/R.framework/Resources/include/R_ext/Boolean.h:65:23: note: previous definition is here
typedef enum :int { FALSE = 0, TRUE } Rboolean; // so NOT NA
^
In file included from pixels.cpp:14:
In file included from /opt/R/x86_64/include/jpeglib.h:27:
/opt/R/x86_64/include/jmorecfg.h:317:27: error: redefinition of enumerator 'TRUE'
typedef enum { FALSE = 0, TRUE = 1 } boolean;
^
/Library/Frameworks/R.framework/Resources/include/R_ext/Boolean.h:65:34: note: previous definition is here
typedef enum :int { FALSE = 0, TRUE } Rboolean; // so NOT NA
^
pixels.cpp:155:3: error: no matching function for call to 'jpeg_read_header'
jpeg_read_header(&cinfo, TRUE);
^~~~~~~~~~~~~~~~
/opt/R/x86_64/include/jpeglib.h:1043:13: note: candidate function not viable: no known conversion from 'Rboolean' to 'boolean' for 2nd argument
EXTERN(int) jpeg_read_header JPP((j_decompress_ptr cinfo,
^
3 errors generated.
make: *** [pixels.o] Error 1
make: *** Waiting for unfinished jobs....
ERROR: compilation failed for package ‘dicomr’
* removing ‘/Volumes/Builds/packages/big-sur-x86_64/results/4.5/dicomr.Rcheck/dicomr’