Re: i386 binaries on amd64: ldconfig problems

2012-05-31 Thread Konstantin Belousov
On Wed, May 30, 2012 at 06:15:59PM +0200, Oliver Fromme wrote: Hi, I've recently migrated my workstation from i386 to amd64 (finally, because I neeed to go beyond 4 GB RAM). The transition went smoothly so far, except for one thing: I need to use several old i386 binaries, which all work

Re: i386 binaries on amd64: ldconfig problems

2012-05-31 Thread Eugene Grosbein
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,

Re: i386 binaries on amd64: ldconfig problems

2012-05-31 Thread Oliver Fromme
Konstantin Belousov wrote: 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

Re: i386 binaries on amd64: ldconfig problems

2012-05-31 Thread Oliver Fromme
Eugene Grosbein wrote: 31.05.2012 16:58, Konstantin Belousov writes: 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

Re: i386 binaries on amd64: ldconfig problems

2012-05-31 Thread Konstantin Belousov
On Thu, May 31, 2012 at 05:28:42PM +0700, Eugene Grosbein wrote: 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

Re: i386 binaries on amd64: ldconfig problems

2012-05-31 Thread Eugene Grosbein
31.05.2012 18:22, Oliver Fromme пишет: Eugene Grosbein wrote: 31.05.2012 16:58, Konstantin Belousov writes: 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

i386 binaries on amd64: ldconfig problems

2012-05-30 Thread Oliver Fromme
Hi, I've recently migrated my workstation from i386 to amd64 (finally, because I neeed to go beyond 4 GB RAM). The transition went smoothly so far, except for one thing: I need to use several old i386 binaries, which all work well except for one: olvwm. $ uname -rsm FreeBSD 8.3-STABLE-20120528