It‘s a glibc issue. Here‘s how to fix it:
Here‘s what happened:
svn 13539 added a gcc option -fexceptions, which was not there previously.
Older versions of glibc had an issue regarding -fexceptions and inline non-C99 conformance (see http://gcc.gnu.org/ml/gcc-patches/2006-11/msg01030.html.)
Edit your system‘s pthread.h, changing (just before __pthread_cleanup_routine) :
CODE: SELECT ALL
extern __inline void
CODE: SELECT ALL
#ifdef __STDC_VERSION__ < 199901L
extern
#endif
__inline__ void