Date: Mon, 16 Nov 2009 20:28:35 +0800 (CST) From: Jiandong Lu <lujiandong1001@yahoo.com.cn> To: freebsd-hackers@freebsd.org Subject: how to build libthr except other components of 'world' Message-ID: <900874.43629.qm@web15707.mail.cnb.yahoo.com>
next in thread | raw e-mail | index | archive | help
--- 09=E5=B9=B411=E6=9C=8816=E6=97=A5=EF=BC=8C=E5=91=A8=E4=B8=80, Jiandong = Lu <lujiandong1001@yahoo.com.cn> =E5=86=99=E9=81=93=EF=BC=9A =E5=8F=91=E4=BB=B6=E4=BA=BA: Jiandong Lu <lujiandong1001@yahoo.com.cn> =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/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?900874.43629.qm>