* installing *source* package ‘spatstat.Knet’ ... ** package ‘spatstat.Knet’ successfully unpacked and MD5 sums checked ** using staged installation ** libs using C compiler: ‘Debian clang version 18.1.8 (9)’ clang-18 -I"/home/hornik/tmp/R-d-clang-18/include" -DNDEBUG -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -DSTRICT_R_HEADERS=1 -fpic -g -O3 -Wall -pedantic -c Knet.c -o Knet.o clang-18 -I"/home/hornik/tmp/R-d-clang-18/include" -DNDEBUG -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -DSTRICT_R_HEADERS=1 -fpic -g -O3 -Wall -pedantic -c KnetInhom.c -o KnetInhom.o clang-18 -I"/home/hornik/tmp/R-d-clang-18/include" -DNDEBUG -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -DSTRICT_R_HEADERS=1 -fpic -g -O3 -Wall -pedantic -c init.c -o init.o clang-18 -I"/home/hornik/tmp/R-d-clang-18/include" -DNDEBUG -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -DSTRICT_R_HEADERS=1 -fpic -g -O3 -Wall -pedantic -c netbase.c -o netbase.o netbase.c:117:5: error: call to undeclared function 'Free'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 117 | Free(cr); | ^ netbase.c:117:5: note: did you mean 'free'? /usr/include/stdlib.h:687:13: note: 'free' declared here 687 | extern void free (void *__ptr) __THROW; | ^ netbase.c:132:5: error: call to undeclared function 'Free'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 132 | Free(element); | ^ netbase.c:150:3: error: call to undeclared function 'Free'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 150 | Free(id); | ^ netbase.c:260:31: error: call to undeclared function 'Calloc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 260 | new_element = (ListElmt *)Calloc(1,ListElmt); | ^ netbase.c:260:40: error: unexpected type name 'ListElmt': expected expression 260 | new_element = (ListElmt *)Calloc(1,ListElmt); | ^ netbase.c:352:31: error: call to undeclared function 'Calloc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 352 | if ((adjlist = (AdjList *)Calloc(1,AdjList)) == NULL) | ^ netbase.c:352:40: error: unexpected type name 'AdjList': expected expression 352 | if ((adjlist = (AdjList *)Calloc(1,AdjList)) == NULL) | ^ netbase.c:589:5: error: call to undeclared function 'Free'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 589 | Free(adjlist); | ^ netbase.c:675:13: error: call to undeclared function 'Free'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 675 | Free(adjlist); | ^ netbase.c:768:5: error: call to undeclared function 'Free'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 768 | Free(old_element); | ^ netbase.c:923:14: error: call to undeclared function 'Calloc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 923 | node->data = Calloc(1,int); /*if(node->data == NULL){Rprintf("malloc is not working !!");return -1;}*/ /** allocate space to store vertex id **/ | ^ netbase.c:923:23: error: expected expression 923 | node->data = Calloc(1,int); /*if(node->data == NULL){Rprintf("malloc is not working !!");return -1;}*/ /** allocate space to store vertex id **/ | ^ netbase.c:932:25: error: expected expression 932 | brk_pt->data = Calloc(1,int); /*if(brk_pt->data == NULL){Rprintf("malloc is not working !!");return -1;}*/ | ^ 13 errors generated. make: *** [/home/hornik/tmp/R-d-clang-18/etc/Makeconf:195: netbase.o] Error 1 ERROR: compilation failed for package ‘spatstat.Knet’ * removing ‘/srv/hornik/tmp/CRAN_pretest/spatstat.Knet.Rcheck/spatstat.Knet’