The old problem Either you deinstall lzmalib or add to the Makefile .if ${OSVERSION} < 1000000 CFLAGS+= "-I${LOCALBASE}/include" CPPFLAGS+= "-I${LOCALBASE}/include" LDFLAGS+= "-L${LOCALBASE}/lib" .endif https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209437