Open aymanosman opened 3 years ago
Is it possible that you have configured the Racket library search paths differently for the two versions of Racket? Could you try running (begin (require setup/dirs) (get-lib-search-dirs))
on both and see if CS reports extra directories (like /usr/local/lib, for example)? Another possibility is that you've copied the nettle library to your CS lib directory. Try running the example with the environment variable PLTSTDERR=debug@ffi-lib
and see what each version says about libnettle.
Regarding the malloc error on CS: I'll look into it.
The malloc error seems to happen because the (system/homebrew) libnettle and libhogweed are linked to the system/homebrew version of libgmp, but the Racket gmp package (used by the crypto library) is linked to Racket's copy of libgmp.
Replacing Racket's libgmp with a symlink to the system/homebrew libgmp seems to work, but that's probably not a good solution.
I get an error running the example
crypto/examples/signing-ec
under OSX.BC
CS
libnettle
is installed on my system, although I don't know whether it is 3.6 (as brew reports) or 8 as the filename would suggest.Racket BC doesn't find the library, while Racket CS seems to find it fine.
I've tried hardcoding the library path for BC to see if I can change its behaviour, but it still gives me the same error, so I may be barking up the wrong tree.