gmp problem on SGI IRIX CC

From: Shiro Kawai <>
Date: Mon, 04 Oct 1999 15:17:19 -1000 (HST)

This is not a really a problem of STk itself, but I report here FYI.

I found that gmp-1.3.2 has a problem when compiled in
SGI CC 7.2 (on IRIX 6.2). The mpz function aborts when
you try to print bignum.

The reason is that printf() doesn't work correctly without
a proper prototype, which produces wrong __mp_bases table.
Adding just one line fixes the problem (patch attached below).

I also tested to use gmp-2.0.2, but it seems to have other problems...

=========patch begin===cut here==============
*** Mp/gmp-1.3.2/cre-conv-tab.c Mon Oct 4 14:36:07 1999
--- Mp/gmp-1.3.2/cre-conv-tab.c.orig Sat Jan 3 02:46:25 1998
*** 21,27 ****
  #include "gmp.h"
  #include "gmp-impl.h"
  #include "longlong.h"
! #include <stdio.h>
  extern double floor ();
  extern double log ();
--- 21,27 ----
  #include "gmp.h"
  #include "gmp-impl.h"
  #include "longlong.h"
  extern double floor ();
  extern double log ();
=========patch end======cut here==============

  Square USA Inc.   Honolulu Studio R&D division
#"The most important things are the hardest things to say" --- Stephen King
Received on Tue Oct 05 1999 - 03:17:26 CEST

This archive was generated by hypermail 2.3.0 : Mon Jul 21 2014 - 19:38:59 CEST