From owner-freebsd-stable@FreeBSD.ORG Thu May 24 09:56:36 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 B1AF216A41F for ; Thu, 24 May 2007 09:56:36 +0000 (UTC) (envelope-from matrix@itlegion.ru) Received: from corpmail.itlegion.ru (corpmail.itlegion.ru [84.21.226.211]) by mx1.freebsd.org (Postfix) with SMTP id F2DE713C448 for ; Thu, 24 May 2007 09:56:35 +0000 (UTC) (envelope-from matrix@itlegion.ru) Received: (qmail 13246 invoked from network); 24 May 2007 13:56:34 +0400 Received: from unknown (HELO Artem) (192.168.0.12) by 84.21.226.211 with SMTP; 24 May 2007 13:56:34 +0400 X-AntiVirus: Checked by Dr.Web [version: 4.33, engine: 4.33.5.10110, virus records: 203259, updated: 24.05.2007] Message-ID: <019701c79de9$cf188560$05000100@Artem> From: "Artem Kuchin" To: References: <009601c79d81$4e791a90$05000100@Artem> <20070523232903.GA23904@localhost.localdomain><010501c79dc9$07deae90$05000100@Artem> <465541F1.2090905@gmail.com><017c01c79de2$1733a9e0$05000100@Artem> <46555979.2040802@gmail.com> Date: Thu, 24 May 2007 13:56:30 +0400 Organization: IT Legion MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 Cc: Stanislaw Halik , freebsd-stable@freebsd.org 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 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:56:36 -0000 Karol Kwiatkowski wrote: > -----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) > Oh, hell... I just realized that i need to rebuild EVERYTHING in EVERY jail after this upgrade from 5 to 6. Even if something seem to work it does not mean it will not fail in some rare case. Still, does not explain why freshly compile locale test in C does not work. Weird. -- Regards, Artem