public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Alan McKinnon <alan@linuxholdings.co.za>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Gcc complains about TLS and errno; I baffled
Date: Thu, 16 Nov 2006 22:19:10 +0200	[thread overview]
Message-ID: <200611162219.10674.alan@linuxholdings.co.za> (raw)
In-Reply-To: <9acccfe50611161203k224d0297hb19c3f14b743611d@mail.gmail.com>

On Thursday 16 November 2006 22:03, Kevin O'Gorman wrote:
> 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 <errno.h>
> 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/bi
>n/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?

It would appear to be a an issue between linuxthreads and nptl. How are 
your nptl and nptlonly USE flasg set?

This post that I find on google may start to give you more answers. It's 
for a completely different package but the problem and solution seesmto 
be the same as yours:

http://www.rockbox.org/mail/archive/rockbox-dev-archive-2006-01/0020.shtml

alan
-- 
gentoo-user@gentoo.org mailing list



  reply	other threads:[~2006-11-16 20:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-16 20:03 [gentoo-user] Gcc complains about TLS and errno; I baffled Kevin O'Gorman
2006-11-16 20:19 ` Alan McKinnon [this message]
2006-11-16 23:26   ` Devon Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200611162219.10674.alan@linuxholdings.co.za \
    --to=alan@linuxholdings.co.za \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox