From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Casper Gripenberg Newsgroups: gmane.emacs.bugs Subject: Re: Crash in tparam.c on OpenBSD Date: Fri, 2 Jan 2004 15:43:35 +0200 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <20040102134335.GA10658@zoidberg.homeip.net> References: <20040101225431.GA8055@zoidberg.homeip.net> <7494-Fri02Jan2004112527+0200-eliz@elta.co.il> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1073054414 9315 80.91.224.253 (2 Jan 2004 14:40:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 2 Jan 2004 14:40:14 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 02 15:40:10 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AcQTB-0001zv-00 for ; Fri, 02 Jan 2004 15:40:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AcQnU-0001QF-QW for geb-bug-gnu-emacs@m.gmane.org; Fri, 02 Jan 2004 10:01:08 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AcQn4-0001N7-4p for bug-gnu-emacs@gnu.org; Fri, 02 Jan 2004 10:00:42 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AcQgm-0000r2-Sl for bug-gnu-emacs@gnu.org; Fri, 02 Jan 2004 09:54:44 -0500 Original-Received: from [193.185.137.18] (helo=zoidberg.homeip.net) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1AcQYC-0008Hk-UB for bug-gnu-emacs@gnu.org; Fri, 02 Jan 2004 09:45:21 -0500 Original-Received: from zoidberg.homeip.net (casper@localhost [127.0.0.1]) by zoidberg.homeip.net (8.12.9/8.12.9) with ESMTP id i02Dha2a010796; Fri, 2 Jan 2004 15:43:36 +0200 (EET) Original-Received: (from casper@localhost) by zoidberg.homeip.net (8.12.9/8.12.9/Submit) id i02DhZfj032240; Fri, 2 Jan 2004 15:43:35 +0200 (EET) Original-To: Eli Zaretskii Content-Disposition: inline In-Reply-To: <7494-Fri02Jan2004112527+0200-eliz@elta.co.il> User-Agent: Mutt/1.5.4i X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:6455 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:6455 On Fri, Jan 02, 2004 at 11:25:27AM +0200, Eli Zaretskii wrote: > It means that your Emacs was compiled for termcap, but the TERM entry > it gets fed is for terminfo, which is a newer method of specifying > terminal capabilities. Emacs as compiled on your machine cannot > handle terminfo entries, so it barfs. > > There should be an entry in the PROBLEMS file named "Emacs aborts > inside the function `tparam1'" which tells you more, including > suggested ways to solve this problem. Thanks. You are correct about the location of the problem. After a bit of wrestling back and forth with the source, and not really getting anywhere, I figured out to check the newer OBSD 3.4 ports tree. In there was 21.3 patched the following way: $OpenBSD: patch-src_s_openbsd_h,v 1.1 2003/07/05 00:27:08 naddy Exp $ --- src/s/openbsd.h.orig Wed Mar 22 13:08:18 2000 +++ src/s/openbsd.h Fri Jun 27 01:17:51 2003 @@ -9,3 +9,8 @@ /* David Mazieres says this is necessary. Otherwise Emacs dumps core when run -nw. */ #undef LIBS_TERMCAP + +/* Idea From the FreeBSD port. Seems to work well. + Needs testing and then commiting to emacs developers */ +#define TERMINFO +#define LIBS_TERMCAP -lncurses Looks simple enough. Close to what I tried, but I was probably editing the wrong files (manually patching config.h). Anyway the 3.4 port works beautifully. I get color in the terminal too, which I did not get before. Happy now :) Regards, Casper