* installing *source* package ‘RNifti’ ... ** using staged installation checking for gcc... clang-17 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 the compiler supports GNU C... yes checking whether clang-17 accepts -g... yes checking for clang-17 option to enable C11 features... none needed checking for library containing inflate... -lz configure: creating ./config.status config.status: creating src/Makevars ** libs using C compiler: ‘Debian clang version 17.0.5 (1)’ using C++ compiler: ‘Debian clang version 17.0.5 (1)’ clang++-17 -std=gnu++17 -I"/home/hornik/tmp/R/include" -DNDEBUG -DNDEBUG -DHAVE_ZLIB -DUSING_R -DRNIFTI_NIFTILIB_DEDUPLICATE -I../inst/include -I'/home/hornik/lib/R/Library/4.4/x86_64-linux-gnu/Rcpp/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -fpic -g -O3 -Wall -pedantic -c main.cpp -o main.o In file included from main.cpp:1: In file included from /home/hornik/lib/R/Library/4.4/x86_64-linux-gnu/Rcpp/include/Rcpp.h:27: In file included from /home/hornik/lib/R/Library/4.4/x86_64-linux-gnu/Rcpp/include/RcppCommon.h:128: In file included from /home/hornik/lib/R/Library/4.4/x86_64-linux-gnu/Rcpp/include/Rcpp/routines.h:26: /home/hornik/lib/R/Library/4.4/x86_64-linux-gnu/Rcpp/include/Rcpp/iostream/Rstreambuf.h:53:20: warning: field precision should have type 'int', but argument has type 'std::streamsize' (aka 'long') [-Wformat] 53 | Rprintf("%.*s", num, s); | ~~^~ ~~~ /home/hornik/lib/R/Library/4.4/x86_64-linux-gnu/Rcpp/include/Rcpp/iostream/Rstreambuf.h:57:21: warning: field precision should have type 'int', but argument has type 'std::streamsize' (aka 'long') [-Wformat] 57 | REprintf("%.*s", num, s); | ~~^~ ~~~ In file included from main.cpp:1: In file included from /home/hornik/lib/R/Library/4.4/x86_64-linux-gnu/Rcpp/include/Rcpp.h:27: In file included from /home/hornik/lib/R/Library/4.4/x86_64-linux-gnu/Rcpp/include/RcppCommon.h:181: /home/hornik/lib/R/Library/4.4/x86_64-linux-gnu/Rcpp/include/Rcpp/print.h:30:26: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 30 | Rf_warningcall(call, s.c_str()); | ^~~~~~~~~ /home/hornik/lib/R/Library/4.4/x86_64-linux-gnu/Rcpp/include/Rcpp/print.h:30:26: note: treat the string as an argument to avoid this 30 | Rf_warningcall(call, s.c_str()); | ^ | "%s", In file included from main.cpp:5: In file included from ../inst/include/RNifti.h:50: ../inst/include/RNifti/NiftiImage.h:333:33: warning: suggest braces around initialization of subobject [-Wmissing-braces] 333 | Rcomplex rValue = { value.real(), value.imag() }; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | { } main.cpp:637:40: warning: suggest braces around initialization of subobject [-Wmissing-braces] 637 | const Rcomplex naValue = { NA_REAL, NA_REAL }; | ^~~~~~~~~~~~~~~~ | { } /home/hornik/tmp/R/include/R_ext/Arith.h:58:18: note: expanded from macro 'NA_REAL' 58 | #define NA_REAL R_NaReal | ^ main.cpp:691:40: warning: suggest braces around initialization of subobject [-Wmissing-braces] 691 | const Rcomplex naValue = { NA_REAL, NA_REAL }; | ^~~~~~~~~~~~~~~~ | { } /home/hornik/tmp/R/include/R_ext/Arith.h:58:18: note: expanded from macro 'NA_REAL' 58 | #define NA_REAL R_NaReal | ^ 6 warnings generated. clang-17 -I"/home/hornik/tmp/R/include" -DNDEBUG -DNDEBUG -DHAVE_ZLIB -DUSING_R -DRNIFTI_NIFTILIB_DEDUPLICATE -I../inst/include -I'/home/hornik/lib/R/Library/4.4/x86_64-linux-gnu/Rcpp/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -fpic -g -O3 -Wall -pedantic -c zzz.c -o zzz.o clang-17 -I"/home/hornik/tmp/R/include" -DNDEBUG -DNDEBUG -DHAVE_ZLIB -DUSING_R -DRNIFTI_NIFTILIB_DEDUPLICATE -I../inst/include -I'/home/hornik/lib/R/Library/4.4/x86_64-linux-gnu/Rcpp/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -fpic -g -O3 -Wall -pedantic -c znzlib/znzlib.c -o znzlib/znzlib.o clang-17 -I"/home/hornik/tmp/R/include" -DNDEBUG -DNDEBUG -DHAVE_ZLIB -DUSING_R -DRNIFTI_NIFTILIB_DEDUPLICATE -I../inst/include -I'/home/hornik/lib/R/Library/4.4/x86_64-linux-gnu/Rcpp/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -fpic -g -O3 -Wall -pedantic -c niftilib/nifti1_io.c -o niftilib/nifti1_io.o niftilib/nifti1_io.c:352:19: warning: unused variable 'gni_version' [-Wunused-const-variable] 352 | static const char gni_version[] = NIFTI1_IO_SOURCE_VERSION " (16 Jun, 2022)"; | ^~~~~~~~~~~ niftilib/nifti1_io.c:362:29: warning: unused variable 'nifti_type_list' [-Wunused-const-variable] 362 | static const nifti_type_ele nifti_type_list[] = { | ^~~~~~~~~~~~~~~ niftilib/nifti1_io.c:3336:12: warning: unused function 'compare_strlist' [-Wunused-function] 3336 | static int compare_strlist(const char * str, char ** strlist, int len) | ^~~~~~~~~~~~~~~ niftilib/nifti1_io.c:3291:12: warning: unused function 'is_mixedcase' [-Wunused-function] 3291 | static int is_mixedcase(const char * str) | ^~~~~~~~~~~~ niftilib/nifti1_io.c:3275:12: warning: unused function 'is_uppercase' [-Wunused-function] 3275 | static int is_uppercase(const char * str) | ^~~~~~~~~~~~ niftilib/nifti1_io.c:3322:12: warning: unused function 'make_lowercase' [-Wunused-function] 3322 | static int make_lowercase(char * str) | ^~~~~~~~~~~~~~ niftilib/nifti1_io.c:3309:12: warning: unused function 'make_uppercase' [-Wunused-function] 3309 | static int make_uppercase(char * str) | ^~~~~~~~~~~~~~ niftilib/nifti1_io.c:448:14: warning: unused function 'print_hex_vals' [-Wunused-function] 448 | static int print_hex_vals (const char * data, size_t nbytes, FILE * fp); | ^~~~~~~~~~~~~~ niftilib/nifti1_io.c:6134:14: warning: unused function 'escapize_string' [-Wunused-function] 6134 | static char *escapize_string( const char * str ) | ^~~~~~~~~~~~~~~ 9 warnings generated. clang-17 -I"/home/hornik/tmp/R/include" -DNDEBUG -DNDEBUG -DHAVE_ZLIB -DUSING_R -DRNIFTI_NIFTILIB_DEDUPLICATE -I../inst/include -I'/home/hornik/lib/R/Library/4.4/x86_64-linux-gnu/Rcpp/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -fpic -g -O3 -Wall -pedantic -c niftilib/nifti2_io.c -o niftilib/nifti2_io.o niftilib/nifti2_io.c:4468:12: warning: unused function 'print_hex_vals' [-Wunused-function] 4468 | static int print_hex_vals( const char * data, size_t nbytes, FILE * fp ) | ^~~~~~~~~~~~~~ niftilib/nifti2_io.c:8250:14: warning: unused function 'escapize_string' [-Wunused-function] 8250 | static char *escapize_string( const char * str ) | ^~~~~~~~~~~~~~~ 2 warnings generated. clang++-17 -std=gnu++17 -shared -L/home/hornik/tmp/R/lib -Wl,-O1 -o RNifti.so main.o zzz.o znzlib/znzlib.o niftilib/nifti1_io.o niftilib/nifti2_io.o -lz -L/home/hornik/tmp/R/lib -lR installing to /srv/hornik/tmp/CRAN/RNifti.Rcheck/00LOCK-RNifti/00new/RNifti/libs ** R ** inst ** byte-compile and prepare package for lazy loading ** help *** installing help indices ** building package indices ** testing if installed package can be loaded from temporary location ** checking absolute paths in shared objects and dynamic libraries ** testing if installed package can be loaded from final location ** testing if installed package keeps a record of temporary installation path * DONE (RNifti)