[GHC] #7097: linker fails to load package with binding to foreign library
GHC
cvs-ghc at haskell.org
Sun Aug 5 14:19:25 CEST 2012
#7097: linker fails to load package with binding to foreign library
-------------------------------+--------------------------------------------
Reporter: nus | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Runtime System | Version: 7.4.2
Keywords: | Os: Windows
Architecture: x86 | Failure: None/Unknown
Difficulty: Unknown | Testcase:
Blockedby: | Blocking:
Related: 2283 |
-------------------------------+--------------------------------------------
Comment(by nus):
To recap, the final linkage is done by the Windows dynamic loader using
the DLL dependency information in the executable import tables. The
partially linked object file `HSnetwork-2.3.0.14.o` which GHCi tries to
load for the `network` package has no such information. In order for GCHi
to be able to load such a package, it at least needs to:
1. be supplied with that information (perhaps via `extra-libraries
`/`extra-ghci-libraries` fields in the package's `.cabal` file);
2. find the MinGW stub libraries the partially linked file depends upon
(cf. `compiler/ghci/Linker.lhs`);
3. know how to load the stub libraries (currently no `.idata` sections
processing in `rts/Linker.c`).
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7097#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list