All pastes #55417 Raw Edit

Agent86

public text v1 · immutable
#55417 ·published 2006-05-12 17:48 UTC
rendered paste body
if i386-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../..     -O2 -march=k6-2 -pipe -MT calc++-scanner.o -MD -MP -MF ".deps/calc++-scanner.Tpo" -c -o calc++-scanner.o calc++-scanner.cc; \
then mv -f ".deps/calc++-scanner.Tpo" ".deps/calc++-scanner.Po"; else rm -f ".deps/calc++-scanner.Tpo"; exit 1; fi
if i386-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../..     -O2 -march=k6-2 -pipe -MT calc++.o -MD -MP -MF ".deps/calc++.Tpo" -c -o calc++.o `test -f './calc++.cc' || echo './'`./calc++.cc; \
then mv -f ".deps/calc++.Tpo" ".deps/calc++.Po"; else rm -f ".deps/calc++.Tpo"; exit 1; fi
if i386-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../..     -O2 -march=k6-2 -pipe -MT calc++-driver.o -MD -MP -MF ".deps/calc++-driver.Tpo" -c -o calc++-driver.o `test -f './calc++-driver.cc' || echo './'`./calc++-driver.cc; \
then mv -f ".deps/calc++-driver.Tpo" ".deps/calc++-driver.Po"; else rm -f ".deps/calc++-driver.Tpo"; exit 1; fi
if i386-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../..     -O2 -march=k6-2 -pipe -MT calc++-parser.o -MD -MP -MF ".deps/calc++-parser.Tpo" -c -o calc++-parser.o `test -f './calc++-parser.cc' || echo './'`./calc++-parser.cc; \
then mv -f ".deps/calc++-parser.Tpo" ".deps/calc++-parser.Po"; else rm -f ".deps/calc++-parser.Tpo"; exit 1; fi
../../doc/bison.texinfo:7534:20: iostream: No such file or directory
In file included from ../../doc/bison.texinfo:7535:
../../doc/bison.texinfo:7146:19: string: No such file or directory
../../doc/bison.texinfo:7147:16: map: No such file or directory
In file included from ../../doc/bison.texinfo:7535:
../../doc/bison.texinfo:7197: error: using-declaration for non-member at class scope
../../doc/bison.texinfo:7197: error: expected `;' before '<' token
../../doc/bison.texinfo:7221: error: expected unqualified-id before '&' token
../../doc/bison.texinfo:7221: error: expected `,' or `...' before '&' token
../../doc/bison.texinfo:7221: error: ISO C++ forbids declaration of `parameter' with no type
../../doc/bison.texinfo:7222: error: using-declaration for non-member at class scope
../../doc/bison.texinfo:7222: error: expected `;' before "file"
../../doc/bison.texinfo:7235: error: expected unqualified-id before '&' token
../../doc/bison.texinfo:7235: error: expected `,' or `...' before '&' token
../../doc/bison.texinfo:7235: error: ISO C++ forbids declaration of `parameter' with no type
../../doc/bison.texinfo:7236: error: expected unqualified-id before '&' token
../../doc/bison.texinfo:7236: error: expected `,' or `...' before '&' token
../../doc/bison.texinfo:7236: error: ISO C++ forbids declaration of `parameter' with no type
../../doc/bison.texinfo: In function `int main(int, char**)':
../../doc/bison.texinfo:7542: error: `string' is not a member of `std'
../../doc/bison.texinfo:7544: error: `string' is not a member of `std'
../../doc/bison.texinfo:7548: error: invalid conversion from `char*' to `int'
../../doc/bison.texinfo:7548: error:   initializing argument 1 of `void calcxx_driver::parse(int)'
../../doc/bison.texinfo:7549: error: `cout' is not a member of `std'
../../doc/bison.texinfo:7549: error: `endl' is not a member of `std'
make[4]: *** [calc++.o] Error 1
make[4]: *** Waiting for unfinished jobs....
In file included from ../../doc/bison.texinfo:7248:
../../doc/bison.texinfo:7146:19: string: No such file or directory
../../doc/bison.texinfo:7147:16: map: No such file or directory
In file included from ../../doc/bison.texinfo:7248:
../../doc/bison.texinfo:7197: error: using-declaration for non-member at class scope
../../doc/bison.texinfo:7197: error: expected `;' before '<' token
../../doc/bison.texinfo:7221: error: expected unqualified-id before '&' token
../../doc/bison.texinfo:7221: error: expected `,' or `...' before '&' token
../../doc/bison.texinfo:7221: error: ISO C++ forbids declaration of `parameter' with no type
../../doc/bison.texinfo:7222: error: using-declaration for non-member at class scope
../../doc/bison.texinfo:7222: error: expected `;' before "file"
../../doc/bison.texinfo:7235: error: expected unqualified-id before '&' token
../../doc/bison.texinfo:7235: error: expected `,' or `...' before '&' token
../../doc/bison.texinfo:7235: error: ISO C++ forbids declaration of `parameter' with no type
../../doc/bison.texinfo:7236: error: expected unqualified-id before '&' token
../../doc/bison.texinfo:7236: error: expected `,' or `...' before '&' token
../../doc/bison.texinfo:7236: error: ISO C++ forbids declaration of `parameter' with no type
In file included from ../../doc/bison.texinfo:7249:
./calc++-parser.hh:26:20: iostream: No such file or directory
In file included from ./calc++-parser.hh:56,
                 from ../../doc/bison.texinfo:7249:
./stack.hh:24:17: deque: No such file or directory
In file included from ./calc++-parser.hh:56,
                 from ../../doc/bison.texinfo:7249:
./stack.hh:28: error: `std::deque' has not been declared
./stack.hh:28: error: expected `>' before '<' token
./stack.hh:28: error: expected unqualified-id before '>' token
./stack.hh:90: error: `stack' has not been declared
./stack.hh:90: error: expected `>' before '<' token
./stack.hh:90: error: expected unqualified-id before '>' token
In file included from ./location.hh:31,
                 from ./calc++-parser.hh:57,
                 from ../../doc/bison.texinfo:7249:
./position.hh:80: error: using-declaration for non-member at class scope
./position.hh:80: error: expected `;' before '*' token
./position.hh: In constructor `yy::position::position()':
./position.hh:48: error: class `yy::position' does not have any field named `filename'
./position.hh: At global scope:
./position.hh:121: error: expected initializer before '&' token
In file included from ./calc++-parser.hh:57,
                 from ../../doc/bison.texinfo:7249:
