Installation of XML_StopParser & freetype2

Hello,
I’ve upgraded a CentOS system to RockyLinux but ran into a couple of problems:
*The compilation of an app is returning
configure: error: cannot find EXPAT function XML_StopParser
even though libexpat.so.1.6.7 is at /usr/lib
[NOTE: rpm -qa | grep XML is returning perl-XML-Parser-2.44.11.el8.x86_64].
Is there an easy way to upgrade XML to avoid this error?
*I couldn’t find freetype2 at /usr/include. How can I install it?
Thanks.

I was able to compile freetype2 from source but still cannot get over the XML_StopParser error.

Is it provided by expat? Try installing expat-devel

Got it done. Thanks!