From owner-freebsd-questions@FreeBSD.ORG Sun Jun 8 13:52:41 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AD33010656AE for ; Sun, 8 Jun 2008 13:52:41 +0000 (UTC) (envelope-from unga888@yahoo.com) Received: from web57009.mail.re3.yahoo.com (web57009.mail.re3.yahoo.com [66.196.97.113]) by mx1.freebsd.org (Postfix) with SMTP id 3EFA08FC25 for ; Sun, 8 Jun 2008 13:52:41 +0000 (UTC) (envelope-from unga888@yahoo.com) Received: (qmail 33757 invoked by uid 60001); 8 Jun 2008 13:52:40 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Message-ID; b=obK7AgHGQQAT3OCin3yp9raA5pnehi2/rORXIOOCrnuupyxj7DfTNpytw8K2PzZawqwCnjhlCMwb2t7+w6RdvrZzgVojznJOTnIiha4cg1IYqD4dP/bfaNwQ96RD/OOnMJi9GioOf1weim74d+zOIE4fnN/yDxZFk2vNoTg3j44=; Received: from [165.21.155.75] by web57009.mail.re3.yahoo.com via HTTP; Sun, 08 Jun 2008 06:52:40 PDT X-Mailer: YahooMailWebService/0.7.199 Date: Sun, 8 Jun 2008 06:52:40 -0700 (PDT) From: Unga To: Kris Kennaway In-Reply-To: <484BB669.7080502@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <520110.33662.qm@web57009.mail.re3.yahoo.com> Cc: Wojciech Puchar , freebsd-questions@freebsd.org Subject: Re: What consists FreeBSD Libc? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: unga888@yahoo.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jun 2008 13:52:42 -0000 --- On Sun, 6/8/08, Kris Kennaway wrote: > From: Kris Kennaway > Subject: Re: What consists FreeBSD Libc? > To: unga888@yahoo.com > Cc: freebsd-questions@freebsd.org > Date: Sunday, June 8, 2008, 6:37 PM > Unga wrote: > > Hi all > > > > What consists FreeBSD Libc (/lib/libc.so.7)? Is it > only /usr/src/lib/libc/* ? > > Yes. > > > I have compiled /usr/src/lib/libc/*, the resulting > libc.so.7 is about 65,000 bytes smaller. > > Than what? It will change depending on your CFLAGS. > Thanks Kris & Wojciech for replies. Its great to get it confirmed that FreeBSD Libc is only /usr/src/lib/libc/* as I presumed. I have compiled and installed the FreeBSD Libc into a temp directory. The size of /tmp/libc.so.7 is about 65,000 bytes smaller than /lib/libc.so.7. The /lib/libc.so.7 is dated May 25, 2008. I did not touch CFLAGS or anything other than DESTDIR. But I really forgot, the gcc version is different. The /lib/libc.so.7 is by gcc 4.2.1, but the /tmp/libc.so.7 is by gcc 4.3.0. May be the code generation of the latest gcc may be better. I think the size difference may not be an issue as the libc is get it compiled and installed without any error. The GNU glibc has a "make check", but there is no make check target for FreeBSD libc. How do you guys test it? Is the /usr/src/tools/regression/ any help for that? Regards Unga