zsh-workers
 help / color / mirror / code / Atom feed
* zsh 4.3.6 FreeBSD bug
@ 2008-05-03  7:39 Phil Pennock
  2008-05-04 12:08 ` Dag-Erling Smørgrav
  2008-05-04 12:19 ` Peter Stephenson
  0 siblings, 2 replies; 22+ messages in thread
From: Phil Pennock @ 2008-05-03  7:39 UTC (permalink / raw)
  To: des; +Cc: Zsh Hackers' List

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


^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2008-05-06 11:52 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-03  7:39 zsh 4.3.6 FreeBSD bug Phil Pennock
2008-05-04 12:08 ` Dag-Erling Smørgrav
2008-05-04 12:25   ` Dag-Erling Smørgrav
2008-05-05 22:02     ` Phil Pennock
2008-05-06  8:51       ` Peter Stephenson
2008-05-06 10:05         ` Dag-Erling Smørgrav
2008-05-06  9:11       ` Dag-Erling Smørgrav
2008-05-06  9:13         ` Dag-Erling Smørgrav
2008-05-06  9:24           ` Peter Stephenson
2008-05-06 10:24             ` Dag-Erling Smørgrav
2008-05-06 10:26               ` Peter Stephenson
2008-05-06 10:30               ` Dag-Erling Smørgrav
2008-05-06 10:42                 ` Peter Stephenson
2008-05-06 11:51                   ` Dag-Erling Smørgrav
2008-05-04 12:19 ` Peter Stephenson
2008-05-04 18:37   ` Peter Stephenson
2008-05-05  0:38     ` Phil Pennock
2008-05-05  0:41       ` Phil Pennock
2008-05-05 14:05       ` Peter Stephenson
2008-05-05 20:02       ` Jun T.
2008-05-06  2:32         ` Phil Pennock
2008-05-05  7:56     ` Dag-Erling Smørgrav

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).