C For C's Sake

Results 200 comments of C For C's Sake

Looks like it's being linked here (when building `Cstruct`): ``` ocamlfind opt -a -linkall -principal -short-paths -g -package str -package bigarray -package bytes -cclib -lctypes_stubs -o _build/ctypes.cmxa _build/src/ctypes/ctypes_path.cmx _build/src/ctypes/lDouble.cmx _build/src/ctypes/unsigned.cmx...

By removing seemingly unneeded references to the `Str` module I end up with the modules referencing the module: ``` ./src/ctypes/ctypes_path.ml ./src/discover/commands.ml ./src/discover/discover.ml ./src/cstubs/cstubs_structs.ml ./src/configure/extract_from_c.ml ``` and in these auxiliary files:...

Hm, I got sucked into this and ended up with this PR: https://github.com/ocamllabs/ocaml-ctypes/pull/520 The build seems to work for me, but the tests are broken. Comments appreciated!

That sounds great! :) I agree that sounds sensible. I'll leave this open for you to decide the course, feel free to pick parts from here or close it. (I...

Hmm, so the `Str` dependency still breaks my MirageOS build. I tried to `opam install ctypes-foreign`, but it doesn't seem to be able to find `Ctypes.FOREIGN` anywhere. Do you know...

@yallop Thank you for the clarification, and for your work on this, I really appreciate it!

That seemed to work! I'm now left with a handful of new errors, but I suspect that may be my own fault... (I changed `ctypes.stubs` to `ctypes` in `META`) ```...

No. I suspect it's depending on a bunch of stuff that the mirage-xen thingie doesn't have (floats?). Anyway, don't worry about it. I don't have a clear idea what is...

Unable to reproduce the `Invalid_argument` exception. Perhaps the interface has been changed to return a `Cstruct.t option` since? The Nocrypto implementation is equivalent to the encoding described in [RFC 3548](https://tools.ietf.org/html/rfc3548)...

ping @hannesm I get the following on debian when trying to compile hannesm/ocaml-nocrypto#safely : ``` user@pubdev:~$ opam pin | grep nocrypto nocrypto.0.5.4 (uninstalled) git https://github.com/hannesm/ocaml-nocrypto#safely user@pubdev:~$ opam install nocrypto =-=-...