Skip Menu |

This queue is for tickets about the bignum CPAN distribution.

Report information
The Basics
Id: 68804
Status: new
Priority: 0/
Queue: bignum

People
Owner: Nobody in particular
Requestors: ambrus [...] math.bme.hu
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: use bigrat lib => "GMP"; mixes low-level libraries and dies
Date: Tue, 14 Jun 2011 00:04:57 +0200
To: bug-bignum [...] rt.cpan.org
From: Zsbán Ambrus <ambrus [...] math.bme.hu>
Dear maintainer of the bignum module, The command perl -we 'use bigrat lib => "GMP"; warn 3/5;' dies, apparently because it creates bigint objects with the wrong low-level bigint library. According to the documentation, this should work. To reproduce this bug, you need to have the Math::BigInt::GMP module installed. I'm using vanilla perl 5.14.0 on a debian-based linux-amd64 system. More details below. Ambrus $ perl -we 'use bigrat lib => "GMP"; warn 3/5;' Can't locate object method "_copy" via package "Math::BigInt::Calc" (perhaps you forgot to load "Math::BigInt::Calc"?) at /usr/local/perl5.14/lib/5.14.0/Math/BigRat.pm line 92. $ perl -we 'use Math::BigRat lib => "GMP"; use bigrat lib => "GMP"; warn 3/5;' 3/5 at -e line 1. $ perl -we 'use bigrat qw"lib GMP v";' bigrat v0.28 Math::BigInt v1.994 lib => Math::BigInt::GMP v1.36 Math::BigFloat v1.993 Math::BigRat v0.2602 $ perl -V Summary of my perl5 (revision 5 version 14 subversion 0) configuration: Platform: osname=linux, osvers=2.6.37, archname=x86_64-linux uname='linux king 2.6.37 #6 smp sun mar 13 20:15:05 cet 2011 x86_64 gnulinux ' config_args='-Dprefix=/usr/local/perl5.14 -Dman1dir=/usr/local/share/man/man1 -Dman3dir=/usr/local/share/man/man3 -Dsiteman1dir=/usr/local/share/man/man1 -Dsiteman3dir=/usr/local/share/man/man3 -d' hint=recommended, useposix=true, d_sigaction=define useithreads=undef, usemultiplicity=undef useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef use64bitint=define, use64bitall=define, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-O2', cppflags='-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include' ccversion='', gccversion='4.5.1', gccosandvers='' intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='cc', ldflags =' -fstack-protector -L/usr/local/lib' libpth=/usr/local/lib /lib/../lib64 /usr/lib/../lib64 /lib /usr/lib /lib64 /usr/lib64 /usr/local/lib64 libs=-lnsl -ldl -lm -lcrypt -lutil -lc perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc libc=/lib/libc-2.11.2.so, so=so, useshrplib=false, libperl=libperl.a gnulibc_version='2.11.2' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E' cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib -fstack-protector' Characteristics of this binary (from libperl): Compile-time options: PERL_DONT_CREATE_GVSV PERL_MALLOC_WRAP PERL_PRESERVE_IVUV USE_64_BIT_ALL USE_64_BIT_INT USE_LARGE_FILES USE_PERLIO USE_PERL_ATOF Built under linux Compiled at May 15 2011 22:49:10 @INC: /usr/local/perl5.14/lib/site_perl/5.14.0/x86_64-linux /usr/local/perl5.14/lib/site_perl/5.14.0 /usr/local/perl5.14/lib/5.14.0/x86_64-linux /usr/local/perl5.14/lib/5.14.0 . $