unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: guile-devel@gnu.org
Subject: Static linking of Guile extensions
Date: Fri, 25 Aug 2017 11:40:47 -0400	[thread overview]
Message-ID: <87lgm7slj4.fsf@gmail.com> (raw)

Hi,

Today I tried investigating if was possible to build Guile so that even
its extension modules could be built in statically rather than
dynamically loaded. I didn't succeed; even when building Guile the way
its described by the %guile-static package in Guix (see (gnu packages
make-bootstrap)), I would still get the following message when attemting
activation of readline:

scheme@(guile-user)> (use-modules (ice-9 readline))
While compiling expression:
ERROR: In procedure dynamic-link: file: "libguilereadline-v-18", message: "file not found"

Interestingly a static library for readline seems to have been built:

/gnu/store/xxi8scxxx8g6i9h0lm57i5kc3xwcgj5r-guile-static-2.0.14/lib/libguilereadline-v-18.a

One use case would be to have readline support for a statically linked
Guile such as used for the GuixSD init ram disk; I'm currently attemting
to troubleshoot a problem at the init prompt (Guile) and it would be
great to have line editing support there!

Maxim



             reply	other threads:[~2017-08-25 15:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-25 15:40 Maxim Cournoyer [this message]
2017-08-29  3:33 ` Static linking of Guile extensions Christopher Allan Webber
2017-08-29 17:58   ` Maxim Cournoyer
2017-09-08 13:22 ` Ludovic Courtès

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=87lgm7slj4.fsf@gmail.com \
    --to=maxim.cournoyer@gmail.com \
    --cc=guile-devel@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).