[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [wdiff-bugs] wdiff 0.5.94: Can't link properly with ncurses

From: Martin von Gagern
Subject: Re: [wdiff-bugs] wdiff 0.5.94: Can't link properly with ncurses
Date: Sat, 27 Feb 2010 10:23:57 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20100206 Thunderbird/3.0.1

On 23.02.2010 23:06, Santiago Vila wrote:
> In wdiff 0.5, I [...] got an executable "wdiff" which used ncurses.
> If I do the same with version 0.5.94, the executable is also linked
> against ncurses, but apparently it uses none of its symbols.
> I would suggest that configure and friends are modified so that
> ./configure --with-ncurses
> just works.

Hi Santiago,

thanks for your report.

Looking at the include statements in wdiff.c, it seems to me that
ncurses is only used as a fallback in case neither termcap nor termlib
is available. So it's not ncurses itself we are after, but the termcap
emulation layer it provides. The README suggests as much. On the other
hand, it seems that at least on my GNU/Linux, ncurses is the one
providing termcap.h and friends as well, so in the end it seems it's all
ncurses here anyway.

In any case, this whole include block, conditioned on HAVE_TPUTS, as
well as some other parts guarded by HAVE_TPUTS as well, seem to be
defunct since revision 9, wdiff 0.5.91, where configure.in got replaced
by configure.ac, dropping tputs detection in the process.
Denver, do you recall any particular reason for doing so?

I guess I'll toy with this whole mess for a while, see if I can get it
working (again), and if so, if I can make it a simple --with-ncurses.
I'm not much of an autotools wizard, and I don't know much about termcap
implementations besides ncurses, so it might take me some time to work
this out properly. Input welcome.

 Martin von Gagern

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]