Broken locale after upgrade to 6-STABEL from 5-STABLE

Oliver Fromme olli at lurza.secnetix.de
Thu May 24 10:56:56 UTC 2007


Artem Kuchin wrote:
 > Ahh, well, i just forgot. Of course it is not for a long time
 > now. But anyhow, why locale in C does not work? And how 'so' lib
 > is selected for an executable? How OS selected so.5 or so.6 for a
 > executable file?

During compile-time linking (when ld(1) is called),
usually the newest version of the library is used
(note that libfoo.so is usually a symlink to the
newest libfoo.so.*).

At runtime, the dynamic linker (rtld(1)) uses the
same library version that was used during compilation.
If you want a binary to use a different version, you
have to recompile it.  (Well, there are ways to trick
the dynamic linker via libmap.conf and environment
variables, but that will break if the libraries in
question aren't 100% ABI compatible.)

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

Passwords are like underwear.  You don't share them,
you don't hang them on your monitor or under your keyboard,
you don't email them, or put them on a web site,
and you must change them very often.


More information about the freebsd-stable mailing list