./location.hh:110: error: expected initializer before '&' token
In file included from ../../doc/bison.texinfo:7249:
./calc++-parser.yy:7353: error: using-declaration for non-member at class scope
./calc++-parser.yy:7353: error: expected `;' before '*' token
./calc++-parser.hh:168: error: using-declaration for non-member at class scope
./calc++-parser.hh:168: error: expected `;' before '&' token
./calc++-parser.hh:170: error: `std::ostream' has not been declared
./calc++-parser.hh:170: error: ISO C++ forbids declaration of `parameter' with no type
./calc++-parser.hh:183: error: expected unqualified-id before '&' token
./calc++-parser.hh:183: error: expected `,' or `...' before '&' token
./calc++-parser.hh:183: error: ISO C++ forbids declaration of `parameter' with no type
./calc++-parser.hh:187: error: ISO C++ forbids declaration of `string' with no type
./calc++-parser.hh:187: error: invalid use of `::'
./calc++-parser.hh:187: error: `string' declared as a `virtual' field
./calc++-parser.hh:187: error: expected `;' before "yysyntax_error_"
./calc++-parser.hh:203: error: ISO C++ forbids declaration of `stack' with no type
./calc++-parser.hh:203: error: expected `;' before '<' token
./calc++-parser.hh:205: error: ISO C++ forbids declaration of `stack' with no type
./calc++-parser.hh:205: error: expected `;' before '<' token
./calc++-parser.hh:207: error: ISO C++ forbids declaration of `stack' with no type
./calc++-parser.hh:207: error: expected `;' before '<' token
./calc++-parser.hh:210: error: `state_stack_type' does not name a type
./calc++-parser.hh:212: error: `semantic_stack_type' does not name a type
./calc++-parser.hh:214: error: `location_stack_type' does not name a type
./calc++-parser.hh:256: error: ISO C++ forbids declaration of `string' with no type
./calc++-parser.hh:256: error: invalid use of `::'
./calc++-parser.hh:256: error: `string' declared as a `virtual' field
./calc++-parser.hh:256: error: expected `;' before "yytnamerr_"
./calc++-parser.hh:316: error: using-declaration for non-member at class scope
./calc++-parser.hh:316: error: expected `;' before '*' token
./calc++-parser.hh: In constructor `yy::calcxx_parser::calcxx_parser(calcxx_driver&)':
./calc++-parser.hh:154: error: class `yy::calcxx_parser' does not have any field named `yycdebug_'
./calc++-parser.hh:154: error: `cerr' is not a member of `std'
../../doc/bison.texinfo: In constructor `calcxx_driver::calcxx_driver()':
../../doc/bison.texinfo:7254: error: `variables' was not declared in this scope
../../doc/bison.texinfo: At global scope:
../../doc/bison.texinfo:7263: error: expected unqualified-id before '&' token
../../doc/bison.texinfo:7263: error: expected `,' or `...' before '&' token
../../doc/bison.texinfo:7264: error: ISO C++ forbids declaration of `parameter' with no type
../../doc/bison.texinfo: In member function `void calcxx_driver::parse(int)':
../../doc/bison.texinfo:7265: error: `file' was not declared in this scope
../../doc/bison.texinfo:7265: error: `f' was not declared in this scope
../../doc/bison.texinfo: At global scope:
../../doc/bison.texinfo:7274: error: expected unqualified-id before '&' token
../../doc/bison.texinfo:7274: error: expected `,' or `...' before '&' token
../../doc/bison.texinfo:7275: error: ISO C++ forbids declaration of `parameter' with no type
../../doc/bison.texinfo: In member function `void calcxx_driver::error(const yy::location&, int)':
../../doc/bison.texinfo:7276: error: `cerr' is not a member of `std'
../../doc/bison.texinfo:7276: error: `m' was not declared in this scope
../../doc/bison.texinfo:7276: error: `endl' is not a member of `std'
../../doc/bison.texinfo: At global scope:
../../doc/bison.texinfo:7280: error: expected unqualified-id before '&' token
../../doc/bison.texinfo:7280: error: expected `,' or `...' before '&' token
../../doc/bison.texinfo:7281: error: ISO C++ forbids declaration of `parameter' with no type
../../doc/bison.texinfo: In member function `void calcxx_driver::error(int)':
../../doc/bison.texinfo:7282: error: `cerr' is not a member of `std'
../../doc/bison.texinfo:7282: error: `m' was not declared in this scope
../../doc/bison.texinfo:7282: error: `endl' is not a member of `std'
In file included from ./calc++-parser.cc:22:
././calc++-parser.hh:25:18: string: No such file or directory
././calc++-parser.hh:26:20: iostream: No such file or directory
In file included from ../../doc/bison.texinfo:7301,
                 from ./calc++-parser.cc:22:
../../doc/bison.texinfo:7147:16: map: No such file or directory
In file included from ../../doc/bison.texinfo:7301,
                 from ./calc++-parser.cc:22:
../../doc/bison.texinfo:7197: error: using-declaration for non-member at class scope
../../doc/bison.texinfo:7197: error: expected `;' before '<' token
../../doc/bison.texinfo:7221: error: expected unqualified-id before '&' token
../../doc/bison.texinfo:7221: error: expected `,' or `...' before '&' token
../../doc/bison.texinfo:7221: error: ISO C++ forbids declaration of `parameter' with no type
../../doc/bison.texinfo:7222: error: using-declaration for non-member at class scope
../../doc/bison.texinfo:7222: error: expected `;' before "file"
../../doc/bison.texinfo:7235: error: expected unqualified-id before '&' token
../../doc/bison.texinfo:7235: error: expected `,' or `...' before '&' token
../../doc/bison.texinfo:7235: error: ISO C++ forbids declaration of `parameter' with no type
../../doc/bison.texinfo:7236: error: expected unqualified-id before '&' token
../../doc/bison.texinfo:7236: error: expected `,' or `...' before '&' token
../../doc/bison.texinfo:7236: error: ISO C++ forbids declaration of `parameter' with no type
In file included from ./calc++-parser.hh:56,
                 from ./calc++-parser.cc:22:
././stack.hh:24:17: deque: No such file or directory
In file included from ./calc++-parser.hh:56,
                 from ./calc++-parser.cc:22:
././stack.hh:28: error: `std::deque' has not been declared
././stack.hh:28: error: expected `>' before '<' token
././stack.hh:28: error: expected unqualified-id before '>' token
././stack.hh:90: error: `stack' has not been declared
././stack.hh:90: error: expected `>' before '<' token
././stack.hh:90: error: expected unqualified-id before '>' token
In file included from ././location.hh:31,
                 from ./calc++-parser.hh:57,
                 from ./calc++-parser.cc:22:
././position.hh:80: error: using-declaration for non-member at class scope
././position.hh:80: error: expected `;' before '*' token
././position.hh: In constructor `yy::position::position()':
././position.hh:48: error: class `yy::position' does not have any field named `filename'
././position.hh: At global scope:
././position.hh:121: error: expected initializer before '&' token
In file included from ./calc++-parser.hh:57,
                 from ./calc++-parser.cc:22:
