Often in the last year I (and other experienced FreeBSD users) face the same problem: "Error loading external entity" messages and thus, the compilation failure.
I've found several ways to fix it and the likes:
-
You should open /usr/local/bin/xmlto script and comment out the following line:
XSLTOPTS="$XSLTOPTS --nonet"
The fix works only if you've got a live Internet connection. The best way probably is to fix local dtd catalogue layout for docbook* things but I still don't know how; advise needed!
-
It also may require to go into the failing port's subdir, find the Makefile corresponding to the (probably) man generation, find
xsltproccall there and remove-nonetparameter; then either build the port manually viamakeinvocation orportupgrade -fwit. -
Go into the corresponding Makefile(s) and change network URI into a local one (/usr/local/**)
-
Rebuild the port with
NO_INSTALL_MANPAGESdefined -
Find the failing
xmltoscript and setSKIP_VALIDATIONvariable to1(since the thing is actually complaining on the source xml validity)