[GHC] #9215: GHC 7.8.2 mingw-w64: symbol not found in link
GHC
ghc-devs at haskell.org
Wed Jan 20 09:06:32 UTC 2016
#9215: GHC 7.8.2 mingw-w64: symbol not found in link
-------------------------------------+-------------------------------------
Reporter: stuartallenmills | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.8.2
Resolution: | Keywords:
Operating System: Windows | Architecture: x86_64
| (amd64)
Type of failure: Other | Test Case:
Blocked By: 9218 | Blocking:
Related Tickets: #9218 | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by thomie):
Some projects have changed their code:
{{{
#if _WIN64
#define STRDUP _strdup
#else
#define STRDUP strdup
#endif
}}}
* https://github.com/snoyberg/yaml/pull/45
* https://github.com/bsl/bindings-
GLFW/commit/86271bcff4897c1c563af0058111705111d1ba7e
We should probably not add any special cases to the linker (it's
complicated enough already!) to effectively un-deprecate those functions.
It is still rather unfortunate that those ifdefs are unnecessary though.
@snoyberg might have an opinion, since he mentioned in
https://github.com/snoyberg/yaml/issues/44#issuecomment-46459264:
"There's no good reason why C code being compiled by GHC should need
to be modified to avoid using strdup, that's certainly a bug in the
toolchain, not the code."
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9215#comment:8>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list