Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to build libthr except other components of 'world'

0 views
Skip to first unread message

Jiandong Lu

unread,
Nov 16, 2009, 7:55:55 AM11/16/09
to freebsd...@freebsd.org

--- 09年11月16日,周一, Jiandong Lu <lujiand...@yahoo.com.cn> 写道:

发件人: Jiandong Lu <lujiand...@yahoo.com.cn>
主题: how to build libthr except other components of 'world'
收件人: freebsd...@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'
/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__' attribute ignored
/usr/src/lib/libthr/../../include/string.h:101: warning: '__pure__' attribute ignored
/usr/src/lib/libthr/../../include/string.h:104: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__malloc_like'
/usr/src/lib/libthr/../../include/string.h:105:
warning: '__pure__' attribute ignored
/usr/src/lib/libthr/../../include/string.h:108: warning: '__pure__' attribute ignored
/usr/src/lib/libthr/../../include/string.h:110: warning: '__pure__' attribute ignored
/usr/src/lib/libthr/../../include/string.h:111: warning: '__pure__' attribute ignored
/usr/src/lib/libthr/../../include/string.h:118: warning: '__pure__' attribute ignored
/usr/src/lib/libthr/../../include/string.h:119: warning: '__pure__' attribute 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 class specified for parameter '_rtld_allocate_tls'
/usr/src/lib/libthr/../../libexec/rtld-elf/rtld_tls.h:67: error: storage class specified for parameter '_rtld_free_tls'
In file included from
/usr/src/lib/libthr/arch/i386/include/pthread_md.h:36,
                 from /usr/src/lib/libthr/arch/i386/i386/pthread_md.c:36:
/usr/src/lib/libthr/../../include/stddef.h:45: error: storage class specified for parameter 'ptrdiff_t'
/usr/src/lib/libthr/../../include/stddef.h:49: error: storage class specified for parameter 'rune_t'
/usr/src/lib/libthr/../../include/stddef.h:61: error: storage class specified 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 declaration
/usr/src/lib/libthr/arch/i386/include/pthread_md.h:88: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
/usr/src/lib/libthr/arch/i386/include/pthread_md.h:95: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{'
token
/usr/src/lib/libthr/arch/i386/include/pthread_md.h:102: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
/usr/src/lib/libthr/arch/i386/i386/pthread_md.c:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
/usr/src/lib/libthr/arch/i386/i386/pthread_md.c:54: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
/usr/src/lib/libthr/arch/i386/i386/pthread_md.c:57: error: old-style parameter declarations in prototyped function definition
/usr/src/lib/libthr/../../include/string.h:86: error: parameter name omitted
/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.

 


好玩贺卡等你发,邮箱贺卡全新上线!


___________________________________________________________
好玩贺卡等你发,邮箱贺卡全新上线!
http://card.mail.cn.yahoo.com/
_______________________________________________
freebsd...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hacke...@freebsd.org"

Ulrich Spörlein

unread,
Nov 18, 2009, 5:19:21 AM11/18/09
to Jiandong Lu, freebsd...@freebsd.org
On Mon, 16.11.2009 at 20:28:35 +0800, Jiandong Lu wrote:
>
>
> --- 09年11月16日,周一, Jiandong Lu <lujiand...@yahoo.com.cn> 写道:
>
> 发件人: Jiandong Lu <lujiand...@yahoo.com.cn>
> 主题: how to build libthr except other components of 'world'
> 收件人: freebsd...@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

0 new messages