I'm running into an issue:
--- vmmemctl ---
os.c:300:22: error: implicit declaration of function 'kmem_alloc_nofault' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
vm_offset_t res = kmem_alloc_nofault(kernel_map, PAGE_SIZE);
os.c:357:14: error: incompatible pointer types passing 'vm_map_t' (aka 'struct vm_map ') to parameter of type 'struct vmem ' [-Werror,-Wincompatible-pointer-types]
kmem_free(kernel_map, (vm_offset_t)mapping, PAGE_SIZE);
@/vm/vm_extern.h:59:29: note: passing argument to parameter here
void kmem_free(struct vmem *, vm_offset_t, vm_size_t);
2 errors generated.
See this url:
for full build log.
The issue seems to be kmem_alloc_nofault was removed from FreeBSD 10 and later. I'm trying to find out what the right replacement is.
Note this has some local patches, but not in the section of code that is causing the compile issue. I can share the patches, just let me know the best way.