I checked my web server and it's running RHL9, so I grabbed a copy of RHL9, installed it on a free machine, and rebuilt as above.
Since that failed, there's more to it. Make a cgi script that runs 'rpm -qa' via system and provides you the results. Level your RHL9 host matching that output, and rebuild your GD module. That might fail if your provider is paranoid^Wsane, he might install the rpm packages needed for updates on the fly during updates and remove them after, but you might succeed in that.
The obvious answer would be to build this library on the web server machine, but I don't have access to do that.
If your hoster is worth 5 cents, he will not have a build environment on the webserver itself: no gcc, make, bison, yacc, whatever.
--shmem
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}