Skip to content

I can't install happstack-server on Windows #66

@GilmarCorreia

Description

@GilmarCorreia

Hello happstack team,

I'm trying to install happstack-server on Windows, but I'm getting this problem:

WARNING: Ignoring sendfile's bounds on Win32 (>=2.2.0.0 && <2.3); using Win32-2.6.1.0.
Reason: trusting snapshot over cabal file dependency information.
sendfile        > configure
sendfile        > Configuring sendfile-0.7.11.1...
sendfile        > build
sendfile        > Preprocessing library for sendfile-0.7.11.1..
sendfile        > Building library for sendfile-0.7.11.1..
sendfile        > [1 of 7] Compiling Network.Socket.SendFile.Iter
sendfile        > [2 of 7] Compiling Network.Socket.SendFile.Util
sendfile        > [3 of 7] Compiling Network.Socket.SendFile.Portable
sendfile        >
sendfile        > src\Network\Socket\SendFile\Portable.hs:22:1: warning: [-Wdodgy-imports]
sendfile        >     The import item `Socket(..)' suggests that
sendfile        >     `Socket' has (in-scope) constructors or class methods,
sendfile        >     but it has none
sendfile        >    |
sendfile        > 22 | import Network.Socket (Socket(..), fdSocket)
sendfile        >    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sendfile        >
sendfile        > src\Network\Socket\SendFile\Portable.hs:79:25: warning: [-Wdeprecations]
sendfile        >     In the use of `fdSocket'
sendfile        >     (imported from Network.Socket, but defined in network-3.1.1.1:Network.Socket.Types):
sendfile        >     Deprecated: "Use withFdSocket or unsafeFdSocket instead"
sendfile        >    |
sendfile        > 79 |           then do fd <- fdSocket socket
sendfile        >    |                         ^^^^^^^^
sendfile        > [4 of 7] Compiling Network.Socket.SendFile.Win32
sendfile        >
sendfile        > src\Network\Socket\SendFile\Win32.hsc:103:1: error:
sendfile        >     * Unacceptable result type in foreign declaration:
sendfile        >         `IntPtr' cannot be marshalled in a foreign call
sendfile        >           because its data constructor is not in scope
sendfile        >           Possible fix: import the data constructor to bring it into scope
sendfile        >     * When checking declaration:
sendfile        >         foreign import ccall unsafe "io.h _get_osfhandle" c_get_osfhandle
sendfile        >           :: Fd -> IO IntPtr
sendfile        >     |
sendfile        > 103 | foreign import ccall unsafe "io.h _get_osfhandle"
sendfile        >     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
sendfile        >
Progress 1/2

--  While building package sendfile-0.7.11.1 (scroll up to its section to see the error) using:
      C:\sr\setup-exe-cache\x86_64-windows\Cabal-simple_Z6RU0evB_3.0.1.0_ghc-8.8.4.exe --builddir=.stack-work\dist\29cc6475 build --ghc-options " -fdiagnostics-color=always"
    Process exited with code: ExitFailure 1

How can I solve this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions