Please update mapserver to the newest version (MapServer 8.4.0) In epel there is version 8.2
Will you be able to branch and build mapserver in epel9?