Math::GMP Make Test error on Itanium running HP-UX 11.23

Math::GMP Make Test error on Itanium running HP-UX 11.23

am 17.02.2006 16:23:38 von staskied

I am receiving the following error when I do a make test for Math::GMP
2.04:
make test
PERL_DL_NONLAZY=1 /opt/perl-5.8/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/gmppm..../usr/lib/hpux64/dld.so: Unsatisfied code symbol
'__gmpn_invert_limb' in load module
'/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so'.
Can't load
'/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so' for
module Math::GMP: Unresolved external at
/opt/perl-5.8/lib/5.8.6/IA64.ARCHREV_0-thread-multi-LP64/Dyn aLoader.pm
line 230.
at t/gmppm.t line 7
Compilation failed in require at t/gmppm.t line 7.
BEGIN failed--compilation aborted at t/gmppm.t line 7.
t/gmppm....dubious
Test returned status 255 (wstat 65280, 0xff00)
FAILED--1 test script could be run, alas--no output ever seen
gmake: *** [test_dynamic] Error 255

An ldd -r on
'/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so'
returns:
ldd -r
/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/G MP.so
symbol not found: Perl_newSVpv
(/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so)
symbol not found: malloc
(/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so)
symbol not found: realloc
(/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so)
symbol not found: Perl_sv_newmortal
(/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so)
symbol not found: Perl_sv_2mortal
(/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so)
symbol not found: _isupper
(/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so)
symbol not found: Perl_Tstack_sp_ptr
(/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so)
symbol not found: __errno
(/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so)
symbol not found: Perl_Tstack_max_ptr
(/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so)
symbol not found: Perl_sv_setuv
(/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so)
symbol not found: Perl_sv_setpv
(/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so)
symbol not found: Perl_sv_setnv
(/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so)
symbol not found: Perl_sv_setiv
(/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so)
symbol not found: fprintf
(/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so)
symbol not found: Perl_sv_setref_pv
(/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so)
symbol not found: __iob
(/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so)
symbol not found: Perl_newXS
(/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so)
symbol not found: Perl_form
(/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so)
symbol not found: __SB_masks
(/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so)
symbol not found: _isspace
(/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so)
symbol not found: Perl_get_sv
(/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so)
symbol not found: Perl_Tmarkstack_ptr_ptr
(/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so)
symbol not found: Perl_croak_nocontext
(/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so)
symbol not found: Perl_Isv_yes_ptr
(/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so)
symbol not found: free
(/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so)
symbol not found: Perl_sv_2uv
(/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so)
symbol not found: Perl_sv_2iv
(/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so)
symbol not found: Perl_Top_ptr
(/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so)

Any ideas would be appreciated.
symbol not found: _isdigit
(/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so)
symbol not found: Perl_stack_grow
(/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so)
symbol not found: Perl_sv_derived_from
(/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so)
symbol not found: Perl_Tstack_base_ptr
(/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so)
symbol not found: Perl_Gthr_key_ptr
(/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so)
symbol not found: _islower
(/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so)
symbol not found: strcmp
(/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so)
symbol not found: abort
(/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so)
symbol not found: strlen
(/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so)
symbol not found: Perl_mg_set
(/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so)
symbol not found: __gmpn_invert_limb
(/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so)
symbol not found: Perl_Tcurpad_ptr
(/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so)
symbol not found: pthread_getspecific
(/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so)
symbol not found: Perl_sv_2pv_nolen
(/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so)
symbol not found: Perl_sv_2pv_flags
(/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so)
symbol not found: Perl_croak
(/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so)

Re: Math::GMP Make Test error on Itanium running HP-UX 11.23

am 19.02.2006 03:03:09 von Sisyphus

