bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ebuild error for gdb


From: Paul
Subject: Re: Ebuild error for gdb
Date: Sun, 7 Apr 2002 03:31:01 -0400

Dave Lee <address@hidden>, on Sat Apr 06, 2002 [04:08:34 PM] said:
> 
> gdb fails with the same error for me.  Here is what make spits out
> 
> gcc -c -march=i686 -O3 -pipe    -I. -I. -I./config -DHAVE_CONFIG_H 
> -I./../include/opcode -I./../readline/.. -I../bfd -I./../bfd  -I./../include 
> -I../intl -I./../intl  -DMI_OUT=1 -DUI_OUT=1 -Wimplicit -Wreturn-type 
> -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wuninitialized  
> utils.c
> In file included from /usr/include/curses.h:111,
>                  from utils.c:30:
> /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include/stdbool.h:9: conflicting
> types for `false'
> ../bfd/bfd.h:102: previous declaration of `false'
> /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include/stdbool.h:11: conflicting
> types for `true'
> ../bfd/bfd.h:102: previous declaration of `true'

        Hi;

        In /usr/include/curses.h, we see this mess:

#if (!defined(__cplusplus) || !1) && (!0)

#if 1   <----change me
#include <stdbool.h>
#endif

#undef bool

#if 1
#define bool NCURSES_BOOL
#else
typedef unsigned char bool;
#endif

#endif /* !__cplusplus, etc. */


        Change the '#if 1' at line 110 to '#if 0', and you can
merge gdb. I dont know what the right fix is; in gdb, bfd/bfd.h
has an enum that conflicts with the enum in stdbool.h (defining
'true' and 'false')
        Either curses.h needs to be smarter, or bfd-in.h needs
tuning.... ????

Paul
address@hidden

ps. if you change this to get gdb to merge, change it back, as I
have no idea how it would affect other things that want to use
curses...



reply via email to

[Prev in Thread] Current Thread [Next in Thread]