The log says:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mysql57/mysql57/work/mysql-5.7.25/sql/item_geofunc_internal.cc:37:63: error: no type named 'self_ip_exception' in namespace 'boost::geometry::detail::self_get_turn_points'
:info:build catch (const boost::geometry::detail::self_get_turn_points::self_ip_exception &)
:info:build ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
Duplicate of #56228. Deactivate the boost port while building mysql57.