It looks like the problem is caused by the incorrect options. I think the commands should be:
rpm -ivh http://repo.centos-webpanel.com/repo/9/x86_64/libc-client-2007f-30.el9.remi.x86_64.rpm
rpm -ivh http://repo.centos-webpanel.com/repo/9/x86_64/uw-imap-devel-2007f-30.el9.remi.x86_64.rpm
Also, does CWP installs REMI repo on EL9 systems ? If not then it is better to disable REMI at least while you install/compile PHP.
Additionally, I recommend you to disable "BZ2" support in PHP settings and check if PHP can be compiled with BZ2 disabled.