[prev in list] [next in list] [prev in thread] [next in thread] 

List:       uclinux-dev
Subject:    [uClinux-dev] Re: Compiler Error in user/gdb Tree
From:       "Wilfried Busalski" <w.busalski () lancier-monitoring ! de>
Date:       2009-11-11 14:52:16
Message-ID: hdej32$jjg$1 () ger ! gmane ! org
[Download RAW message or body]

Hi Dan

thanks for your responds
It looks good..

Regards
Wilfried.

"Dan Snyder" <Dan.Snyder@trilliantinc.com> schrieb im Newsbeitrag 
news:8FBEB8ACDE3D6C4D80DD3E64A9712B4C0483B16D2F@Mail1.trilliant.local...
You need to enable pthreads debugging support in your uClibc configuration.

Change to your uClibc directory and "make menuconfig".  In "General Library 
Settings" enable pthreads debugging support.  Change back to your 
uClinux-dist directory and make clean && make.

- Dan


-----Original Message-----
From: uclinux-dev-bounces@uclinux.org 
[mailto:uclinux-dev-bounces@uclinux.org] On Behalf Of Wilfried Busalski
Sent: Tuesday, November 10, 2009 2:44 AM
To: uclinux-dev@uclinux.org
Subject: [uClinux-dev] Compiler Error in user/gdb Tree

Hi

I need a little help. If I compile the uClinux-dist 0090618 with patch
20090810 I got the  errors below.
What is the reason?
What can I do ?

=======================================================================================
ucfront-gcc
m68k-uclinux-gcc -m5307 -DCONFIG_COLDFIRE -c -Wall -Os -g -fomit-frame-pointer
 -pipe -fno-common -fno-builtin -Wall   -DEMBED -msep-data -Dlinux -D__linux__
 -Dunix -D__uClinux__    -I. -I../gdb/gdbserver -I../gdb/gdbserver/../regformats
 -I../gdb/gdbserver/../../include -I../../bfd -I../gdb/gdbserver/../../bfd
