#944: Duplicate C symbol names -----------------------------+---------------------------------------------- Reporter: PaulVanDerWalt | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.14.0 Severity: normal | Keywords: Difficulty: unknown | Ghcversion: 7.2.2 Platform: Mac OS | -----------------------------+---------------------------------------------- I've run into a problem where I want to include the vty and haskeline packages, which both contain the same C code, of which the symbol names are not translated or made unique. When I use both packages, and try to compile something which has Template Haskell (which triggers loading of all dependencies), I get the following error.
GHCi runtime linker: fatal error: I found a duplicate definition for symbol _mk_wcswidth whilst processing object file /Users/paul/.cabal/lib/haskeline-0.6.4.6/ghc-7.2.2/HShaskeline-0.6.4.6.o A workaround is to patch the libraries to make the function names unique, but this is less than ideal. -- Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/944> Hackage <http://haskell.org/cabal/> Hackage: Cabal and related projects _______________________________________________ cabal-devel mailing list cabal-devel@haskell.org http://www.haskell.org/mailman/listinfo/cabal-devel