This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Failure with include on Sun, Solaris2.9 with G++
- From: Hugh Sasse Staff Elec Eng <hgs at dmu dot ac dot uk>
- To: Binutils list <binutils at sources dot redhat dot com>
- Date: Mon, 29 Mar 2004 17:25:30 +0100 (WEST)
- Subject: Failure with include on Sun, Solaris2.9 with G++
Havng got past my dejagnu problem I have run into this with my
binutils build from cvs.
rm -f .libs/lcd-char-display.lo
g++ -DHAVE_CONFIG_H -I. -I../../../../src/sid/component/lcd -I.. -I. -I../../include -I../../../../src/sid/component/lcd/../../include -g -O2 -Wp,-MD,.deps/lcd-char-display.pp -c -fPIC -DPIC ../../../../src/sid/component/lcd/lcd-char-display.cxx -o .libs/lcd-char-display.lo
In file included from ../../../../src/sid/component/lcd/lcd-char-display.cxx:18:
/usr/include/curses.h:74: error: redeclaration of C++ built-in type `bool'
gmake[5]: *** [lcd-char-display.lo] Error 1
gmake[5]: Leaving directory `/export/home/Scratch/hgs/binutils-cvs/build/sid/component/lcd'
gmake[4]: *** [all-recursive] Error 1
gmake[4]: Leaving directory `/export/home/Scratch/hgs/binutils-cvs/build/sid/component/lcd'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/export/home/Scratch/hgs/binutils-cvs/build/sid/component'
gmake[2]: *** [all-recursive-am] Error 2
gmake[2]: Leaving directory `/export/home/Scratch/hgs/binutils-cvs/build/sid/component'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/export/home/Scratch/hgs/binutils-cvs/build/sid'
gmake: *** [all-sid] Error 2
+ exit 1
The full build is recorded at:
http://www.eng.cse.dmu.ac.uk/~hgs/binutils-cvs-failure.txt
(approx 1.1MB).
The relevant chunk of curses.h is:
70 #define strrchr rindex
71 #endif /* SYSV */
72
73 #if !(defined(__cplusplus) && defined(_BOOL))
74 typedef char bool;
75 #endif
76
77 #define _VR3_COMPAT_CODE
78 /*
79 * chtype is the type used to store a character together with attributes.
80 * It can be set to "char" to save space, or "long" to get more attributes.
When I installed g++ should this not have been fixed up? Do I need
a newer version of something?
Thank you,
Hugh