From owner-freebsd-threads@FreeBSD.ORG Mon Nov 16 11:15:15 2009 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4FFC81065693 for ; Mon, 16 Nov 2009 11:15:15 +0000 (UTC) (envelope-from lujiandong1001@yahoo.com.cn) Received: from web15707.mail.cnb.yahoo.com (web15707.mail.cnb.yahoo.com [202.165.102.74]) by mx1.freebsd.org (Postfix) with SMTP id 6B0178FC22 for ; Mon, 16 Nov 2009 11:15:14 +0000 (UTC) Received: (qmail 96247 invoked by uid 60001); 16 Nov 2009 10:48:31 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.cn; s=s1024; t=1258368511; bh=WMUGvH9ZoP6BqivJiDybTH02dvoM0N3gEWWTllFUepc=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=rKOIQrub+gYwG4v71P9xHtSwlDDftTKheF/q0Pfz7YSDYqH57rjAcV8HePH7gAmXeDlev453l7OZcNIHWF1bgnQVuvgRYovlh5Voivt2vYl5Roe+rKBfeZMLu1C6dgN9n+AgXC0wwicuzffwKYVHHarXdagXyHDuBbZH0J9MDZ0= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.cn; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=cPibdZMLg2NXd+850v+S13oP+UnNNZEA/vDuxOugs0DQxsSWixqMD0KZpmK/dQGZsUfDZXfH/+Du6/ZeLnvZyQGIfMvRMZU+WUpxqkbelLxqbsgPksP9pYvnJwHGtC1rAajyNJUTOH324xwROFwd5rm3+JfNKw8zeY9Ai96LIa0=; Message-ID: <885642.96228.qm@web15707.mail.cnb.yahoo.com> X-YMail-OSG: ltVF44QVM1kdNnIje8zum5Zl2yeULf6jJx9VRRqW4CcV7DZGaaolsiGkgYAepysNT41UrrTC04atBf6gznYo_EWM.k6N_wtix4FuMhbcbdvbT.gsIv2LL_cRSScC78S7Lmt6S8bSzwrMWDEElntrfVyPZ9KU5BeCrVi39zaBm_u9.2NCth2ryzshLLjHZTHTy1HN0UUfInwapo.PFyulCP0RO71yzuxhsFFvjHmnonQH8pCkGEuUPBg79fgpJxQ- Received: from [218.241.83.19] by web15707.mail.cnb.yahoo.com via HTTP; Mon, 16 Nov 2009 18:48:31 CST X-Mailer: YahooMailClassic/8.1.6 YahooMailWebService/0.7.361.4 Date: Mon, 16 Nov 2009 18:48:31 +0800 (CST) From: Jiandong Lu To: freebsd-threads@freebsd.org MIME-Version: 1.0 X-Mailman-Approved-At: Mon, 16 Nov 2009 12:28:51 +0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: how to build libthr except other components of 'world' X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Nov 2009 11:15:15 -0000 Hi,everyone, =C2=A0=C2=A0=C2=A0 I checkout FreeBSD=E2=80=98s source codes to my /usr/src =C2=A0=C2=A0=C2=A0 I use command=20 =C2=A0=C2=A0=C2=A0 make buildworld=20 =C2=A0=C2=A0=C2=A0 int directory /usr/src to build a world.I want to do som= e 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? =C2=A0=C2=A0 btw,I execute command=20 =C2=A0=C2=A0 make =C2=A0=C2=A0 in /usr/src/lib/libthr get this : cc -O2 -fno-strict-aliasing -pipe=C2=A0 -DPTHREAD_KERNEL -I/usr/src/lib/lib= thr/../libc/include -I/usr/src/lib/libthr/thread=C2=A0 -I/usr/src/lib/libth= r/../../include -I/usr/src/lib/libthr/arch/i386/include -I/usr/src/lib/libt= hr/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-y= 2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpoin= ter-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 prototy= pe for 'strdup' /usr/src/lib/libthr/../../include/string.h: In function 'strdup': /usr/src/lib/libthr/../../include/string.h:86: error: expected declaration = specifiers before '__malloc_like' /usr/src/lib/libthr/../../include/string.h:96: warning: '__pure__' attribut= e ignored /usr/src/lib/libthr/../../include/string.h:101: warning: '__pure__' attribu= te ignored /usr/src/lib/libthr/../../include/string.h:104: error: expected '=3D', ',',= ';', 'asm' or '__attribute__' before '__malloc_like' /usr/src/lib/libthr/../../include/string.h:105: warning: '__pure__' attribu= te ignored /usr/src/lib/libthr/../../include/string.h:108: warning: '__pure__' attribu= te ignored /usr/src/lib/libthr/../../include/string.h:110: warning: '__pure__' attribu= te ignored /usr/src/lib/libthr/../../include/string.h:111: warning: '__pure__' attribu= te ignored /usr/src/lib/libthr/../../include/string.h:118: warning: '__pure__' attribu= te ignored /usr/src/lib/libthr/../../include/string.h:119: warning: '__pure__' attribu= te ignored In file included from /usr/src/lib/libthr/arch/i386/i386/pthread_md.c:34: /usr/src/lib/libthr/../../libexec/rtld-elf/rtld_tls.h:60: error: storage cl= ass specified for parameter '_rtld_allocate_tls' /usr/src/lib/libthr/../../libexec/rtld-elf/rtld_tls.h:67: error: storage cl= ass specified for parameter '_rtld_free_tls' In file included from /usr/src/lib/libthr/arch/i386/include/pthread_md.h:36= , =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 from /usr/src/lib/libthr/arch/i386/i386/pthread_md.c:= 36: /usr/src/lib/libthr/../../include/stddef.h:45: error: storage class specifi= ed for parameter 'ptrdiff_t' /usr/src/lib/libthr/../../include/stddef.h:49: error: storage class specifi= ed for parameter 'rune_t' /usr/src/lib/libthr/../../include/stddef.h:61: error: storage class specifi= ed for parameter 'wchar_t' In file included from /usr/src/lib/libthr/arch/i386/i386/pthread_md.c:36: /usr/src/lib/libthr/arch/i386/include/pthread_md.h:52: warning: empty decla= ration /usr/src/lib/libthr/arch/i386/include/pthread_md.h:88: error: expected '=3D= ', ',', ';', 'asm' or '__attribute__' before '{' token /usr/src/lib/libthr/arch/i386/include/pthread_md.h:95: error: expected '=3D= ', ',', ';', 'asm' or '__attribute__' before '{' token /usr/src/lib/libthr/arch/i386/include/pthread_md.h:102: error: expected '= =3D', ',', ';', 'asm' or '__attribute__' before '{' token /usr/src/lib/libthr/arch/i386/i386/pthread_md.c:40: error: expected '=3D', = ',', ';', 'asm' or '__attribute__' before '{' token /usr/src/lib/libthr/arch/i386/i386/pthread_md.c:54: error: expected '=3D', = ',', ';', 'asm' or '__attribute__' before '{' token /usr/src/lib/libthr/arch/i386/i386/pthread_md.c:57: error: old-style parame= ter declarations in prototyped function definition /usr/src/lib/libthr/../../include/string.h:86: error: parameter name omitte= d /usr/src/lib/libthr/arch/i386/i386/pthread_md.c:57: error: expected '{' at = end of input *** Error code 1 Stop in /usr/src/lib/libthr. ---------------------------------- thanks. =C2=A0=20 =0A=0A=0A ___________________________________________________________ = =0A =E5=A5=BD=E7=8E=A9=E8=B4=BA=E5=8D=A1=E7=AD=89=E4=BD=A0=E5=8F=91=EF=BC= =8C=E9=82=AE=E7=AE=B1=E8=B4=BA=E5=8D=A1=E5=85=A8=E6=96=B0=E4=B8=8A=E7=BA=BF= =EF=BC=81 =0Ahttp://card.mail.cn.yahoo.com/