From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: (qmail 12658 invoked from network); 25 Apr 2020 09:50:49 -0000 Received: from ns1.primenet.com.au (HELO primenet.com.au) (203.24.36.2) by inbox.vuxu.org with UTF8ESMTPZ; 25 Apr 2020 09:50:49 -0000 Received: (qmail 17389 invoked by alias); 25 Apr 2020 09:50:38 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 45718 Received: (qmail 16875 invoked by uid 1010); 25 Apr 2020 09:50:38 -0000 X-Qmail-Scanner-Diagnostics: from out5-smtp.messagingengine.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.2/25786. spamassassin: 3.4.4. Clear:RC:0(66.111.4.29):SA:0(-2.6/5.0):. Processed in 5.9363 secs); 25 Apr 2020 09:50:38 -0000 X-Envelope-From: d.s@daniel.shahaf.name X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at daniel.shahaf.name does not designate permitted sender hosts) X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrheefgddvvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkjghfofggtgfgsehtqhdttdertdejnecuhfhrohhmpeffrghnihgv lhcuufhhrghhrghfuceougdrshesuggrnhhivghlrdhshhgrhhgrfhdrnhgrmhgvqeenuc fkphepjeelrddukedtrddufedtrddugeejnecuvehluhhsthgvrhfuihiivgeptdenucfr rghrrghmpehmrghilhhfrhhomhepugdrshesuggrnhhivghlrdhshhgrhhgrfhdrnhgrmh gv X-ME-Proxy: Date: Sat, 25 Apr 2020 09:49:51 +0000 From: Daniel Shahaf To: Lars Wendler Cc: zsh-workers@zsh.org, Tetja Rediske Subject: Re: [PATCH] configure.ac: check for has_colors symbol in curses lib Message-ID: <20200425094951.72c54088@tarpaulin.shahaf.local2> In-Reply-To: <20191211155507.22181-1-polynomial-c@gentoo.org> References: <20191211155507.22181-1-polynomial-c@gentoo.org> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: >=20 > failed to load module `zsh/curses': /usr/lib64/zsh/5.7.1/zsh/curses.so: > undefined symbol: COLORS >=20 > That is because the final linker call requires -lncurses(w) but it only > contains -ltinfo(w). >=20 I can't reproduce the problem. I'm on Debian buster. The ncurses package is built with =C2=AB--with-terml= ib=3Dtinfo=C2=BB. On my system libncursesw.so.6 and libtinfo.so.6 are both installed, and the function =C2=ABhas_colors=C2=BB is provided by libncursesw.so.6. Howev= er, on my machine the zsh/curses module is built successfully and the tetriscurses function (in the zsh distribution) works =E2=80=94 in plain master, without your patch. I build with: CONFIG_SHELL=3D/bin/dash /path/to/zsh/configure -q --enable-zsh-debug -= -with-term-lib=3D"tinfo" --prefix=3D=E2=80=A6 perl -pi -e 's/link=3Ddynamic/link=3Dstatic/g; if (/link=3Dstatic/) { s= /auto=3Dyes/auto=3Dno/ }' config.modules HTH, Daniel