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 17744 invoked from network); 4 Jun 2023 21:18:07 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 4 Jun 2023 21:18:07 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1685913487; b=NWdLnknvnF+CZDaFjwxt9yxbkFDkbk7v5XhITMa2S/hw1jpFGCpIIZb5dhURjB6OoU+sI0rc9I O53zRLgstomt32V2fyJCfiTpKDPT2Pb8XHcok1joBH6+Y5ynp9msCxzpiN+Pr1venRGlkizXq7 6ZpBB5oMlTkruLebGW6D5EypWCVF9qD/l0Ec/sd0+IirSOp08qZQrpBJRf2AEqzUJajw/uA1Qi HRppWaMA3+WvCHmZXnDbNHFWoc2zlg0HIUHof4L4G5HtZmTzR4EeHDb79LhYskhmuyIwkMrTzU gSXSVrRydwhmo098IrD5ZgXt//ZGBiBsoRpm2NDCprLFkg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (granite.fifsource.com) smtp.remote-ip=173.255.216.206; dmarc=none header.from=fifi.org; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1685913487; bh=GUJEJnbeJ3Q8Jxs+CC6YjvIW4KcOzPwyLYtstrY7gJw=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:MIME-Version:Content-Transfer-Encoding:Content-Type: References:In-Reply-To:Date:To:From:Subject:Message-ID:DKIM-Signature; b=GGSzU4mhicb/vQhWXDNYebz0jJl9VdAg31bz3n8NToC3xyiRqhB4HUFKFruuJk09recA9dsTL9 U2Nr7zx8FZmiOuJyIMuT8H28G+mQ0lbl+XzIBr1wi7dp6SfNUEmy7jxuv+3BjW32/r3JgyUf+o 4IKNPJiEYsLhsWLX9U+zh7t8/yL5LuRWTKTOfhQnlvXtoVqQJnincxZUrHv50PU3OE/KeZ0UAB fyWJBnTiZr36kecljNcODbdTbAgg3nPIr8VWbGi7guBIFuajb2/0TNweLsLCx+y2NoJeuoVT26 HUNl0PxoJRlYxaJMTDeYjkY7+i7mBpV6NdBIrh6SIjxnNA==; 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:MIME-Version: Content-Transfer-Encoding:Content-Type:References:In-Reply-To:Date:To:From: Subject:Message-ID:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=JEAN7aWsH9ZbIeC9oJqxwc/Rk5tisZTVo1cr0hSlQiQ=; b=jV/sAcHvc/Z4s4+TDOFT4K1L+p QxTEL/Ryt7Kh65BaKB28XokWya0jt7Vfj/ONrpTZ4X0oTr0cm1dTxf6dA8nNy56SgMnszTHaKVPxP zb/UHSg4cMtdpPyladiUbrF8wrNDNWzCDU+K4fN+eNnCVP7jbXrWglSWYtFBgjkyoEC6h4LB7EnT1 NQ9wqwH+V0O+onbbN/fIU4qXA9shS0XZZgsMW7MOrUp4NmmtE0IFIzOA5kqgzQG7WsoJjTUwRTLeV XcNXg1nHr4fuZx5pAcd6H70ocyi/QGvXAu1XXdodBo9eK3yNQhm34KrMzhyQlhklu4YtNn3AgYCFd LxNKjY2A==; Received: by zero.zsh.org with local id 1q5v70-000NUk-Nj; Sun, 04 Jun 2023 21:18:06 +0000 Authentication-Results: zsh.org; iprev=pass (granite.fifsource.com) smtp.remote-ip=173.255.216.206; dmarc=none header.from=fifi.org; arc=none Received: from granite.fifsource.com ([173.255.216.206]:59960) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1q5v6S-000NAi-0K; Sun, 04 Jun 2023 21:17:33 +0000 Received: from ceramic.fifi.org (107-142-44-66.lightspeed.sntcca.sbcglobal.net [107.142.44.66]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by granite.fifsource.com (Postfix) with ESMTPSA id 9ED104062; Sun, 4 Jun 2023 14:17:30 -0700 (PDT) Message-ID: <027f2a491b638e2ffaf7766fe4adf29537c11fdf.camel@fifi.org> Subject: Re: [Bug] modules zsh/tcp, zsh/zftp unloadable, probably affecting most modern Linuxes From: Philippe Troin To: Marcus =?ISO-8859-1?Q?M=FCller?= , zsh-workers@zsh.org Date: Sun, 04 Jun 2023 14:17:30 -0700 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4 (3.44.4-3.fc36) MIME-Version: 1.0 X-Seq: 51824 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: On Sun, 2023-06-04 at 22:37 +0200, Marcus M=C3=BCller wrote: >=20 > On 04.06.23 15:51, Marcus M=C3=BCller wrote: > > Steps to Reproduce: > > 1. clean F37 or F38 or debian stable installation > > 2. `sudo dnf --refresh install -y zsh` > > 3. `zsh` > > 4. in zsh: `zmodload zsh/zftp` > >=20 > > Actual Results: > > zsh: failed to load module `zsh/zftp': /usr/lib64/zsh/5.9/zsh/zftp.so: = undefined symbol:=20 > > freehostent Interestingly: % zsh -f % echo $ZSH_VERSION=20 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: u= ndefined symbol: freehostent % autoload zfinit % zfinit % zmodload zsh/zftp % zmodload zsh/compctl zsh/complete zsh/main zsh/net/tcp zsh/zftp zsh/zle zsh/zutil =20 If you look at zfinit, it loads zsh/net/tcp first. % zsh -f % zmodload zsh/net/tcp % zmodload zsh/zftp =20 =20 freehostent is defined in zsh/net/tcp: % nm --dynamic /usr/lib64/zsh/5.9/zsh/net/tcp.so| grep freehostent 00000000000027c0 T freehostent Since I think you're supposed to initialize zftp through zfinit, I do not think this qualifies as a bug. But the freehostent symbol in zsh/net/tcp.so feels a little funky. Phil.