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

Re: Termcap saga

On Tue, 1 May 2001, Andrej Borsenkow wrote:

> On Tue, 1 May 2001, Peter Stephenson wrote:
> > After updating and reconfiguring from scratch on cygwin with
> > --disable-dynamic I now get
> >
> > Modules/termcap.o(.text+0xad): undefined reference to `_imp__tgetnum'
> >
> > What do I do about this?  The link line is
> >
> > gcc -g   -o zsh.exe main.o zsh.res.o `cat stamp-modobjs`   -ltermcap -lm -L/g/bc01/bc01/devHost/HostStack -lzframe -lc
> >
> > (the extra library I added is irrelevant here).  Somehow the termcap module
> > seems to think it has to import the symbols, which in this case it doesn't.
> Well, on Monday I recompiled on cygwin, but without --disable-synamic. The
> above symbols look O.K. to me - they belong to termcap (IIRC terminfo
> versions are called tigetnum etc). What version of Cygwin and utilities
> are you using?

It looks, like zsh picks up ncurses defitions but tries to link against
termcap. There is no termcap DLL under cygwin, so the above comes from

There was a short period of time when installing ncurses would overwrite
termcap.h with its own header; it is fixed now but if you happen to catch
this old version, you have to reinstall termcap to get original header.

There is no term.h under Cygwin so it looks like the only possibility.


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