* [Buildroot] Struggling with undefined reference to `__fgetc_unlocked'
@ 2007-08-23 16:25 Thiago A. Corrêa
2007-08-23 16:35 ` Carmelo AMOROSO
0 siblings, 1 reply; 3+ messages in thread
From: Thiago A. Corrêa @ 2007-08-23 16:25 UTC (permalink / raw)
To: buildroot
Hi,
I'm struggling with qtopia. During the link of rcc (which is a host
tool, natively compiled) I get:
g++ -o ../../../bin/rcc .obj/release-shared-emb-avr32/main.o
.obj/release-shared-emb-avr32/rcc.o
.obj/release-shared-emb-avr32/qglobal.o
.obj/release-shared-emb-avr32/qbuffer.o
.obj/release-shared-emb-avr32/qdir.o
.obj/release-shared-emb-avr32/qfile.o
.obj/release-shared-emb-avr32/qfileinfo.o
.obj/release-shared-emb-avr32/qfsfileengine.o
.obj/release-shared-emb-avr32/qiodevice.o
.obj/release-shared-emb-avr32/qtemporaryfile.o
.obj/release-shared-emb-avr32/qtextstream.o
.obj/release-shared-emb-avr32/qbytearraymatcher.o
.obj/release-shared-emb-avr32/qchar.o
.obj/release-shared-emb-avr32/qdatetime.o
.obj/release-shared-emb-avr32/qhash.o
.obj/release-shared-emb-avr32/qlistdata.o
.obj/release-shared-emb-avr32/qlocale.o
.obj/release-shared-emb-avr32/qmap.o
.obj/release-shared-emb-avr32/qstring.o
.obj/release-shared-emb-avr32/qstringlist.o
.obj/release-shared-emb-avr32/qstringmatcher.o
.obj/release-shared-emb-avr32/qvector.o
.obj/release-shared-emb-avr32/qabstractfileengine.o
.obj/release-shared-emb-avr32/qbytearray.o
.obj/release-shared-emb-avr32/qbitarray.o
.obj/release-shared-emb-avr32/qunicodetables.o
.obj/release-shared-emb-avr32/qvsnprintf.o
.obj/release-shared-emb-avr32/qregexp.o
.obj/release-shared-emb-avr32/qtextcodec.o
.obj/release-shared-emb-avr32/qutfcodec.o
.obj/release-shared-emb-avr32/qisciicodec.o
.obj/release-shared-emb-avr32/qtsciicodec.o
.obj/release-shared-emb-avr32/qlatincodec.o
.obj/release-shared-emb-avr32/qsimplecodec.o
.obj/release-shared-emb-avr32/qdom.o
.obj/release-shared-emb-avr32/qxml.o
.obj/release-shared-emb-avr32/qfsfileengine_unix.o -lz -ldl
.obj/release-shared-emb-avr32/qfsfileengine.o: In function
`QFSFileEngine::read(char*, long long)':
qfsfileengine.cpp:(.text+0x1160): undefined reference to `__fgetc_unlocked'
collect2: ld returned 1 exit status
make[3]: *** [../../../bin/rcc] Error 1
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?
Regards,
Thiago A. Correa
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] Struggling with undefined reference to `__fgetc_unlocked'
2007-08-23 16:25 [Buildroot] Struggling with undefined reference to `__fgetc_unlocked' Thiago A. Corrêa
@ 2007-08-23 16:35 ` Carmelo AMOROSO
[not found] ` <d6cda7730708230939p7b126fe1mbe28768aa4413bb4@mail.gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Carmelo AMOROSO @ 2007-08-23 16:35 UTC (permalink / raw)
To: buildroot
Thiago A. Corr?a wrote:
> Hi,
>
> 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?
>
> Regards,
> 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
__fgetc_unlocked
symbol, while fgetc_unlocked (no underscore prepending)...
so just check your glibc by running 'readelf -s /lib/libc.so.6 | grep
fgetc_unlocked'
and see what it returns.
Regards,
Carmelo
> _______________________________________________
> buildroot mailing list
> buildroot at uclibc.org
> http://busybox.net/mailman/listinfo/buildroot
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] Struggling with undefined reference to `__fgetc_unlocked'
[not found] ` <d6cda7730708230939p7b126fe1mbe28768aa4413bb4@mail.gmail.com>
@ 2007-08-23 16:40 ` Thiago A. Corrêa
0 siblings, 0 replies; 3+ messages in thread
From: Thiago A. Corrêa @ 2007-08-23 16:40 UTC (permalink / raw)
To: buildroot
PS: Sorry, forgot to add the list in the reply. *g*.
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.
On 8/23/07, Carmelo AMOROSO <carmelo.amoroso@st.com> wrote:
> Thiago A. Corr?a wrote:
> > Hi,
> >
> > 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?
> >
> > Regards,
> > 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
> __fgetc_unlocked
> symbol, while fgetc_unlocked (no underscore prepending)...
> so just check your glibc by running 'readelf -s /lib/libc.so.6 | grep
> fgetc_unlocked'
> and see what it returns.
>
> Regards,
> Carmelo
>
> > _______________________________________________
> > buildroot mailing list
> > buildroot at uclibc.org
> > http://busybox.net/mailman/listinfo/buildroot
> >
> >
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-08-23 16:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-23 16:25 [Buildroot] Struggling with undefined reference to `__fgetc_unlocked' Thiago A. Corrêa
2007-08-23 16:35 ` Carmelo AMOROSO
[not found] ` <d6cda7730708230939p7b126fe1mbe28768aa4413bb4@mail.gmail.com>
2007-08-23 16:40 ` Thiago A. Corrêa
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.