building GMP on Solaris 10 x86

Torbjörn Granlund tg at gmplib.org
Tue Sep 9 15:04:04 UTC 2014


Tom Chien <tom.chien0 at gmail.com> writes:

  forgot to give you this info
  
  # file libgmp.so.10.2.0
  libgmp.so.10.2.0:       ELF 64-bit LSB dynamic lib AMD64 Version 1,
  dynamically linked, not stripped, no debugging information available
  # file libgmp.a
  libgmp.a:       current ar archive, 32-bit symbol table
  # pwd
  /opt/gmp/lib
  
I doubt very much that the actual members of the archive file are
32-bit.  The symbol table of the archive might be, whatever that means.
Don't let the 'file' command scare you.

I suggest that you try linking to that archive using a 64-bit compile
command.  It will fail if members are 32-bit.

If you want to be sure, use the 'ar' command to extract some random
object and perform the 'file' command on that.


Torbjörn
Please encrypt, key id 0xC8601622


More information about the gmp-discuss mailing list