././location.hh:110: error: expected initializer before '&' token
In file included from ./calc++-parser.cc:22:
./calc++-parser.yy:7353: error: using-declaration for non-member at class scope
./calc++-parser.yy:7353: error: expected `;' before '*' token
./calc++-parser.hh:168: error: using-declaration for non-member at class scope
./calc++-parser.hh:168: error: expected `;' before '&' token
./calc++-parser.hh:170: error: `std::ostream' has not been declared
./calc++-parser.hh:170: error: ISO C++ forbids declaration of `parameter' with no type
./calc++-parser.hh:183: error: expected unqualified-id before '&' token
./calc++-parser.hh:183: error: expected `,' or `...' before '&' token
./calc++-parser.hh:183: error: ISO C++ forbids declaration of `parameter' with no type
./calc++-parser.hh:187: error: ISO C++ forbids declaration of `string' with no type
./calc++-parser.hh:187: error: invalid use of `::'
./calc++-parser.hh:187: error: `string' declared as a `virtual' field
./calc++-parser.hh:187: error: expected `;' before "yysyntax_error_"
./calc++-parser.hh:203: error: ISO C++ forbids declaration of `stack' with no type
./calc++-parser.hh:203: error: expected `;' before '<' token
./calc++-parser.hh:205: error: ISO C++ forbids declaration of `stack' with no type
./calc++-parser.hh:205: error: expected `;' before '<' token
./calc++-parser.hh:207: error: ISO C++ forbids declaration of `stack' with no type
./calc++-parser.hh:207: error: expected `;' before '<' token
./calc++-parser.hh:210: error: `state_stack_type' does not name a type
./calc++-parser.hh:212: error: `semantic_stack_type' does not name a type
./calc++-parser.hh:214: error: `location_stack_type' does not name a type
./calc++-parser.hh:256: error: ISO C++ forbids declaration of `string' with no type
./calc++-parser.hh:256: error: invalid use of `::'
./calc++-parser.hh:256: error: `string' declared as a `virtual' field
./calc++-parser.hh:256: error: expected `;' before "yytnamerr_"
./calc++-parser.hh:316: error: using-declaration for non-member at class scope
./calc++-parser.hh:316: error: expected `;' before '*' token
./calc++-parser.hh: In constructor `yy::calcxx_parser::calcxx_parser(calcxx_driver&)':
./calc++-parser.hh:154: error: class `yy::calcxx_parser' does not have any field named `yycdebug_'
./calc++-parser.hh:154: error: `cerr' is not a member of `std'
./calc++-parser.cc: At global scope:
./calc++-parser.cc:86: error: expected constructor, destructor, or type conversion before "yy"
./calc++-parser.cc: In member function `virtual void yy::calcxx_parser::yysymprint_(int, const YYSTYPE*, const yy::location*)':
./calc++-parser.cc:132: error: `ostream' is not a member of `std'
./calc++-parser.cc:132: error: `cdebug_' was not declared in this scope
./calc++-parser.cc:132: error: `yycdebug_' was not declared in this scope
../../doc/bison.texinfo:7379: error: `debug_stream' was not declared in this scope
../../doc/bison.texinfo:7379: error: 'const union YYSTYPE' has no member named 'sval'
../../doc/bison.texinfo:7382: error: `debug_stream' was not declared in this scope
../../doc/bison.texinfo:7382: error: `debug_stream' was not declared in this scope
./calc++-parser.cc: In member function `void yy::calcxx_parser::yydestruct_(const char*, int, YYSTYPE*, yy::location*)':
./calc++-parser.cc:171: error: `yycdebug_' was not declared in this scope
./calc++-parser.cc:171: error: `endl' is not a member of `std'
../../doc/bison.texinfo:7380: error: 'union YYSTYPE' has no member named 'sval'
./calc++-parser.cc: In member function `void yy::calcxx_parser::yypop_(unsigned int)':
./calc++-parser.cc:189: error: `yystate_stack_' was not declared in this scope
./calc++-parser.cc:190: error: `yysemantic_stack_' was not declared in this scope
./calc++-parser.cc:191: error: `yylocation_stack_' was not declared in this scope
./calc++-parser.cc: At global scope:
./calc++-parser.cc:194: error: expected constructor, destructor, or type conversion before '&' token
./calc++-parser.cc:201: error: variable or field `set_debug_stream' declared void
./calc++-parser.cc:201: error: `int yy::calcxx_parser::set_debug_stream' is not a static member of `class yy::calcxx_parser'
./calc++-parser.cc:201: error: `ostream' is not a member of `std'
./calc++-parser.cc:201: error: `o' was not declared in this scope
./calc++-parser.cc:202: error: expected `,' or `;' before '{' token
./calc++-parser.cc: In member function `virtual int yy::calcxx_parser::parse()':
./calc++-parser.cc:241: error: `yycdebug_' was not declared in this scope
./calc++-parser.cc:241: error: `endl' is not a member of `std'
../../doc/bison.texinfo:7329: error: 'class yy::position' has no member named 'filename'
../../doc/bison.texinfo:7329: error: 'class yy::position' has no member named 'filename'
../../doc/bison.texinfo:7329: error: 'class calcxx_driver' has no member named 'file'
./calc++-parser.cc:263: error: `yystate_stack_' was not declared in this scope
./calc++-parser.cc:263: error: `state_stack_type' was not declared in this scope
./calc++-parser.cc:264: error: `yysemantic_stack_' was not declared in this scope
./calc++-parser.cc:264: error: `semantic_stack_type' was not declared in this scope
./calc++-parser.cc:265: error: `yylocation_stack_' was not declared in this scope
./calc++-parser.cc:265: error: `location_stack_type' was not declared in this scope
./calc++-parser.cc:272: error: `yycdebug_' was not declared in this scope
./calc++-parser.cc:272: error: `endl' is not a member of `std'
./calc++-parser.cc:286: error: `yycdebug_' was not declared in this scope
./calc++-parser.cc:295: error: `yycdebug_' was not declared in this scope
./calc++-parser.cc:295: error: `endl' is not a member of `std'
./calc++-parser.cc:300: error: `yycdebug_' was not declared in this scope
./calc++-parser.cc:300: error: `endl' is not a member of `std'
./calc++-parser.cc:329: error: `yycdebug_' was not declared in this scope
./calc++-parser.cc:329: error: `endl' is not a member of `std'
./calc++-parser.cc:372: error: `slice' was not declared in this scope
./calc++-parser.cc:372: error: expected primary-expression before ',' token
../../doc/bison.texinfo:7397: error: 'class calcxx_driver' has no member named 'variables'
../../doc/bison.texinfo:7405: error: 'class calcxx_driver' has no member named 'variables'
./calc++-parser.cc:460: error: `yysyntax_error_' was not declared in this scope
./calc++-parser.cc:547: error: `yycdebug_' was not declared in this scope
make[4]: *** [calc++-driver.o] Error 1
./calc++-scanner.ll:2:20: cstdlib: No such file or directory
./calc++-scanner.ll:5:19: string: No such file or directory
In file included from ./calc++-scanner.ll:6:
../../doc/bison.texinfo:7147:16: map: No such file or directory
In file included from ./calc++-scanner.ll:6:
../../doc/bison.texinfo:7197: error: using-declaration for non-member at class scope
../../doc/bison.texinfo:7197: error: expected `;' before '<' token
../../doc/bison.texinfo:7221: error: expected unqualified-id before '&' token
../../doc/bison.texinfo:7221: error: expected `,' or `...' before '&' token
../../doc/bison.texinfo:7221: error: ISO C++ forbids declaration of `parameter' with no type
../../doc/bison.texinfo:7222: error: using-declaration for non-member at class scope
../../doc/bison.texinfo:7222: error: expected `;' before "file"
../../doc/bison.texinfo:7235: error: expected unqualified-id before '&' token
../../doc/bison.texinfo:7235: error: expected `,' or `...' before '&' token
../../doc/bison.texinfo:7235: error: ISO C++ forbids declaration of `parameter' with no type
../../doc/bison.texinfo:7236: error: expected unqualified-id before '&' token
../../doc/bison.texinfo:7236: error: expected `,' or `...' before '&' token
../../doc/bison.texinfo:7236: error: ISO C++ forbids declaration of `parameter' with no type
In file included from ./calc++-scanner.ll:7:
calc++-parser.hh:26:20: iostream: No such file or directory
In file included from ./calc++-parser.hh:56,
                 from ./calc++-scanner.ll:7:
stack.hh:24:17: deque: No such file or directory
In file included from ./calc++-parser.hh:56,
                 from ./calc++-scanner.ll:7:
stack.hh:28: error: `std::deque' has not been declared
stack.hh:28: error: expected `>' before '<' token
stack.hh:28: error: expected unqualified-id before '>' token
stack.hh:90: error: `stack' has not been declared
stack.hh:90: error: expected `>' before '<' token
stack.hh:90: error: expected unqualified-id before '>' token
In file included from location.hh:31,
                 from ./calc++-parser.hh:57,
                 from ./calc++-scanner.ll:7:
position.hh:80: error: using-declaration for non-member at class scope
position.hh:80: error: expected `;' before '*' token
position.hh: In constructor `yy::position::position()':
position.hh:48: error: class `yy::position' does not have any field named `filename'
position.hh: At global scope:
position.hh:121: error: expected initializer before '&' token
In file included from ./calc++-parser.hh:57,
                 from ./calc++-scanner.ll:7:
