SKS-Keyserver / sks-keyserver

OpenPGP keyserver
GNU General Public License v2.0
135 stars 15 forks source link

'Unbound module Nat' in cryptokit on ocaml 4.06 #55

Closed ygrek closed 5 years ago

ygrek commented 6 years ago

Original report by Anonymous.


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.

ygrek commented 6 years ago

Original comment by ygrek (Bitbucket: f_x, ).


ftr this is not related to #49 afaics, it is a problem during cryptokit build, it doesn't get to compiling sks sources proper.

ygrek commented 6 years ago

Original comment by ygrek (Bitbucket: f_x, ).


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.