I have two packages that I am developing, A and B Package B depends on A
A was developed in its own sandbox, and a similar story for B :
A> cabal sandbox init A> cabal install --enable-shared B> cabal sandbox init B> cabal sandbox add-source ../A/ B> cabal install
also note that shared: True is in my ~/.cabal/config .
Everything looks good here, they are both perfectly installed. However, when working on B , if I cabal repl , cabal-install tells me that it cannot load the libAsomething.so/.dll file. What is wrong here?
Here is the exact error:
... Loading package mtl-0.0.1 ... linking ... done. Loading package A-0.0.0 ... <command line>: can't load .so/.DLL for: /home/athan/dev/A/.cabal-sandbox/lib/x86_64-linux-ghc-7.8.3/A-0.0.0/libHSA-0.0.0-ghc7.8.3.so (/home/athan/dev/foo/B/.cabal-sandbox/lib/x86_64-linux-ghc-7.8.3/A-0.0.0/libHSA-0.0.0-ghc7.8.3.so: undefined symbol: AsomethingCrazyInAmodule_closure)
Edit:
I am using GHC 7.8.3 and cabal-install 1.20.0.3.
haskell shared-libraries cabal cabal-install
Athan clark
source share