Building 32-bit libs on Solaris 9??

Torbjorn Granlund tege at
Thu Jul 21 23:24:03 CEST 2005

Chuck Carson <chuck.carson at> writes:

  I'm trying to use the Net::SSH::Perl module which has a slew of
  dependencies, some of which require Math::GMP which requires gmp. I
  built gmp w/o problems but when trying to build Math::GMP, is
  complains about wrong ELF class.
  LD_RUN_PATH="/usr/local/lib" gcc -B/usr/ccs/bin/  -G -L/usr/local/lib
  -L/opt/gnu/lib GMP.o  -o blib/arch/auto/Math/GMP/   -lgmp
  ld: fatal: file /usr/local/lib/ wrong ELF class: ELFCLASS64
  ld: fatal: File processing errors. No output written to
  collect2: ld returned 1 exit status
  make: *** [blib/arch/auto/Math/GMP/] Error 1
  Is there anyone to build compatibile libraries?
Have you, by any chance, checked the fine GMP manual?  I'd recommend
the section "ABI and ISA", which happens to be accessible here:


More information about the gmp-discuss mailing list