Compile errors with Solaris 5.8 and Studio 11 with latest patches

I asked sa to patch my studio 11, and they applied patches 121023-04, 121015-04, 121017-08, 122142-03, 120761-03, 120760-11 and 122135-02. Then, I compiled my boost_1_33_1 again. It built some, but not all libraries. It stil spit out the following errors. Is this expected?

"/home/vcheng/boost_1_33_1/libs/filesystem/build/../src/operations_posix_window s.cpp", line 126: Error: readdir_r is not a member of file level.

...failed sunpro-C++-action build_sunos/bin/boost/libs/filesystem/build/libboost_filesystem.a/sunpro/debug/ operations_posix_windows.o...

sunpro-C++-action build_sunos/bin/boost/libs/wave/build/libboost_wave.a/sunpro/debug/instantiate_ cpp_exprgrammar.o

"/home/vcheng/boost_1_33_1/boost/spirit/core/composite/epsilon.hpp", line 76: Error: complex expression not allowed in dependent template argument expression.

"/home/vcheng/boost_1_33_1/boost/iostreams/device/file_descriptor.hpp", line 79: Warning: close_on_exit hides boost::iostreams::file_descriptor::impl::close_on_exit.

1 Warning(s) detected.

"/home/vcheng/boost_1_33_1/libs/iostreams/build/../src/bzip2.cpp", line 42: Error: BZ_CONFIG_ERROR is not defined.

"/home/vcheng/boost_1_33_1/libs/iostreams/build/../src/bzip2.cpp", line 106: Error: The function "BZ2_bzCompressEnd" must have a prototype.

"/home/vcheng/boost_1_33_1/libs/iostreams/build/../src/bzip2.cpp", line 107: Error: The function "BZ2_bzDecompressEnd" must have a prototype.

"/home/vcheng/boost_1_33_1/libs/iostreams/build/../src/bzip2.cpp", line 113: Error: The function "BZ2_bzCompress" must have a prototype.

"/home/vcheng/boost_1_33_1/libs/iostreams/build/../src/bzip2.cpp", line 118: Error: The function "BZ2_bzDecompress" must have a prototype.

"/home/vcheng/boost_1_33_1/libs/iostreams/build/../src/bzip2.cpp", line 143: Error: The function "BZ2_bzCompressInit" must have a prototype.

"/home/vcheng/boost_1_33_1/libs/iostreams/build/../src/bzip2.cpp", line 147: Error: The function "BZ2_bzDecompressInit" must have a prototype.

"/home/vcheng/boost_1_33_1/libs/program_options/build/../src/cmdline.cpp", line 97: Warning: args hides boost::program_options::detail::cmdline::args.

"/home/vcheng/boost_1_33_1/libs/program_options/build/../src/cmdline.cpp", line 100: Warning: args hides boost::program_options::detail::cmdline::args.

"/home/vcheng/boost_1_33_1/libs/program_options/build/../src/cmdline.cpp", line 110: Warning: args hides boost::program_options::detail::cmdline::args.

"/home/vcheng/boost_1_33_1/libs/program_options/build/../src/cmdline.cpp", line 349: Warning: args hides boost::program_options::detail::cmdline::args.

"/home/vcheng/boost_1_33_1/libs/program_options/build/../src/cmdline.cpp", line 383: Warning: args hides boost::program_options::detail::cmdline::args.

"/home/vcheng/boost_1_33_1/libs/program_options/build/../src/cmdline.cpp", line 437: Warning: args hides boost::program_options::detail::cmdline::args.

"/home/vcheng/boost_1_33_1/libs/program_options/build/../src/cmdline.cpp", line 458: Warning: args hides boost::program_options::detail::cmdline::args.

"/home/vcheng/boost_1_33_1/libs/program_options/build/../src/cmdline.cpp", line 477: Warning: args hides boost::program_options::detail::cmdline::args.

"/home/vcheng/boost_1_33_1/libs/program_options/build/../src/cmdline.cpp", line 495: Warning: args hides boost::program_options::detail::cmdline::args.

"/home/vcheng/boost_1_33_1/libs/program_options/build/../src/config_file.cpp", line 35: Warning: allowed_options hides boost::program_options::detail::common_config_file_iterator::allowed_options.

"/home/vcheng/boost_1_33_1/libs/program_options/build/../src/options_descriptio n.cpp", line 311: 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).

"/home/vcheng/boost_1_33_1/libs/program_options/build/../src/options_descriptio n.cpp", line 378: Error: Too few arguments for template std::reverse_iterator.

"/.automount/opt/Forte/sunstudio11_patch1/SUNWspro/prod/include/CC/Cstd/rw/iter ator", line 432: Error: "friend" declaration is incompatible with function template.

"/home/vcheng/boost_1_33_1/libs/program_options/build/../src/options_descriptio n.cpp", line 378:Where: While specializing "std::reverse_iterator<const char*>".

"/home/vcheng/boost_1_33_1/libs/program_options/build/../src/options_descriptio n.cpp", line 378:Where: Specialized in non-template code.

"/home/vcheng/boost_1_33_1/libs/program_options/build/../src/options_descriptio n.cpp", line 379: Error: Too few arguments for template std::reverse_iterator.

"/home/vcheng/boost_1_33_1/libs/program_options/build/../src/options_descriptio n.cpp", line 387: Error: Could not find a match for std::distance<std::ForwardIterator, std::Distance>(const char*, const char*) needed in::format_paragraph(std::ostream &, std::string, unsigned, unsigned).

[5104 byte] By [victor1a] at [2007-11-26 16:41:48]
# 1

First of all I recommend to read this article http://blogs.sun.com/sga/entry/boost_mini_howto

Boost 1.33 contains some errors prevent to use it with Sun C++. You can use Boost 1.32 with patch (see article) or Boost 1.34 RC1. Please note - you need to compile Boost and your code with -library=stlport4 option.

Atanasyana at 2007-7-8 23:08:52 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 2
Which version do you recommend?For Boost 1.34RC1 you need to get it from CVS?I have tried to install 1.32 before and had problems ...
thahn01a at 2007-7-8 23:08:52 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 3

You can take Boost 1.34 but you have to use CVS and you have to modify Boost configuration files to use -library=stlport4 option.

Or you can take Boost 1.32, read this article http://blogs.sun.com/roller/page/sga?entry=boost_mini_howto and apply this patch http://blogs.sun.com/roller/resources/sga/boost_1_32_0.patch.

As you can see here http://engineering.meta-comm.com/boost-regression/CVS-RC_1_34_0/developer/summa ry.html Sun C++ is in a good shape.

Atanasyana at 2007-7-8 23:08:52 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 4

Hello everyone,

i am normally using gcc for my applications but i heard more thanonce that the Sun compiler really makes the difference in terms of speed.

unfortunately the Ublas library, which i use, is marked as "unavailable" in the boost release candidate 1.34.0 ...

is there any plan to fix this or ... ublas will notmake it for being compiled with sun?

thanks in advance

Riccardo

rougereda at 2007-7-8 23:08:52 > top of Java-index,Development Tools,Solaris and Linux Development Tools...