unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* can't configure --with-libgmp-prefix; header search order
@ 2009-08-04  9:26 Ken Raeburn
  2009-08-04 19:17 ` Andy Wingo
  0 siblings, 1 reply; 3+ messages in thread
From: Ken Raeburn @ 2009-08-04  9:26 UTC (permalink / raw)
  To: bug-guile

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




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-08-06  6:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-04  9:26 can't configure --with-libgmp-prefix; header search order Ken Raeburn
2009-08-04 19:17 ` Andy Wingo
2009-08-06  6:45   ` Ken Raeburn

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).