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

Re: 4.3.4-dev-4 and 4.2.6-dev-2 available



On Thu, 13 Dec 2007 16:09:15 +0100
Pea <zsh@xxxxxxxxxxxx> wrote:
> The new module zsh/curses fails on OpenBSD (i386 -current).
> 
> gcc -c -I.  -DHAVE_CONFIG_H -DMODULE -Wall -Wmissing-prototypes -O2
> -fPIC -o curses..o curses.c 
> In file included from /usr/include/curses.h:14, 
> 	from curses.c:46:
> /usr/include/ncurses.h:251: error: conflicting types for `wchar_t'
> /usr/include/stddef.h:54: error: previous declaration of `wchar_t'
...
> Some hits here: http://www.openbsd.org/porting.html#Other

Thanks for letting us know.

This suggests the right library to use on OpenBSD is curses, right?
In that case I hope the following patch works.  We won't be able to test
this...  it would be great if you were able to ASAP.  I can send the
corresponding configure if you need it.

You should also find it compiles with --with-term-lib=curses.

Thanks

Index: configure.ac
===================================================================
RCS file: /cvsroot/zsh/zsh/configure.ac,v
retrieving revision 1.86
diff -u -r1.86 configure.ac
--- configure.ac	7 Dec 2007 11:34:48 -0000	1.86
+++ configure.ac	13 Dec 2007 18:06:15 -0000
@@ -663,6 +663,9 @@
   termcap_curses_order="$ncursesw_test tinfo termcap $ncurses_test curses"
 fi],
 [case "$host_os" in
+  *openbsd*)
+   # Apparently curses is the one to use here.
+   termcap_curses_order="curses $ncursesw_test tinfo termcap $ncurses_test" ;;
   hpux10.*|hpux11.*|solaris*)
    termcap_curses_order="Hcurses $ncursesw_test $ncurses_test curses termcap" ;;
   *)



-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070



Messages sorted by: Reverse Date, Date, Thread, Author