Closed dmbaturin closed 4 years ago
Thank you for this clear bug report & reproduction procedure!
My guess is that it's related to the "Reflect "managed" status in the types of fat pointers" change.
Your guess is spot on. There should be a new ctypes release that fixes the libvyosconfig
build available soon.
@dmbaturin, could you check that the master
branch of ctypes
works for you? You can install it by pinning with --dev
:
opam pin --dev ctypes
@yallop Thanks, I can confirm that after pinning to the dev version, it builds without errors.
Thanks for the confirmation. There's a new release on its way with the fix: https://github.com/ocaml/opam-repository/pull/15911
I'm closing this, since it's fixed in 0.17.1 (ocaml/opam-repository#15911).
To allow using my OCaml code from Python, I put together a shared library using your examples and my limited understanding of ctypes. It used to work fine, until the 0.17.0 release. Now compilation of generated bindings fails with a type error. When I downgrade to 0.16.0, it works again.
Reproducing procedure:
My guess is that it's related to the "Reflect "managed" status in the types of fat pointers" change. Note that my understanding of the ctypes library or libffi itself is still limites, so I'm ready to do any debug you want me to do, you'll have to tell me what exactly I should do.