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

[openbsd] warp-3.1.4 ... linking ... unknown symbol `warpzuBEcL04PUybVBcZZL5KBk14u_NetworkziWaiziHandlerziWarpziMultiMap_Tom_con_info' #440

Closed
jirib opened this Issue Oct 1, 2015 · 5 comments

Comments

Projects
None yet
3 participants
@jirib

jirib commented Oct 1, 2015

Hi,
I try to install git-annex and it fails on warp.

OS: OpenBSD 5.8 snapshot amd64 (snapshot 2015-09-29)

(Sorry I know nothing about haskell internals, if you need more info I would be happy to provide it.)

$ ghc -V
The Glorious Glasgow Haskell Compilation System, version 7.10.2
...
*** gcc:
/usr/bin/gcc -fno-pie -nopie -fno-stack-protector -DTABLES_NEXT_TO_CODE -L/usr/local/lib/ghc/zlib-0.5.4.2 --print-file-name libz.so
Loading package zlib-0.5.4.2 ... linking ... done.
Loading package streaming-commons-0.1.14.2 ... linking ... done.
Loading package conduit-extra-1.1.9.1 ... linking ... done.
Loading package simple-sendfile-0.2.21 ... linking ... done.
Loading package unix-compat-0.4.1.4 ... linking ... done.
Loading package vault-0.3.0.4 ... linking ... done.
Loading package wai-3.0.4.0 ... linking ... done.
Loading package word8-0.1.2 ... linking ... done.
Loading package warp-3.1.4 ... linking ... ghc: /home/jirib/tmp/sandbox/haskell/git-annex-5.20150930/lib/x86_64-openbsd-ghc-7.10.2/warp-3.1.4-BEcL04PUybVBcZL5KBk14u/HSwarp-3.1.4-BEcL04PUybVBcZL5KBk14u.o: unknown 
symbol `warpzuBEcL04PUybVBcZZL5KBk14u_NetworkziWaiziHandlerziWarpziMultiMap_Tom_con_info'
*** Deleting temp files:
Deleting: /tmp/ghc11293_0/ghc_50.s /tmp/ghc11293_0/ghc_13.hscpp /tmp/ghc11293_0/ghc_12.hscpp /tmp/ghc11293_0/ghc_11.hscpp /tmp/ghc11293_0/ghc_10.hscpp /tmp/ghc11293_0/ghc_9.hscpp /tmp/ghc11293_0/ghc_8.hscpp /tmp/
ghc11293_0/ghc_7.hscpp /tmp/ghc11293_0/ghc_6.hscpp /tmp/ghc11293_0/ghc_5.hscpp /tmp/ghc11293_0/ghc_4.hscpp /tmp/ghc11293_0/ghc_3.hscpp /tmp/ghc11293_0/ghc_2.hscpp /tmp/ghc11293_0/ghc_1.hscpp
Warning: deleting non-existent /tmp/ghc11293_0/ghc_50.s
*** Deleting temp dirs:
Deleting: /tmp/ghc11293_0
ghc: unable to load package `warp-3.1.4'
/usr/local/bin/ghc returned ExitFailure 1
cabal: user error (Error: some packages failed to install:
wai-app-static-3.1.1 failed during the building phase. The exception was:
ExitFailure 1
yesod-1.4.2 depends on yesod-core-1.4.15 which failed to install.
yesod-auth-1.4.6.1 depends on yesod-core-1.4.15 which failed to install.
yesod-core-1.4.15 failed during the building phase. The exception was:
ExitFailure 1
yesod-default-1.2.0 depends on yesod-core-1.4.15 which failed to install.
yesod-form-1.4.4.1 depends on yesod-core-1.4.15 which failed to install.
yesod-persistent-1.4.0.3 depends on yesod-core-1.4.15 which failed to install.
yesod-static-1.5.0.3 depends on yesod-core-1.4.15 which failed to install.
)
@awpr

This comment has been minimized.

Member

awpr commented Oct 2, 2015

Note: I've seen this symptom before in #428. It looks like the issue is that the MultiMap module is only built if the sendfile implementation is enabled, but it's used on all non-Windows builds by FdCache. So, the fix should be to move the Other-modules declaration for it to all non-Windows builds. I was able to trigger the same symptom on Linux by removing that module from Other-modules entirely.

Does this patch fix the issue for you? awpr@831b944 (you can clone and/or pull it from the master branch of https://github.com/awpr/wai.git). If so I'll go ahead and push it to this repo too.

@kazu-yamamoto

This comment has been minimized.

Contributor

kazu-yamamoto commented Oct 2, 2015

After solving this issue, let's release a new version of Warp.

@jirib

This comment has been minimized.

jirib commented Oct 2, 2015

Looks good, it passed ok. Thank you.

@awpr

This comment has been minimized.

Member

awpr commented Oct 2, 2015

Thanks, I just pushed it to master. I'll leave this issue open pending a release.

@kazu-yamamoto

This comment has been minimized.

Contributor

kazu-yamamoto commented Oct 13, 2015

A new version has been released.

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