Skip to content
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

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

Open
GilmarCorreia opened this issue Nov 14, 2020 · 1 comment
Open

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

GilmarCorreia opened this issue Nov 14, 2020 · 1 comment

Comments

@GilmarCorreia
Copy link

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?

@stepcut
Copy link
Member

stepcut commented Dec 22, 2021

This may be fixed in sendfile-0.7.11.4 but I do not have a Windows build environment in which to test.

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

No branches or pull requests

2 participants