libm/glibc-2.3.6 issue (was - Re: libstdc++ issue?)

michael lang kingoipo at gmail.com
Tue Nov 13 10:47:44 PST 2007


On 13/11/2007, juras <juras at kaptah.homelinux.net> wrote:
>
> Further investigation of the problem led me to the conclusion
> that there must be a bug inside the /lib/libm.so.6, which is
> a part of glibc-2.3.6 (in my system)
>
> That probably means that I'll have to upgrade glibc. But I am not sure
> if the upgrade - (a rather adventurous task) solves the problem.
>
> LFS-6.3 contains now the glibc-2.5.1.
> I would like to ask someone who has the libc-2.5.1 installed
> to try to compile, run and send the results of the following simple
> program:
>
Please send the result for me.
>

> the output of the program is:
>
> z = (0,  1.5708), ctanh(z) = (nan, inf)
>
> Which is wrong! (both with gcc-3.3.6 and gcc-4.2.2)
> It should be:
>
> z = (0,  1.5708), ctanh(z) = (0, inf)
>
> juras napisał(a):
>
> --
> http://linuxfromscratch.org/mailman/listinfo/blfs-support
> FAQ: http://www.linuxfromscratch.org/blfs/faq.html
> Unsubscribe: See the above information page


I'm not quite sure what you're problem is, but here is the output with
glibc-2.7 and gcc-4.2.2:
oipo [ ~/BLFS/php-5.2.5 ]$ ./tanh
z = (0,  1.5708), ctanh(z) = (0,1.63318e+16)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfromscratch.org/pipermail/blfs-support/attachments/20071113/c7b4278d/attachment.html>


More information about the blfs-support mailing list