From xemacs-m  Wed May 21 04:18:02 1997
Received: from fronsac.ensg.u-nancy.fr (fronsac.ensg.u-nancy.fr [192.93.48.17])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id EAA23866
	for <xemacs-beta@xemacs.org>; Wed, 21 May 1997 04:18:01 -0500 (CDT)
Message-Id: <199705210918.EAA23866@xemacs.org>
Received: by fronsac.ensg.u-nancy.fr
	(8.7.1/16.2) id FAA04223; Wed, 21 May 1997 05:17:45 -0400 (EDT)
Date: Wed, 21 May 1997 05:17:45 -0400 (EDT)
From: Richard Cognot <cognot@ensg.u-nancy.fr>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: Martin Buchholz <mrb@Eng.Sun.COM>
Cc: XEmacs Beta Test <xemacs-beta@xemacs.org>
Subject: Re: -lcurses vs -ltermlib vs -ltermcap
In-Reply-To: <199705210837.BAA14852@xemacs.eng.sun.com>
References: <199705210837.BAA14852@xemacs.eng.sun.com>
X-Mailer: VM 6.26 under 20.1 XEmacs Lucid
Reply-to: cognot@ensg.u-nancy.fr
X-Face:  .|{6#t`YCBNfg_E.8;@IFK9kd'Ol7>~2S7U!o3+g)+\`hV5&I]k,UwC%g%Y\,-KV+[eEgZm
 i(NgMB@L_n/A!jk;}@!?$<t5Aw`B$R=xJSv[F$2&sz*cwxF!|B3)MH,6YBDNU!$9;91N_p*>}</%ZO
 +EYRSc{a_#KXB)sJlPpxQq,/:}\*noO!;(5PY~MTnspl;&XA$JccP;N~;v5E>Yh.


>>>>> "Martin" == Martin Buchholz <mrb@Eng.Sun.COM> writes:

    Martin> The library specification for XPG4 curses does say that
    Martin> -lcurses is the way to link in the standard library, so we
    Martin> should use that on any systems we can (unless using
    Martin> ncurses, of course).

    Martin> So Steve Carney is correct in his suggestion to put
    Martin> -lcurses first in the autodetection of term libraries.
    Martin> Autodetection of -lcurses allows a bunch more LIBS_TERMCAP
    Martin> stuff to be ripped out of the s&m files.

    Martin> Someone should modernize the whole termcap/terminfo/curses
    Martin> stuff.  The functions we use (tgetent and friends) are
    Martin> obsolescent.  Start by reading the X/Open Curses
    Martin> Specification, or moral equivalent.  It seems all systems
    Martin> have adopted this interface, via either -lcurses or
    Martin> -lncurses.

Oups, oups, oups.

Please leave -ltermcap on HP. -lcurses is broken at least on 10.10 (it 
includes a bad definition of select() which preempts the one in libc,
and leads to the "poll: interrupted system call" message).

Note that -ltermcap should also be used on 9.X if we want to get a
binary that runs on 10.X without problems as well.

Richard.

-- 
|-------------------------------------------------------------|
| Richard Cognot           | Proceed, with fingers crossed... |
|                          |           /\^^/\                 |
| <cognot@ensg.u-nancy.fr> |             `'                   |
|-------------------------------------------------------------|
| http://www.ensg.u-nancy.fr/~cognot                          |
|-------------------------------------------------------------|

