Boost C++ Libraries: Ticket #11004: register_archive.hpp needs modification for Oralce Solaris Studio compilers. https://svn.boost.org/trac10/ticket/11004 <p> Compiling on Solaris 11.2 with Oracle Solaris Studio 12.4 compilers, several serialization tests fail as shown. </p> <p> "CC" -compat=5 -library=stlport4 -xO4 -erroff=%none -KPIC -DBOOST_ALL_NO_LIB=1 -DBOOST_SERIALIZATION_DYN_LINK=1 -DNDEBUG -I".." -c -o "/export/home/boost_regression/boost_sparc-S2_stlport4/results/boost/bin.v2/libs/serialization/build/sun-stlport4/release/text_iarchive.o" "../libs/serialization/src/text_iarchive.cpp" <br /> </p> <p> "../boost/archive/detail/register_archive.hpp", line 45: Error: The function "adjust_counter" must have a prototype. <br /> "../boost/archive/text_iarchive.hpp", line 136: Where: While specializing "boost::archive::detail::get_counter&lt;boost::archive::text_iarchive&gt;"."../boost/archive/text_iarchive.hpp", line 136: Where: Specialized in non-template code. "../boost/archive/detail/register_archive.hpp", line 46: Error: Expression must have a constant value. <br /> "../boost/archive/text_iarchive.hpp", line 136: Where: While specializing "boost::archive::detail::get_counter&lt;boost::archive::text_iarchive&gt;"."../boost/archive/text_iarchive.hpp", line 136: Where: Specialized in non-template code. "../boost/archive/detail/register_archive.hpp", line 47: Error: Expression must have a constant value. <br /> "../boost/archive/text_iarchive.hpp", line 136: Where: While specializing "boost::archive::detail::get_counter&lt;boost::archive::text_iarchive&gt;"."../boost/archive/text_iarchive.hpp", line 136: Where: Specialized in non-template code. "../boost/archive/detail/register_archive.hpp", line 48: Error: An integer constant expression is required within the array subscript operator. <br /> "../boost/archive/text_iarchive.hpp", line 136: Where: While specializing "boost::archive::detail::get_counter&lt;boost::archive::text_iarchive&gt;"."../boost/archive/text_iarchive.hpp", line 136: Where: Specialized in non-template code. "../boost/archive/text_iarchive.hpp", line 136: Error: Multiple declaration for adjust_counter. <br /> "../boost/archive/text_iarchive.hpp", line 136: Error: Unexpected type name "get_counter&lt;boost::archive::text_iarchive&gt;::type" encountered. <br /> 6 Error(s) detected. <br /> </p> <p> The following modification to boost/archive/detail/register_archive.hpp, resolves this issue. <br /> </p> <p> diff ./register_archive.hpp_orig ./register_archive.hpp <br /> 31c31 <br /> &lt; #ifdef <span class="underline">SUNPRO_CC <br /> --- <br /> </span></p> <blockquote class="citation"> <p> #if defined(<span class="underline">SUNPRO_CC) &amp;&amp; (</span>SUNPRO_CC &lt; 0x5130) <br /> </p> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11004 Trac 1.4.3 Aparna Kumta <aparna.kumta@…> Mon, 09 Feb 2015 18:17:18 GMT <link>https://svn.boost.org/trac10/ticket/11004#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11004#comment:1</guid> <description> <p> Looks like accidentally I hit send twice and 2 tickets got created. <br /> <a class="ext-link" href="https://svn.boost.org/trac/boost/ticket/11004"><span class="icon">​</span>https://svn.boost.org/trac/boost/ticket/11004</a> and <a class="ext-link" href="https://svn.boost.org/trac/boost/ticket/11005"><span class="icon">​</span>https://svn.boost.org/trac/boost/ticket/11005</a>. </p> <p> I'm not sure how to close the ticket. Either one can be closed as a duplicate. Sorry about that. </p> </description> <category>Ticket</category> </item> <item> <author>Aparna Kumta <aparna.kumta@…></author> <pubDate>Wed, 25 Feb 2015 22:51:30 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11004#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11004#comment:2</guid> <description> <p> I would like to submit a github PR for this one, as it affects many of our tests. However, I am not sure how I can locate the path for this file in the github repository. Would it be possible to provide the path here so I can update and sumbit a PR? </p> <p> Thanks. </p> </description> <category>Ticket</category> </item> <item> <author>Aparna Kumta <aparna.kumta@…></author> <pubDate>Wed, 25 Feb 2015 22:53:30 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11004#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11004#comment:2</guid> <description> <p> I would like to submit a github PR for this one, as it affects many of our tests. However, I am not sure how I can locate the path for this file in the github repository. Would it be possible to provide the path here so I can update and sumbit a PR? </p> <p> Thanks. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Robert Ramey</dc:creator> <pubDate>Wed, 25 Feb 2015 23:31:52 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11004#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11004#comment:3</guid> <description> <p> No need to submit a PR - I'll just fix it here </p> </description> <category>Ticket</category> </item> <item> <author>Aparna Kumta <aparna.kumta@…></author> <pubDate>Wed, 04 Mar 2015 22:33:57 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11004#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11004#comment:4</guid> <description> <p> Ramey, </p> <p> Any idea when this fix could go in? I did manage to locate the file in the github repository, so it would be pretty easy for me to submit a PR. Thanks. </p> </description> <category>Ticket</category> </item> <item> <author>Aparna Kumta <aparna.kumta@…></author> <pubDate>Wed, 04 Mar 2015 22:35:58 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11004#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11004#comment:4</guid> <description> <p> Ramey, </p> <p> Any idea when this fix could go in? I did manage to locate the file in the github repository, so it would be pretty easy for me to submit a PR. Thanks. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Robert Ramey</dc:creator> <pubDate>Wed, 04 Mar 2015 22:37:50 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11004#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11004#comment:5</guid> <description> <p> OK submit a PR to the developer branch </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Robert Ramey</dc:creator> <pubDate>Mon, 20 Apr 2015 04:21:51 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/11004#comment:6 https://svn.boost.org/trac10/ticket/11004#comment:6 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> Ticket