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'
$>