Hi. I have the following problem compiling boost 1.36 libraries. Some files fail to compile with the following error:
...failed sun.compile.c++ bin.v2/libs/math/build/sun/debug/link-static/cyl_bessel_il.o...
sun.compile.c++ bin.v2/libs/math/build/sun/debug/link-static/cyl_bessel_jl.o
"./boost/array.hpp", line 75: Error: Too few arguments for template std::reverse_iterator<boost::T*>.
"./boost/array.hpp", line 289: Where: While specializing "boost::array<boost::T, boost::N>".
"./boost/array.hpp", line 289: Where: Specialized in non-template code.
"./boost/array.hpp", line 76: Error: Too few arguments for template std::reverse_iterator<const boost::T*>.
"./boost/array.hpp", line 289: Where: While specializing "boost::array<boost::T, boost::N>".
"./boost/array.hpp", line 289: Where: Specialized in non-template code.
2 Error(s) detected.
Some with this error:
"libs/program_options/src/options_description.cpp", line 341: Error: Could not find a match for std::count<std::InputIterator, std::T, std::Size>(char*, char*, char) needed in::format_paragraph(std::ostream &, std::string, unsigned, unsigned).
"libs/program_options/src/options_description.cpp", line 391: Error: Could not find a match for std::distance<std::ForwardIterator, std::Distance>(const char*, const char*const) needed in::format_paragraph(std::ostream &, std::string, unsigned, unsigned).
"{code}
Some with this error:
{code}...failed sun.compile.c++ bin.v2/libs/wave/build/sun/debug/link-static/cpplexer/re2clex/aq.o...
sun.compile.c++ bin.v2/libs/wave/build/sun/debug/link-static/cpplexer/re2clex/cpp_re.o
"./boost/wave/util/flex_string.hpp", line 119: Error: Templates can only declare classes or functions.
"./boost/wave/util/flex_string.hpp", line 122: Error: "," expected instead of "!=".
"./boost/wave/util/flex_string.hpp", line 122: Error: A declaration was expected instead of "--".
"./boost/wave/util/flex_string.hpp", line 122: Error: Multiple declaration for n.
"./boost/wave/util/flex_string.hpp", line 122: Error: Use ";" to terminate declarations.
"./boost/wave/util/flex_string.hpp", line 122: Error: A declaration was expected instead of "++".
"./boost/wave/util/flex_string.hpp", line 122: Error: Use ";" to terminate declarations.
"./boost/wave/util/flex_string.hpp", line 122: Error: A declaration was expected instead of "++".
"./boost/wave/util/flex_string.hpp", line 122: Error: "," expected instead of ")".
"./boost/wave/util/flex_string.hpp", line 126: Error: A declaration was expected instead of "return".
"./boost/wave/util/flex_string.hpp", line 2473: Error: A declaration was expected instead of "}".
"./boost/wave/util/flex_string.hpp", line 2474: Error: A declaration was expected instead of "}".
"./boost/wave/token_ids.hpp", line 328: Error: flex_string is not a member of boost::wave::util.
"./boost/wave/token_ids.hpp", line 328: Error: A declaration does not specify a tag or an identifier.
"./boost/wave/token_ids.hpp", line 328: Error: Use ";" to terminate declarations.
"./boost/wave/token_ids.hpp", line 328: Error: A declaration was expected instead of "<"./boost/wave/token_ids.hpp", line 328: Error: A declaration does not specify a tag or an identifier.
"./boost/wave/token_ids.hpp", line 328: Error: Use ";" to terminate declarations.
"./boost/wave/token_ids.hpp", line 328: Error: A declaration was expected instead of ",".
"./boost/wave/token_ids.hpp", line 328: Warning: declarator required in declaration.
"./boost/wave/token_ids.hpp", line 328: Error: Use ";" to terminate declarations.
"./boost/wave/token_ids.hpp", line 328: Error: A declaration was expected instead of ",".
"./boost/wave/token_ids.hpp", line 328: Warning: declarator required in declaration.
"./boost/wave/token_ids.hpp", line 328: Error: Use ";" to terminate declarations.
"./boost/wave/token_ids.hpp", line 328: Error: A declaration was expected instead of ",".
"./boost/wave/token_ids.hpp", line 328: Error: CowString is not a member of boost::wave::util.
"./boost/wave/token_ids.hpp", line 328: Error: A declaration does not specify a tag or an identifier.
I am building using the following command:
./tools/jam/src/bin.solaris/bjam -sICU_PATH=/usr
build-type=complete toolset=sun
prefix=/home/gimenero/fuentes/libs/boost/boost_1_36_0 stdlib=sun-stlport
instruction-set=v9 address-model=64 install
My conf. is:
gimenero@tst-bill1 ~$ uname -a
SunOS tst-bill1 5.10 Generic_120011-14 sun4u sparc SUNW,SPARC-Enterprise
gimenero@tst-bill1 ~$ CC -V
CC: Sun C++ 5.9 SunOS_sparc Patch 124863-01 2007/07/25