../gdb/gdbserver/thread-db.c
../gdb/gdbserver/thread-db.c:43: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
../gdb/gdbserver/thread-db.c:46: warning: type defaults to 'int' in
declaration of 'td_thrhandle_t'
../gdb/gdbserver/thread-db.c:46: error: expected ';', ',' or ')' before '*'
token
../gdb/gdbserver/thread-db.c:49: error: expected ')' before 'err'
../gdb/gdbserver/thread-db.c: In function 'thread_db_create_event':
../gdb/gdbserver/thread-db.c:137: error: 'td_event_msg_t' undeclared (first
use in this function)
../gdb/gdbserver/thread-db.c:137: error: (Each undeclared identifier is
reported only once
../gdb/gdbserver/thread-db.c:137: error: for each function it appears in.)
../gdb/gdbserver/thread-db.c:137: error: expected ';' before 'msg'
../gdb/gdbserver/thread-db.c:138: error: 'td_err_e' undeclared (first use in
this function)
../gdb/gdbserver/thread-db.c:138: error: expected ';' before 'err'
../gdb/gdbserver/thread-db.c:148: error: 'err' undeclared (first use in this
function)
../gdb/gdbserver/thread-db.c:148: warning: implicit declaration of function
'td_ta_event_getmsg'
../gdb/gdbserver/thread-db.c:148: error: 'thread_agent' undeclared (first
use in this function)
../gdb/gdbserver/thread-db.c:148: error: 'msg' undeclared (first use in this
function)
../gdb/gdbserver/thread-db.c:149: error: 'TD_OK' undeclared (first use in
this function)
../gdb/gdbserver/thread-db.c:151: warning: implicit declaration of function
'thread_db_err_str'
../gdb/gdbserver/thread-db.c:162: warning: implicit declaration of function
'find_new_threads_callback'
../gdb/gdbserver/thread-db.c: In function 'thread_db_enable_reporting':
../gdb/gdbserver/thread-db.c:181: error: 'td_thr_events_t' undeclared (first
use in this function)
../gdb/gdbserver/thread-db.c:181: error: expected ';' before 'events'
../gdb/gdbserver/thread-db.c:182: error: 'td_notify_t' undeclared (first use
in this function)
../gdb/gdbserver/thread-db.c:182: error: expected ';' before 'notify'
../gdb/gdbserver/thread-db.c:183: error: 'td_err_e' undeclared (first use in
this function)
../gdb/gdbserver/thread-db.c:183: error: expected ';' before 'err'
../gdb/gdbserver/thread-db.c:186: warning: implicit declaration of function
'td_event_emptyset'
../gdb/gdbserver/thread-db.c:186: error: 'events' undeclared (first use in
this function)
../gdb/gdbserver/thread-db.c:187: warning: implicit declaration of function
'td_event_addset'
../gdb/gdbserver/thread-db.c:187: error: 'TD_CREATE' undeclared (first use
in this function)
../gdb/gdbserver/thread-db.c:195: error: 'err' undeclared (first use in this
function)
../gdb/gdbserver/thread-db.c:195: warning: implicit declaration of function
'td_ta_set_event'
../gdb/gdbserver/thread-db.c:195: error: 'thread_agent' undeclared (first
use in this function)
../gdb/gdbserver/thread-db.c:196: error: 'TD_OK' undeclared (first use in
this function)
../gdb/gdbserver/thread-db.c:199: warning: format '%s' expects type 'char
*', but argument 2 has type 'int'
../gdb/gdbserver/thread-db.c:204: warning: implicit declaration of function
'td_ta_event_addr'
../gdb/gdbserver/thread-db.c:204: error: 'notify' undeclared (first use in
this function)
../gdb/gdbserver/thread-db.c:208: warning: format '%s' expects type 'char
*', but argument 2 has type 'int'
../gdb/gdbserver/thread-db.c: In function 'find_one_thread':
../gdb/gdbserver/thread-db.c:236: error: 'td_thrhandle_t' undeclared (first
use in this function)
../gdb/gdbserver/thread-db.c:236: error: expected ';' before 'th'
../gdb/gdbserver/thread-db.c:237: error: 'td_thrinfo_t' undeclared (first
use in this function)
../gdb/gdbserver/thread-db.c:237: error: expected ';' before 'ti'
../gdb/gdbserver/thread-db.c:238: error: 'td_err_e' undeclared (first use in
this function)
../gdb/gdbserver/thread-db.c:238: error: expected ';' before 'err'
../gdb/gdbserver/thread-db.c:248: error: 'err' undeclared (first use in this
function)
../gdb/gdbserver/thread-db.c:248: warning: implicit declaration of function
'td_ta_map_lwp2thr'
../gdb/gdbserver/thread-db.c:248: error: 'thread_agent' undeclared (first
use in this function)
../gdb/gdbserver/thread-db.c:248: error: 'th' undeclared (first use in this
function)
../gdb/gdbserver/thread-db.c:249: error: 'TD_OK' undeclared (first use in
this function)
../gdb/gdbserver/thread-db.c:251: warning: format '%s' expects type 'char
*', but argument 3 has type 'int'
../gdb/gdbserver/thread-db.c:253: warning: implicit declaration of function
'td_thr_get_info'
../gdb/gdbserver/thread-db.c:253: error: 'ti' undeclared (first use in this
function)
../gdb/gdbserver/thread-db.c:256: warning: format '%s' expects type 'char
*', but argument 3 has type 'int'
../gdb/gdbserver/thread-db.c:271: warning: implicit declaration of function
'td_thr_event_enable'
../gdb/gdbserver/thread-db.c:274: warning: format '%s' expects type 'char
*', but argument 3 has type 'int'
../gdb/gdbserver/thread-db.c:284: error: 'struct process_info' has no member
named 'th'
../gdb/gdbserver/thread-db.c: At top level:
../gdb/gdbserver/thread-db.c:290: warning: type defaults to 'int' in
declaration of 'td_thrhandle_t'
../gdb/gdbserver/thread-db.c:290: error: expected ';', ',' or ')' before '*'
token
../gdb/gdbserver/thread-db.c:330: warning: type defaults to 'int' in
declaration of 'td_thrhandle_t'
../gdb/gdbserver/thread-db.c:330: error: expected ';', ',' or ')' before '*'
token
../gdb/gdbserver/thread-db.c: In function 'thread_db_find_new_threads':
../gdb/gdbserver/thread-db.c:351: error: 'td_err_e' undeclared (first use in
this function)
../gdb/gdbserver/thread-db.c:351: error: expected ';' before 'err'
../gdb/gdbserver/thread-db.c:360: error: 'err' undeclared (first use in this
function)
../gdb/gdbserver/thread-db.c:360: warning: implicit declaration of function
'td_ta_thr_iter'
../gdb/gdbserver/thread-db.c:360: error: 'thread_agent' undeclared (first
use in this function)
../gdb/gdbserver/thread-db.c:360: error: 'find_new_threads_callback'
undeclared (first use in this function)
../gdb/gdbserver/thread-db.c:361: error: 'TD_THR_ANY_STATE' undeclared
(first use in this function)
../gdb/gdbserver/thread-db.c:361: error: 'TD_THR_LOWEST_PRIORITY' undeclared
(first use in this function)
../gdb/gdbserver/thread-db.c:362: error: 'TD_SIGNO_MASK' undeclared (first
use in this function)
../gdb/gdbserver/thread-db.c:362: error: 'TD_THR_ANY_USER_FLAGS' undeclared
(first use in this function)
../gdb/gdbserver/thread-db.c:363: error: 'TD_OK' undeclared (first use in
this function)
../gdb/gdbserver/thread-db.c:364: warning: format '%s' expects type 'char
*', but argument 2 has type 'int'
../gdb/gdbserver/thread-db.c: In function 'thread_db_look_up_symbols':
../gdb/gdbserver/thread-db.c:375: warning: implicit declaration of function
'td_symbol_list'
../gdb/gdbserver/thread-db.c:375: warning: initialization makes pointer from
integer without a cast
../gdb/gdbserver/thread-db.c:378: warning: assignment makes pointer from
integer without a cast
../gdb/gdbserver/thread-db.c: In function 'thread_db_get_tls_address':
../gdb/gdbserver/thread-db.c:388: error: 'td_err_e' undeclared (first use in
this function)
../gdb/gdbserver/thread-db.c:388: error: expected ';' before 'err'
../gdb/gdbserver/thread-db.c:395: error: 'TD_NOTHR' undeclared (first use in
this function)
../gdb/gdbserver/thread-db.c:400: error: 'err' undeclared (first use in this
function)
../gdb/gdbserver/thread-db.c:400: warning: implicit declaration of function
'td_thr_tls_get_addr'
../gdb/gdbserver/thread-db.c:400: error: 'struct process_info' has no member
named 'th'
../gdb/gdbserver/thread-db.c:402: error: 'TD_OK' undeclared (first use in
this function)
../gdb/gdbserver/thread-db.c: In function 'thread_db_init':
../gdb/gdbserver/thread-db.c:436: warning: implicit declaration of function
'td_ta_new'
../gdb/gdbserver/thread-db.c:436: error: 'thread_agent' undeclared (first
use in this function)
../gdb/gdbserver/thread-db.c:439: error: 'TD_NOLIBTHREAD' undeclared (first
use in this function)
../gdb/gdbserver/thread-db.c:443: error: 'TD_OK' undeclared (first use in
this function)
../gdb/gdbserver/thread-db.c:455: warning: format '%s' expects type 'char
*', but argument 2 has type 'int'
make[4]: *** [thread-db.o] Fehler 1

============================================================================

Regards

Wilfried



_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev



_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic