Re: non-TLS reference
On Sat, Jun 07, 2008 at 07:46:51PM +0200, Gudjon I. Gudjonsson wrote:
> Hi
> I am trying to compile a program and get the following error message:
> /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?
I think newer libc versions don't allow the old style of errno access.
Fixing a program isn't very hard (basically don't ever refer to errno
directly, only using perror and such).
At least it looks like what I have seen in the past with ancient
programs and new livc versions.
What are you compiling?
--
Len Sorensen
Reply to: