ygrek / mldonkey

cross-platform multi-network p2p daemon
http://mldonkey.sourceforge.net/
Other
235 stars 43 forks source link

Error: Unbound value Array1.map_file #58

Closed vsc55 closed 2 years ago

vsc55 commented 3 years ago

Another similar error issue #35:

50 |   Array1.map_file (Unix.descr_of_in_channel file)
       ^^^^^^^^^^^^^^^
Error: Unbound value Array1.map_file
make: *** [Makefile:5443: src/utils/lib/misc2.cmx] Error 2

Same solution:

let open Bigarray in
-  Array1.map_file (Unix.descr_of_in_channel file) 
-    int8_unsigned c_layout false (-1)
+  array1_of_genarray @@ Unix.map_file (Unix.descr_of_in_channel file)
+    int8_unsigned c_layout false [|-1|]

Compilers info:

ygrek commented 2 years ago

but it was already fixed are you building the latest code?

vsc55 commented 2 years ago

Hi @ygrek, Yes it works properly.