Click here to get back home

Help with Math::GMP compile on AIX 5.3

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Help with Math::GMP compile on AIX 5.3 btna 09-11-2007
Posted by btna on September 11, 2007, 4:47 pm
Please log in for more thread options


Hi All.
I am trying to compile Math::GMP odule on my AIX 5.3 system and I keep
getting the following error: (Note that I compiled GMP Math libraries
without issues and I have added the '-L/usr/local/lib' to the
Makefile.PL :

Checking if your kit is complete...
Looks good
Writing Makefile for Math::GMP

Math-GMP-2.04> make

cp lib/Math/GMP.pm blib/lib/Math/GMP.pm
AutoSplitting blib/lib/Math/GMP.pm (blib/lib/auto/Math/GMP)
/usr/bin/perl -e 'use ExtUtils::Mksymlists; Mksymlists("NAME"
=> "Math:
:GMP", "DL_FUNCS" => { }, "FUNCLIST" => [], "DL_VARS" => []);'
/usr/bin/perl /usr/opt/perl5/lib/5.8.2/ExtUtils/xsubpp -
typemap /usr/op
t/perl5/lib/5.8.2/ExtUtils/typemap -typemap typemap GMP.xs > GMP.xsc
&& mv GMP.
xsc GMP.c
cc_r -c -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -
qmaxmem=16384
-qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 -
D_LARGE_FILES -qlon
glong -O -DVERSION=\"2.04\" -DXS_VERSION=\"2.04\" "-I/usr/opt/
perl5/lib/5.8
.2/aix-thread-multi/CORE" GMP.c
Running Mkbootstrap for Math::GMP ()
chmod 644 GMP.bs
rm -f blib/arch/auto/Math/GMP/GMP.so
LD_RUN_PATH="" ld -bhalt:4 -bM:SRE -bI:/usr/opt/perl5/lib/
5.8.2/aix-thr
ead-multi/CORE/perl.exp -bE:GMP.exp -bnoentry -lpthreads -lc_r GMP.o -
o blib/ar
ch/auto/Math/GMP/GMP.so -L/usr/local/lib -lgmp
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 is going on here?

Thanks much!


Posted by rahed on September 15, 2007, 11:26 am
Please log in for more thread options



> Hi All.
> I am trying to compile Math::GMP odule on my AIX 5.3 system and I keep
> getting the following error: (Note that I compiled GMP Math libraries
> without issues and I have added the '-L/usr/local/lib' to the
> Makefile.PL :

You could check your library with

ldd /usr/local/gmp-4.1.2/.libs/libgmp.so

and if ok, try again

perl Makefile.PL LIBS="-L/usr/local/gmp-4.1.2/.libs" INC="-I/usr/local/gmp-4.1.2"

(though you may want to fix the paths.)

--
Radek

Similar ThreadsPosted
Math::Pari doesn't compile with GCC 3.4.2 in Solaris 9 sparc January 17, 2005, 5:24 pm
Net::Nessus 0.09 does not compile October 26, 2004, 9:04 am
How do we compile for perl? April 10, 2005, 11:01 pm
Compile of DB::DB2 on cygwin June 15, 2005, 7:38 pm
Conditional compile if 64-bit cpu, in .xs ? August 28, 2006, 12:00 am
compile problems with XML::LibXML December 22, 2004, 5:41 pm
Des::Crypt Will not Compile On Solaris 8 Using GCC December 7, 2005, 2:58 pm
Trying to compile MP3::Info gives errors December 12, 2005, 11:17 am
Mac OSX Tiger getting module to compile January 3, 2006, 9:45 am
Forks.pm compile problems March 1, 2006, 10:07 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap