[gnu.g++] g++ and gdb+

sorensen@hstbme.mit.edu (Gregory Sorensen) (02/24/89)

Two questions:

1.  Has anyone gotten g++ to compile on a Sun4 running os4?

Although I can successfully compile gcc, trying to make g++ chokes on
the file fold-const.c, with the following error messages:

"fold-const.c", line 848: syntax error at or near variable name "d1"
"fold-const.c", line 849: redeclaration of REAL_VALUE_TYPE
"fold-const.c", line 849: syntax error at or near variable name "d2"
"fold-const.c", line 850: redeclaration of REAL_VALUE_TYPE
"fold-const.c", line 850: syntax error at or near variable name "value"
"fold-const.c", line 862: value undefined
"fold-const.c", line 862: d1 undefined
"fold-const.c", line 862: d2 undefined
"fold-const.c", line 893: value undefined
*** Error code 1
make: Fatal error: Command failed for target `fold-const.o'

This is gcc 1.33 and g++ 1.31 with the 1.32 diffs run on it, 
sources directly from prep.ai.mit.edu yesterday or so.

I get the same error messages using cc or gcc. Since fold-const.c was
successfully compiled for gcc 1.33, what am I doing wrong?

2. gdb+ doesn't include a machine description for sun4-os4, while gdb
does.  Should I use sun4-os4 for gdb+ from the gdb distribution?
Has anyone gotten gdb+ running on a sun4 under os4?

Thanks,

Greg Sorensen
sorensen@hstbme.mit.edu  or
sorensen@imager.mit.edu