
Hi, Am Dienstag, 28. September 2021, 08:07:44 CEST schrieb Axel Braun:
Hello Andrei,
Am Dienstag, 28. September 2021, 07:44:27 CEST schrieb Andrei Borzenkov:
On 28.09.2021 08:37, Axel Braun wrote: ....
was this libdl moved out?
Yes.
* In order to support smoother in-place-upgrades and to simplify
the implementation of the runtime all functionality formerly
implemented in the libraries libpthread, libdl, libutil, libanl has
been integrated into libc.
Runtime empty libdl.so.2 still exists and even static empty libdl.a is still provided, but not libdl.so.
Interesting...if it is implemented into libc I would expect it to be there. Do you know in which new library this is, resp. if the source code needs to be changed?
libdl.so is only needed for linking against libdl dynamically (-ldl), and was thus only provided by glibc-devel. With the latest version, "-ldl" picks the empty libdl.a instead. So using dlopen("libdl.so.2") instead would be the correct fix for this. However, it would break with other libcs, where the filename might differ. I suggest dlopen("libdl.so") and fall back to dlopen("libdl.so.2") if it failed with ENOENT. Or the other way around. Cheers, Fabian
Thanks Axel