#4049: Support for ABI versioning of C libraries
------------------------------------------+---------------------------------
Reporter: uzytkownik | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 6.16.1
Component: Build System | Version: 6.12.2
Resolution: | Keywords:
Difficulty: | Os: Unknown/Multiple
Testcase: | Architecture: Unknown/Multiple
Failure: Incorrect result at runtime |
------------------------------------------+---------------------------------
Comment(by simonmar):
Ok, after talking to Duncan Coutts I think I understand what is needed
here.
* when registering a package we should somehow figure out which version
of the `.so` for each dependency it is linking to, and note that in the
`InstalledPackageInfo` for the package. Perhaps we just note the major
version, not the minor. Figuring out what the `.so` version is could be
hard - we might have to compile a dummy program and inspect it with `ldd`.
* when linking a program against the package, we will have to resolve the
library to an absolute pathname (e.g. `/path/to/libfoo.so.2.3`) and pass
that to the linker.
We don't think that you need to specify ABI versions in the `.cabal` file;
it's something that should be fixed when the package is built and stored
with the registered package.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4049#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs