From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1GknWU-00080A-Ao for garchives@archives.gentoo.org; Thu, 16 Nov 2006 20:07:46 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.8) with SMTP id kAGK5dKm014192; Thu, 16 Nov 2006 20:05:39 GMT Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by robin.gentoo.org (8.13.8/8.13.8) with ESMTP id kAGK3WjR011250 for ; Thu, 16 Nov 2006 20:03:32 GMT Received: by nf-out-0910.google.com with SMTP id c31so1928459nfb for ; Thu, 16 Nov 2006 12:03:32 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=WdVPxIsgvHdYMknI3HoAqCD4jF4xBUuMdV+I7xZEfSoDHrC5PhPUx9Szj1vnPwJE4E88FGqZFC3YXFV8vLn901COsF3SB/6/0riyWEnTFaMzBrOMcA85HAcdw6Ykb8Kg6IqeA4sVqT874lBmrmTyDpOaE42swj1bRx++jFzhZSY= Received: by 10.82.126.5 with SMTP id y5mr119548buc.1163707411745; Thu, 16 Nov 2006 12:03:31 -0800 (PST) Received: by 10.82.156.6 with HTTP; Thu, 16 Nov 2006 12:03:31 -0800 (PST) Message-ID: <9acccfe50611161203k224d0297hb19c3f14b743611d@mail.gmail.com> Date: Thu, 16 Nov 2006 12:03:31 -0800 From: "Kevin O'Gorman" To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] Gcc complains about TLS and errno; I baffled Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Archives-Salt: 8975b4cf-743c-4ee3-b093-ef7022c25ec1 X-Archives-Hash: 023955d0ebbb0ce218f99c66901a0af1 I'm trying to compile a program that works on Solaris with gcc, but won't complile under Linux (either FC5 or Gentoo). It seems to be because writing int errno; works under Solaris gcc-3.4.3 (well, it passes the compiler anyway), but under Linux gcc-3.4.6 or -4.1.0 one has to #include which makes more sense. I would just make the change, but I'm baffled by the error message Linux gcc gives to the first declaration. It reads: /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/../../../../i686-pc-linux-gnu/bin/ld: errno: TLS definition in /lib/libc.so.6 section .tbss mismatches non-TLS reference in /tmp/cc6urgct.o /lib/libc.so.6: could not read symbols: Bad value But when I try to look up TLS, all I get is a bunch of stuff about a server-to-server email security protocol. What is it talking about here, and where can I find out about it? ++ kevin -- Kevin O'Gorman, PhD -- gentoo-user@gentoo.org mailing list