
10 Apr
2017
10 Apr
'17
8:44 a.m.
./open
Hello, I'm working on a Haskell plugin (a shared library) for a C program. When I load the plugin, I get the following error: dlopen() failed: /usr/lib64/ghc-8.0.2/ghc-prim-0.5.0.0/libHSghc-prim-0.5.0.0-ghc8.0.2.so: undefined symbol: stg_thawArrayzh open is just a testing wrapper around dlopen(). I found out that stg_thawArrayzh symbol is exported by the rts, and my library isn't linked to it, and neither is ghc-prim. How do I fix that? Adding -lHSrts-ghc8.0.2 to ld-options doesn't seem to have any effect. Thanks.