build failure (ghc-7.6.1) #13

Open
pheaver opened this Issue Nov 30, 2012 · 1 comment

Projects

None yet

2 participants

pheaver commented Nov 30, 2012

Does riak-haskell-client build on ghc-7.6.1? I am getting these errors with multiple versions of the riak package:

src/Network/Riak/Connection/NoPush.hsc:46:1:
    Unacceptable argument type in foreign declaration: CInt
    When checking declaration:
      foreign import ccall unsafe "static setsockopt" c_setsockopt
        :: CInt -> CInt -> CInt -> Ptr CInt -> CInt -> IO CInt

src/Network/Riak/Connection/NoPush.hsc:46:1:
    Unacceptable argument type in foreign declaration: CInt
    When checking declaration:
      foreign import ccall unsafe "static setsockopt" c_setsockopt
        :: CInt -> CInt -> CInt -> Ptr CInt -> CInt -> IO CInt

src/Network/Riak/Connection/NoPush.hsc:46:1:
    Unacceptable argument type in foreign declaration: CInt
    When checking declaration:
      foreign import ccall unsafe "static setsockopt" c_setsockopt
        :: CInt -> CInt -> CInt -> Ptr CInt -> CInt -> IO CInt

src/Network/Riak/Connection/NoPush.hsc:46:1:
    Unacceptable argument type in foreign declaration: CInt
    When checking declaration:
      foreign import ccall unsafe "static setsockopt" c_setsockopt
        :: CInt -> CInt -> CInt -> Ptr CInt -> CInt -> IO CInt

src/Network/Riak/Connection/NoPush.hsc:46:1:
    Unacceptable result type in foreign declaration: IO CInt
    When checking declaration:
      foreign import ccall unsafe "static setsockopt" c_setsockopt
        :: CInt -> CInt -> CInt -> Ptr CInt -> CInt -> IO CInt

@pheaver if you use the github version, then this is not a problem, as it was resolved in 281a2fd .

@bos - it would appear that (at least) the last two commits are not reflected on v0.7.0.1 on hackage. Uploading the current HEAD to hackage would allow ghc 7.6 users to pull straight from hackage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment