From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 18 10:18:29 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AE356106566B for ; Wed, 18 Nov 2009 10:18:29 +0000 (UTC) (envelope-from uqs@spoerlein.net) Received: from acme.spoerlein.net (cl-43.dus-01.de.sixxs.net [IPv6:2a01:198:200:2a::2]) by mx1.freebsd.org (Postfix) with ESMTP id 276028FC13 for ; Wed, 18 Nov 2009 10:18:28 +0000 (UTC) Received: from acme.spoerlein.net (localhost.spoerlein.net [IPv6:::1]) by acme.spoerlein.net (8.14.3/8.14.3) with ESMTP id nAIAISuA079449 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 18 Nov 2009 11:18:28 +0100 (CET) (envelope-from uqs@spoerlein.net) Received: (from uqs@localhost) by acme.spoerlein.net (8.14.3/8.14.3/Submit) id nAIAISbd079448; Wed, 18 Nov 2009 11:18:28 +0100 (CET) (envelope-from uqs@spoerlein.net) Date: Wed, 18 Nov 2009 11:18:28 +0100 From: Ulrich =?utf-8?B?U3DDtnJsZWlu?= To: Jiandong Lu Message-ID: <20091118101827.GJ20980@acme.spoerlein.net> Mail-Followup-To: Jiandong Lu , freebsd-hackers@freebsd.org References: <900874.43629.qm@web15707.mail.cnb.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <900874.43629.qm@web15707.mail.cnb.yahoo.com> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-hackers@freebsd.org Subject: Re: how to build libthr except other components of 'world' X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Nov 2009 10:18:29 -0000 On Mon, 16.11.2009 at 20:28:35 +0800, Jiandong Lu wrote: > > > --- 09年11月16日,周一, Jiandong Lu 写道: > > 发件人: Jiandong Lu > 主题: how to build libthr except other components of 'world' > 收件人: freebsd-threads@freebsd.org > 日期: 2009年11月16日,周一,下午6:48 > > Hi,everyone, >     I checkout FreeBSD‘s source codes to my /usr/src >     I use command >     make buildworld >     int directory /usr/src to build a world.I want to do some debug to lib /usr/src/lib/libthr.If I modified some files in /usr/src/lib/libthr/thread, how could I build libthr except other components of world? >    btw,I execute command >    make >    in /usr/src/lib/libthr get this : > cc -O2 -fno-strict-aliasing -pipe  -DPTHREAD_KERNEL -I/usr/src/lib/libthr/../libc/include -I/usr/src/lib/libthr/thread  -I/usr/src/lib/libthr/../../include -I/usr/src/lib/libthr/arch/i386/include -I/usr/src/lib/libthr/sys -I/usr/src/lib/libthr/../../libexec/rtld-elf -I/usr/src/lib/libthr/../../libexec/rtld-elf/i386 -I/usr/src/lib/libthr/../libthread_db > -Winline -D_PTHREADS_INVARIANTS -DSYSCALL_COMPAT -Wsystem-headers -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -c /usr/src/lib/libthr/arch/i386/i386/pthread_md.c > In file included from /usr/src/lib/libthr/arch/i386/i386/pthread_md.c:33: > /usr/src/lib/libthr/../../include/string.h:86: warning: no previous prototype for 'strdup' I have no strdup calls anywhere in libthr. If you have added this call, you need to make sure the right headers are included. Otherwise, this can be used to build only libthr and works fine on my system: cd /usr/src/lib/libthr make obj && make depend make Regards, Uli