Boost C++ Libraries: Ticket #13045: "uintptr_t is not defined" on Linux when using the Oracle's compiler https://svn.boost.org/trac10/ticket/13045 <p> An attempt to build with </p> <pre class="wiki">$ b2 stdlib=sun-stlport </pre><p> on Oracle Linux using the Oracle's compiler fails like so </p> <pre class="wiki"> "CC" -library=stlport4 -std=sun03 -xO4 -mt -erroff=%none -m64 -KPIC -DBOOST_ALL_NO_LIB=1 -DBOOST_MATH_TR1_DYN_LINK=1 -DNDEBUG -I"." -I"libs/math/src/tr1" -c -o "bin.v2/libs/math/build/sun/release/stdlib-sun-stlport/threading-multi/assoc_legendre.o" "libs/math/build/../src/tr1/assoc_legendre.cpp" ...failed sun.compile.c++ bin.v2/libs/math/build/sun/release/stdlib-sun-stlport/threading-multi/assoc_legendre.o... sun.compile.c++ bin.v2/libs/math/build/sun/release/stdlib-sun-stlport/threading-multi/beta.o "./boost/cstdint.hpp", line 381: Error: uintptr_t is not defined. "./boost/atomic/detail/atomic_template.hpp", line 670: Error: uintptr_t is not defined. 2 Error(s) detected. </pre><p> Reproducible on Oracle Linux 6 and 7, works fine on Solaris 11.3. </p> <p> The problem is that the header holding the definition of uintptr_t does not get included directly. On other platforms, uintptr_t gets pulled in accidentally through some other includes. </p> <p> The fix is to define BOOST_HAS_STDINT_H in Oracle's compiler config. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13045 Trac 1.4.3 maxim.kartashev@… Tue, 23 May 2017 10:52:05 GMT <link>https://svn.boost.org/trac10/ticket/13045#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13045#comment:1</guid> <description> <p> Pull Request: <a class="ext-link" href="https://github.com/boostorg/config/pull/139"><span class="icon">​</span>https://github.com/boostorg/config/pull/139</a> </p> </description> <category>Ticket</category> </item> <item> <author>maxim.kartashev@…</author> <pubDate>Wed, 21 Jun 2017 11:05:19 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/13045#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13045#comment:2</guid> <description> <p> Will be resolved by <a class="ext-link" href="https://github.com/boostorg/config/pull/155"><span class="icon">​</span>https://github.com/boostorg/config/pull/155</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Tue, 31 Jul 2018 18:45:49 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/13045#comment:3 https://svn.boost.org/trac10/ticket/13045#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">duplicate</span> </li> </ul> Ticket