The vm_page_replace_checked() was introduced in FreeBSD 11, so the build is broken on FreeBSD 10. The fix is to use vm_page_replace() directly and do the check in caller.
--- v2: destroy the initialized mtx before failing or unloading v3: fix build on FreeBSD 10, refine comments Tiwei Bie (2): contigmem: free the allocated memory when error occurs contigmem: don't zero the pages during each mmap lib/librte_eal/bsdapp/contigmem/contigmem.c | 197 ++++++++++++++++++++++++---- 1 file changed, 171 insertions(+), 26 deletions(-) -- 2.12.1