Skip to content

Build failure on Windows (CI broken) #574

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
andreasabel opened this issue Mar 22, 2024 · 1 comment · Fixed by #575
Closed

Build failure on Windows (CI broken) #574

andreasabel opened this issue Mar 22, 2024 · 1 comment · Fixed by #575
Assignees

Comments

@andreasabel
Copy link
Member

-- This function does not work on Windows.
recvFd :: Socket -> IO CInt
recvFd s = allocaBytes dummyBufSize $ \buf -> do
(NullSockAddr, _, cmsgs, _) <- recvBufMsg s [(buf,dummyBufSize)] 32 mempty
case (lookupCmsg CmsgIdFds cmsgs >>= decodeCmsg) :: Maybe [Fd] of

Network\Socket\Unix.hsc:152:22: error:
    Data constructor not in scope: CmsgIdFds :: CmsgId
    Suggested fix:
      Perhaps use ‘CmsgIdFd’ (imported from Network.Socket.Win32.Cmsg)
    |
152 |     case (lookupCmsg CmsgIdFds cmsgs >>= decodeCmsg) :: Maybe [Fd] of

    |                      ^^^^^^^^^

In CI: https://github.com/haskell/network/actions/runs/8386827442/job/22967896871?pr=573#step:9:126

The first bad CI run was: https://github.com/haskell/network/actions/runs/5779705020
Breakage seem to be connected to

@andreasabel
Copy link
Member Author

Excellent, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants