From owner-freebsd-stable@FreeBSD.ORG Thu May 24 09:23:11 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 65E7116A41F for ; Thu, 24 May 2007 09:23:11 +0000 (UTC) (envelope-from karol.kwiat@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by mx1.freebsd.org (Postfix) with ESMTP id E87B013C487 for ; Thu, 24 May 2007 09:23:10 +0000 (UTC) (envelope-from karol.kwiat@gmail.com) Received: by ug-out-1314.google.com with SMTP id k3so842608ugf for ; Thu, 24 May 2007 02:23:09 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject:references:in-reply-to:x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=H78cSKVaTv2nL7NSW1kBSE8G1kZifERZ5e7EgRdVhST6TKCjd+k0N2Jj9d9qPIOr095e5LyBdkpNuHwUqZzpf2Tmz8Yr0c++5UWZCTELRlUsC4B2fpr48PNyne3xxpvo3YdxsmJ3AkJF6NwnZR2CIstAGn4f0Qr7lgsaG4SaYn0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject:references:in-reply-to:x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=AgusCm8QbJWDj5BaKHJYxYpdBCgAw4VgqGEEV+RkoG6KYZwktYSvWyujtA6hAJdc0TPTgiOOzBriOpCODk7yxTulQ9qTCIjUL74f8Xo+B3X1U+UgKdTEc1TN5mepUDfPl0Rz2MXA/vA7nWq5pnzbQghZ4p3ZhKwdQ7pybkQZwew= Received: by 10.67.6.14 with SMTP id j14mr1996829ugi.1179998589806; Thu, 24 May 2007 02:23:09 -0700 (PDT) Received: from persephone.orchid.homeunix.org ( [89.78.30.138]) by mx.google.com with ESMTP id 54sm5509382ugp.2007.05.24.02.23.07; Thu, 24 May 2007 02:23:07 -0700 (PDT) Message-ID: <46555979.2040802@gmail.com> Date: Thu, 24 May 2007 11:23:05 +0200 From: Karol Kwiatkowski User-Agent: Thunderbird 2.0.0.0 (X11/20070523) MIME-Version: 1.0 To: Artem Kuchin References: <009601c79d81$4e791a90$05000100@Artem> <20070523232903.GA23904@localhost.localdomain> <010501c79dc9$07deae90$05000100@Artem> <465541F1.2090905@gmail.com> <017c01c79de2$1733a9e0$05000100@Artem> In-Reply-To: <017c01c79de2$1733a9e0$05000100@Artem> X-Enigmail-Version: 0.95.0 OpenPGP: id=06E09309; url=http://www.orchid.homeunix.org/carlos/gpg/0x06E09309.asc Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org, Stanislaw Halik Subject: Re: Broken locale after upgrade to 6-STABEL from 5-STABLE X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: karol.kwiat@gmail.com List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 May 2007 09:23:11 -0000 -----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 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-----