[Buildroot] [Fwd: Re: Struggling with undefined reference to `__fgetc_unlocked']
carmelo.amoroso at st.com
Thu Aug 23 16:43:11 UTC 2007
my reply below
-------- Original Message --------
Subject: Re: [Buildroot] Struggling with undefined reference to
Date: Thu, 23 Aug 2007 18:42:31 +0200
From: Carmelo Amoroso <carmelo.amoroso at st.com>
To: "Thiago A. Corrêa" <thiago.correa at gmail.com>
<d6cda7730708230925x19bc0901v9a6dd1f18ee325ec at mail.gmail.com>
<46CDB759.709 at st.com>
<d6cda7730708230939p7b126fe1mbe28768aa4413bb4 at mail.gmail.com>
Thiago A. Corrêa wrote:
> Hi Carmelo,
> That command returned
> gentoo-vm buildroot # readelf -s /lib/libc.so.6 | grep fgetc_unlocked
> 1868: 0005e040 40 FUNC WEAK DEFAULT 11 fgetc_unlocked@@GLIBC_2.1
> gentoo-vm buildroot #
> I'm guessing the prepended underscores are due to mangling, but
> could be wrong.
Not, they are part of the symbol's name... you need to fix qtopia to
call the fgetc_unlocked.
> On 8/23/07, Carmelo AMOROSO <carmelo.amoroso at st.com> wrote:
>> Thiago A. Corrêa wrote:
>>> I'm struggling with qtopia. During the link of rcc (which is a host
>>> tool, natively compiled) I get:
>>> I googled for the error, but could only find ppl complaining about
>>> this when linking against uClibc, when this should be linking against
>>> the system glibc. Does anyone has an idea of what I could try?
>>> Thiago A. Correa
>> Which glibc version have you installed on your host?
>> For example, on my RHEL 3 there is glibc-2.3.4 which doesn't contain the
>> symbol, while fgetc_unlocked (no underscore prepending)...
>> so just check your glibc by running 'readelf -s /lib/libc.so.6 | grep
>> and see what it returns.
>>> buildroot mailing list
>>> buildroot at uclibc.org
More information about the buildroot