Duplicate C symbol names #934

Closed
bos opened this Issue May 24, 2012 · 1 comment

Comments

Projects
None yet
2 participants
Contributor

bos commented May 24, 2012

(Imported from Trac #944, reported by PaulVanDerWalt on 2012-04-22)

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.

Owner

gregorycollins commented Jan 27, 2013

Closing this:

  • it's a ghc bug
  • not sure what we would do here anyways.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment