Boost C++ Libraries: Ticket #13154: Error compiling pthread/thread.o on Oracle Linux with Oracle compiler and stdlib=sun-stlport https://svn.boost.org/trac10/ticket/13154 <p> On Oracle Linux 7.3 with stdlib=sun-stlport: </p> <p> sun.compile.c++ bin.v2/libs/thread/build/sun/release/stdlib-sun-stlport/threadin g-multi/pthread/thread.o "/usr/include/linux/sysinfo.h", line 21: Error: An array cannot have zero size unless you use the option -features=zla. 1 Error(s) detected. </p> <p> The compiler refuses to accept zero length array in -compat=5 mode (required for stdlib=sun-stlport and =apache). A special option needs to be added to the command line: -features=zla </p> <p> </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13154 Trac 1.4.3 maxim.kartashev@… Wed, 09 Aug 2017 12:41:36 GMT <link>https://svn.boost.org/trac10/ticket/13154#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13154#comment:1</guid> <description> <p> Patch: </p> <pre class="wiki">diff --git a/src/tools/sun.jam b/src/tools/sun.jam index 7f2d645..a67d34c 100644 --- a/src/tools/sun.jam +++ b/src/tools/sun.jam @@ -33,12 +33,12 @@ generators.override sun.searched-lib-generator : searched-li # feature.extend stdlib : sun-stlport ; feature.compose &lt;stdlib&gt;sun-stlport - : &lt;cxxflags&gt;-library=stlport4 &lt;cxxflags&gt;-compat=5 + : &lt;cxxflags&gt;-library=stlport4 &lt;cxxflags&gt;-compat=5 &lt;cxxflags&gt;-features=zla &lt;linkflags&gt;-library=stlport4 &lt;linkflags&gt;-compat=5 ; feature.extend stdlib : apache ; feature.compose &lt;stdlib&gt;apache - : &lt;cxxflags&gt;-library=stdcxx4 &lt;cxxflags&gt;-compat=5 + : &lt;cxxflags&gt;-library=stdcxx4 &lt;cxxflags&gt;-compat=5 &lt;cxxflags&gt;-features=zla &lt;linkflags&gt;-library=stdcxx4 &lt;cxxflags&gt;-compat=5 ; feature.extend stdlib : gnu ; </pre> </description> <category>Ticket</category> </item> <item> <author>maxim.kartashev@…</author> <pubDate>Wed, 09 Aug 2017 13:07:34 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/13154#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13154#comment:2</guid> <description> <p> Pull Request: <a class="ext-link" href="https://github.com/boostorg/build/pull/225"><span class="icon">​</span>https://github.com/boostorg/build/pull/225</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Thu, 10 Aug 2017 10:41:19 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/13154#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13154#comment:3</guid> <description> <p> The pull request has been merged into boostorg:develop </p> </description> <category>Ticket</category> </item> </channel> </rss>