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.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 16327 invoked from network); 4 Jun 2023 20:37:59 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 4 Jun 2023 20:37:59 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1685911079; b=Sn2XfB2WZCx+kPxEMSUb0OYLvcDtgalxb0F5PLRWlzDUH/R3Iles/S/o697v6AfelGVv3oftjc 55tdhtIGCQG+GyQ6WENFT8Ap7JP4YeofUnqMRS9Dmx4KdCj3wLvtqObxQ2oVGNy17tOCwjO4AQ jiclg221OGXyQRIoEAWpZaC5fKmF5SKDPMySMIzVHz8xsyr5qw6L4gVEIl4fYYm1PcW7C58YzP 4i05i12WEr6ui+W8rx9przNHHcZ1YeuFuuwWWPgH/Oxvnw+IkesCqDAtE7J3XUtiwhAkH/POWP FNhto8ReRLcLqjNA0+3MREoDiUFCzMDaiTWDc5fYDN4LEg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (baseband.digital) smtp.remote-ip=162.55.218.138; dmarc=none header.from=hostalia.de; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1685911079; bh=bE4Q1ON5K2iI0VI6Fy8vQt1PjSfaPiH05kEv/DGtrSA=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:To:Subject:MIME-Version:Date:Message-ID:DKIM-Signature; b=GecMP427DjuolR+4aD0SFdGioUBsnYbZcAXTSUiq+yXD/G1MlgZwnVKmFqIak+bzDYOXDh9cRz M5sXnscNxlN6z+DNtO6fKMzsD3KYBtktdTKrwewXOUOJ59lZoRP8j9rTo4O/lmIf+As2Fs1xms MexQxOnWIC1j4Xcl+LjIBJX0ZFX2KfNIwUhVYsnM5Qg+sfLdmqiku7psbJg88QcX2s4yPHAH6c gyOFBwtqLdwZ2xignHHCc3wZifdp+N3PsEUt4id4impB1eVYO8y6f4GqBb6tKCz5g4oEH7NQOu /DZ47JscyvNYitbBchC5U1nrPNoG4Ab69j9wZkMC5qyg1w==; 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:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From :Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=1ZBgkvUKqQ/yyhEG52lBBVh+aagnOEc8kYnSoBElBno=; b=S7adtnEGWg7CARhbprTb60Rlf8 0fN28+1ykZ02c98erKTHF84hx8ih1+NxXA0QzAuN6wbdP3gttYlESIGr3+Fipa+azKUW/Is59VmSZ xDfokxmG5+nmfbUMclqDvipwZ0U5v+LA/E+qEZ+B5VdmWIC/p12gmREOHEYbBwXl65GD7w7hdDLp5 WQmMTCKadVoxy2YUZYQ90qsRm7Q724LzYKkYAm0J1XG+2LOy3pyi/aYu6h5FKUeRK8c42FY4gvSL+ +ky7mLVajHSOBYT/txGmNSOBcMKW/Y0TTs5tIj4E0G3jQwr4IpryDC20Fjk4S8RSJmgT8SGFq9wB2 ce7nYAkA==; Received: by zero.zsh.org with local id 1q5uUA-000Lul-Jb; Sun, 04 Jun 2023 20:37:58 +0000 Authentication-Results: zsh.org; iprev=pass (baseband.digital) smtp.remote-ip=162.55.218.138; dmarc=none header.from=hostalia.de; arc=none Received: from baseband.digital ([162.55.218.138]:60648) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1q5uTb-000LZs-2a; Sun, 04 Jun 2023 20:37:24 +0000 Received: from [IPV6:2001:9e8:385d:b300:998f:ca6a:6065:3212] (unknown [IPv6:2001:9e8:385d:b300:998f:ca6a:6065:3212]) by baseband.digital (Postfix) with ESMTPSA id 697EF5DC4B for ; Sun, 4 Jun 2023 22:37:22 +0200 (CEST) Message-ID: Date: Sun, 4 Jun 2023 22:37:21 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [Bug] modules zsh/tcp, zsh/zftp unloadable, probably affecting most modern Linuxes Content-Language: en-US To: zsh-workers@zsh.org References: From: =?UTF-8?Q?Marcus_M=c3=bcller?= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Seq: 51823 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: 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. On 04.06.23 15:51, Marcus Müller wrote: > Dear ZSH community, > > I just opened a Fedora bug[1], since I suspected this to a configuration-vs-facts > mistake in the build, but it turns out that this happens on debian, too, and that I can > see in the source code that the offending function is actually used – which should have > made linkage fail, but it only does so at dynamic runtime linking. > > Don't really know how to go from there – someone would have to rework name resolution to > use getaddrinfo/freeaddrinfo (which is POSIX) instead of getipnodebyname/freehostent > (which isn't POSIX). > > I see that this already happened, in 2007, in commit > a5187bb6ac96cc43f68367c5dc9332854c250713, "23670: use getaddrinfo() and getnameinfo() > instead of get*by* functions.", but was promptly reverted 30 minutes later without > explanation. Maybe it's time to revisit that? Maybe it's also just a sign that the code > hasn't been used by anyone in roughly forever, and deserves to be not built on the > platforms it doesn't support, or removed altogether. > > Bug description: > > when running `zmodload zsh/zftp`, it fails due to missing symbol `freehostent`. This is > worrisome, because a) that's a broken feature, and b) `freehostent` shouldn't be used on > glibc systems (far as I can tell) – `man freehostent` tells us that the function is > *not* present in glibc and deprecated. > > 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` > > Actual Results: > zsh: failed to load module `zsh/zftp': /usr/lib64/zsh/5.9/zsh/zftp.so: undefined symbol: > freehostent > > Expected Results: > loading of module > > Best regards, > Marcus Müller > > > [1] https://bugzilla.redhat.com/show_bug.cgi?id=2212160 >