GDB configure problem

Joel Sherrill <joel@OARcorp.com> joel.sherrill at OARcorp.com
Fri Oct 29 11:18:07 UTC 2004


Xuemei Zhao wrote:
> Hi, joel. Thanks a lot for your reply.
> My host system is solaris 2.9 on sparc.
> Two definitions of struct bcache are in /usr/include/sys/stream.h:330 
> and /gdb5.2/gdb/bcache.h:93
> How can I solve this problem?

Two ideas -- try gdb 5.3 or comment out the offending definition in gdb.

I've had to do this before on cygwin.

--joel

> Thanks again.
> 
> At 06:27 AM 28/10/2004 -0500, you wrote:
> 
>> Xuemei Zhao wrote:
>>
>>> Hi,
>>>    I am trying to build GNU tools,
>>>    Can I set the parameter --prefix=/home/multiproc/rtems, instead of 
>>> --prefix=/opt/rtems?
>>>    I met the following error when I configured GDB 5.2. Before that, 
>>> I have succeeded to build gcc and binutil.
>>
>>
>> Changing the prefix is perfectly OK and should have absolutely nothing 
>> to do with this problem.
>>
>> What host are you on?
>>
>> Where are the two definitions of struct bcache?
>>
>>> gmake[1]: Entering directory `/home/multiproc/tools/b-gdb/gdb'
>>> gcc -c -g -O2  -I/usr/include/v9  -I. -I../../gdb-5.2/gdb 
>>> -I../../gdb-5.2/gdb/config -DHAVE_CONFIG_H 
>>> -I../../gdb-5.2/gdb/../include/opcode 
>>> -I../../gdb-5.2/gdb/../readline/.. -I../bfd 
>>> -I../../gdb-5.2/gdb/../bfd  -I../../gdb-5.2/gdb/../include -I../intl 
>>> -I../../gdb-5.2/gdb/../intl  -DMI_OUT=1 -DUI_OUT=1 -Wimplicit 
>>> -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses 
>>> -Wpointer-arith -Wuninitialized  ../../gdb-5.2/gdb/ser-unix.c
>>> In file included from /usr/include/netinet/in.h:41,
>>>                  from /usr/include/sys/socket.h:203,
>>>                  from ../../gdb-5.2/gdb/ser-unix.c:29:
>>> /usr/include/sys/stream.h:330: redefinition of `struct bcache'
>>> gmake[1]: *** [ser-unix.o] Error 1
>>> gmake[1]: Leaving directory `/home/multiproc/tools/b-gdb/gdb'
>>> gmake: *** [all-gdb] Error 2
>>>     what's the problem? How can I solve it?
>>>     Any idea?
>>>     Thanka a lot.
>>> May
>>
>>
>>
>> -- 
>> Joel Sherrill, Ph.D.             Director of Research & Development
>> joel at OARcorp.com                 On-Line Applications Research
>> Ask me about RTEMS: a free RTOS  Huntsville AL 35805
>>    Support Available             (256) 722-9985
> 
> 
> Xuemei Zhao
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> School of Informatics and Engineering
> Engineering Building
> Flinders University,
> Adelaide 5042, S.A.
> Australia.
> 
> Home Phone:    (08) 8291 6361
> Office Phone:    (08) 8201 5158
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 


-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel at OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
    Support Available             (256) 722-9985




More information about the users mailing list