Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
zsh 4.3.6 FreeBSD bug
- X-seq: zsh-workers 24904
- From: Phil Pennock <zsh-workers+phil.pennock@xxxxxxxxxxxx>
- To: des@xxxxxxxxxxx
- Subject: zsh 4.3.6 FreeBSD bug
- Date: Sat, 3 May 2008 00:39:47 -0700
- Cc: Zsh Hackers' List <zsh-workers@xxxxxxxxxx>
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=d200803; d=spodhuis.org; h=Received:Date:From:To:Cc:Subject:Message-ID:Mail-Followup-To:MIME-Version:Content-Type:Content-Disposition; b=jIc1caR6BYsU8y7OORpd2aHM3eyMkll1I3rIkxk4MX3KXhsGe0mWxy5WA8d1Wn2UL++v/AiaIAJwUBf5mpP9obYel9G2M/x0Z3FdkvcnL88zxCx00NczJlEhpCrxCvV5CwcohVqPPCrVZomWEEcbjDWFKFCE52Z5MmGvI4CHJ6o=;
- Mail-followup-to: des@xxxxxxxxxxx, Zsh Hackers' List <zsh-workers@xxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
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