unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* [1.9.12] configure and --with-libltdl-prefix ...
@ 2010-09-05 17:12 primus
  2010-09-05 20:51 ` Ludovic Courtès
  0 siblings, 1 reply; 7+ messages in thread
From: primus @ 2010-09-05 17:12 UTC (permalink / raw)
  To: bug-guile

Sun Sep  5 18:09:09 BST 2010

Please see: http://paste.lisp.org/display/114265

Above set to expire in 1 day,  so here is the info posted:

OS: OpenBSD 4.7

# pkg_info | grep ltdl
libltdl-1.5.26p0    GNU libtool system independent dlopen wrapper

# ls -la /usr/local/lib/*ltdl*
-rw-r--r--  1 root  bin    28806 Nov  1  2007 /usr/local/lib/libguile-ltdl.so.1.0
-rw-r--r--  1 root  wheel  27148 Mar 18 14:36 /usr/local/lib/libltdl.a
-rw-r--r--  1 root  wheel    783 Mar 18 14:36 /usr/local/lib/libltdl.la
-rw-r--r--  1 root  wheel  32932 Mar 18 14:36 /usr/local/lib/libltdl.so.4.5

# ./configure --with-libltdl-prefix=/usr/local 2>&1 | tee configure.l1g

# head -1 configure.l1g
configure: WARNING: unrecognized options: --with-libltdl-prefix
# tail -1 configure.l1g
configure: error: libltdl not found.  See README.

from README:
Guile depends on the following external libraries.
- libgmp
- libiconv
- libintl
- libltdl
- libunistring
- libgc
- libffi
It will also use the libreadline library if it is available.  For each
of these there is a corresponding --with-XXX-prefix option that you
can use when invoking ./configure, if you have these libraries
installed in a location other than the standard places (/usr and
/usr/local).

above implies that option --with-libltdl-prefix should exist.

successful configure using:

env LDFLAGS="/usr/local/lib" ./configure

-- 
-primus
"It isn't what you make, it's what you don't lose!"



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

* Re: [1.9.12] configure and --with-libltdl-prefix ...
  2010-09-05 17:12 [1.9.12] configure and --with-libltdl-prefix primus
@ 2010-09-05 20:51 ` Ludovic Courtès
  2010-09-05 21:20   ` primus
  0 siblings, 1 reply; 7+ messages in thread
From: Ludovic Courtès @ 2010-09-05 20:51 UTC (permalink / raw)
  To: primus; +Cc: bug-guile

Hi,

Thanks for trying out the latest & greatest!

primus <rprimus@gmail.com> writes:

> # pkg_info | grep ltdl
> libltdl-1.5.26p0    GNU libtool system independent dlopen wrapper

That’s old; I strongly recommend Libtool 2.x, though I think 1.5 should
work too.

> # ./configure --with-libltdl-prefix=/usr/local 2>&1 | tee configure.l1g
>
> # head -1 configure.l1g
> configure: WARNING: unrecognized options: --with-libltdl-prefix

Yes, that option isn’t supported, but I agree it should.  :-)

Instead you probably need to do:

  $ CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib" \
    ./configure ...

Can you try this?

Thanks,
Ludo’.



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

* Re: [1.9.12] configure and --with-libltdl-prefix ...
  2010-09-05 20:51 ` Ludovic Courtès
@ 2010-09-05 21:20   ` primus
  2010-09-05 22:35     ` Ludovic Courtès
  0 siblings, 1 reply; 7+ messages in thread
From: primus @ 2010-09-05 21:20 UTC (permalink / raw)
  To: Ludovic Court?s; +Cc: bug-guile

On Sun, Sep 05, 2010 at 10:51:52PM +0200, Ludovic Court?s wrote:
> Hi,
> 
> Thanks for trying out the latest & greatest!
> 
> primus <rprimus@gmail.com> writes:
> 
> > # pkg_info | grep ltdl
> > libltdl-1.5.26p0    GNU libtool system independent dlopen wrapper
> 
> That???s old; I strongly recommend Libtool 2.x, though I think 1.5 should
> work too.
> 
> > # ./configure --with-libltdl-prefix=/usr/local 2>&1 | tee configure.l1g
> >
> > # head -1 configure.l1g
> > configure: WARNING: unrecognized options: --with-libltdl-prefix
> 
> Yes, that option isn???t supported, but I agree it should.  :-)

Sun Sep  5 22:01:44 BST 2010

The README implies that the option is available.

> 
> Instead you probably need to do:
> 
>   $ CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib" \
>     ./configure ...

I did set LDFLAGS (using env), and the configure
completed. (That was included in the paste.)

Thanks.

-- 
-primus
"It isn't what you make, it's what you don't lose!"



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

* Re: [1.9.12] configure and --with-libltdl-prefix ...
  2010-09-05 21:20   ` primus
@ 2010-09-05 22:35     ` Ludovic Courtès
  2010-09-06  5:47       ` primus
  2010-09-11  7:14       ` primus
  0 siblings, 2 replies; 7+ messages in thread
From: Ludovic Courtès @ 2010-09-05 22:35 UTC (permalink / raw)
  To: primus; +Cc: bug-guile

Hi,

primus <rprimus@gmail.com> writes:

> On Sun, Sep 05, 2010 at 10:51:52PM +0200, Ludovic Court?s wrote:

>> primus <rprimus@gmail.com> writes:

[...]

