Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] configure.ac: check for has_colors symbol in curses lib
- X-seq: zsh-workers 45718
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Lars Wendler <polynomial-c@xxxxxxxxxx>
- Subject: Re: [PATCH] configure.ac: check for has_colors symbol in curses lib
- Date: Sat, 25 Apr 2020 09:49:51 +0000
- Cc: zsh-workers@xxxxxxx, Tetja Rediske <tetja@xxxxxxxx>
- In-reply-to: <20191211155507.22181-1-polynomial-c@gentoo.org>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20191211155507.22181-1-polynomial-c@gentoo.org>
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
HTH,
Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author