* installing *source* package 'spatstat.Knet' ... ** package 'spatstat.Knet' successfully unpacked and MD5 sums checked ** using staged installation ** libs using C compiler: 'gcc.exe (GCC) 13.2.0' gcc -I"D:/RCompile/recent/R/include" -DNDEBUG -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -DSTRICT_R_HEADERS=1 -pedantic -Wstrict-prototypes -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c Knet.c -o Knet.o In file included from Knet.c:27: netKcode.h: In function 'extended_sh_path_tree_restricted': netKcode.h:1932:20: warning: 'brk_pt2' may be used uninitialized [-Wmaybe-uninitialized] 1932 | FN(break_crash_list_into_one_list)(&(brk_pt2->crashList), | ^ netKcode.h:24:18: note: in definition of macro 'FN' 24 | #define FN(BASE) BASE | ^~~~ netKcode.h:1763:24: note: 'brk_pt2' was declared here 1763 | *brk_pt1,*brk_pt2,*brk_pt, | ^~~~~~~ netKcode.h: In function 'restricted_shortest_v2': netKcode.h:2142:33: warning: 'adjlist' may be used uninitialized [-Wmaybe-uninitialized] 2142 | if(((PathVertex *)(adjlist->vertex))->d > Rmax){break;} | ~~~~~~~~^~~~~~~~~ netKcode.h:2052:32: note: 'adjlist' was declared here 2052 | AdjList *adjlist; | ^~~~~~~ netKcode.h: In function 'spTree_restricted_v1': netKcode.h:2432:19: warning: 'adjlist' may be used uninitialized [-Wmaybe-uninitialized] 2432 | for (member = list_head(&adjlist->adjacent); member != NULL; netKcode.h:2342:27: note: 'adjlist' was declared here 2342 | AdjList *adjlist; | ^~~~~~~ netKcode.h:2453:19: warning: 'pth_vertex2' may be used uninitialized [-Wmaybe-uninitialized] 2453 | retval = OK(graph_ins_edge)(graphTree, pth_vertex2, adj_node); | ^ netKcode.h:35:18: note: in definition of macro 'OK' 35 | #define OK(BASE) BASE | ^~~~ netKcode.h:2352:27: note: 'pth_vertex2' was declared here 2352 | *pth_vertex2, | ^~~~~~~~~~~ In function 'copy_crash_list_v2', inlined from 'spTree_restricted_v1' at netKcode.h:2446:16: netKcode.h:381:7: warning: 'adj_vertex' may be used uninitialized [-Wmaybe-uninitialized] 381 | int crash_no = copy_from->size; | ^~~~~~~~ netKcode.h: In function 'spTree_restricted_v1': netKcode.h:2354:27: note: 'adj_vertex' was declared here 2354 | *adj_vertex; | ^~~~~~~~~~ gcc -I"D:/RCompile/recent/R/include" -DNDEBUG -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -DSTRICT_R_HEADERS=1 -pedantic -Wstrict-prototypes -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c KnetInhom.c -o KnetInhom.o In file included from KnetInhom.c:31: netKcode.h: In function 'I_extended_sh_path_tree_restricted': netKcode.h:32:18: warning: 'brk_pt2' may be used uninitialized [-Wmaybe-uninitialized] 32 | #define FN(BASE) I_ ## BASE | ^ netKcode.h:1932:17: note: in expansion of macro 'FN' 1932 | FN(break_crash_list_into_one_list)(&(brk_pt2->crashList), | ^~ netKcode.h:1763:24: note: 'brk_pt2' was declared here 1763 | *brk_pt1,*brk_pt2,*brk_pt, | ^~~~~~~ netKcode.h: In function 'I_restricted_shortest_v2': netKcode.h:2142:33: warning: 'adjlist' may be used uninitialized [-Wmaybe-uninitialized] 2142 | if(((PathVertex *)(adjlist->vertex))->d > Rmax){break;} | ~~~~~~~~^~~~~~~~~ netKcode.h:2052:32: note: 'adjlist' was declared here 2052 | AdjList *adjlist; | ^~~~~~~ netKcode.h: In function 'I_spTree_restricted_v1': netKcode.h:2432:19: warning: 'adjlist' may be used uninitialized [-Wmaybe-uninitialized] 2432 | for (member = list_head(&adjlist->adjacent); member != NULL; netKcode.h:2342:27: note: 'adjlist' was declared here 2342 | AdjList *adjlist; | ^~~~~~~ netKcode.h:2453:19: warning: 'pth_vertex2' may be used uninitialized [-Wmaybe-uninitialized] 2453 | retval = OK(graph_ins_edge)(graphTree, pth_vertex2, adj_node); | ^ netKcode.h:35:18: note: in definition of macro 'OK' 35 | #define OK(BASE) BASE | ^~~~ netKcode.h:2352:27: note: 'pth_vertex2' was declared here 2352 | *pth_vertex2, | ^~~~~~~~~~~ In function 'I_copy_crash_list_v2', inlined from 'I_spTree_restricted_v1' at netKcode.h:2446:16: netKcode.h:381:7: warning: 'adj_vertex' may be used uninitialized [-Wmaybe-uninitialized] 381 | int crash_no = copy_from->size; | ^~~~~~~~ netKcode.h: In function 'I_spTree_restricted_v1': netKcode.h:2354:27: note: 'adj_vertex' was declared here 2354 | *adj_vertex; | ^~~~~~~~~~ gcc -I"D:/RCompile/recent/R/include" -DNDEBUG -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -DSTRICT_R_HEADERS=1 -pedantic -Wstrict-prototypes -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c init.c -o init.o gcc -I"D:/RCompile/recent/R/include" -DNDEBUG -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -DSTRICT_R_HEADERS=1 -pedantic -Wstrict-prototypes -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c netbase.c -o netbase.o netbase.c: In function 'destroy_crash': netbase.c:117:5: warning: implicit declaration of function 'Free'; did you mean 'free'? [-Wimplicit-function-declaration] 117 | Free(cr); | ^~~~ | free netbase.c: In function 'list_ins_next': netbase.c:260:31: warning: implicit declaration of function 'Calloc'; did you mean 'calloc'? [-Wimplicit-function-declaration] 260 | new_element = (ListElmt *)Calloc(1,ListElmt); | ^~~~~~ | calloc netbase.c:260:40: error: expected expression before 'ListElmt' 260 | new_element = (ListElmt *)Calloc(1,ListElmt); | ^~~~~~~~ netbase.c: In function 'graph_ins_vertex': netbase.c:352:40: error: expected expression before 'AdjList' 352 | if ((adjlist = (AdjList *)Calloc(1,AdjList)) == NULL) | ^~~~~~~ netbase.c: In function 'graph_ins_breakpt': netbase.c:923:23: error: expected expression before 'int' 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 before 'int' 932 | brk_pt->data = Calloc(1,int); /*if(brk_pt->data == NULL){Rprintf("malloc is not working !!");return -1;}*/ | ^~~ make: *** [D:/RCompile/recent/R/etc/x64/Makeconf:289: netbase.o] Error 1 ERROR: compilation failed for package 'spatstat.Knet' * removing 'd:/RCompile/CRANincoming/R-devel/lib/spatstat.Knet'