Linker error when building ROOT on Linux

I’m trying to build ROOT 6.08 pro on an HPC cluster with Red Hat 4.4.7-16, kernel version 2.6.32-573.35.2.el6.x86_64. I’ve tried three different versions of gcc (4.8.4, 4.9.1, and 5.2.0) and am getting different linking errors that I think are related to the C standard libraries.log.txt (22 KB)log.txt (22 KB)

The attached log and CMakeCache.txt files are from an attempt at building with GNU/4.4.9. Can you please help me with my build? Do you know what I’m doing wrong?
CMakeLists.txt (676 Bytes)