Gentoo Archives: gentoo-user

From: Kevin O'Gorman <kogorman@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Gcc complains about TLS and errno; I baffled
Date: Thu, 16 Nov 2006 20:07:46
Message-Id: 9acccfe50611161203k224d0297hb19c3f14b743611d@mail.gmail.com
1 I'm trying to compile a program that works on Solaris with gcc, but
2 won't complile
3 under Linux (either FC5 or Gentoo). It seems to be because writing
4 int errno;
5 works under Solaris gcc-3.4.3 (well, it passes the compiler anyway),
6 but under Linux
7 gcc-3.4.6 or -4.1.0 one has to
8 #include <errno.h>
9 which makes more sense. I would just make the change, but I'm baffled by the
10 error message Linux gcc gives to the first declaration. It reads:
11
12 /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/../../../../i686-pc-linux-gnu/bin/ld:
13 errno: TLS definition in /lib/libc.so.6 section .tbss mismatches
14 non-TLS reference in /tmp/cc6urgct.o
15 /lib/libc.so.6: could not read symbols: Bad value
16
17 But when I try to look up TLS, all I get is a bunch of stuff about a
18 server-to-server
19 email security protocol. What is it talking about here, and where can
20 I find out about it?
21
22 ++ kevin
23
24
25 --
26 Kevin O'Gorman, PhD
27 --
28 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Gcc complains about TLS and errno; I baffled Alan McKinnon <alan@××××××××××××××××.za>