public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] Re: Ebuild error for gdb
       [not found] ` <Pine.SGI.4.21.0204061605120.16201145-100000@the-gimp>
@ 2002-04-07  7:31   ` Paul
  2002-04-07 15:32     ` Spider
  0 siblings, 1 reply; 5+ messages in thread
From: Paul @ 2002-04-07  7:31 UTC (permalink / raw
  To: gentoo-user; +Cc: gentoo-dev, bug-binutils

Dave Lee <davel@canuck.com>, 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
set@pobox.com

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...


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-dev] Re: Ebuild error for gdb
  2002-04-07  7:31   ` [gentoo-dev] Re: Ebuild error for gdb Paul
@ 2002-04-07 15:32     ` Spider
  2002-04-07 21:24       ` [gentoo-dev] " Paul
  0 siblings, 1 reply; 5+ messages in thread
From: Spider @ 2002-04-07 15:32 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 2194 bytes --]

SO -thats- what it is.
Agh, this bug appears in ncurses snapshot as of recently, it wasn't
there in the main 5.2 release of ncurses. someone feel like fixing this?

//Spider

begin  quote
On Sun, 7 Apr 2002 03:31:01 -0400
Paul <set@pobox.com> wrote:

> Dave Lee <davel@canuck.com>, 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/stdboo
> > l.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
> set@pobox.com
> 
> 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...
> _______________________________________________
> gentoo-dev mailing list
> gentoo-dev@gentoo.org
> http://lists.gentoo.org/mailman/listinfo/gentoo-dev


--
begin  happy99.exe
This is a .signature virus! Please copy me into your .signature!
See Microsoft KB Article Q265230 for more information.
end

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [gentoo-dev] Re: Re: Ebuild error for gdb
  2002-04-07 15:32     ` Spider
@ 2002-04-07 21:24       ` Paul
  2002-04-08  1:52         ` Dave Lee
  0 siblings, 1 reply; 5+ messages in thread
From: Paul @ 2002-04-07 21:24 UTC (permalink / raw
  To: gentoo-dev; +Cc: Spider

Spider <spider@gentoo.org>, on Sun Apr 07, 2002 [05:32:56 PM] said:
> SO -thats- what it is.
> Agh, this bug appears in ncurses snapshot as of recently, it wasn't
> there in the main 5.2 release of ncurses. someone feel like fixing this?
> 
> //Spider
> 
	Hi;

	I just rsync'd and updated to ncurses-5.2-r5, and 
curses.h no longer includes stdbool.h, so it should be fixed.

Paul
set@pobox.com


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-dev] Re: Re: Ebuild error for gdb
  2002-04-07 21:24       ` [gentoo-dev] " Paul
@ 2002-04-08  1:52         ` Dave Lee
  2002-04-08  3:33           ` [gentoo-dev] " Paul
  0 siblings, 1 reply; 5+ messages in thread
From: Dave Lee @ 2002-04-08  1:52 UTC (permalink / raw
  To: gentoo-dev


Paul wrote:
> Spider <spider@gentoo.org>, on Sun Apr 07, 2002 [05:32:56 PM] said:
> > SO -thats- what it is.
> > Agh, this bug appears in ncurses snapshot as of recently, it wasn't
> > there in the main 5.2 release of ncurses. someone feel like fixing this?
> > 
> > //Spider
> > 
> 	Hi;
> 
> 	I just rsync'd and updated to ncurses-5.2-r5, and 
> curses.h no longer includes stdbool.h, so it should be fixed.

so which ncurses package is newer?  5.2-r5 or 5.2.20020112a-r1?  emerge
wants to install 5.2.20020112a-r1



^ permalink raw reply	[flat|nested] 5+ messages in thread

* [gentoo-dev] Re: Ebuild error for gdb
  2002-04-08  1:52         ` Dave Lee
@ 2002-04-08  3:33           ` Paul
  0 siblings, 0 replies; 5+ messages in thread
From: Paul @ 2002-04-08  3:33 UTC (permalink / raw
  To: gentoo-dev

Dave Lee <davel@canuck.com>, on Sun Apr 07, 2002 [07:52:13 PM] said:
> 
> 
> Paul wrote:
> > Spider <spider@gentoo.org>, on Sun Apr 07, 2002 [05:32:56 PM] said:
> > > SO -thats- what it is.
> > > Agh, this bug appears in ncurses snapshot as of recently, it wasn't
> > > there in the main 5.2 release of ncurses. someone feel like fixing this?
> > > 
> > > //Spider
> > > 
> > 	Hi;
> > 
> > 	I just rsync'd and updated to ncurses-5.2-r5, and 
> > curses.h no longer includes stdbool.h, so it should be fixed.
> 
> so which ncurses package is newer?  5.2-r5 or 5.2.20020112a-r1?  emerge
> wants to install 5.2.20020112a-r1
> 

	Hi;

	Hmmm.
	5.2.20020112a-r1 is from april 5, and newer, however, my
profile is 'default-1.0', which has this line in packages:

<sys-libs/ncurses-5.2.20020112a

	'default-1.0_rc6' and other profiles do not have this
restriction, so I guess there may still be troubles for some,
and the real problem may not be fixed.

Paul
set@pobox.com

(if you need gdb to build, do what I said in my last post, or
add the line above to your /etc/make.profile/packages file, 
remerge ncurses, then gdb. Note: this will be overwritten when
you rsync.)


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-04-08  3:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20020406123702.12cda6c9.colonists@mrmarr.com>
     [not found] ` <Pine.SGI.4.21.0204061605120.16201145-100000@the-gimp>
2002-04-07  7:31   ` [gentoo-dev] Re: Ebuild error for gdb Paul
2002-04-07 15:32     ` Spider
2002-04-07 21:24       ` [gentoo-dev] " Paul
2002-04-08  1:52         ` Dave Lee
2002-04-08  3:33           ` [gentoo-dev] " Paul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox