../../exec/elfcore.c:183:54: error: expected ';' at end of declaration inline error_t write_note (struct note_header *hdr) ^ ; ../../exec/elfcore.c:227:67: error: expected ';' at end of declaration inline void record_last_region (struct vm_region_list *region) ^ ; ../../exec/elfcore.c:272:6: error: invalid application of 'sizeof' to an incomplete type 'struct vm_region_list' RECORD_LAST_REGION; ^~~~~~~~~~~~~~~~~~ ../../exec/elfcore.c:226:35: note: expanded from macro 'RECORD_LAST_REGION' record_last_region (alloca (sizeof (struct vm_region_list))); } while (0) ^ ~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/alloca.h:35:41: note: expanded from macro 'alloca' # define alloca(size) __builtin_alloca (size) ^ ../../exec/elfcore.c:211:10: note: forward declaration of 'struct vm_region_list' struct vm_region_list *regions = NULL, **tailp = ®ions, *r; ^ ../../exec/elfcore.c:279:5: error: invalid application of 'sizeof' to an incomplete type 'struct vm_region_list' RECORD_LAST_REGION; ^~~~~~~~~~~~~~~~~~ ../../exec/elfcore.c:226:35: note: expanded from macro 'RECORD_LAST_REGION' record_last_region (alloca (sizeof (struct vm_region_list))); } while (0) ^ ~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/alloca.h:35:41: note: expanded from macro 'alloca' # define alloca(size) __builtin_alloca (size) ^ ../../exec/elfcore.c:211:10: note: forward declaration of 'struct vm_region_list' struct vm_region_list *regions = NULL, **tailp = ®ions, *r; ^ ../../exec/elfcore.c:490:37: error: incomplete definition of type 'struct vm_region_list' for (r = regions; r != NULL; r = r->next) ~^ ../../exec/elfcore.c:211:10: note: forward declaration of 'struct vm_region_list' struct vm_region_list *regions = NULL, **tailp = ®ions, *r; ^ ../../exec/elfcore.c:495:25: error: incomplete definition of type 'struct vm_region_list' ph->p_flags = (((r->protection & VM_PROT_READ) ? PF_R : 0) ~^ ../../exec/elfcore.c:211:10: note: forward declaration of 'struct vm_region_list' struct vm_region_list *regions = NULL, **tailp = ®ions, *r; ^ ../../exec/elfcore.c:496:13: error: incomplete definition of type 'struct vm_region_list' | ((r->protection & VM_PROT_WRITE) ? PF_W : 0) ~^ ../../exec/elfcore.c:211:10: note: forward declaration of 'struct vm_region_list' struct vm_region_list *regions = NULL, **tailp = ®ions, *r; ^ ../../exec/elfcore.c:497:13: error: incomplete definition of type 'struct vm_region_list' | ((r->protection & VM_PROT_EXECUTE) ? PF_X : 0)); ~^ ../../exec/elfcore.c:211:10: note: forward declaration of 'struct vm_region_list' struct vm_region_list *regions = NULL, **tailp = ®ions, *r; ^ ../../exec/elfcore.c:498:22: error: incomplete definition of type 'struct vm_region_list' ph->p_vaddr = r->start; ~^ ../../exec/elfcore.c:211:10: note: forward declaration of 'struct vm_region_list' struct vm_region_list *regions = NULL, **tailp = ®ions, *r; ^ ../../exec/elfcore.c:499:22: error: incomplete definition of type 'struct vm_region_list' ph->p_memsz = r->length; ~^ ../../exec/elfcore.c:211:10: note: forward declaration of 'struct vm_region_list' struct vm_region_list *regions = NULL, **tailp = ®ions, *r; ^ ../../exec/elfcore.c:500:24: error: incomplete definition of type 'struct vm_region_list' ph->p_filesz = (r->protection & VM_PROT_WRITE) ? ph->p_memsz : 0; ~^ ../../exec/elfcore.c:211:10: note: forward declaration of 'struct vm_region_list' struct vm_region_list *regions = NULL, **tailp = ®ions, *r; ^ 11 errors generated.