>> > # head -1 configure.l1g
>> > configure: WARNING: unrecognized options: --with-libltdl-prefix
>> 
>> Yes, that option isn???t supported, but I agree it should.  :-)
>
> Sun Sep  5 22:01:44 BST 2010
>
> The README implies that the option is available.

What in the README makes you think so?

[...]

> I did set LDFLAGS (using env), and the configure
> completed. (That was included in the paste.)

Cool.

Thanks,
Ludo’.



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

* Re: [1.9.12] configure and --with-libltdl-prefix ...
  2010-09-05 22:35     ` Ludovic Courtès
@ 2010-09-06  5:47       ` primus
  2010-09-07 22:46         ` Ludovic Courtès
  2010-09-11  7:14       ` primus
  1 sibling, 1 reply; 7+ messages in thread
From: primus @ 2010-09-06  5:47 UTC (permalink / raw)
  To: Ludovic Court?s; +Cc: bug-guile

On Mon, Sep 06, 2010 at 12:35:21AM +0200, Ludovic Court?s wrote:
> > Sun Sep  5 22:01:44 BST 2010
> >
> > The README implies that the option is available.
> 
> What in the README makes you think so?

Mon Sep  6 06:39:36 BST 2010

from README:
	Guile depends on the following external libraries.
	- libgmp
	- libiconv
	- libintl
	- libltdl
	- libunistring
	- libgc
	- libffi
	It will also use the libreadline library if it is available.  For each
	of these there is a corresponding --with-XXX-prefix option that you
	can use when invoking ./configure,

It lists each library and states that there is a corresponding
'with-XXX-prefix'.

# grep 'with-' configure | grep prefix
  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
  --with-libunistring-prefix[=DIR]  search for libunistring in DIR/include and DIR/lib
  --with-libgmp-prefix[=DIR]  search for libgmp in DIR/include and DIR/lib
  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
  --with-libreadline-prefix[=DIR]  search for libreadline in DIR/include and DIR/lib

The following *do not* exist in configure (as implied from README):

--with-libltdl-prefix
--with-libffi-prefix
--with-libbgc-prefix


-- 
-primus
"It isn't what you make, it's what you don't lose!"



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

* Re: [1.9.12] configure and --with-libltdl-prefix ...
  2010-09-06  5:47       ` primus
@ 2010-09-07 22:46         ` Ludovic Courtès
  0 siblings, 0 replies; 7+ messages in thread
From: Ludovic Courtès @ 2010-09-07 22:46 UTC (permalink / raw)
  To: bug-guile

Hi,

primus <rprimus@gmail.com> writes:

> The following *do not* exist in configure (as implied from README):
>
> --with-libltdl-prefix
> --with-libffi-prefix
> --with-libbgc-prefix

I’ve updated ‘configure’ and ‘README’:

  http://git.sv.gnu.org/cgit/guile.git/commit/?id=18f2d5aa4dfe66469d4b109e5b56b931a057a3e0

Thanks,
Ludo’.




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

* Re: [1.9.12] configure and --with-libltdl-prefix ...
  2010-09-05 22:35     ` Ludovic Courtès
  2010-09-06  5:47       ` primus
@ 2010-09-11  7:14       ` primus
  1 sibling, 0 replies; 7+ messages in thread
From: primus @ 2010-09-11  7:14 UTC (permalink / raw)
  To: Ludovic Court?s, Andy Wingo; +Cc: bug-guile

[-- Attachment #1: Type: text/plain, Size: 1335 bytes --]

Sat Sep 11 07:48:59 BST 2010
On Mon, Sep 06, 2010 at 12:35:21AM +0200, Ludovic Court?s wrote:
> 
> >> > # head -1 configure.l1g
> >> > configure: WARNING: unrecognized options: --with-libltdl-prefix
> >> 
> >> Yes, that option isn???t supported, but I agree it should.  :-)
> >
> > Sun Sep  5 22:01:44 BST 2010
> >
> > The README implies that the option is available.
> 
> What in the README makes you think so?
> 
> [...]
> 
> > I did set LDFLAGS (using env), and the configure
> > completed. (That was included in the paste.)

Hi guys,

Just to let you know,  guile-1.9.12 finally
compiled completely yesterday evening.

The solution was to pass LDFLAGS="-L/usr/local/lib -L/usr/lib"
to configure.

It was initially necessary to set LDFLAGS so that
libltdl could be found.

I've tried to find differences between ltdl and
iconv in the configure script.

iconv (and all other libs found /usr/local/lib
(unistring, readline, gc) all have many env variables associated with them, eg
LIBICONV,  LTLIBICONV, LTLIBUNISTRING), but not ltdl.  (see attached config.log)

There is still one bug still outstanding:
http://article.gmane.org/gmane.lisp.guile.bugs/4778

Thanks for your patience is all this.

-- 
-primus
"If I had more time, I would have written you a shorter letter" - Pascal
"It isn't what you make, it's what you don't lose!"

[-- Attachment #2: config.log.bz2 --]
[-- Type: application/octet-stream, Size: 57513 bytes --]

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

end of thread, other threads:[~2010-09-11  7:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-05 17:12 [1.9.12] configure and --with-libltdl-prefix primus
2010-09-05 20:51 ` Ludovic Courtès
2010-09-05 21:20   ` primus
2010-09-05 22:35     ` Ludovic Courtès
2010-09-06  5:47       ` primus
2010-09-07 22:46         ` Ludovic Courtès
2010-09-11  7:14       ` primus

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