#5507: Template Haskell needs extra library dirs
---------------------------------+------------------------------------------
Reporter: jwlato | Owner:
Type: bug | Status: new
Priority: normal | Component: Template Haskell
Version: 7.2.1 | Keywords: template haskell, link
Testcase: | Blockedby:
Os: Unknown/Multiple | Blocking:
Architecture: x86_64 (amd64) | Failure: Compile-time crash
---------------------------------+------------------------------------------
Template Haskell fails to link c libraries which are located in non-
standard locations. On my system, gtk libraries are installed in
/opt/local/lib; ghc-pkg describe reports:
{{{
library-dirs: /Users/kathleenhouse/.cabal/lib/cairo-0.12.1/ghc-7.2.1
/opt/local/lib
}}}
and building ordinary Haskell packages with cairo/gtk works properly.
However, if a package imports Cairo, Template Haskell fails to find the C
library. The error (from ghc) is:
{{{
Loading package cairo-0.12.1 ... <command line>: can't load .so/.DLL for:
libcairo.dylib (dlopen(libcairo.dylib, 9): image not found)
cabal: Error: some packages failed to install:
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5507>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs