Mailing List Archive

exp() bug on BSDI BSD/OS 2.0.1
I'm attempting to compile Perl 5.001m on a BSDI system with gcc 2.6.3.
However, the op/exp test fails, as I can duplicate here:

$ ./perl -e 'print exp(1), "\n"'
1.35914091422952

Oops. Has anyone seen this before? I tried both with and without -O.

Thanks,

-Andrew


Summary of my perl5 (patchlevel 1) configuration:
Platform:
osname=bsdos, osver=2.0.1, archname=i386-bsdos
uname='bsdos jumper.va.pubnix.com 2.0.1 bsdi bsdos 2.0.1 kernel #5: thu aug 31 22:13:14 edt 1995 lidl@catapult.va.pubnix.com:usrsrcsyscompileserver i386 '
hint=previous
Compiler:
cc='gcc', optimize=' ', ld='ld'
cppflags='-I/homes/www009/digiguru/vend/include -L/homes/www009/digiguru/vend/lib'
ccflags ='-I/homes/www009/digiguru/vend/include -L/homes/www009/digiguru/vend/lib'
ldflags ='-L/homes/www009/digiguru/vend/lib'
stdchar='char', d_stdstdio=undef, usevfork=true
voidflags=15, castflags=0, d_casti32=define, d_castneg=define
intsize=4, alignbytes=4, usemymalloc=y, randbits=31
Libraries:
so=so
libpth=/homes/www009/digiguru/vend/lib /usr/lib
libs=-lnm -lgdbm -lm -lc
libc=/usr/lib/libc.a
Dynamic Linking:
dlsrc=dl_none.xs, dlext=none, d_dlsymun=undef
cccdlflags='', ccdlflags='', lddlflags=''
Re: exp() bug on BSDI BSD/OS 2.0.1 [ In reply to ]
Andrew Wilcox writes:
>
> I'm attempting to compile Perl 5.001m on a BSDI system with gcc 2.6.3.
> However, the op/exp test fails, as I can duplicate here:
>
> $ ./perl -e 'print exp(1), "\n"'
> 1.35914091422952

This number is easily recognizable:

perl -e 'print exp(1)/2, "\n"'
1.35914091422952

Ilya