[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: non-TLS reference



"Gudjon I. Gudjonsson" <gudjon@mc2.chalmers.se> writes:

> /usr/bin/ld: errno: TLS definition in
> /usr/lib/gcc/x86_64-linux-gnu/4.3.1/../../../../lib/libc.a(errno.o)
> section .tbss mismatches non-TLS reference in
>
> Is there any easy trick to fix it?

Make sure to #include <errno.h> rather than declaring errno yourself.

-- 
Aaron M. Ucko, KB1CJC (amu at alum.mit.edu, ucko at debian.org)
http://www.mit.edu/~amu/ | http://stuff.mit.edu/cgi/finger/?amu@monk.mit.edu


Reply to: