Closed superbonaci closed 2 years ago
I have the same error on Manjaro building with this pkgbuild https://github.com/FabioLolix/PKGBUILD-AUR_fix/blob/master/m/mldonkey-git/PKGBUILD (same with stable version and with or without external patches applied)
please provide full configure and build log, otherwise it is a guesswork
caml_hash_univ_param
was removed in OCaml 4.12 but mldonkey doesn't build with 4.12 anyway yet. So my speculation for now is that your build environment has several ocaml versions and something gets mixed up during build.
I see archlinux does disable safe-string https://github.com/archlinux/svntogit-packages/blob/master/ocaml/trunk/PKGBUILD ftr duplicate https://github.com/ygrek/mldonkey/issues/60
patch
--- a/src/networks/donkey/donkeyClient.ml 2021-09-25 10:11:48.211287053 +0700
+++ b/src/networks/donkey/donkeyClient.ml 2021-09-25 10:12:32.348854429 +0700
@@ -810,10 +810,6 @@
query_id ip port id
end
-
-external hash_param : int -> int -> 'a -> int = "caml_hash_univ_param" "noalloc"
-let hash x = hash_param 10 100 x
-
let shared_of_file file =
match file.file_shared with
| None -> None
yes, just tested this is enough
thanks for report
Thanks @ygrek, pkgbuild have been fixed too, what do you say of releasing a new patch release?
Get this error when compiling: