Thread: termcap and curses

termcap and curses

From
Peter Eisentraut
Date:
So Sun has pulled another one on us.  Not sure which versions of Solaris
this affects, but some have libncurses and libtermcap with overlapping
symbols of different sizes.  This leads to a bunch of complaints every
time 'ld' is run; perhaps it could also lead to busted executables.

(Via a complex chain of events this also causes the AC_HEADER_STDC in
7.0*'s configure to fail, which is the underlying cause of the regular bug
reports about something from stdarg.h (va_xxx) undefined.)

To start with, what do we need libtermcap and libcurses for?  Readline
requires one or the other, but not both.  Anything else?

I'm not going to do anything about this now, but if we get more of these
it'd be good to be prepared.

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/



Re: termcap and curses

From
Tom Lane
Date:
Peter Eisentraut <peter_e@gmx.net> writes:
> To start with, what do we need libtermcap and libcurses for?  Readline
> requires one or the other, but not both.  Anything else?

I think that psql once required these.  It probably does not anymore
(except indirectly via readline).  There's certainly no reason to be
linking them into the backend.  Try yanking 'em and see what happens.

On HPUX, at least, it would be real nice not to include libcurses;
some genius thought it would be OK to define a function named
select() in libcurses ...
        regards, tom lane