Disconnect a program which is not used by the port and which invokes compilation error from build.
Note that Debian has a fix for this, however a person who understands what the utility does is needed to check the patch.
Approved by: portmgr blanket
MFH: 2014Q4