bb 1.1.0 fais to build fancy sort applet

Rob Landley rob at landley.net
Tue Jan 24 02:28:33 UTC 2006


On Monday 23 January 2006 17:02, Peter S. Mazinger wrote:
> > > | :sort.c:(.text+0x389): undefined reference to `__isnan'
> > > | :sort.c:(.text+0x39c): undefined reference to `__isnan'
> > > | :sort.c:(.text+0x3b5): undefined reference to `__isnan'
> > > | :sort.c:(.text+0x3d1): undefined reference to `__isinf'
> > > | :sort.c:(.text+0x3f3): undefined reference to `__isinf'
> > > | :sort.c:(.text+0x424): undefined reference to `__isinf'
> > > | :sort.c:(.text+0x455): undefined reference to `__isinf'
> > > |
> > > | collect2: ld returned 1 exit status
>
> for some reason glibc has these in libc.so, not libm.so, uClibc in libm.so

Yeah, I figured that out.

Do you have a suggestion what we should do about the libm dependency?

It's easy enough to add the dependency to the Makefile.  (Patch attached.)  
And people building against glibc aren't exactly going for the world's 
smallest /lib directory.

The problem is, for glibc this takes a 9k app and adds an unnecessary 
dependency on 130k library.   And although the man page indicates that this 
is needed, I just tested the build on my Red Hat 7.3 image and it compiled 
and ran against glibc (2.2.5) just fine, without needing -libm.  So the man 
page hasn't matched reality for at least four years.

Is there some standard here?

Rob
-- 
Steve Ballmer: Innovation!  Inigo Montoya: You keep using that word.
I do not think it means what you think it means.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sortlibm.patch
Type: text/x-diff
Size: 567 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20060123/6843398e/attachment.bin 


More information about the busybox mailing list