Juliusz Chroboczek <[EMAIL PROTECTED]> writes:
> The patch
>
> Mon Nov 20 18:12:11 CET 2006 Dave Love <[EMAIL PROTECTED]>
> * Fix curses stuff, especially on Solaris 10.
>
> Includes the following hunk:
>
> -foreign import ccall "term.h tgetnum" c_tgetnum :: CString -> IO CInt
> -foreign import ccall "term.h tgetent" c_tgetent :: Ptr CChar -> CString ->
> IO C
> +foreign import ccall "tgetnum" c_tgetnum :: CString -> IO CInt
> +foreign import ccall "tgetent" c_tgetent :: Ptr CChar -> CString -> IO CInt
The right headers are added at the top of the file. It's just that (I
guess -- I don't remember) I added commentary after testing it, and
the comments caused the breakage. [Note that it's not actually
correct to include ‘"term.h"’ -- it should be ‘<term.h>’.]
> which causes the following warnings on GNU/Linux:
>
> /tmp/ghc18663_0/ghc18663_0.hc: In function ‘s8Gr_ret’:
>
> /tmp/ghc18663_0/ghc18663_0.hc:21561:0:
> warning: implicit declaration of function ‘tgetnum’
> /tmp/ghc18663_0/ghc18663_0.hc: In function ‘s8H0_ret’:
>
> /tmp/ghc18663_0/ghc18663_0.hc:21690:0:
> warning: implicit declaration of function ‘tgetent’
>
> I have no idea what this is supposed to fix, but it's obviously broken
> on GNU/Linux.
Those functions are documented to require <curses.h>, and that
actually matters on Solaris. Then (apparently) something in the ghc
library generated headers messes things up due to making something
undefined which is termio-related. There was a thread about it
somewhere.
The lossage should be fixed by what I sent a couple of days ago:
Mon Dec 18 22:41:58 GMT 2006 Dave Love <[EMAIL PROTECTED]>
* Fix includes in External.hs.
You can't put comments before {-# INCLUDE ...
_______________________________________________
darcs-devel mailing list
[email protected]
http://www.abridgegame.org/cgi-bin/mailman/listinfo/darcs-devel