GDB configure problem

Joel Sherrill <joel@OARcorp.com> joel.sherrill at OARcorp.com
Thu Oct 28 11:27:18 UTC 2004


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




More information about the users mailing list