|
Re: [GHC] #766: GHC 6.4.2 won't build on Mac OS X: msg#00024lang.haskell.glasgow.bugs
#766: GHC 6.4.2 won't build on Mac OS X -----------------------+---------------------------------------------------- Reporter: guest | Owner: Type: bug | Status: new Priority: normal | Milestone: 6.4.3 Component: Compiler | Version: 6.4.2 Severity: blocker | Resolution: Keywords: | Os: MacOS X Difficulty: Unknown | Architecture: powerpc -----------------------+---------------------------------------------------- Comment (by gwright@xxxxxxxxxxx): Below is a patch that fixes the problem. It relies on the real readline defining the function rl_readline_version, which is not defined by libedit. BTW, the bug is not that OS X's readline is broken --- OS X doesn't come with readline -- but that there is a symbolic link from /usr/lib/libreadline.dylib to /usr/lib/libedit.dylib. Libedit is an independently developed subset of readline, released under a BSD license. The evil symlink trips up anything that depends on having the real GNU readline. {{{ --- libraries/readline/configure.ac.sav 2006-07-05 13:41:54.000000000 -0400 +++ libraries/readline/configure.ac 2006-07-05 13:09:45.000000000 -0400 @@ -41,7 +41,12 @@ AC_CHECK_LIB(readline, readline, HaveLibReadline=YES, HaveLibReadline=NO) fi -if test $HaveLibTermcap = YES && test x"$HaveLibReadline" = xYES ; then +dnl ** is our readline really readline, or is it BSD's libedit? +if test x"$HaveLibReadline" = xYES ; then + AC_CHECK_LIB(readline, rl_readline_version, ReadlineIsLibedit=NO, ReadlineIsLibedit=YES) +fi + +if test $HaveLibTermcap = YES && test x"$HaveLibReadline" = xYES && test x"$ReadlineIsLibedit" = xNO ; then HAVE_READLINE=YES READLINE_LIBS="readline $LibTermcap" else @@ -50,7 +55,7 @@ fi AC_SUBST(READLINE_LIBS) -if test "$HaveLibReadline"; then +if test x"$HaveLibReadline" = xYES && test x"$ReadlineIsLibedit" = xNO ; then AC_CHECK_LIB(readline, rl_erase_empty_line, [AC_DEFINE([HAVE_READLINE_4], [1], [Define to 1 if readline has version >= 4.0.])], [AC_DEFINE([HAVE_READLINE_4], [0], [Define to 1 if readline has version >= 4.0.])]) }}} -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/766> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler_______________________________________________ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@xxxxxxxxxxx http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: [GHC] #811: GHC panics when compiling some mutually recursive modules that export something imported, GHC |
|---|---|
| Next by Date: | Re: [GHC] #766: GHC 6.4.2 won't build on Mac OS X, GHC |
| Previous by Thread: | [GHC] #815: Remove old versions of FFI syntax, GHC |
| Next by Thread: | Re: [GHC] #766: GHC 6.4.2 won't build on Mac OS X, GHC |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |