Skip to content

Commit c1d6106

Browse files
authored
Avoid network-3.1.3.0 unknown symbol `socketpair' (#1958)
When running template haskell code in wine we get this error (from https://ci.zw3rk.com/build/2305024/nixlog/1) ``` Building library for th-dlls-0.1.0.0.. [1 of 1] Compiling Lib ( src/Lib.hs, dist/build/Lib.o ) ---> Starting remote-iserv.exe on port 6413 ---| remote-iserv.exe should have started on 6413 Could not find Wine Gecko. HTML rendering will be disabled. wine: configuration in L"/build" has been updated. Listening on port 6413 remote-iserv.exe: | /nix/store/x1s18463jl5kzqdpv1xyy13pzj82dhjp-network-lib-network-x86_64-w64-mingw32-3.1.3.0/lib/x86_64-windows-ghc-8.10.7/network-3.1.3.0-91WeQjW06jRIKGtokERG5m/HSnetwork-3.1.3.0-91WeQjW06jRIKGtokERG5m.o: unknown symbol `socketpair' remote-iserv.exe: Could not load Object Code /nix/store/x1s18463jl5kzqdpv1xyy13pzj82dhjp-network-lib-network-x86_64-w64-mingw32-3.1.3.0/lib/x86_64-windows-ghc-8.10.7/network-3.1.3.0-91WeQjW06jRIKGtokERG5m/HSnetwork-3.1.3.0-91WeQjW06jRIKGtokERG5m.o. <no location info>: error: ghc: unable to load package `network-3.1.3.0' ``` See haskell/network#550
1 parent 87b604e commit c1d6106

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/th-dlls/cabal.project

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
packages: .
22

3+
-- network-3.1.3.0 results in: unknown symbol `socketpair'
4+
-- See https://github.com/haskell/network/issues/550
5+
constraints: network <3.1.3.0 || >3.1.3.0
6+
37
-- Needed for ghc 9.4.3 until hackage is updated
48
source-repository-package
59
type: git

0 commit comments

Comments
 (0)