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

zsh 4.3.6 FreeBSD bug



Hi,

FreeBSD's conflict in definitions for wchar_t and wint_t if ncurses.h is
included with _XOPEN_SOURCE_EXTENDED defined (conflict with stddef.h and
wchar.h) means that zsh 4.3.6 fails to build on FreeBSD 6.2/amd64.

There's already logic in configure/configure.ac to handle OpenBSD
specially.  If I just add *freebsd* to the OS check, zsh builds fine for
me.  I don't know enough to know why this wasn't needed for you, unless
it only affects 64-bit.

I just hacked configure directly to avoid an autoconf rebuild.

----------------------------8< cut here >8------------------------------
--- configure.old	Sat May  3 07:27:20 2008
+++ configure	Sat May  3 07:27:53 2008
@@ -6880,7 +6880,7 @@
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   case "$host_os" in
-  *openbsd*)
+  *openbsd*|*freebsd*)
   zsh_cv_curses_needs_xopen=no
   ;;
   *)
----------------------------8< cut here >8------------------------------

This _should_ do it for a rebuild case (untested).
----------------------------8< cut here >8------------------------------
--- configure.ac.old	Sat May  3 07:34:09 2008
+++ configure.ac	Sat May  3 07:34:24 2008
@@ -674,7 +674,7 @@
 AC_CACHE_CHECK(if the curses library needs _XOPEN_SOURCE_EXTENDED,
 zsh_cv_curses_needs_xopen,
 [case "$host_os" in
-  *openbsd*)
+  *openbsd*|*freebsd*)
   zsh_cv_curses_needs_xopen=no
   ;;
   *)
----------------------------8< cut here >8------------------------------

Regards,
-Phil



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