location.hh:110: error: expected initializer before '&' token
In file included from ./calc++-scanner.ll:7:
./calc++-parser.yy:7353: error: using-declaration for non-member at class scope
./calc++-parser.yy:7353: error: expected `;' before '*' token
./calc++-parser.hh:168: error: using-declaration for non-member at class scope
./calc++-parser.hh:168: error: expected `;' before '&' token
./calc++-parser.hh:170: error: `std::ostream' has not been declared
./calc++-parser.hh:170: error: ISO C++ forbids declaration of `parameter' with no type
./calc++-parser.cc:547: error: `endl' is not a member of `std'
./calc++-parser.cc: At global scope:
./calc++-parser.cc:581: error: expected constructor, destructor, or type conversion before "yy"
./calc++-parser.cc: In member function `virtual void yy::calcxx_parser::yystack_print_()':
./calc++-parser.cc:761: error: `yycdebug_' was not declared in this scope
./calc++-parser.cc:762: error: `state_stack_type' has not been declared
./calc++-parser.cc:762: error: `const_iterator' was not declared in this scope
./calc++-parser.cc:762: error: expected `;' before "i"
./calc++-parser.cc:763: error: `i' was not declared in this scope
./calc++-parser.cc:763: error: `yystate_stack_' was not declared in this scope
./calc++-parser.cc:765: error: `endl' is not a member of `std'
./calc++-parser.cc: In member function `virtual void yy::calcxx_parser::yyreduce_print_(int)':
./calc++-parser.cc:774: error: `yycdebug_' was not declared in this scope
./calc++-parser.cc:779: error: `endl' is not a member of `std'
../../doc/bison.texinfo: At global scope:
../../doc/bison.texinfo:7418: error: expected unqualified-id before '&' token
../../doc/bison.texinfo:7418: error: expected `,' or `...' before '&' token
../../doc/bison.texinfo:7419: error: ISO C++ forbids declaration of `parameter' with no type
../../doc/bison.texinfo: In member function `virtual void yy::calcxx_parser::error(const yy::location&, int)':
../../doc/bison.texinfo:7420: error: `m' was not declared in this scope
./calc++-parser.hh:183: error: expected unqualified-id before '&' token
./calc++-parser.hh:183: error: expected `,' or `...' before '&' token
./calc++-parser.hh:183: error: ISO C++ forbids declaration of `parameter' with no type
./calc++-parser.hh:187: error: ISO C++ forbids declaration of `string' with no type
./calc++-parser.hh:187: error: invalid use of `::'
./calc++-parser.hh:187: error: `string' declared as a `virtual' field
./calc++-parser.hh:187: error: expected `;' before "yysyntax_error_"
./calc++-parser.hh:203: error: ISO C++ forbids declaration of `stack' with no type
./calc++-parser.hh:203: error: expected `;' before '<' token
./calc++-parser.hh:205: error: ISO C++ forbids declaration of `stack' with no type
./calc++-parser.hh:205: error: expected `;' before '<' token
./calc++-parser.hh:207: error: ISO C++ forbids declaration of `stack' with no type
./calc++-parser.hh:207: error: expected `;' before '<' token
./calc++-parser.hh:210: error: `state_stack_type' does not name a type
./calc++-parser.hh:212: error: `semantic_stack_type' does not name a type
./calc++-parser.hh:214: error: `location_stack_type' does not name a type
./calc++-parser.hh:256: error: ISO C++ forbids declaration of `string' with no type
./calc++-parser.hh:256: error: invalid use of `::'
./calc++-parser.hh:256: error: `string' declared as a `virtual' field
./calc++-parser.hh:256: error: expected `;' before "yytnamerr_"
./calc++-parser.hh:316: error: using-declaration for non-member at class scope
./calc++-parser.hh:316: error: expected `;' before '*' token
./calc++-parser.hh: In constructor `yy::calcxx_parser::calcxx_parser(calcxx_driver&)':
./calc++-parser.hh:154: error: class `yy::calcxx_parser' does not have any field named `yycdebug_'
./calc++-parser.hh:154: error: `cerr' is not a member of `std'
make[4]: *** [calc++-parser.o] Error 1
./calc++-scanner.ll: In function `int yylex(YYSTYPE*, yy::location*, calcxx_driver&)':
./calc++-scanner.ll:32: error: invalid conversion from `const char*' to `int'
./calc++-scanner.ll:32: error:   initializing argument 2 of `void calcxx_driver::error(const yy::location&, int)'
./calc++-scanner.ll:36: error: 'union YYSTYPE' has no member named 'sval'
./calc++-scanner.ll:36: error: `std::string' has not been declared
./calc++-scanner.ll:37: error: invalid conversion from `const char*' to `int'
./calc++-scanner.ll:37: error:   initializing argument 2 of `void calcxx_driver::error(const yy::location&, int)'
./calc++-scanner.ll: In member function `void calcxx_driver::scan_begin()':
./calc++-scanner.ll:45: error: `file' was not declared in this scope
./calc++-scanner.ll:46: error: `string' is not a member of `std'
make[4]: *** [calc++-scanner.o] Error 1
make[4]: Leaving directory `/var/tmp/portage/bison-2.1/work/bison-2.1/examples/calc++'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/var/tmp/portage/bison-2.1/work/bison-2.1/examples/calc++'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/bison-2.1/work/bison-2.1/examples'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/bison-2.1/work/bison-2.1'
make: *** [all] Error 2

!!! ERROR: sys-devel/bison-2.1 failed.
Call stack:
  ebuild.sh, line 1527:   Called dyn_compile
  ebuild.sh, line 930:   Called src_compile
  bison-2.1.ebuild, line 35:   Called die