[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1060233: libc6: Missing libdl.so



On 2024-01-08 12:24, Paul Szabo wrote:
> Dear Aurelien,
> 
> > Starting with glibc 2.34, libdl is an empty library. Therefore only a
> > libdl.a is provided to support linking with -ldl.
> 
> At bullseye, I explicitly needed to use libdl e.g. with constructs like
> 
>   export LD_LIBRARY_PATH=/somewhere
>   export LD_PRELOAD='libdl.so gconf_client_get_string.so'
> 
> with code using dlopen() to then replace (modify?) library calls.
> You suggest that there is no longer a need to explicitly preload libdl:
> great, will simplify all my instances. (Until then, the useless symlink
> allows the scripts to work as before.)

It's not clear to me what is this gconf_client_get_string.so and why
libdl.so need to be preloaded before. It could be because
gconf_client_get_string.so is not properly linked.

In any case, that should not be needed anymore, and I guess a try should
confirm that.

> Also: why provide the "empty" libdl.so.2 object, still?

It's empty in the sense it doesn't provide any function, given they have
all been moved to libc.so.6. But some binaries still reference it
because they haven't been rebuilt since the change, and we need to
ensure they still work.

Regards
Aurelien

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurelien@aurel32.net                     http://aurel32.net


Reply to: