LD_PRELOAD behaviour difference in -stable and -current
Peter Jeremy
peterjeremy at optushome.com.au
Wed Mar 3 01:29:36 PST 2004
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
More information about the freebsd-current
mailing list