From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 16 12:55:19 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 D0A9E1065672 for ; Mon, 16 Nov 2009 12:55:19 +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 B3C4A8FC0C for ; Mon, 16 Nov 2009 12:55:18 +0000 (UTC) Received: (qmail 44017 invoked by uid 60001); 16 Nov 2009 12:28:35 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.cn; s=s1024; t=1258374515; bh=M6op+hCeI35i5JP8MCDESfBmdsPe2IPpymbw1hpxE5I=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=pTWJwu/c+NyozBH4NxqjBpMGC8m/bzySxSZHMYnCe4gnsr+qxa1BOvchVHn2gjqcZHinr7rMvlQBrDLEhIY8NGS0CPRboV0gMFQCzUnG6+sEKncnofAfhdqQo4NYzTEFA0RrryZM7fUPpaoXoqS7hmPjU7p8r/9gFB1oqtfHIeg= 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=41w5f57Y1AVLNDqfcYw2DA5oMIoUJ+NEvmKXIE6ADtCOsZZ4823w+u5BaCDWGnkZCxpTL5DNc6beBPzBh2vaO9WO7htpxTPAcjddTulltoXOgbZlFW5J82SlTmuuAVmTeBXz02NDkG0OoxxmbidJSlG88sfU1l4KHeZeiNhWypM=; Message-ID: <900874.43629.qm@web15707.mail.cnb.yahoo.com> X-YMail-OSG: 4W2zqkEVM1mQO6VQih3PUOT6BqqQuvcjL4Fv.NWPEFEtXw5lFR3Kf7p2FCDu5mh2bGvnIxbGUBfAiiZcix2YU5YPh4WiiVjvR2Owo.YS2j6_k.zSzTzKNXlPvBB.eooynPCGwrQ9XbyGXHcYKD3CTyABD2v6qPpK0DU_6leeAo9ry4C6lo9N.7hGdGfEBabU_6U4Ra9B_4k6rv43DHDevUMLpWgf_pZ7zkQuv2FKlS1aPHyXeYogV8y17HLTLhc- Received: from [218.241.83.19] by web15707.mail.cnb.yahoo.com via HTTP; Mon, 16 Nov 2009 20:28:35 CST X-Mailer: YahooMailClassic/8.1.6 YahooMailWebService/0.7.361.4 Date: Mon, 16 Nov 2009 20:28:35 +0800 (CST) From: Jiandong Lu To: freebsd-hackers@freebsd.org MIME-Version: 1.0 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-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: Mon, 16 Nov 2009 12:55:19 -0000 --- 09=E5=B9=B411=E6=9C=8816=E6=97=A5=EF=BC=8C=E5=91=A8=E4=B8=80, Jiandong = Lu =E5=86=99=E9=81=93=EF=BC=9A =E5=8F=91=E4=BB=B6=E4=BA=BA: Jiandong Lu =E4=B8=BB=E9=A2=98: how to build libthr except other components of 'world' =E6=94=B6=E4=BB=B6=E4=BA=BA: freebsd-threads@freebsd.org =E6=97=A5=E6=9C=9F: 2009=E5=B9=B411=E6=9C=8816=E6=97=A5,=E5=91=A8=E4=B8=80,= =E4=B8=8B=E5=8D=886:48 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=0A -Winlin= e -D_PTHREADS_INVARIANTS -DSYSCALL_COMPAT -Wsystem-headers -Wall -Wno-forma= t-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wp= ointer-arith -Wno-uninitialized -Wno-pointer-sign -c /usr/src/lib/libthr/ar= ch/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:=0A warning: '__pure__' attr= ibute 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=0A /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 '{'=0A 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 =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=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/