errno
If you are compiling an application under Linux and get an error message like:
/usr/bin/ld: errno: TLS definition in /lib/libc.so.6 section .tbss mismatches non-TLS reference in ...
The fix is quite simple: explicitly add #include <errno.h> to the offending file and then recompile.