Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

djberg96 (2603)

  (email not shown publicly)

Journal of djberg96 (2603)

Tuesday October 29, 2002
02:13 PM

libgmp and Solaris 9

[ #8663 ]
I learned a lesson the hard way today regarding 32 vs 64 bit-ness. It all started when I decided I wanted to install Net::SSH::Perl on my local box, which requires the Math::GMP module, which in turn requires libgmp.

Building the gmp library was failing with peculiar ELF class errors. Ok - the GMP web page says to do make GMP_LDFLAGS="-Wc,-m64". No problem - I do it and everything builds fine.

Then I try to install Math::GMP. No problem, right? Wrong. More ELF class errors. Seems I built Perl as a 32 bit app and I just built libgmp as a 64 bit app. Oops.

No problem. I'll rebuild Perl as a 64 bit app. No problem, right? Wrong. I get miniperl errors of some kind related to building with gcc on the Sparc platform (from what little I can gather from Google).

No problem. I rebuild gmp again but set the ABI environment variable to 32 and pass "-m32" to make instead.

Bingo! And that, boys and girls, is your Solaris 9 lesson for the day.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.