[Haskell-cafe] cabal sandbox: Can't load .so/.DLL for...

Carter Schonwald carter.schonwald at gmail.com
Wed Oct 8 14:47:58 UTC 2014


No, its fine! Forgetting to list all your exposed modules Is the leading
cause of crazy linker errors!
On Oct 8, 2014 9:46 AM, "Joel Hermanns" <joel.hermanns at gmail.com> wrote:

> I figured out that I forgot to add to module to `exposed-modules`. Now it
> works…
>
> Sorry for the noise.
> On 08 Oct 2014, at 15:29, Carter Schonwald <carter.schonwald at gmail.com>
> wrote:
>
> Is your ~/.cabal/config file from pre 1.18 era? Sounds like the dylibs
> aren't being built.
> On Oct 8, 2014 3:19 AM, "Joel Hermanns" <joel.hermanns at gmail.com> wrote:
>
>> Hi all,
>>
>> I have some trouble with cabal sandboxes. I used `cabal sandbox
>> add-source` to add a library. When I add the library as a dependency for my
>> project and try to build I’m always getting
>>
>> <command line>: can't load .so/.DLL for:
>> /Users/joel/workspace/haskell/bookingsystem/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.3/google-maps-0.1.0.0/libHSgoogle-maps-0.1.0.0-ghc7.8.3.dylib
>> (dlopen(/Users/joel/workspace/haskell/bookingsystem/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.3/google-maps-0.1.0.0/libHSgoogle-maps-0.1.0.0-ghc7.8.3.dylib,
>> 9): Symbol not found:
>> _googlezmmapszm0zi1zi0zi0_WebziGoogleziMapsziInternal_queryAPI_closure
>>   Referenced from:
>> /Users/joel/workspace/haskell/bookingsystem/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.3/google-maps-0.1.0.0/libHSgoogle-maps-0.1.0.0-ghc7.8.3.dylib
>>   Expected in: flat namespace
>>  in
>> /Users/joel/workspace/haskell/bookingsystem/.cabal-sandbox/lib/x86_64-osx-ghc-7.8.3/google-maps-0.1.0.0/libHSgoogle-maps-0.1.0.0-ghc7.8.3.dylib)
>>
>> I couldn’t find a solution so far. Anyone can help me?
>>
>> I’m using ghc-7.8.3 on OS X 10.9.5 and cabal-install version 1.20.0.3
>> using version 1.20.0.1 of the Cabal library.
>>
>> Thanks,
>> Joel
>> _______________________________________________
>> Haskell-Cafe mailing list
>> Haskell-Cafe at haskell.org
>> http://www.haskell.org/mailman/listinfo/haskell-cafe
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20141008/4fc174b5/attachment.html>


More information about the Haskell-Cafe mailing list