Boost C++ Libraries: Ticket #7051: boost::filesystem compile error on solaris 10 https://svn.boost.org/trac10/ticket/7051 <p> fails to compile because fchmodat is not supported on solaris 10. (Compiler used was gcc 4.7.1) </p> <p> libs/filesystem/src/operations.cpp: In function 'void boost_1_50_0::filesystem::detail::permissions(const boost_1_50_0::filesystem::path&amp;, boost_1_50_0::filesystem::perms, boost_1_50_0::system::error_code*)': libs/filesystem/src/operations.cpp:1401:11: error: '::fchmodat' has not been declared </p> <p> uname -a SunOS 5.10 Generic_141444-09 sun4u sparc SUNW,Sun-Fire-V490 </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7051 Trac 1.4.3 Duncan Exon Smith <duncanphilipnorman@…> Tue, 10 Jul 2012 15:25:42 GMT cc set https://svn.boost.org/trac10/ticket/7051#comment:1 https://svn.boost.org/trac10/ticket/7051#comment:1 <ul> <li><strong>cc</strong> <span class="trac-author">duncanphilipnorman@…</span> added </li> </ul> <p> This looks like a duplicate of <a class="reopened ticket" href="https://svn.boost.org/trac10/ticket/6659" title="#6659: Bugs: Filesystem compilation broken on Solaris 9 and 10 (reopened)">#6659</a>... you may want to add your testcase to that bug (although it has been ignored for 4 months). </p> Ticket anonymous Wed, 11 Jul 2012 05:50:17 GMT <link>https://svn.boost.org/trac10/ticket/7051#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7051#comment:2</guid> <description> <p> The issue has been addresses before but not for compiling with gcc on solaris line 1400 could have </p> <p> &amp;&amp; !defined(<span class="underline">sun) </span></p> <p> added to it to fix the problem </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Beman Dawes</dc:creator> <pubDate>Fri, 13 Jul 2012 21:02:38 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/7051#comment:3 https://svn.boost.org/trac10/ticket/7051#comment:3 <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> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/79484" title="Fix #6659 and #7051, fchmodat supported only on Solaris 11. Disable ...">[79484]</a>) Fix <a class="reopened ticket" href="https://svn.boost.org/trac10/ticket/6659" title="#6659: Bugs: Filesystem compilation broken on Solaris 9 and 10 (reopened)">#6659</a> and <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7051" title="#7051: Bugs: boost::filesystem compile error on solaris 10 (closed: fixed)">#7051</a>, fchmodat supported only on Solaris 11. Disable fchmodat for both Sun and GCC compilers regardless of OS version; a runtime check is too much trouble. </p> Ticket