net-dns/bind links against old bind libraries when updating from a previous installation. It causes problems esp. if the update includes ABI changes. It seems that all versions of net-dns/bind and net-dns/bind-tools are affected.
This has been fixed in 9.8.0.