From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: Lars Wendler <polynomial-c@gentoo.org>
Cc: zsh-workers@zsh.org, Tetja Rediske <tetja@tetja.de>
Subject: Re: [PATCH] configure.ac: check for has_colors symbol in curses lib
Date: Sat, 25 Apr 2020 09:49:51 +0000 [thread overview]
Message-ID: <20200425094951.72c54088@tarpaulin.shahaf.local2> (raw)
In-Reply-To: <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
next prev parent reply other threads:[~2020-04-25 9:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-11 15:55 Lars Wendler
2020-04-25 9:49 ` Daniel Shahaf [this message]
2020-04-25 10:24 ` Daniel Shahaf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200425094951.72c54088@tarpaulin.shahaf.local2 \
--to=d.s@daniel.shahaf.name \
--cc=polynomial-c@gentoo.org \
--cc=tetja@tetja.de \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).