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
xsltproc
call there and remove-nonet
parameter; then either build the port manually viamake
invocation orportupgrade -fw
it. -
Go into the corresponding Makefile(s) and change network URI into a local one (/usr/local/**)
-
Rebuild the port with
NO_INSTALL_MANPAGES
defined -
Find the failing
xmlto
script and setSKIP_VALIDATION
variable to1
(since the thing is actually complaining on the source xml validity)