editline in ghc-6.10.1 under Solaris
judah.jacobson at gmail.com
Sun Nov 16 14:06:16 EST 2008
On Mon, Nov 10, 2008 at 4:24 AM, Christian Maeder
<Christian.Maeder at dfki.de> wrote:
> Hallo Judah,
> I've build
> and it was linked against libcurses:
> -bash-3.1$ ldd /usr/local/lib/libedit.so.0
> libcurses.so.1 => /lib/libcurses.so.1
> libc.so.1 => /lib/libc.so.1
> libgcc_s.so.1 =>
> libm.so.2 => /lib/libm.so.2
> When building ghc-6.10.1 your configure script prefers ncurses over
> curses, therefore I get an additional dependency for ghc:
> libncurses.so.5 => /usr/local/lib/libncurses.so.5
> For (the usual) dynamic linking just "-ledit" is enough, only for static
> linking "-lcurses" or "-lncurses" is needed, otherwise "term.o" is the
> "Undefined symbol".
> (By chance, I've only libncurses.a and no libcurses.a for static linking.)
> I'm not sure which dependency to prefer. configure of
> libedit-20080712-2.1 prefers curses over ncurses.
> Cheers Christian
Christian, I've updated the repo at http://code.haskell.org/editline/
with a fix. The editline package now behaves the same way as libedit
(preferring to link against curses over ncurses).
Can you please verify whether that works for you?
More information about the Glasgow-haskell-users