There is a compilation issue on FreeBSD 9 (which has about another year of life) for the emacs-25 branch. The error/warnings suggest the problems may be related to bug 18410. It compiles fine on FreeBSD 10. Attached is a build log.