Missing symbol in GMP libraries

Torbjorn Granlund tg at gmplib.org
Wed Nov 10 15:29:36 CET 2010

Dear Colin,

The function mpn_sqr_n was internal in GMP for many releases.  We
accidentally added documentation of it to GMP 4.3.2.

In GMP 5, we have a function mpn_sqr which is (intentionally!)
documented.  But here mpn_sqr_n is gone.

This is not good.  We will have to think of what is least bad to do in
this situation.

As a short term workaround, you should be able to solve the problem in
two alterantive ways:

1. Compile
   void __gmpn_sqr_n (unsigned long *rp, unsigned long *up, unsigned long n)
     {__gmpn_sqr (rp, up, n);}
   and link to your application.  How to link it, depends on your
   system.  N.B. This is a gros fix that bypasses the GMP typing system,
   but it should work on most systems.

2. Link to GMP 4.3.2 or perhaps an older release of GMP.


More information about the gmp-discuss mailing list