Subject: | Lib error during make |
System is Solaris 8 (64 bit.) GMP library is 4.1.2
Below is the sequence which gives the error:
# perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Math::GMP
# 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 -I/ots/perl-5.6.1/lib/sun4-solaris -I/ots/perl-5.6.1/lib /ots/perl-5.6.1/lib/ExtUtils/xsubpp -typemap /ots/perl-5.6.1/lib/ExtUtils/typemap -typemap typemap GMP.xs > GMP.xsc && mv GMP.xsc GMP.c
gcc -c -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"2.03\" -DXS_VERSION=\"2.03\" -fPIC -I/ots/perl-5.6.1/lib/sun4-solaris/CORE GMP.c
cc1: warning: changing search order for system directory "/usr/local/include"
cc1: warning: as it has already been specified as a non-system directory
Running Mkbootstrap for Math::GMP ()
chmod 644 GMP.bs
rm -f blib/arch/auto/Math/GMP/GMP.so
LD_RUN_PATH="/usr/local/lib" gcc -G -L/usr/local/lib GMP.o -o blib/arch/auto/Math/GMP/GMP.so -lgmp
ld: fatal: file /usr/local/lib/libgmp.so: wrong ELF class: ELFCLASS64
ld: fatal: File processing errors. No output written to blib/arch/auto/Math/GMP/GMP.so
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `blib/arch/auto/Math/GMP/GMP.so'
Looks like 32 bit versus 64 bit compiled library... not sure