zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@ibmth.df.unipi.it>
To: gray.watson@digits.com, zsh-workers@math.gatech.edu
Subject: PATCH: 3.1.5*: bsdi configuration problem
Date: Thu, 21 Jan 1999 10:26:34 +0100	[thread overview]
Message-ID: <9901210926.AA53747@ibmth.df.unipi.it> (raw)
In-Reply-To: "Gray Watson"'s message of "Wed, 20 Jan 1999 22:27:26 NFT." <m103AmE-000AqKC@burger.letters.com>

Gray Watson wrote:
> I've had problems compiling 3.1.5 on BSD/OS.  It seems that the
> tgetent accepts NULL as the buffer argument however then tgetstr will
> core dump.  I had to manually undef the TGETENT_ACCEPTS_NULL flag in
> the config.h file.

Is this enough to fix the problem?  I can send a configure patch as
well, except the line numbers will be out.

*** configure.in.tget	Thu Jan 21 09:51:19 1999
--- configure.in	Thu Jan 21 10:02:34 1999
***************
*** 467,475 ****
  fi
  
  dnl  Check if tgetent accepts NULL (and will allocate its own termcap buffer)
  AC_CACHE_CHECK(if tgetent accepts NULL,
  zsh_cv_func_tgetent_accepts_null,
! [AC_TRY_RUN([main(){int i = tgetent((char*)0,"vt100");exit(!i || i == -1);}],
    zsh_cv_func_tgetent_accepts_null=yes,
    zsh_cv_func_tgetent_accepts_null=no,
    zsh_cv_func_tgetent_accepts_null=no)])
--- 467,488 ----
  fi
  
  dnl  Check if tgetent accepts NULL (and will allocate its own termcap buffer)
+ dnl  Some termcaps reportedly accept a zero buffer, but then dump core
+ dnl  in tgetstr().
  AC_CACHE_CHECK(if tgetent accepts NULL,
  zsh_cv_func_tgetent_accepts_null,
! [AC_TRY_RUN([
! main()
! {
!     int i = tgetent((char*)0,"vt100");
!     if (i > 0) {
! 	char tbuf[1024], *u;
!     	u = tbuf;
!     	tgetstr("cl", &u);
!     }
!     exit(!i || i == -1);
! }
! ],
    zsh_cv_func_tgetent_accepts_null=yes,
    zsh_cv_func_tgetent_accepts_null=no,
    zsh_cv_func_tgetent_accepts_null=no)])

-- 
Peter Stephenson <pws@ibmth.df.unipi.it>       Tel: +39 050 844536
WWW:  http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy


      reply	other threads:[~1999-01-21  9:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-01-21  3:27 Gray Watson
1999-01-21  9:26 ` Peter Stephenson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9901210926.AA53747@ibmth.df.unipi.it \
    --to=pws@ibmth.df.unipi.it \
    --cc=gray.watson@digits.com \
    --cc=zsh-workers@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).