compiling GMP on AIX 5.3

btna btna at terra.com
Thu Sep 13 22:08:02 CEST 2007


Hi all,

I ma in the process on trying to compile a perl modeule that requires GMP  and it is giving me a bunch of "undefined" errors. I have tried a few things some people have suggested but I have not beenable to get it to work. The GMP compilation seems to be ok. My UNIX server is running 64 bit and the "make", "make checks" work fine. 
When I go to icompile the perl module (Math::GMP), I get the following errors:

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

Someone pointed that GMP will always compile using 64 bit (q64) anfd that I had to try to modify the configure (this was one option) to compile on 32 bits. I have not been successful doing this.
I am hoping anyone has any suggestions or ideas on how to compile GMP on 32 bit if that is my problem.

Thanks in advance,

BTNA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gmplib.org/list-archives/gmp-discuss/attachments/20070913/4d5e70fa/attachment.html 


More information about the gmp-discuss mailing list