http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53270
--- Comment #22 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-05-18 16:30:54 UTC --- The new error is in the recursive mutex definition. You also need to define _GTHREAD_USE_RECURSIVE_MUTEX_INIT_FUNC