Khady / ocaml-argon2

Ocaml bindings to Argon2
MIT License
29 stars 8 forks source link

Argon2 - errors in dune utop: undefined symbol: argon2_type2string #13

Open MarcCoquand opened 4 months ago

MarcCoquand commented 4 months ago

Heya, I'm having issues running argon2 when in utop mode. Running it normally does not cause any issues.

The error I get is

Fatal error: exception Dl.DL_error("/folders/lib/ocaml/5.1.1/site-lib/stublibs/dllctypes_foreign_stubs.so: undefined symbol: argon2_type2string")
Raised at Dl._report_dl_error in file "src/ctypes-foreign/dl.ml.unix", line 44, characters 20-44
Called from Ctypes_foreign_basis.Make.foreign in file "src/ctypes-foreign/ctypes_foreign_basis.ml", line 47, characters 19-47
Re-raised at Ctypes_foreign_basis.Make.foreign in file "src/ctypes-foreign/ctypes_foreign_basis.ml", line 49, characters 50-59
Called from Argon2.Kind.argon2_type2string in file "lib/user/password/argon2/argon2.ml", line 26, characters 4-104

Any clue what might be wrong? I am using the latest argon2 bindings in this repo manually imported.

Khady commented 3 months ago

I think it is related to https://github.com/Khady/ocaml-argon2/pull/7, there's a similar issue in opam's CI

Khady commented 3 months ago

https://discuss.ocaml.org/t/looking-for-help-resolve-linking-issue-with-ocaml-argon2/14289/3