Hi, to get the mysql8 transition in Ubuntu unblocked I also wrote some fixes for the issues that came up with GCC-9. They are rather blunt not really going in depth into apophenia but trying to adapt new behavior.
Never the less I thought it might be worth to share [1] as even if there might be better changes it might give you a head start on this. P.S. We have checked and the fix for mysql8 works with mysql5.7 and maridb as well - no conditional check needed. [1]: https://git.launchpad.net/~mysql-ubuntu/+git/mysql-8.0-transition/tree/apophenia-ftbfs.debdiff -- Christian Ehrhardt Software Engineer, Ubuntu Server Canonical Ltd