GDB will not compile when ncurses-2.5.20020112a.ebuild is installed. This ncurses package is listed as the latest version, and as such is upgraded when executing a 'emerge --world update', but I have a feeling that gdb-2.5.2-r5 is actually the latest version (seeing that it WORKS), someone just got the naming convention wrong or something.
here's a little more detail: ncurses-5.2-r5 works for gdb-5.1 however when using the funky debian ncurses (ncurses-5.2.20020112a) gdb breaks, I believe that the debian ncurses fixed another bug, but unfortunately breaking gdb is kinda rude ;-) --==cut here==-- 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' --==cut here==--
yes, this ncurses is bogus. Install the most recent 5.2 version and you'll be ok. I'll remove this bogus version from cvs. You should also know that world updates are fairly broken as well and we've already ripped the world update code out of 1.8.9 Portage and it's pending a reimplementation.