From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Raeburn Newsgroups: gmane.lisp.guile.bugs Subject: can't configure --with-libgmp-prefix; header search order Date: Tue, 4 Aug 2009 05:26:22 -0400 Message-ID: <58800630-69E7-4769-9F19-398AE2D9509A@raeburn.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v935.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1249378017 14322 80.91.229.12 (4 Aug 2009 09:26:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Aug 2009 09:26:57 +0000 (UTC) To: bug-guile@gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Tue Aug 04 11:26:50 2009 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.50) id 1MYGID-0006l4-QM for guile-bugs@m.gmane.org; Tue, 04 Aug 2009 11:26:50 +0200 Original-Received: from localhost ([127.0.0.1]:49518 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYGIC-0004nW-KN for guile-bugs@m.gmane.org; Tue, 04 Aug 2009 05:26:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MYGI7-0004mP-Ju for bug-guile@gnu.org; Tue, 04 Aug 2009 05:26:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MYGI2-0004iS-MD for bug-guile@gnu.org; Tue, 04 Aug 2009 05:26:42 -0400 Original-Received: from [199.232.76.173] (port=44567 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYGI2-0004iD-Fv for bug-guile@gnu.org; Tue, 04 Aug 2009 05:26:38 -0400 Original-Received: from splat.raeburn.org ([69.25.196.39]:48123 helo=raeburn.org) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MYGHr-0007zr-0f for bug-guile@gnu.org; Tue, 04 Aug 2009 05:26:38 -0400 Original-Received: from [10.0.0.172] (squish.raeburn.org [10.0.0.172]) by raeburn.org (8.14.3/8.14.1) with ESMTP id n749QM0V005325; Tue, 4 Aug 2009 05:26:22 -0400 (EDT) X-Mailer: Apple Mail (2.935.3) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:4288 Archived-At: First, a minor nit: % ./configure --help |& head -1 `configure' configures guile 1.9.0 to adapt to many kinds of systems. % ./configure --version | head -1 guile configure 1.9.0 % But I downloaded 1.9.1, not 1.9.0; the version number reported here is wrong. % ../configure --prefix=`pwd`/I --with-libgmp-prefix=/opt/local --with- libunistring-prefix=`cd ../../libunistring-0.9.1/I/&&pwd` [...] checking whether csqrt is usable... yes checking how to link with libgmp... -L/opt/local/lib -lgmp checking for __gmpz_init in -lgmp... no configure: error: GNU MP not found, see README % In config.log I see that it's not using the -L option when testing for __gmpz_init: configure:44666: checking how to link with libgmp configure:45113: result: -L/opt/local/lib -lgmp configure:45150: checking for __gmpz_init in -lgmp configure:45185: gcc -o conftest -g -O2 -I/Users/raeburn/dev/guile/ libunistring-0.9.1/I/include -I/opt/local/include conftest.c -lgmp - lm -lltdl >&5 ld: library not found for -lgmp collect2: ld returned 1 exit status configure:45192: $? = 1 (This is on Mac OS X 10.5.) If instead I use CPPFLAGS and LDFLAGS on the configure command line to specify the /opt/local directories, configure happily runs to completion. However, the build fails: Undefined symbols: "_scm_cells_allocated", referenced from: _scm_cells_allocated$non_lazy_ptr in libtest_asmobs_la-test- asmobs-lib.o ld: symbol(s) not found collect2: ld returned 1 exit status This is because the build process for the test suite is picking up the installed Guile 1.8.7 headers (in the same MacPorts directory where I'm getting GNU MP from) before the guile-1.9.1 ones, as I reported back in June. Ken