Once upon a time, Michael Eager eager@eagerm.com said:
Building on an older version of CentOS means using older compilers and libraries. Some applications require building with more current tools.
Maybe try an older base OS but with tools from a software collection add-on? That's trickier to do with mock (I figured it out once but don't remember now).