It strongly suggests that you trying to "Frankenstein" a glibc, and this never works well, if at all.
Try building on a clean install of Ubuntu 22.04.3 LTS.In the end, for closed-source software, the ultimate solution is to figure out making static builds. Sorry for this advise in context of glibc. Bad advise, foolish me.