From: Axel Beckert <abe@deuxchevaux.org>
To: zsh-workers@zsh.org
Subject: Re: [Bug] modules zsh/tcp, zsh/zftp unloadable, probably affecting most modern Linuxes
Date: Mon, 5 Jun 2023 00:41:13 +0200 [thread overview]
Message-ID: <20230604224111.y7dfgj56cwayfdms@sym.noone.org> (raw)
In-Reply-To: <027f2a491b638e2ffaf7766fe4adf29537c11fdf.camel@fifi.org> <a9055641-4eb8-5d8f-229a-b38dbc63f706@hostalia.de>
Hi,
Debian's zsh maintainer writing here.
On Sun, Jun 04, 2023 at 10:37:21PM +0200, Marcus Müller wrote:
> Bit more debugging: Doesn't work with Fedora 30 / glibc 2.29, does work with
> OpenSUSE leap 15.2 / glibc 2.26.
>
> For that reason I must assume the regression must have appeared between
> release 2.26 in August 2017 and release 2.29 in Februrary 2019.
Can confirm that this is reproducible on Debian 9 Stretch, 10 Buster,
11 Bullseye, 12 Bookworm (and testing/unstable as of now).
It does not happen in Debian 8 Jessie.
On Sun, Jun 04, 2023 at 02:17:30PM -0700, Philippe Troin wrote:
> > > 4. in zsh: `zmodload zsh/zftp`
> > >
> > > Actual Results:
> > > zsh: failed to load module `zsh/zftp': /usr/lib64/zsh/5.9/zsh/zftp.so: undefined symbol:
> > > freehostent
>
> Interestingly:
>
> % zsh -f
> % echo $ZSH_VERSION
> 5.9
> % rpm -q zsh
> zsh-5.9-5.fc38.x86_64
> % zmodload zsh/zftp
> zsh: failed to load module `zsh/zftp': /usr/lib64/zsh/5.9/zsh/zftp.so: undefined symbol: freehostent
> % autoload zfinit
> % zfinit
> % zmodload zsh/zftp
> % zmodload
> zsh/compctl
> zsh/complete
> zsh/main
> zsh/net/tcp
> zsh/zftp
> zsh/zle
> zsh/zutil
>
> If you look at zfinit, it loads zsh/net/tcp first.
>
> % zsh -f
> % zmodload zsh/net/tcp
> % zmodload zsh/zftp
Can confirm this on at least Debian 12, too. (Haven't tested elsewhere.)
> Since I think you're supposed to initialize zftp through zfinit, I do
> not think this qualifies as a bug.
Depends. zshzftpsys(1) says in its second paragraph:
If the shell is configured to load new commands at run time, it
probably is: typing `zmodload zsh/zftp' will make sure (if that runs
silently, it has worked).
So this suggests that "zmodload zsh/zftp" suffices. (And I think
there's something missing in that sentence behind "will make sure
(…)".)
Then again in the "INSTALLATION" some paragraphs later, there's
fpath=(~/myfns $fpath)
autoload -U zfinit
zfinit
mentioned, but it seems only necessary if zftp didn't come
preinstalled.
So it still looks like a bug to me, just one with an easy workaround.
Kind regards, Axel
--
PGP: 2FF9CD59612616B5 /~\ Plain Text Ribbon Campaign, http://arc.pasp.de/
Mail: abe@deuxchevaux.org \ / Say No to HTML in E-Mail and Usenet
Mail+Jabber: abe@noone.org X
https://axel.beckert.ch/ / \ I love long mails: https://email.is-not-s.ms/
prev parent reply other threads:[~2023-06-04 22:41 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-04 13:51 Marcus Müller
2023-06-04 20:37 ` Marcus Müller
2023-06-04 21:17 ` Philippe Troin
2023-06-05 19:35 ` Marcus Müller
2023-06-05 20:07 ` Bart Schaefer
2023-06-06 6:42 ` Jun T
2023-06-06 9:05 ` Peter Stephenson
2023-06-06 14:38 ` Jun. T
2023-06-06 15:01 ` Peter Stephenson
2023-06-06 16:37 ` Philippe Troin
2023-06-06 17:54 ` Mikael Magnusson
2023-06-07 2:05 ` Jun T
2023-06-07 2:35 ` Jun T
2023-06-07 14:40 ` Jun. T
2023-06-23 13:41 ` Jun. T
2023-06-07 9:25 ` Marcus Müller
2023-06-04 22:41 ` Axel Beckert [this message]
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=20230604224111.y7dfgj56cwayfdms@sym.noone.org \
--to=abe@deuxchevaux.org \
--cc=zsh-workers@zsh.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.
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).