From owner-freebsd-current@FreeBSD.ORG Wed Mar 3 01:29:36 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6B36816A4CE for ; Wed, 3 Mar 2004 01:29:36 -0800 (PST) Received: from mail011.syd.optusnet.com.au (mail011.syd.optusnet.com.au [211.29.132.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 58A7043D49 for ; Wed, 3 Mar 2004 01:29:35 -0800 (PST) (envelope-from peterjeremy@optushome.com.au) Received: from server.vk2pj.dyndns.org (c211-30-75-229.belrs2.nsw.optusnet.com.au [211.30.75.229]) i239TX101454 for ; Wed, 3 Mar 2004 20:29:33 +1100 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1])i239TWi6018000 for ; Wed, 3 Mar 2004 20:29:32 +1100 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.12.10/8.12.10/Submit) id i239TW7C017999 for freebsd-current@freebsd.org; Wed, 3 Mar 2004 20:29:32 +1100 (EST) (envelope-from peter) Date: Wed, 3 Mar 2004 20:29:32 +1100 From: Peter Jeremy To: freebsd-current@freebsd.org Message-ID: <20040303092932.GB17162@server.vk2pj.dyndns.org> References: <20040303081252.GA39161@chihiro.leafy.idv.tw> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040303081252.GA39161@chihiro.leafy.idv.tw> User-Agent: Mutt/1.4.2.1i Subject: Re: LD_PRELOAD behaviour difference in -stable and -current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Mar 2004 09:29:36 -0000 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