Re: LD_PRELOAD behaviour difference in -stable and -current

From: Peter Jeremy <peterjeremy_at_optushome.com.au>
Date: Wed, 3 Mar 2004 20:29:32 +1100
On Wed, Mar 03, 2004 at 04:12:52PM +0800, leafy wrote:
>While upgrading help2man today, I noticed that it won't build on a 
>-current machine due to the preloadable gettext library not available.
>Extracting from the configure script, it runs:
>
> LD_PRELOAD="preloadable_libintl.so" sh -c 'echo yes'
>
>This line, returns 'yes' on a -stable system and "/libexec/ld-elf.so.1: 
>Shared object "preloadable_libintl.so" not found" on a -current system. 

In -stable, "sh" is statically linked so LD_PRELOAD is ignored.  In
-current, "sh" is dynamically linked so it blows up.  If I try a
similar command with a dynamically linked shell on -stable, I get the
same failure:

$ LD_PRELOAD="preloadable_libintl.so" zsh -c 'echo hello'
/usr/libexec/ld-elf.so.1: Shared object "preloadable_libintl.so" not found

Peter
Received on Wed Mar 03 2004 - 00:29:36 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:45 UTC