On 26/02/2024 17:39, Bruno Haible wrote:
Pádraig Brady wrote:
+  void *handle = dlopen ("libcrypto.so", RTLD_LAZY | RTLD_GLOBAL);

That only works if libopenssl-devel is installed.

Good spot.
I'd already pushed a fix for this at:
https://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=3bbdb3938

Does this work for all the various names of libcrypto in various distros?

Debian 12       libcrypto.so.3
Ubuntu 22.04    libcrypto.so.1.1 libcrypto.so.3
Slackware 15    libcrypto.so.1.1
openSUSE 15.5   libcrypto.so.1.1
CentOS Stream 9 libcrypto.so.3
Guix 1.4        libcrypto.so.1.1
Alpine 3.19     libcrypto.so.3
FreeBSD 14.0    libcrypto.so.38
NetBSD 9.3      libcrypto.so.14
OpenBSD 7.4     libcrypto.so.52.0


I only tested with libcrypto.so.3, but it should match all of the above.
It matches libcrypto.so.[.0-9]*

cheers,
Pádraig

Reply via email to