Subject: libstdc++ does not build
To: None <current-users@netbsd.org>
From: C Kane <ckane@best.com>
List: current-users
Date: 12/03/1998 13:32:19
Hello.

I am having a problem compiling libstdc++ from -current sources
while doing "make build".  The output from make is below.

Thanks for any help...
-- Chuck


all ===> libstdc++
c++ -O2  -Werror   -I/usr/include/g++ -I/usr/netbsd-current/src/gnu/lib/libstdc++/../../dist/libstdc++ -c /usr/netbsd-current/src/gnu/lib/libstdc++/../../dist/libstdc++/stdexcepti.cc
cc1plus: warnings being treated as errors
In file included from /usr/include/g++/iterator.h:24,
                 from /usr/include/g++/iterator:6,
                 from /usr/include/g++/std/bastring.h:44,
                 from /usr/include/g++/std/string.h:6,
                 from /usr/include/g++/string:5,
                 from /usr/include/g++/stdexcept:36,
                 from /usr/netbsd-current/src/gnu/lib/libstdc++/../../dist/libstdc++/stdexcepti.cc:8:
/usr/include/g++/function.h:141: warning: to refer to a type member of a template parameter,
/usr/include/g++/function.h:141: warning:   use `typename Predicate::argument_type'
/usr/include/g++/function.h:157: warning: to refer to a type member of a template parameter,
/usr/include/g++/function.h:157: warning:   use `typename Predicate::first_argument_type'
/usr/include/g++/function.h:157: warning: to refer to a type member of a template parameter,
/usr/include/g++/function.h:157: warning:   use `typename Predicate::second_argument_type'
/usr/include/g++/function.h:175: warning: to refer to a type member of a template parameter,
/usr/include/g++/function.h:175: warning:   use `typename Operation::second_argument_type'
/usr/include/g++/function.h:175: warning: to refer to a type member of a template parameter,
/usr/include/g++/function.h:175: warning:   use `typename Operation::result_type'
/usr/include/g++/function.h:178: syntax error before `;'
/usr/include/g++/function.h:180: syntax error before `&'
/usr/include/g++/function.h:181: missing ';' before right brace
/usr/include/g++/function.h:182: syntax error before `operator'
/usr/include/g++/function.h:182: syntax error before `&'
/usr/include/g++/function.h:182: non-member function `operator ()(...)' cannot have `const' method qualifier
/usr/include/g++/function.h:182: `operator ()(...)' must be a nonstatic member function
/usr/include/g++/function.h: In function `int operator ()(...)':
/usr/include/g++/function.h:183: `value' undeclared (first use this function)
/usr/include/g++/function.h:183: (Each undeclared identifier is reported only once
/usr/include/g++/function.h:183: for each function it appears in.)
/usr/include/g++/function.h:183: `x' undeclared (first use this function)
/usr/include/g++/function.h:183: warning: implicit declaration of function `int op(...)'
/usr/include/g++/function.h: At top level:
/usr/include/g++/function.h:188: semicolon missing after declaration of `class binder1st<Operation>'
/usr/include/g++/function.h:194: warning: to refer to a type member of a template parameter,
/usr/include/g++/function.h:194: warning:   use `typename Operation::first_argument_type'
/usr/include/g++/function.h:194: warning: to refer to a type member of a template parameter,
/usr/include/g++/function.h:194: warning:   use `typename Operation::result_type'
/usr/include/g++/function.h:197: syntax error before `;'
/usr/include/g++/function.h:199: syntax error before `&'
/usr/include/g++/function.h:200: missing ';' before right brace
/usr/include/g++/function.h:201: syntax error before `operator'
/usr/include/g++/function.h:201: syntax error before `&'
/usr/include/g++/function.h:201: non-member function `operator ()(...)' cannot have `const' method qualifier
/usr/include/g++/function.h:201: `operator ()(...)' must be a nonstatic member function
/usr/include/g++/function.h: In function `int operator ()(...)':
/usr/include/g++/function.h:201: redefinition of `int operator ()(...)'
/usr/include/g++/function.h:182: `int operator ()(...)' previously defined here
/usr/include/g++/function.h: In function `int operator ()(...)':
/usr/include/g++/function.h:202: confused by earlier errors, bailing out
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.