Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [Bug] modules zsh/tcp, zsh/zftp unloadable, probably affecting most modern Linuxes
- X-seq: zsh-workers 51825
- From: Axel Beckert <abe@xxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: [Bug] modules zsh/tcp, zsh/zftp unloadable, probably affecting most modern Linuxes
- Date: Mon, 5 Jun 2023 00:41:13 +0200
- Archived-at: <https://zsh.org/workers/51825>
- Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAALVBMVEVEREQiIiL///9VVVUzMzNm ZmYRERF3d3eIiIju7u6ZmZnd3d27u7uqqqrMzMx6FhjdAAACUklEQVQ4y3XUMYvUQBQH8BcnnDZC xosRhRPZ47hbdllG3g5YWGTYYRsVjhuHoF2aqRck5ECURYtdBJs0tnIIp9htZ3cINoKNWPkFLPwS vuyRZLN7plryy755M/Ofgc5/Hqh/db8Und7fYgMGM5vMsuRtsQaDUwOATOYv2tCbZchIpLWfWvAt MQIRJVp7r1iBd9YKwPNHnjTQNWgEo5eCCRRPGtgHuayEAiCGqw2cMYNojUGhQ63ZooZDBtLmBgE0 51yfVDAAzWyeofB9zdMovFTBgQ6QQAjQikc8fVDBHT6SCQH4BDxNdyrY41Rplhvhl0Ok0fV6DC7z fJ5b9LhzkXNBBV2V5PlxnhmfRy6NHC+qdkVmrUGbiXWY0lIozdAoKuQcX1Qw4bFP/YRaRfSHBrpD FT5WoRcyMXYubUohfR74YQgMhy7i47qr36/VNhp6TbvCld7arqA/F1em1FZynBmtgq0b9er+ME9P bZLP55kBP/Bu1dDL3nzEZDlH2sIV6Nv5bELLklnBZDZuYGAtGpbYMhLSuJVSBlQgpCk3Xd51O01K Dj0+oqQgbW48drebXBmPx+cpiXWU3mzgmR/GsEyPhsitwHtaQj5C2luNXnqtgTNaWR2XKYkJjhrY BUqoD5pUDu8XDewzGoFAhSM5/LqS9n55NmgAHjIrW+eDsijKBmK0D1sw0RRbx0NAcdSCX1QmSjlN xl+0YF9R1rgGEI/WTu33D5R/Av/V+jnfo6YILm9cALvl9AB/bsCBLuH55l3SnRK8vOiS6fyRny+8 fdaef/SP2dCp/isOAAAAAElFTkSuQmCC
- In-reply-to: <027f2a491b638e2ffaf7766fe4adf29537c11fdf.camel@fifi.org> <a9055641-4eb8-5d8f-229a-b38dbc63f706@hostalia.de>
- List-id: <zsh-workers.zsh.org>
- Mail-followup-to: zsh-workers@xxxxxxx
- Organization: DeuxChevaux.org -- The Citroën 2CV Database
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@xxxxxxxxxxxxxxx \ / Say No to HTML in E-Mail and Usenet
Mail+Jabber: abe@xxxxxxxxx X
https://axel.beckert.ch/ / \ I love long mails: https://email.is-not-s.ms/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author