From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 20778 invoked from network); 4 Jun 2023 22:41:51 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 4 Jun 2023 22:41:51 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1685918511; b=pPPP+n8Og9lVZ82+/ISwowchogCF2PhcbFDMfkZKHpl0YZzitmUZj4ItcpIzBec7ugCkOi9nKm 7NR9KZw8DzssS994YZV7pK6gu3F4mpbW5HWg8Nk4bEwCyOzw0MxcRkW4mJJ4LQ80AsC7r1OfaF g/eJB/kRwlP5Mnt8YpP5UYb9dEXSRPPPYrxcFymrN9eRXacpkfFpHbG4lpkNhQg7PTntzvw8cb xuO+jODmQX1XeaIesSwMy+I8eg5frAtoSi/NccP6q4c1IqUSTJCLy18uKRInhfB3Dks+Ngk1vz +gkiPAi6bO/mt8ol0ZEfdiL8Sip/8Ee14mgZKN7Yj6Nsig==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (sym.noone.org) smtp.remote-ip=178.63.92.236; dmarc=none header.from=deuxchevaux.org; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1685918511; bh=TUxIgioYHKeND58B48dPye6X0+Rl6EVfDUUQoBDQki8=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Transfer-Encoding:Content-Type: MIME-Version:Message-ID:Subject:To:From:Date:DKIM-Signature; b=goNXxu+EZaWqoz3eoV1j0gxNsGGQhLARZ64tkrFJKBFZmYAbH7zdivR2ct2/iJjayPrCpu3rF9 krR5hSqSBG9R5IY4ergqROcJxgp7OBlJZsYpxfE3SMLpw3k5o56HS+97+OpMaj78cn6z203Y9y drF3Jdp3aG8RpgUAjhBhDcjdkTrH8P8N41nbqpSF75qISc33BPIAxvg8mtnKU/zQI2mfp4keeX r2HjaYNccGmd+2NElTDqRt1Objmsy4MDXgGKx0oNocZmROtp5tf4N9YFpGWBfyfKU6c4EZYYUZ fWfLX4FmHcaS5HOMDsGNjM/7gA2agTeF6BLQ5hgo6AJg/A==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:In-Reply-To:Content-Transfer-Encoding :Content-Type:MIME-Version:Message-ID:Subject:To:From:Date:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:References; bh=MZlwbBj5XYn5pTr9jzI2uWx860lA37KR6AbKFBzKfaI=; b=UUi887zBqIJJUgF0Ef6j0nEEVP aoCFmUlm3ViPQvAWlXum7OFDKHfOASsdTflgpd+Sh7gDblFsRS1YtEpZ2UdhbW6D4yo4LM/33i96z b5ukL6IB6MvaXc92m8iRuDv2JQVkh3nSe7l8x1wpmY1S9Y6bqOuulK4oAvR79Wsah1Mu8jvCliU1g n4fNFW94cnafobBIbs+5qe6PGq0SkY0olDoV0TXFCY+ufmP08tHIIppIRHkb7RGQ9GXTwvfgGy3/x qfF/qX6C+xJJKZGrv25Poa+1Exn45fBmn/KbFDpVpOQI6iC3u6V/weLihUWYOP5T80b+MGZ9+SttZ qDo84B+w==; Received: by zero.zsh.org with local id 1q5wQ1-00009f-N6; Sun, 04 Jun 2023 22:41:49 +0000 Authentication-Results: zsh.org; iprev=pass (sym.noone.org) smtp.remote-ip=178.63.92.236; dmarc=none header.from=deuxchevaux.org; arc=none Received: from sym.noone.org ([178.63.92.236]:43372 helo=sym2.noone.org) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1q5wPS-000PpY-RT; Sun, 04 Jun 2023 22:41:16 +0000 Received: by sym2.noone.org (Postfix, from userid 1000) id 4QZBY55F3Zzvjfm; Mon, 5 Jun 2023 00:41:13 +0200 (CEST) Date: Mon, 5 Jun 2023 00:41:13 +0200 From: Axel Beckert To: zsh-workers@zsh.org Subject: Re: [Bug] modules zsh/tcp, zsh/zftp unloadable, probably affecting most modern Linuxes Message-ID: <20230604224111.y7dfgj56cwayfdms@sym.noone.org> Mail-Followup-To: zsh-workers@zsh.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <027f2a491b638e2ffaf7766fe4adf29537c11fdf.camel@fifi.org> X-Operating-System: Linux 4.9.0-18-amd64 X-Machine: sym2 x86_64 X-Editor: GNU Emacs 25.1.1 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 Organization: DeuxChevaux.org -- The =?iso-8859-1?Q?Citr?= =?iso-8859-1?B?b+tu?= 2CV Database User-Agent: NeoMutt/20170113 (1.7.2) X-Seq: 51825 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: 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/