From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@sunsite.dk
Subject: Re: loading dynamic modules in a static shell
Date: Sun, 18 Jan 2004 10:39:01 -0800 [thread overview]
Message-ID: <040118103901.ZM10059@candle.brasslantern.com> (raw)
In-Reply-To: <20040118121441.GA29157@quark.localdomain>
On Jan 18, 6:14am, Vincent wrote:
>
> Is it supposed to be possible to compile a static shell with part of
> the modules built in and to be able to load the remaining modules with
> zmodload?
Yes; in fact the default is for zsh/main to be static-linked and all the
other modules to be dynamic.
> not been able to get it to work. I don't know if there is another way
> I am supposed to do it but If I tried setting some with link=dynamic
> and some with link=static in config.modules it would not work.
That's the way you're supposed to do it. However, I think you may be a
little confused about the procedure:
> It only compiled either static or dynamic based on how the ldflags
> were set when it was configured with configure. I compiled zsh-4.0.9
> configured with "configure --enable-ldflags=-static"
That's the first mistake. You want one of
configure --enable-dynamic (the default)
or
configure --disable-dynamic
Do not specify the -static or -shared ldflags yourself directly; they are
independent of whether individual modules are static-linked.
For a mix of static and dynamic modules, you must start by configuring a
dynamic shell, then edit config.modules to select the modules that you
want linked static.
> installed it, then reconfigured it as shared, did a "make modules" and
> installed the dynamic modules. However, when I try loading one of the
> dynamic modules that are not statically linked in, such as zftp, it
> just says "zsh: failed to load module: zsh/zftp".
Did you ever actually edit config.modules to set "link=static" for zftp?
If so, did you also set "auto=no" so that re-running configure would not
clobber your changes?
> I have searched the FAQ, mailing lists, and documentation, but have
> not found any information that helps me.
The INSTALL file should tell you just about everything you need to know.
next prev parent reply other threads:[~2004-01-18 18:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-18 12:14 Vincent
2004-01-18 15:31 ` Dominic Mitchell
2004-01-19 5:25 ` Vincent
2004-01-19 7:35 ` Dan Nelson
2004-01-18 18:39 ` Bart Schaefer [this message]
2004-01-19 5:37 ` Vincent
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=040118103901.ZM10059@candle.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-users@sunsite.dk \
/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.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
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 NNTP newsgroup(s).