Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Mar 2004 20:29:32 +1100
From:      Peter Jeremy <peterjeremy@optushome.com.au>
To:        freebsd-current@freebsd.org
Subject:   Re: LD_PRELOAD behaviour difference in -stable and -current
Message-ID:  <20040303092932.GB17162@server.vk2pj.dyndns.org>
In-Reply-To: <20040303081252.GA39161@chihiro.leafy.idv.tw>
References:  <20040303081252.GA39161@chihiro.leafy.idv.tw>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040303092932.GB17162>