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 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.
I see. Thanks for the explanation, now I understand. I forgot about rpath and thought that the hints would take precedence. > Look at the olvwm binary with readelf and see whether DT_RPATH specifies > /usr/local/lib. Yes, it does: 0x0000000f (RPATH) Library rpath: [/usr/local/lib] Well, then I will just keep my LD_32_LIBRARY_PATH workaround. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd The easiest way to teach yourself C++ in 21 days: http://abstrusegoose.com/249 _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"