http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52922
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-04-10 07:52:39 UTC --- This implies the /usr/local/bin/gcc compiler you're using was not built on SL6.1, or was built against an older glibc I've had exactly this error when trying to use a compiler built on CentOS5 on CentOS6 - the fixincluded headers assume an older glibc Try installing gcc from SL RPMs via yum and ensuring that is earlier in your path than /usr/local/bin/gcc