Date: Thu, 31 May 2012 17:28:42 +0700 From: Eugene Grosbein <egrosbein@rdtc.ru> To: Konstantin Belousov <kostikbel@gmail.com> Cc: freebsd-stable@freebsd.org, Oliver Fromme <olli@lurza.secnetix.de> Subject: Re: i386 binaries on amd64: ldconfig problems Message-ID: <4FC747DA.8040902@rdtc.ru> In-Reply-To: <20120531095847.GN2358@deviant.kiev.zoral.com.ua> References: <201205301615.q4UGFxSF051308@lurza.secnetix.de> <20120531095847.GN2358@deviant.kiev.zoral.com.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FC747DA.8040902>