Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zsh-3.0.6 on BSD/OS



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