unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: Ken Raeburn <raeburn@raeburn.org>
To: bug-guile@gnu.org
Subject: can't configure --with-libgmp-prefix; header search order
Date: Tue, 4 Aug 2009 05:26:22 -0400	[thread overview]
Message-ID: <58800630-69E7-4769-9F19-398AE2D9509A@raeburn.org> (raw)

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




             reply	other threads:[~2009-08-04  9:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-04  9:26 Ken Raeburn [this message]
2009-08-04 19:17 ` can't configure --with-libgmp-prefix; header search order Andy Wingo
2009-08-06  6:45   ` Ken Raeburn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=58800630-69E7-4769-9F19-398AE2D9509A@raeburn.org \
    --to=raeburn@raeburn.org \
    --cc=bug-guile@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).