Closed cgag closed 9 years ago
what is your ghc version!?
Ah sorry, it's 7.8.3.
@cgag In current master there are no occurrences of Word64
anymore. Does the compilation still break?
I just tried it and get the same errors on 0.5.0.1. From what I can tell the common thing on all those lines is #{type clockid_t}, so I guess that's Word64? I don't really know anything about the FFI. I can't even find any reference to this #{type ...} syntax in the docs.
Aha. So the cause is that unlike other platforms, FreeBSD probably uses an unsigned long as the field type, which in Haskell is Word64
, rather than Int64
. So on FreeBSD, we need import Data.Word
rather than Data.Int
.
Sorry - unsigned long for the clockid_t
typedef I meant.
I tried compiling with every verison after 4.1.3 and they all fail with the same errors:
Problems with dragonfly are often problems on Freebsd as well but I'm not set up to test it.