Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 May 2007 11:23:05 +0200
From:      Karol Kwiatkowski <karol.kwiat@gmail.com>
To:        Artem Kuchin <matrix@itlegion.ru>
Cc:        freebsd-stable@freebsd.org, Stanislaw Halik <sthalik@tehran.lain.pl>
Subject:   Re: Broken locale after upgrade to 6-STABEL from 5-STABLE
Message-ID:  <46555979.2040802@gmail.com>
In-Reply-To: <017c01c79de2$1733a9e0$05000100@Artem>
References:  <009601c79d81$4e791a90$05000100@Artem>	<20070523232903.GA23904@localhost.localdomain> <010501c79dc9$07deae90$05000100@Artem> <465541F1.2090905@gmail.com> <017c01c79de2$1733a9e0$05000100@Artem>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Artem Kuchin wrote:
> Karol Kwiatkowski wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA256
>>
>> Artem Kuchin wrote:
>>> Stanislaw Halik wrote:
>>>> On Thu, May 24, 2007, Artem Kuchin wrote:
>>>>> What i don't understand, is how the appropriate 'so'
>>>>> is selected? How freebsd known which so to load
>>>>> this
>>>>> libc.so.5
>>>>> or this
>>>>> libc.so.6
[...snip...]
> 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?

My understanding is, it is hardcoded into the executable during
compilation/linking time. You can check linked libraries with ldd(1)
command:

$ ldd `which perl`
/usr/bin/perl:
        libperl.so => /usr/local/lib/perl5/5.8.8/mach/CORE/libperl.so
(0x2807c000)
        libm.so.5 => /lib/libm.so.5 (0x28192000)
        libcrypt.so.4 => /lib/libcrypt.so.4 (0x281a7000)
        libutil.so.7 => /lib/libutil.so.7 (0x281c0000)
        libc.so.7 => /lib/libc.so.7 (0x281cd000)

HTH,

Karol

- --
Karol Kwiatkowski   <karol.kwiat at gmail dot com>
OpenPGP 0x06E09309
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGVVl5ezeoPAwGIYsRCCnBAJ4ttUXin+lSbiTR65EC4/XkeYa3sgCdH0eC
EMri5q9OKSLQnlPLhhEZ1ug=
=fe7i
-----END PGP SIGNATURE-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46555979.2040802>