From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29426 invoked by alias); 23 Jul 2009 14:56:14 -0000 Received: (qmail 29365 invoked by uid 48); 23 Jul 2009 14:55:58 -0000 Date: Thu, 23 Jul 2009 14:56:00 -0000 Message-ID: <20090723145558.29364.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug bootstrap/40833] gcc configure problem with mpfr.h In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "kargl at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-07/txt/msg01882.txt.bz2 ------- 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