[GHC] #12497: Make runtime linker be able to find POSIX functions under their deprecated name.

GHC ghc-devs at haskell.org
Thu Aug 18 19:05:53 UTC 2016


#12497: Make runtime linker be able to find POSIX functions under their deprecated
name.
-------------------------------------+-------------------------------------
           Reporter:  Phyx-          |             Owner:
               Type:  feature        |            Status:  new
  request                            |
           Priority:  normal         |         Milestone:  8.0.2
          Component:  Runtime        |           Version:  8.0.1
  System (Linker)                    |
           Keywords:  newcomer       |  Operating System:  Windows
       Architecture:                 |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 With GHC 8.0.1 the new runtime linker stopped re-exporting posix symbols
 under their deprecated names and instead follows the names on MSDN.

 Unfortunately there seems to be far more libraries than expected using
 these deprecated names. (Rather, far more libraries using posix functions
 and it happening to work on Windows).

 These are all broken now, and while we're doing the right thing, for the
 sake of compatibility with mingw-w64's behavior and allowing all these
 packages to work then we should re-export these symbols.

 e.g. rexport `strdup` as a forward from `_strdup`. We don't have to
 actually re-export them. just forward them in `RtsSymbol.c`.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12497>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list