Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

GMP::Math ...PLEASE HELP!!

69 views
Skip to first unread message

btna

unread,
Feb 7, 2005, 1:02:05 PM2/7/05
to
Hi all,

I am trying to install GMP:;Math since it is a pre-requisite for
Net::SSH. I already downloaded gmp-4.1.4 and installed it. The
library(libgmp.a) is under /usr/local/lib. When I tried installing
GMP::Math, I get:

$>perl Makefile.PL
Note (probably harmless): No library found for -lgmp
Writing Makefile for Math::GMP
$>make
Skip blib/lib/Math/GMP.pm (unchanged)
cp lib/Math/libgmp.a blib/lib/Math/libgmp.a
cc -c -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
-qmaxmem=16384 -q3
2 -D_LARGE_FILES -qlonglong -O -DVERSION=\"2.04\"
-DXS_VERSION=\"2.04\" -
I/usr/opt/perl5/lib/5.6.0/aix/CORE GMP.c
Running Mkbootstrap for Math::GMP ()
chmod 644 GMP.bs
LD_RUN_PATH="" ld -o blib/arch/auto/Math/GMP/GMP.so -bhalt:4
-bM:SRE -b
I:/usr/opt/perl5/lib/5.6.0/aix/CORE/perl.exp -bE:GMP.exp -b noentry -lC
-lc GMP
.o
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_init
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_sqrt
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_tstbit
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_init_set
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_fac_ui
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_ior
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_xor
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_and
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_fib_ui
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_gcd
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_pow_ui
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_jacobi
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_cmp
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_mod
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_tdiv_qr
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_fdiv_q
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_mul
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_sub
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_add
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_fdiv_r_2exp
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_fdiv_r
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_powm
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_fdiv_q_2exp
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_mul_2exp
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_get_si
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_add_ui
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_get_ui
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_sizeinbase
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_get_str
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_clear
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_init_set_str
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
make: 1254-004 The error code from the last command is 8.


Stop.

ANY IDEAS WHAT I AM DOING WRONG? WHAT DO I NEED TO DO TO FIX IT AND GET
IT INSTALLED?

Thanks in advance,

BTNA

John Bokma

unread,
Feb 7, 2005, 2:51:06 PM2/7/05
to
btna wrote:

> ANY IDEAS WHAT I AM DOING WRONG? WHAT DO I NEED TO DO TO FIX IT AND GET
> IT INSTALLED?

Writing in all caps is considered yelling. Also, pick your subject with
more care next time (try to describe in short your problem, most postings
on Usenet are HEEEEELP HELP requests)

--
John Small Perl scripts: http://johnbokma.com/perl/
Perl programmer available: http://castleamber.com/
Happy Customers: http://castleamber.com/testimonials.html

btna

unread,
Feb 7, 2005, 3:19:39 PM2/7/05
to
It was not my intention to write in Caps. I probably had the "Caps On"
and did not realized it. As you can see, I had started writing in lower
case.

Thanks,

BTNA

John Bokma

unread,
Feb 7, 2005, 4:24:37 PM2/7/05
to
btna wrote:

Thanks ;-)

Sisyphus

unread,
Feb 8, 2005, 12:38:12 AM2/8/05
to
btna wrote:
> Hi all,
>
> I am trying to install GMP:;Math since it is a pre-requisite for
> Net::SSH. I already downloaded gmp-4.1.4 and installed it. The
> library(libgmp.a) is under /usr/local/lib. When I tried installing
> GMP::Math, I get:
>
> $>perl Makefile.PL
> Note (probably harmless): No library found for -lgmp

Turns out it's not "harmless" - it's the cause of all those subsequent
link failures.

How come libgmp.a can't be found ? I would have expected that all libs
in /usr/local/lib would be findable.

Anyway, in the Makefile.PL, change ['-lgmp'] to:
['-L/usr/local/lib -lgmp']

Then run:
make clean
perl Makefile.PL
make

I think that will do the trick.

Cheers,
Rob


--
To reply by email u have to take out the u in kalinaubears.

bd

unread,
Feb 8, 2005, 8:41:42 AM2/8/05
to
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

btna wrote:
| Hi all,
|
| I am trying to install GMP:;Math since it is a pre-requisite for
| Net::SSH. I already downloaded gmp-4.1.4 and installed it. The
| library(libgmp.a) is under /usr/local/lib. When I tried installing
| GMP::Math, I get:
|
| $>perl Makefile.PL
| Note (probably harmless): No library found for -lgmp

If you're using Linux, make sure /usr/local/lib is in your
/etc/ld.so.conf , then run ldconfig. If you're using something else,
there probably will be an equivalent for your system; check your
documentation for how to set your library search path.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCCMGU+hz2VlChukwRAnn6AJwKdYls7+RwZirTd6B8NP2lBeaUrgCfSS0Q
6JX7wrpRSG1qb/143BD1PAQ=
=NXjp
-----END PGP SIGNATURE-----

btna

unread,
Feb 8, 2005, 9:17:29 AM2/8/05
to
Rob,

Thanks!. That definitely did it. I really appreciate your assistance. I
am also trying to compile Mat::Pari and I get errors too. I will post
the question in a different thread though.

Thanks again!!!

BTNA

0 new messages