[Joining comp.lang.c now... For context, see the failure stats of
Numeric-LL_Array-0.04 on
http://www.cpantesters.org/distro/N/...rray.html#0.04
(I remember seeing a color-coded version of the matrix given below; where?),
or one report on
http://www.nntp.perl.org/group/perl....sg3725590.html
]
On 2009-06-17, Keith Thompson <kst-> wrote:
> I haven't tried all possible combinations of options. With the
> following trivial program:
>
> #include <stdio.h>
> #include <math.h>
> int main(void)
> {
> printf("%Lf\n", sinl(1.0L));
> return 0;
> }
I found a BSD machine on the department network; it gives
blue2:/tmp/iz/Numeric-LL_Array-0.04->gcc -std=c99 -Wall -o c c.c -lm
aa.c: In function 'main':
aa.c:5: warning: implicit declaration of function 'sinl'
aa.c:5: warning: incompatible implicit declaration of built-in function 'sinl'
/var/tmp//ccXLekMc.o(.text+0x2c): In function `main': : undefined reference to `sinl'
Exit 1
(of course, without -std=c99 one gets the same result)... So, does
not BSD's gcc look completely broken?
$ uname -a
FreeBSD blue2.math.berkeley.edu 7.1-RELEASE-p2 FreeBSD 7.1-RELEASE-p2 #0: Thu Feb 5 08:39:48 PST 2009
:/math/blue4/FreeBSD/obj/math/blue4/FreeBSD/FreeBSD-7.1/src/sys/NETATALK i386
$ gcc -v
Using built-in specs.
Target: i386-undermydesk-freebsd
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 4.2.1 20070719 [FreeBSD]
================================================== =====
Perusing `-E -dD', I see that /usr/include/math.h is used; it has a
lot of `#if 0':
/*
* long double versions of ISO/POSIX math functions
*/
#if __ISO_C_VISIBLE >= 1999
#if 0
long double acoshl(long double);
long double acosl(long double);
long double asinhl(long double);
long double asinl(long double);
long double atan2l(long double, long double);
long double atanhl(long double);
long double atanl(long double);
long double cbrtl(long double);
#endif
long double ceill(long double);
long double copysignl(long double, long double) __pure2;
...
Do not know whether they explain anything, or not...
Thanks,
Ilya