Gentoo Archives: gentoo-dev

From: Paul <set@×××××.com>
To: gentoo-user@g.o
Cc: gentoo-dev@g.o, bug-binutils@×××.org
Subject: [gentoo-dev] Re: Ebuild error for gdb
Date: Sun, 07 Apr 2002 01:28:21
Message-Id: 20020407033101.I3603@squish.home.loc
1 Dave Lee <davel@××××××.com>, on Sat Apr 06, 2002 [04:08:34 PM] said:
2 >
3 > gdb fails with the same error for me. Here is what make spits out
4 >
5 > 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
6 > In file included from /usr/include/curses.h:111,
7 > from utils.c:30:
8 > /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include/stdbool.h:9: conflicting
9 > types for `false'
10 > ../bfd/bfd.h:102: previous declaration of `false'
11 > /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include/stdbool.h:11: conflicting
12 > types for `true'
13 > ../bfd/bfd.h:102: previous declaration of `true'
14
15 Hi;
16
17 In /usr/include/curses.h, we see this mess:
18
19 #if (!defined(__cplusplus) || !1) && (!0)
20
21 #if 1 <----change me
22 #include <stdbool.h>
23 #endif
24
25 #undef bool
26
27 #if 1
28 #define bool NCURSES_BOOL
29 #else
30 typedef unsigned char bool;
31 #endif
32
33 #endif /* !__cplusplus, etc. */
34
35
36 Change the '#if 1' at line 110 to '#if 0', and you can
37 merge gdb. I dont know what the right fix is; in gdb, bfd/bfd.h
38 has an enum that conflicts with the enum in stdbool.h (defining
39 'true' and 'false')
40 Either curses.h needs to be smarter, or bfd-in.h needs
41 tuning.... ????
42
43 Paul
44 set@×××××.com
45
46 ps. if you change this to get gdb to merge, change it back, as I
47 have no idea how it would affect other things that want to use
48 curses...

Replies

Subject Author
Re: [gentoo-dev] Re: Ebuild error for gdb Spider <spider@g.o>