Re: lintian warning on native plugins
Le 21/08/2019 à 20:35, Ralf Treinen a écrit :
> when compiling menhir I now get a lintian warning:
>
> W: libmenhir-ocaml-dev: shared-lib-without-dependency-information
> usr/lib/ocaml/menhirLib/menhirLib.cmxs
> N:
> N: The listed shared library doesn't include information about which other
> N: libraries the library was linked against. (When running "ldd foo.so" ldd
> N: should report about these other libraries. In your case, ldd just
> N: reports "statically linked".)
> N:
> N: To fix this, you should explicitly specify the libraries which are used
> N: (e.g., "-lc") when building the shared library with "ld".
> N:
> N: If you have questions about this, please contact
> N: debian-devel@lists.debian.org.
> N:
> N: Severity: normal, Certainty: certain
> N:
> N: Check: binaries, Type: binary, udeb
>
> is this relevant for the case of OCaml? if yes, what should one do?
I've also seen these new Lintian warnings, but did not take time to
investigate.
Did you try actually running ldd on menhirLib.cmxs? On my machine, it is
not reported as "statically linked". Even on pure OCaml cmxs (for which
I wouldn't find it surprising to have such a warning), ldd reports libc.
In general, only dependencies towards C libraries (e.g. bindings) make
sense for cmxs IMHO, as the OCaml runtime (the Dynlink library) does its
own checks.
Cheers,
--
Stéphane
Reply to: