'Unbound module Nat' in cryptokit on ocaml 4.06

Issue #55 invalid
Former user created an issue

i presume this is related to issue #49.

when building with ocaml 4.06:

(...)
ocamlmklib -o cryptokit rijndael-alg-fst.o stubs-aes.o d3des.o stubs-des.o arcfour.o stubs-arcfour.o sha1.o stubs-sha1.o sha256.o stubs-sha256.o ripemd160.o stubs-ripemd160.o blowfish.o stubs-blowfish.o keccak.o stubs-sha3.o stubs-md5.o stubs-zlib.o stubs-misc.o stubs-rng.o -L/usr/lib -lz
ocamlc -g -c  cryptokit.mli
ocamlc -g -c  cryptokit.ml
File "cryptokit.ml", line 16, characters 5-8:
Error: Unbound module Nat
make[1]: *** [Makefile:95: cryptokit.cmo] Error 2
make[1]: Leaving directory '/tmp/sks/src/sks-1.1.6/cryptokit-1.7/src'
make: *** [Makefile:292: cryptokit-1.7/src/cryptokit.cma] Error 2

I'm using some of the debian packages - specifically, i'm attempting to build the Arch package (actual build process here ).

i wish i could offer more than that; unfortunately i'm just a bash and python guy. :/ please let me know if you need any further information or require any files from the build environment.

Comments (3)

  1. ygrek

    Nat module comes from num library. I can reproduce this build failure after opam remove num on 4.06.0 switch. So conversely - try to install num with opam or any other means.

    I believe this bug can be closed because in master branch cryptokit was unbundled and this specific problem should not exist.

  2. Log in to comment