| Summary: | xmonad.hs fails to link with user utf8-string installed | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Bryce Verdier <bryceverdier> |
| Component: | xmonad | Assignee: | Jens Petersen <petersen> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 15 | CC: | fedora, haskell-devel, petersen |
| Target Milestone: | --- | Keywords: | Reopened |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-06-16 02:41:13 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Bryce Verdier
2011-06-14 03:32:50 UTC
What does "ghc-pkg list utf8-string" output? [bryce@raidtest2 ~]$ ghc-pkg list utf8-string /usr/lib64/ghc-7.0.2/package.conf.d utf8-string-0.3.6 utf8-string-0.3.6 /home/bryce/.ghc/x86_64-linux-7.0.2/package.conf.d utf8-string-0.3.6 I made sure that they were installed before I said something. These errors come whenever I try to load a module in the xmonad.hs file. (Say import XMonad.Hook.DynamicLog). However, in ghci if I import Xmonad, I can import that library without issue. > /usr/lib64/ghc-7.0.2/package.conf.d > utf8-string-0.3.6 > utf8-string-0.3.6 Hmm not sure why you have two system copies. > /home/bryce/.ghc/x86_64-linux-7.0.2/package.conf.d > utf8-string-0.3.6 If you unregister or remove this, it should solve your problem: it happens because Fedora's xmonad uses dynamic linking and I guess your user installed copy is static only. Unfortunately it is still easy to shoot oneself in the foot with cabal-install. > it happens because Fedora's xmonad uses dynamic linking
> and I guess your user installed copy is static only.
I suppose we could perhaps add -no-user-package-conf to the xmonad patch
to help prevent your problem: it would however prevent people from using
a custom xmonad with the fedora xmonad package but maybe that is less
of a problem.
Thank you for the help. I got it to work by doing two things. Unregistering utf8-string from cabal. Then deleting both references to utf8-string in /use/lib64/ghc-7.0.2/package.conf.d. And finally reinstalling utf8-string from yum. Thank you for the help. |