However, the bits/hwcap.h file included with glibc in CentOS 7.6 lacks these symbol definitions (the file is nearly empty). This file appears to be an internal glibc dependency, so it's preferable to directly use asm/hwcap.h for the required symbol definitions.
After modifying the code to add `include <asm/hwcap.h>`, the compilation succeeded.