Hi,

Kenneth stumbled upon this:

On Thu, 4 Sep 2014 20:58:28 -0400 Kenneth Westerback
<[email protected]> wrote:

> File "ptests/ptests.ml", line 1:
> Error: Error while linking /usr/local/lib/ocaml/vmthreads/stdlib.cma(String):
> Reference to undefined global `Bytes'
> Makefile:2462: recipe for target 'bin/ptests.byte' failed

OCaml's threads stdlib.cma is missing Bytes, BytesLabels and 
CamlinternalFormat modules. I already reported this on Mantiss.
Here's the diff for our port. OK?

Christopher


$OpenBSD$

Fix upstream bug.
Include modules Bytes, BytesLabels and CamlinternalFormat in threaded
stdlib.

--- otherlibs/threads/Makefile.orig     Tue May 27 08:10:47 2014
+++ otherlibs/threads/Makefile  Fri Sep  5 10:59:42 2014
@@ -27,20 +27,19 @@ CAML_OBJS=thread.cmo mutex.cmo condition.cmo
event.cmo 
 LIB=../../stdlib
 
-LIB_OBJS=$(LIB)/camlinternalFormatBasics.cmo pervasives.cmo \
-  $(LIB)/array.cmo $(LIB)/list.cmo $(LIB)/char.cmo
$(LIB)/string.cmo        \
-  $(LIB)/sys.cmo $(LIB)/sort.cmo marshal.cmo
$(LIB)/obj.cmo                 \
-  $(LIB)/int32.cmo $(LIB)/int64.cmo
$(LIB)/nativeint.cmo                    \
+LIB_OBJS=$(LIB)/camlinternalFormatBasics.cmo
pervasives.cmo              \
+  $(LIB)/array.cmo $(LIB)/list.cmo $(LIB)/char.cmo
$(LIB)/bytes.cmo            \
+  $(LIB)/string.cmo $(LIB)/sys.cmo $(LIB)/sort.cmo
marshal.cmo                 \
+  $(LIB)/obj.cmo $(LIB)/int32.cmo $(LIB)/int64.cmo
$(LIB)/nativeint.cmo        \ $(LIB)/lexing.cmo $(LIB)/parsing.cmo
$(LIB)/set.cmo $(LIB)/map.cmo        \ $(LIB)/stack.cmo
$(LIB)/queue.cmo $(LIB)/camlinternalLazy.cmo             \
-  $(LIB)/lazy.cmo $(LIB)/stream.cmo
$(LIB)/buffer.cmo                       \
-  $(LIB)/printf.cmo $(LIB)/arg.cmo $(LIB)/printexc.cmo
$(LIB)/gc.cmo        \
-  $(LIB)/digest.cmo $(LIB)/random.cmo
$(LIB)/hashtbl.cmo                    \
-  $(LIB)/format.cmo $(LIB)/scanf.cmo $(LIB)/callback.cmo \
-  $(LIB)/camlinternalOO.cmo              \
-  $(LIB)/oo.cmo $(LIB)/camlinternalMod.cmo
$(LIB)/genlex.cmo                \
-  $(LIB)/weak.cmo $(LIB)/filename.cmo                   \
-  $(LIB)/complex.cmo $(LIB)/arrayLabels.cmo
$(LIB)/listLabels.cmo           \
+  $(LIB)/lazy.cmo $(LIB)/stream.cmo
$(LIB)/buffer.cmo                           \
+  $(LIB)/camlinternalFormat.cmo $(LIB)/printf.cmo
$(LIB)/arg.cmo      \
+  $(LIB)/printexc.cmo $(LIB)/gc.cmo $(LIB)/digest.cmo
$(LIB)/random.cmo           \
+  $(LIB)/hashtbl.cmo $(LIB)/format.cmo $(LIB)/scanf.cmo
$(LIB)/callback.cmo \
+  $(LIB)/camlinternalOO.cmo $(LIB)/oo.cmo
$(LIB)/camlinternalMod.cmo          \
+  $(LIB)/genlex.cmo $(LIB)/weak.cmo $(LIB)/filename.cmo
$(LIB)/complex.cmo  \
+  $(LIB)/arrayLabels.cmo $(LIB)/listLabels.cmo
$(LIB)/bytesLabels.cmo      \ $(LIB)/stringLabels.cmo
$(LIB)/stdLabels.cmo $(LIB)/moreLabels.cmo 
 UNIXLIB=../unix



-- 
http://gmerlin.de
OpenPGP: http://gmerlin.de/christopher.pub
F190 D013 8F01 AA53 E080  3F3C F17F B0A1 D44E 4FEE

-- 
http://gmerlin.de
OpenPGP: http://gmerlin.de/christopher.pub
F190 D013 8F01 AA53 E080  3F3C F17F B0A1 D44E 4FEE

Attachment: signature.asc
Description: PGP signature

Reply via email to