wrote in message
news:1140189818.705516.268200@g14g2000cwa.googlegroups.com.. .
> I am receiving the following error when I do a make test for Math::GMP
> 2.04:
> make test
> PERL_DL_NONLAZY=1 /opt/perl-5.8/bin/perl "-MExtUtils::Command::MM" "-e"
> "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
> t/gmppm..../usr/lib/hpux64/dld.so: Unsatisfied code symbol
> '__gmpn_invert_limb' in load module
> '/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so'.
> Can't load
> '/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so' for
> module Math::GMP: Unresolved external at
> /opt/perl-5.8/lib/5.8.6/IA64.ARCHREV_0-thread-multi-LP64/Dyn aLoader.pm
> line 230.
> at t/gmppm.t line 7
> Compilation failed in require at t/gmppm.t line 7.

Do you have an up-to-date GMP installation ?
If so, then I don't think there is any problem with your perl, or with the
libraries you have ... it's just that the system is having trouble
finding/loading one or more requisite libraries.

If your GMP is not the latest, then maybe try updating .... though I would
have thought any problems with an outdated GMP library would have surfaced
at the 'make' stage, rather than the 'test' stage.

Cheers,
Rob

Re: Math::GMP Make Test error on Itanium running HP-UX 11.23

am 19.02.2006 20:34:16 von staskied

My GMP installation is current, and I did not have any problems
installing GMP.

Re: Math::GMP Make Test error on Itanium running HP-UX 11.23

am 20.02.2006 02:21:52 von Sisyphus

wrote in message
news:1140377656.129510.244930@f14g2000cwb.googlegroups.com.. .
> My GMP installation is current, and I did not have any problems
> installing GMP.
>

If your GMP was built as a shared library (.so), one possible workaround
might to be build GMP as a static library, and then build Math::GMP against
that static build.

But, even if that works, it's only a workaround - and doesn't address the
issue of determining just what it is that the system needs to find/load, and
why it can't find/load it. If no-one here can help, you might need to post
to a HP-UX newsgroup.

One thing I would be wondering is whether it's a problem specific to GMP, or
whether the same problem arises whenever a perl module needs to access an
external library. If you're wondering the same thing but haven't installed
any other perl modules that need to access an external library, then maybe
try Unix::Statgrab (which I assume works with your OS). It needs
libstatgrab.

Cheers,
Rob

Re: Math::GMP Make Test error on Itanium running HP-UX 11.23

am 20.02.2006 06:14:01 von Ilya Zakharevich

[A complimentary Cc of this posting was sent to

], who wrote in article <1140189818.705516.268200@g14g2000cwa.googlegroups.com>:
> PERL_DL_NONLAZY=1 /opt/perl-5.8/bin/perl "-MExtUtils::Command::MM" "-e"
> "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
> t/gmppm..../usr/lib/hpux64/dld.so: Unsatisfied code symbol
> '__gmpn_invert_limb' in load module
> '/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so'.

> An ldd -r on
> '/opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/ GMP.so'
> returns:
> ldd -r
> /opt/perl-cpan/build/Math-GMP-2.04/blib/arch/auto/Math/GMP/G MP.so
> symbol not found: Perl_newSVpv

This is line noise.

Run "normal" ldd; check with which version of gmp DLL it is linked. Check
for symbol __gmpn_invert_limb (or similar symbols; number of
underscores sometimes is mismatched) in the gmp dll (run nm against
this DLL).

Hope this helps,
Ilya

Re: Math::GMP Make Test error on Itanium running HP-UX 11.23

am 21.02.2006 15:45:53 von staskied

I think I may have issues with my GMP Installation. When I did the nm
on libgmp.a I received the following output when grepping for
__gmpn_invert_limb:

>nm libgmp.a |grep gmpn_invert_limb
[9] | 0| 0|FUNC |GLOB |0|
UNDEF|__gmpn_invert_limb
[9] | 0| 0|FUNC |GLOB |0|
UNDEF|__gmpn_invert_limb
[9] | 0| 0|FUNC |GLOB |0|
UNDEF|__gmpn_invert_limb
[25] | 0| 0|FUNC |GLOB |0|
UNDEF|__gmpn_invert_limb
[13] | 0| 0|FUNC |GLOB |0|
UNDEF|__gmpn_invert_limb