[uClibc]gcc 3.1 & c++

Erik Andersen andersen at codepoet.org
Tue May 21 22:51:35 UTC 2002


On Tue May 21, 2002 at 02:20:10PM -0700, David Meggy wrote:
> [david at repository dave_tests]$ arm-linux-g++ cpptest.cpp 
> /usr/local/armdev/tools/gcc3-cross/lib/gcc-lib/arm-linux/3.1/../../../../arm-linux/lib/libstdc++.so: undefined
> reference to `finitef'

While waiting for things to compile I went looking and it turns
out that libstdc++.so is relying on blatent GNU libc-isms...

glibc-2.2.5/sysdeps/i386/fpu/s_finitef.S (and similar for other
architectures) in glibc provide:
    weak_alias (__finitef, finitef)
uClibc doesn't provide those aliases which leads to the problem
you are seeing.  

libstdc++ _should_ be using the isfinite(), which is standardized
(i.e. ISO C, SuSv3, etc).  It should certainly not be using glibc
internals.  Sigh,

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--



More information about the uClibc mailing list