Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh-3.0.6 on BSD/OS
- X-seq: zsh-workers 7408
- From: Jos Backus <Jos.Backus@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: zsh-3.0.6 on BSD/OS
- Date: Mon, 9 Aug 1999 16:34:34 +0200
- In-reply-to: <19990809122557.B14467@xxxxxxxxxxxxxxxxxxxxxx>; from Jos Backus on Mon, Aug 09, 1999 at 12:25:57PM +0200
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <19990809122557.B14467@xxxxxxxxxxxxxxxxxxxxxx>
- Reply-to: Jos Backus <Jos.Backus@xxxxxxxxxxxxxxxx>
On Mon, Aug 09, 1999 at 12:25:57PM +0200, Jos Backus wrote:
> 1) On both BSD/OS 3.1 and 4.0.1, configure erroneously #defines
> TGETENT_ACCEPTS_NULL, leading to a coredump later on in tgetstr() in
> init.c:489:
The problem lies in the way configure tests this flag:
3.0.6 does
#include "confdefs.h"
main(){int i = tgetent((char*)0,"vt100");exit(!i || i == -1);}
whereas 3.1.6 does
#include "confdefs.h"
main()
{
int i = tgetent((char*)0,"vt100");
if (i > 0) {
char tbuf[1024], *u;
u = tbuf;
tgetstr("cl", &u);
}
exit(!i || i == -1);
}
The latter test yields the correct result, and 3.1.6 works out of the box.
Maybe 3.0.6 should be changed?
Regarding problem 2: compiling 3.1.6 gives the same warning on 4.0.1 (hardly
surprising in my view).
Cheers,
--
Jos Backus _/ _/_/_/ "Reliability means never
_/ _/ _/ having to say you're sorry."
_/ _/_/_/ -- D. J. Bernstein
_/ _/ _/ _/
Jos.Backus@xxxxxxxxxxxxxxxx _/_/ _/_/_/ use Std::Disclaimer;
Messages sorted by:
Reverse Date,
Date,
Thread,
Author