Skip Menu |

This queue is for tickets about the Math-BigInt-GMP CPAN distribution.

Report information
The Basics
Id: 23878
Status: resolved
Worked: 15 min
Priority: 0/
Queue: Math-BigInt-GMP

People
Owner: TELS [...] cpan.org
Requestors: toddr [...] cpanel.net
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.18
Fixed in: 1.19



Subject: make test fails
I am attaching below the output of my attempt to install Math::BigInt::GMP when GMP is installed in a non-standard location. NOTE: gmp succeeded in make check. As I am not SA, and GMP is only used for perl, I installed it in the site directory for perl. Unfortunateley, I can only guess that my instructions will have the desired effects. - Can you help? - Are the errors from something else? Thanks, --- running perl 5.8.8: $>/apps/perl588/bin/perl -V Summary of my perl5 (revision 5 version 8 subversion 8) configuration: Platform: osname=solaris, osvers=2.8, archname=sun4-solaris uname='sunos cmtmcc110 5.8 generic_117350-38 sun4u sparc sunw,sun- fire-15000 ' config_args='-s -d' hint=recommended, useposix=true, d_sigaction=define usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='/opt/SUNWspro/bin/cc', ccflags ='-I/usr/local/include - D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-O', cppflags='-I/usr/local/include' ccversion='Sun C 5.8 Patch 121015-02 2006/03/29', gccversion='', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='/opt/SUNWspro/bin/cc', ldflags =' -L/usr/lib -L/usr/ccs/lib - L/opt/SUNWspro/prod/lib/v8plus -L/opt/SUNWspro/prod/lib -L/lib - L/usr/local/lib ' libpth=/usr/lib /usr/ccs/lib /opt/SUNWspro/prod/lib/v8plus /opt/SUNWspro /prod/lib /lib /usr/local/lib libs=-lsocket -lnsl -ldl -lm -lc perllibs=-lsocket -lnsl -ldl -lm -lc libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' ' cccdlflags='-KPIC', lddlflags='-G -L/usr/lib -L/usr/ccs/lib - L/opt/SUNWspro/prod/lib/v8plus -L/opt/SUNWspro/prod/lib -L/lib - L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: PERL_MALLOC_WRAP USE_LARGE_FILES USE_PERLIO Built under solaris Compiled at Dec 6 2006 11:06:43 %ENV: PERLDB_OPTS="RemotePort=172.24.1.20:9000" @INC: /apps/perl588/lib/5.8.8/sun4-solaris /apps/perl588/lib/5.8.8 /apps/perl588/site/lib/sun4-solaris /apps/perl588/site/lib /apps/perl588/site/lib ----- GMP is installed into /apps/perl588/site/gmp-4.2.1 (lib and include) ----- Here is the ouput from my make: $>perl Makefile.PL INC=-I/apps/perl588/site/gmp-4.2.1/include LIBS="- L/apps/perl588/site/gmp-4.2.1/lib" Writing Makefile for Math::BigInt::GMP $>make cp lib/Math/BigInt/GMP.pm blib/lib/Math/BigInt/GMP.pm /apps/perl588/bin/perl /apps/perl588/lib/5.8.8/ExtUtils/xsubpp - typemap /apps/perl588/lib/5.8.8/ExtUtils/typemap -typemap typemap GMP.xs > GMP.xsc && mv GMP.xsc GMP.c /opt/SUNWspro/bin/cc -c -I/apps/perl588/site/gmp-4.2.1/include - I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O - DVERSION=\"1.18\" -DXS_VERSION=\"1.18\" -KPIC "- I/apps/perl588/lib/5.8.8/sun4-solaris/CORE" GMP.c Running Mkbootstrap for Math::BigInt::GMP () chmod 644 GMP.bs rm -f blib/arch/auto/Math/BigInt/GMP/GMP.so /opt/SUNWspro/bin/cc -G -L/usr/lib -L/usr/ccs/lib - L/opt/SUNWspro/prod/lib/v8plus -L/opt/SUNWspro/prod/lib -L/lib - L/usr/local/lib GMP.o -o blib/arch/auto/Math/BigInt/GMP/GMP.so \ \ chmod 755 blib/arch/auto/Math/BigInt/GMP/GMP.so cp GMP.bs blib/arch/auto/Math/BigInt/GMP/GMP.bs chmod 644 blib/arch/auto/Math/BigInt/GMP/GMP.bs Manifying blib/man3/Math::BigInt::GMP.3 $>make test PERL_DL_NONLAZY=1 /apps/perl588/bin/perl "-MExtUtils::Command::MM" "- e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/bigfltpm....# Test 1 got: "Math::BigInt::Calc" (bigfltpm.inc at line 3) # Expected: "Math::BigInt::GMP" t/bigfltpm....ok 2/2012Can't locate object method "_zeros" via package "Math::BigInt::GMP" at bigfltpm.inc line 167, <DATA> line 2. Compilation failed in require at t/bigfltpm.t line 22, <DATA> line 2. t/bigfltpm....dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1, 3-2012 Failed 2011/2012 tests, 0.05% okay t/bigintg.....Can't load '../blib/arch/auto/Math/BigInt/GMP/GMP.so' for module Math::BigInt::GMP: ld.so.1: perl: fatal: relocation error: file ../blib/arch/auto/Math/BigInt/GMP/GMP.so: symbol __gmpz_init_set_str: referenced symbol not found at /apps/perl588/lib/5.8.8/sun4-solaris/DynaLoader.pm line 230. at t/bigintg.t line 15 Compilation failed in require at t/bigintg.t line 15. BEGIN failed--compilation aborted at t/bigintg.t line 15. t/bigintg.....dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1-292 Failed 292/292 tests, 0.00% okay t/bigintpm....Math::BigInt::GMP is missing method '_one' at bigintpm.inc line 12 Cannot load outdated Math::BigInt::GMP v1.18, please upgrade at bigintpm.inc line 12 # Test 1 got: "Math::BigInt::Calc" (bigintpm.inc at line 39) # Expected: "Math::BigInt::GMP" t/bigintpm....ok 2633/2964Can't locate object method "_base_len" via package "Math::BigInt::GMP" at bigintpm.inc line 526. Compilation failed in require at t/bigintpm.t line 23. t/bigintpm....dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED test 1 Failed 1/2964 tests, 99.97% okay Failed Test Stat Wstat Total Fail List of Failed ------------------------------------------------------------------------ ------- t/bigfltpm.t 255 65280 2012 4021 1 3-2012 t/bigintg.t 255 65280 292 584 1-292 t/bigintpm.t 255 65280 2964 1 1 Failed 3/3 test scripts. 2304/5268 subtests failed. Files=3, Tests=5268, 3 wallclock secs ( 1.78 cusr + 0.18 csys = 1.96 CPU) Failed 3/3 test programs. 2304/5268 subtests failed. *** Error code 255 make: Fatal error: Command failed for target `test_dynamic' $>
From: todd.e.rinaldo [...] jpmorgan.com
Update: make test *IF* I create the below symlinks. This is not a good solution to my problem considering how many hosts I'd have to make them on. I would prefer to find a way to fix this with the Makefile but do not know how. I would suggest a mod be made altering INSTALL to instruct how to install this module when gmp is not installed to /usr/local ln -s /apps/perl588/site/gmp-4.2.1/lib/libgmp.a /usr/local/lib/libgmp.a ln -s /apps/perl588/site/gmp- 4.2.1/lib/libgmp.la /usr/local/lib/libgmp.la ln -s /apps/perl588/site/gmp- 4.2.1/lib/libgmp.so /usr/local/lib/libgmp.so ln -s /apps/perl588/site/gmp- 4.2.1/lib/libgmp.so.3.4.1 /usr/local/lib/libgmp.so.3.4.1 ln -s /apps/perl588/site/gmp- 4.2.1/lib/libgmp.so.3 /usr/local/lib/libgmp.so.3 ln -s /apps/perl588/site/gmp- 4.2.1/include/gmp.h /usr/local/include/gmp.h
From: todd.e.rinaldo [...] jpmorgan.com
OK looks like I solved my own problem perl Makefile.PL INC=-I/apps/perl588/site/gmp-4.2.1/include LIBS="- L/apps/perl588/site/gmp-4.2.1/lib -lgmp" fixes things. BUT: I'd really like to see this added to the INSTALL docs to make life easier for the next guy. If you want to get elaborate, I higly reccommend looking at the Makefile.PL for XML::Parser to see how they dealt with this problem. Thanks! Lemme know if I can provide more info.
Subject: Re: [rt.cpan.org #23878] make test fails
Date: Mon, 11 Dec 2006 16:17:50 +0100
To: bug-Math-BigInt-GMP [...] rt.cpan.org
From: Tels <nospam-abuse [...] bloodgate.com>
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Moin, On Sunday 10 December 2006 23:07, Todd E. Rinaldo via RT wrote: Show quoted text
> Queue: Math-BigInt-GMP > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=23878 > > > OK looks like I solved my own problem > perl Makefile.PL INC=-I/apps/perl588/site/gmp-4.2.1/include LIBS="- > L/apps/perl588/site/gmp-4.2.1/lib -lgmp" > > fixes things. > BUT: I'd really like to see this added to the INSTALL docs to make life > easier for the next guy. If you want to get elaborate, I higly > reccommend looking at the Makefile.PL for XML::Parser to see how they > dealt with this problem. > Thanks! Lemme know if I can provide more info.
Could you please send in a doc-patch? (diff -u please) thanx, tels - -- Signed on Mon Dec 11 16:17:33 2006 with key 0x93B84C15. Visit my photo gallery at http://bloodgate.com/photos/ PGP key on http://bloodgate.com/tels.asc or per email. This email violates U.S. patent #5,978,791 <http://tinyurl.com/5t6ft> -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iQEVAwUBRX12nncLPEOTuEwVAQJkHAf+MvUeInncF3rbSq8/DPNFEft9Kj0r84i/ lSFsK8Q0iCIWjdsNp5+LuOYsL4EiZ/0wJwmgBLuMUKB1T83brThdF7RY40HuobbO gaL5oV9xpIztbtvIzgCqVYsYZti+gA1Figjdzv42yZKQbfDu8UmxT5vCywSQVBhL K2Z3PggIjO3oALgrsUogoCg3dgA4IfzOFh57bl8FfoTW90rXcEkrsfLtTm519ALK qp3xGJxxtApcbCM8kvZKDRWQqJ7D0+kTSF1U5vlbhMzfJP7y0HcwqsQYwXA3u7wF 7ZV7W/0qKqo1VAAtNdnWR+PP8FywqgpqjSetjWhoWwYD8lV/dkun2Q== =n1Gc -----END PGP SIGNATURE-----
I have added a note to the INSTALL file. Closing this now. Thank you for your report, Tels