From owner-freebsd-stable@FreeBSD.ORG Thu May 31 10:28:46 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 30C4F106566B for ; Thu, 31 May 2012 10:28:46 +0000 (UTC) (envelope-from egrosbein@rdtc.ru) Received: from eg.sd.rdtc.ru (eg.sd.rdtc.ru [IPv6:2a03:3100:c:13::5]) by mx1.freebsd.org (Postfix) with ESMTP id 8AA8A8FC0C for ; Thu, 31 May 2012 10:28:45 +0000 (UTC) Received: from eg.sd.rdtc.ru (localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.14.5/8.14.5) with ESMTP id q4VASgXD023621; Thu, 31 May 2012 17:28:42 +0700 (NOVT) (envelope-from egrosbein@rdtc.ru) Message-ID: <4FC747DA.8040902@rdtc.ru> Date: Thu, 31 May 2012 17:28:42 +0700 From: Eugene Grosbein User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; ru-RU; rv:1.9.2.13) Gecko/20110112 Thunderbird/3.1.7 MIME-Version: 1.0 To: Konstantin Belousov References: <201205301615.q4UGFxSF051308@lurza.secnetix.de> <20120531095847.GN2358@deviant.kiev.zoral.com.ua> In-Reply-To: <20120531095847.GN2358@deviant.kiev.zoral.com.ua> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org, Oliver Fromme Subject: Re: i386 binaries on amd64: ldconfig problems X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 May 2012 10:28:46 -0000 31.05.2012 16:58, Konstantin Belousov writes: >> But actually I shouldn't have to use LD_32_LIBRARY_PATH. >> I mean, it's ldconfig's job to configure the directories for >> locating the libraries. >> >> What is wrong here? > The library search order is LD_{32}_LIBRARY_PATH, then DT_RPATH from > the binary, then hints, then /lib:/usr/lib. So if rpath of the binary > contains /usr/local/lib, you get /usr/local/lib before hints. > > Rtld uses only the search path from the hints file. When a library with > the matched name found, rtld tries to load it. Regardless of the result > of the load attempt, further components of the search path list are not > tried. > > Look at the olvwm binary with readelf and see whether DT_RPATH specifies > /usr/local/lib. I've faced exactly same problem. What can be done other to rebuild of all such 32bit bit binaries to make them work for transition period? Should libmap32.conf help? It seems it does not. Eugene Grosbein