------- Comment #3 from kargl at gcc dot gnu dot org 2009-07-23 14:55 ------- (In reply to comment #2) > The commands show: > > lnx498:/nfs/acc/temp/dcs/gcc/gcc_tmp> find /usr -name gmp.h > /usr/include/gmp.h > find: /usr/share/ssl/CA: Permission denied > [1] + Done emacs -g 100x80 ~/.chsrc > lnx498:/nfs/acc/temp/dcs/gcc/gcc_tmp> find /usr -name libgmp\* > /usr/lib/libgmpxx.a > /usr/lib/libgmp.so.3 > /usr/lib/libgmpxx.so.3.0.5 > /usr/lib/libgmp.so > /usr/lib/libgmp.so.3.3.3 > /usr/lib/sse2/libgmp.so.3 > /usr/lib/sse2/libgmpxx.so.3.0.5 > /usr/lib/sse2/libgmp.so.3.3.3 > /usr/lib/sse2/libgmpxx.so.3 > /usr/lib/libgmpxx.so > /usr/lib/libgmp.a > /usr/lib/libgmpxx.so.3 > find: /usr/share/ssl/CA: Permission denied > > > Yes mpfr was built against a different version of gmp. > I did not realize this would make a difference. > But how does this relate to the message that the version number in mpfr.h is > not correct when it is? >
It has nothing to do with the version number. Read the log file you included in your original post. You'll find /home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to `__gmpz_tdiv_q_2exp' /home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to `__gmpz_fdiv_q_2exp' /home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to `__gmpz_clear' /home/dcs/dcs/usr_local/lib/libmpfr.so: undefined reference to so the mpfr test never compiled and configure assumes the mpfr test fails. It of course makes a difference. mpfr must be linked with the version of libgmp that was used when mpfr was built. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40833