Fixing /usr/bin/ld: errno: TLS definition in /lib/libc.so.6 section .tbss mismatches

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.


Dr. Everett (Skip) F. Carter Jr.
Taygeta Scientific Inc.
1340 Munras Ave., Suite 314
Monterey, CA. 93940-6140
voice: 831.641.0645
FAX: 831.641.0647
INTERNET:skip@taygeta.com
WWW:http://www.taygeta.com/
Taygeta's home page