#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 _______________________________________________ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs