Reported different versions errror

Paul Zimmermann Paul.Zimmermann at
Fri Oct 2 09:01:14 CEST 2009

       Dear Ty Tower,

> Date: Thu, 1 Oct 2009 19:16:55 -0700 (PDT)
> From: Ty Tower <tytower at>
> I installed GMP-4.3.1 without problem on my Mandriva 2009  machine . I then wanted to install MPFR 2.4.1 and configure complained it had unequal gmp.h and libgmp versions. I have done a reboot and inspection and the old libgmp is not changed .
> Is this a bug . MPFR will not let me go any further until I resolve this 
> Console messages
> checking for recent GMP... yes
> checking for gmp internal files... no
> checking for working alloca.h... yes
> checking for alloca... yes
> checking for __gmpz_init in -lgmp... yes
> checking if gmp.h version and libgmp version are the same... (4.3.1/4.2.3) no
> configure: WARNING: 'gmp.h' and 'libgmp' seems to have different versions or
> configure: WARNING: we cannot run a program linked with GMP (if you cannot
> configure: WARNING: see the version numbers above).
> configure: WARNING: However since we can't use 'libtool' inside the configure,
> configure: WARNING: we can't be sure. See 'config.log' for details.
> configure: creating ./config.status

1) this is off-topic for the gmp-bugs list. Please use the MPFR list instead
   (see to subscribe)

2) as said by MPFR configure, the found gmp.h corresponds to version 4.3.1,
   but the found libgmp to the older version 4.2.3. You first have to locate
   the libgmp.a/ which corresponds to 4.3.1 on your computer, then
   tell configure to use it using LDFLAGS (see the MPFR INSTALL file).

   As also said by the error message, the 'config.log' might contain more
   details. Please send it to us (on the MPFR list).

Paul Zimmermann

More information about the gmp-bugs mailing list