Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] configure.ac: check for has_colors symbol in curses lib

Lars Wendler wrote on Wed, 11 Dec 2019 16:55 +0100:
> Otherwise zsh/curses module won't get built if ncurses was built with
> separate tinfo lib.
> One could still force-build the module but loading it later yields the
> following error message:
>   failed to load module `zsh/curses': /usr/lib64/zsh/5.7.1/zsh/curses.so:
>   undefined symbol: COLORS
> That is because the final linker call requires -lncurses(w) but it only
> contains -ltinfo(w).

I can't reproduce the problem.

I'm on Debian buster.  The ncurses package is built with «--with-termlib=tinfo».
On my system libncursesw.so.6 and libtinfo.so.6 are both installed, and
the function «has_colors» is provided by libncursesw.so.6.  However, on
my machine the zsh/curses module is built successfully and the
tetriscurses function (in the zsh distribution) works — in plain
master, without your patch.

I build with:

    CONFIG_SHELL=/bin/dash /path/to/zsh/configure -q --enable-zsh-debug --with-term-lib="tinfo" --prefix=…
    perl -pi -e 's/link=dynamic/link=static/g; if (/link=static/) { s/auto=yes/auto=no/ }' config.modules



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