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



On Sun, 2023-06-04 at 22:37 +0200, Marcus Müller wrote:
> 
> On 04.06.23 15:51, Marcus Müller 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`
> > 
> > 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   
   
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.





Messages sorted by: Reverse Date, Date, Thread, Author