Boost C++ Libraries: Ticket #137: build bjam fails on SGI; here is fix https://svn.boost.org/trac10/ticket/137 <pre class="wiki">On SGI w/ Irix 6.5.13 w/ MipsPro CC 7.3.1, the build of bjam fails on file tools/build/jam_src/newstr.c line 79 (the line that has offsetof): on SGI, this is a macro that has two definitions; the default is to use a macro def that requires the data member to be a compile time const, so compile stops at that file. The fix consisted in adding the two following lines just under the #include &lt;stddef.h&gt;: #undef offsetof #define offsetof(s, m) (size_t)(&amp;(((s *)0)-&gt;m)) to override the default define of offsetof with the second definition copied there verbatim. With this fix, the rest of the build succeeded, but for bjam and for building the boost libraries per se. I have no idea how solid the above offsetof implementation is. Best, Oliver </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/137 Trac 1.4.3 david_abrahams Wed, 28 May 2003 10:28:35 GMT <link>https://svn.boost.org/trac10/ticket/137#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/137#comment:1</guid> <description> <pre class="wiki">Logged In: YES user_id=52572 Ralf, can you discern whether a workaround is still needed here? Thanks! </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>Ralf W. Grosse-Kunstleve</dc:creator> <pubDate>Wed, 28 May 2003 16:54:23 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/137#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/137#comment:2</guid> <description> <pre class="wiki">Logged In: YES user_id=71407 &gt; Ralf, can you discern whether a workaround is still needed here? Is this what I am supposed to try? cd boost/tools/build/jam_src ./build.sh mipspro Using the latest CVS snapshot it works without a problem on my machine. My compiler (installed about two years ago!): cc -version MIPSpro Compilers: Version 7.3.1.2m To the original poster (?): Could you please send us the output of cc -version on your platform? Please also try this (all in one line): alias whatdefcc 'echo '"'"'main(){printf("hello world");}'"'"' &gt; /var/tmp/tmp$$.c; cc -E -v \!* /var/tmp/tmp$$.c; rm - f /var/tmp/tmp$$.c' Please send us the output of running this command. Ralf </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>Ralf W. Grosse-Kunstleve</dc:creator> <pubDate>Thu, 06 Oct 2005 20:54:38 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/137#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/137#comment:3</guid> <description> <pre class="wiki">Logged In: YES user_id=71407 I mark the bug as out of date just to be conservative. The last time I tried, which is about a year ago, bjam worked fine under IRIX. If there is still a problem a new, detailed report should be filed. </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>Ralf W. Grosse-Kunstleve</dc:creator> <pubDate>Thu, 06 Oct 2005 20:55:45 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/137#comment:4 https://svn.boost.org/trac10/ticket/137#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> Ticket