Boost C++ Libraries: Ticket #10384: Building boost 1.48.0 on Solaris with stlport4.6.2, File system is not building https://svn.boost.org/trac10/ticket/10384 <p> Hi Team, </p> <p> I am trying to build boost on solaris with STLport-4.6.2. I am able to build few libraries but failed to build filesystem, wave and graph. I am pasting the errors here. Please let me know if there is any work around or patch available for it. </p> <hr /> <p> File system Errors </p> <hr /> <p> sun.compile.c++ bin.v2/libs/filesystem/build/sun/release/address-model-32/link-static/stdlib-stlport-4.6.2/threading-multi/v3/src/path.o "./boost/filesystem/v3/path.hpp", line 161: Error: iterator_traits is not a member of std. "libs/filesystem/v3/src/path.cpp", line 270: Where: While instantiating "boost::filesystem3::path::path&lt;const char*&gt;(const char*, const char*)". "libs/filesystem/v3/src/path.cpp", line 270: Where: Instantiated from non-template code. "./boost/filesystem/v3/path.hpp", line 161: Error: "," expected instead of "&lt;". "libs/filesystem/v3/src/path.cpp", line 270: Where: While instantiating "boost::filesystem3::path::path&lt;const char*&gt;(const char*, const char*)". "libs/filesystem/v3/src/path.cpp", line 270: Where: Instantiated from non-template code. "./boost/filesystem/v3/path.hpp", line 161: Error: Illegal value for template parameter. "libs/filesystem/v3/src/path.cpp", line 270: Where: While instantiating "boost::filesystem3::path::path&lt;const char*&gt;(const char*, const char*)". "libs/filesystem/v3/src/path.cpp", line 270: Where: Instantiated from non-template code. "./boost/filesystem/v3/path.hpp", line 161: Error: Unexpected type name "std::basic_string&lt;int&gt;::value_type" encountered. "libs/filesystem/v3/src/path.cpp", line 270: Where: While instantiating "boost::filesystem3::path::path&lt;const char*&gt;(const char*, const char*)". "libs/filesystem/v3/src/path.cpp", line 270: Where: Instantiated from non-template code. "./boost/filesystem/v3/path.hpp", line 162: Error: The function "s" must have a prototype. "libs/filesystem/v3/src/path.cpp", line 270: Where: While instantiating "boost::filesystem3::path::path&lt;const char*&gt;(const char*, const char*)". "libs/filesystem/v3/src/path.cpp", line 270: Where: Instantiated from non-template code. "libs/filesystem/v3/src/path.cpp", line 797: Error: Could not find a match for std::use_facet&lt;std::Facet&gt;(std::locale) needed in static boost::filesystem3 ::path::wchar_t_codecvt_facet(). "libs/filesystem/v3/src/path.cpp", line 806: Error: Could not find a match for std::use_facet&lt;std::Facet&gt;(std::locale) needed in static boost::filesystem3 ::path::imbue(const std::locale&amp;). 7 Error(s) detected. </p> <hr /> <p> Wave Errors </p> <hr /> <p> ...failed sun.compile.c++ bin.v2/libs/wave/build/sun/release/address-model-32/link-static/stdlib-stlport-4.6.2/threading-multi/instantiate_predef_macros.o ... sun.compile.c++ bin.v2/libs/wave/build/sun/release/address-model-32/link-static/stdlib-stlport-4.6.2/threading-multi/instantiate_re2c_lexer.o "./boost/wave/util/flex_string.hpp", line 124: Error: Templates can only declare classes or functions. "./boost/wave/util/flex_string.hpp", line 126: Error: "," expected instead of "!=". "./boost/wave/util/flex_string.hpp", line 126: Error: A declaration was expected instead of "--". "./boost/wave/util/flex_string.hpp", line 126: Error: Multiple declaration for n. "./boost/wave/util/flex_string.hpp", line 126: Error: Use ";" to terminate declarations. "./boost/wave/util/flex_string.hpp", line 126: Error: A declaration was expected instead of "++". "./boost/wave/util/flex_string.hpp", line 126: Error: Use ";" to terminate declarations. "./boost/wave/util/flex_string.hpp", line 126: Error: A declaration was expected instead of "++". "./boost/wave/util/flex_string.hpp", line 126: Error: "," expected instead of ")". "./boost/wave/util/flex_string.hpp", line 130: Error: A declaration was expected instead of "return". "./boost/wave/util/flex_string.hpp", line 2605: Error: A declaration was expected instead of "}". "./boost/wave/util/flex_string.hpp", line 2606: Error: A declaration was expected instead of "}". "./boost/wave/token_ids.hpp", line 359: Error: flex_string is not a member of boost::wave::util. "./boost/wave/token_ids.hpp", line 359: Error: A declaration does not specify a tag or an identifier. "./boost/wave/token_ids.hpp", line 359: Error: Use ";" to terminate declarations. "./boost/wave/token_ids.hpp", line 359: Error: A declaration was expected instead of "&lt;". "./boost/wave/token_ids.hpp", line 359: Error: A declaration does not specify a tag or an identifier. "./boost/wave/token_ids.hpp", line 359: Error: Use ";" to terminate declarations. "./boost/wave/token_ids.hpp", line 359: Error: A declaration was expected instead of ",". "./boost/wave/token_ids.hpp", line 359: Warning: declarator required in declaration. "./boost/wave/token_ids.hpp", line 359: Error: Use ";" to terminate declarations. "./boost/wave/token_ids.hpp", line 359: Error: A declaration was expected instead of ",". "./boost/wave/token_ids.hpp", line 359: Warning: declarator required in declaration. "./boost/wave/token_ids.hpp", line 359: Error: Use ";" to terminate declarations. "./boost/wave/token_ids.hpp", line 359: Error: A declaration was expected instead of ",". "./boost/wave/token_ids.hpp", line 359: Error: <a class="missing wiki">CowString</a> is not a member of boost::wave::util. "./boost/wave/token_ids.hpp", line 359: Error: A declaration does not specify a tag or an identifier. Compilation aborted, too many Error messages. </p> <blockquote> <p> "CC" -xO4 -mt -erroff=%none -m32 -DBOOST_ALL_NO_LIB=1 -DBOOST_THREAD_USE_LIB=1 -DNDEBUG -D_STLP_USE_DYNAMIC_LIB=1 -I"." -I"/sw/source/mer_misc_libs/ST </p> </blockquote> <p> Lport-4.6.2" -c -o "bin.v2/libs/wave/build/sun/release/address-model-32/link-static/stdlib-stlport-4.6.2/threading-multi/instantiate_re2c_lexer.o" "libs/w ave/src/instantiate_re2c_lexer.cpp" </p> <p> Please let me know in case, there is already resolution present. Command used to build is: </p> <hr /> <blockquote> <p> bjam --without-python toolset=sun stdlib=stlport-4.6.2 address-model=32 stage --d2 </p> </blockquote> <p> user_config has below input: </p> <hr /> <p> using stlport : 4.6.2 : /sw/source/mer_misc_libs/STLport-4.6.2 : /sw/source/mer_misc_libs/STLport-4.6.2/lib ; </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10384 Trac 1.4.3