From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.bugs Subject: Re: (no subject) Date: Mon, 29 Mar 2010 21:17:27 +0100 Message-ID: <87fx3i992g.fsf@ossau.uklinux.net> References: <87bpezwysj.fsf@ossau.uklinux.net> <87mxyiz9vv.fsf@ossau.uklinux.net> <87hbon24sg.fsf@ossau.uklinux.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: dough.gmane.org 1269895295 29926 80.91.229.12 (29 Mar 2010 20:41:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 29 Mar 2010 20:41:35 +0000 (UTC) Cc: Guile Bugs To: kamal lamta Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Mon Mar 29 22:41:31 2010 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NwLm3-0004ns-AK for guile-bugs@m.gmane.org; Mon, 29 Mar 2010 22:41:27 +0200 Original-Received: from localhost ([127.0.0.1]:39515 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NwLm2-0003rw-L9 for guile-bugs@m.gmane.org; Mon, 29 Mar 2010 16:41:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NwLTq-0000zv-2I for bug-guile@gnu.org; Mon, 29 Mar 2010 16:22:38 -0400 Original-Received: from [140.186.70.92] (port=34266 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NwLTm-0000wz-T8 for bug-guile@gnu.org; Mon, 29 Mar 2010 16:22:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NwLPh-000276-Rn for bug-guile@gnu.org; Mon, 29 Mar 2010 16:18:22 -0400 Original-Received: from mail3.uklinux.net ([80.84.72.33]:33171) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NwLPh-00021b-KH for bug-guile@gnu.org; Mon, 29 Mar 2010 16:18:21 -0400 Original-Received: from arudy (host86-182-154-126.range86-182.btcentralplus.com [86.182.154.126]) by mail3.uklinux.net (Postfix) with ESMTP id 4E4111F678F; Mon, 29 Mar 2010 21:17:44 +0100 (BST) Original-Received: from arudy (arudy [127.0.0.1]) by arudy (Postfix) with ESMTP id 0D9953801F; Mon, 29 Mar 2010 21:17:27 +0100 (BST) In-Reply-To: (kamal lamta's message of "Wed, 17 Mar 2010 21:05:45 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:4540 Archived-At: --=-=-= kamal lamta writes: > hello Mr Neil, > > > sorry it seems you couldn't open the ''.rar'' i send you > you will find joined a .zip file containes the detailes Thanks. The important part of this is the following message from the end of the configure output: checking for __gmpz_init in -lgmp... yes configure: error: At least GNU MP 4.1 is required, see README This was fixed in our master branch by commit f486388, and the attached patch is my attempt to cherry-pick that for the 1.8.x codebase. It works (i.e. doesn't introduce a regression) for my Linux build of 1.8.x. Can you try applying this patch to your 1.8 codebase and see if it solves the problem that you're seeing? --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-perform-gmp-compile-check-with-AC_LIB_HAVE_LINKFLAGS.patch >From 8976eaf3417193053a57e815ded557a0877a61ee Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Tue, 4 Aug 2009 21:16:32 +0200 Subject: [PATCH] perform gmp compile check with AC_LIB_HAVE_LINKFLAGS * configure.ac: Rework gmp check to use AC_LIB_HAVE_LINKFLAGS, so that the compilation checks run with the right -L/-l flags. * libguile/Makefile.am (libguile_la_LIBADD): Adapt to need to add $(LIBGMP) here. (Copied from commit f486388 and tweaked for branch_release-1-8) --- configure.in | 11 ++++------- libguile/Makefile.am | 2 +- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/configure.in b/configure.in index 217ac83..206d76e 100644 --- a/configure.in +++ b/configure.in @@ -864,14 +864,11 @@ fi dnl GMP tests -AC_CHECK_LIB([gmp], [__gmpz_init], , - [AC_MSG_ERROR([GNU MP not found, see README])]) - -# mpz_import is a macro so we need to include -AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include ]], - [[mpz_import (0, 0, 0, 0, 0, 0, 0); ]])], +AC_LIB_HAVE_LINKFLAGS(gmp, [], - [AC_MSG_ERROR([At least GNU MP 4.1 is required, see README])]) + [#include ], + [mpz_import (0, 0, 0, 0, 0, 0, 0);], + AC_MSG_ERROR([GNU MP 4.1 or greater not found, see README])) dnl i18n tests #AC_CHECK_HEADERS([libintl.h]) diff --git a/libguile/Makefile.am b/libguile/Makefile.am index 1299cf2..c836f07 100644 --- a/libguile/Makefile.am +++ b/libguile/Makefile.am @@ -180,7 +180,7 @@ noinst_HEADERS = convert.i.c \ private-gc.h libguile_la_DEPENDENCIES = @LIBLOBJS@ -libguile_la_LIBADD = @LIBLOBJS@ +libguile_la_LIBADD = @LIBLOBJS@ $(LTLIBGMP) libguile_la_LDFLAGS = @LTLIBINTL@ -version-info @LIBGUILE_INTERFACE_CURRENT@:@LIBGUILE_INTERFACE_REVISION@:@LIBGUILE_INTERFACE_AGE@ -export-dynamic -no-undefined # These are headers visible as -- 1.5.6.5 --=-=-= Thanks, Neil --=-=-=--