bug-gmp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GMP Library


From: Steve Rinehart
Subject: Re: GMP Library
Date: Mon, 30 Dec 2002 14:11:01 -0700

Thanks for getting back to me on this.  Yes the I'm using is the hpux
11.   When I typed in ./config.guess, the system responded with: 
hppa2.0w-hp-hpux11.00.

I did the ./configure ABI=1.0, and everything appeared  to go smoothly.
 However, when I went back the Math::GMP and did the make, I got the
same error again.

Using the ./configure ABI=2.0n, I got the following error when doing a
make with the Math::GMP module:

cp lib/Math/GMP.pm blib/lib/Math/GMP.pm
AutoSplitting blib/lib/Math/GMP.pm (blib/lib/auto/Math/GMP)
        /usr/local/bin/perl /usr/local/lib/perl5/5.6.1/ExtUtils/xsubpp 
-typemap
 /usr/local/lib/perl5/5.6.1/ExtUtils/typemap -typemap typemap  GMP.xs >
GMP.xsc
&& mv GMP.xsc GMP.c
        cc -c    -D_HPUX_SOURCE -Aa -I/usr/local/include -O   
-DVERSION=\"2.03\
"  -DXS_VERSION=\"2.03\" +z
"-I/usr/local/lib/perl5/5.6.1/PA-RISC2.0/CORE"   GMP
.c
cc: "/usr/local/include/gmp.h", line 172: error 1681: Must use +e or
-Ae for long long in ANSI mode.
cc: "/usr/local/include/gmp.h", line 173: error 1681: Must use +e or
-Ae for long long in ANSI mode.
*** Error exit code 1


The only reason I'm trying to get this module into my Perl, is because
the Net::SSH is requiring it.  Since I need the SSH for the Net::SFTP
module, I need to find someway of getting the GMP module installed.

Thanks for your help.

Steve

>>> address@hidden 12/30/02 01:50PM >>>
"Steve Rinehart" <address@hidden> writes:
>
> ld: /usr/local/lib/libgmp.sl: Mismatched ABI. 64-bit PA shared
library
> found in 32-bit link.

GMP uses the 64-bit 2.0w ABI by default on hpux 11, is that the system
you're using?

Looks like perl wants 32-bit though.  You can build gmp for 32-bits
with

        ./configure ABI=1.0

This will be slower, but if it's how perl was built then there's not
much choice.

ABI=2.0n might work too, and would offer the speed of 2.0w.  Might
need to add "+DA2.0" to the flags used by the perl compile.  (See "ABI
and ISA" in the manual for more on this.)

Oh, and if you're using perl then give the GMP module in demos/perl a
try too, it's got more features than Math::GMP, last time I checked.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]