Boost C++ Libraries: Ticket #75: Solaris - once.cpp compile error https://svn.boost.org/trac10/ticket/75 <pre class="wiki">I tried to compile the Boost.Threads library on Solaris, but once.cpp generated a compile error. The Solaris system is (export/home/swansond)$ uname -a SunOS lvcsun1 5.8 Generic_108528-13 sun4u sparc SUNW,Ultra-4 The compiler is (export/home/swansond)$ g++ -v Reading specs from /usr/local/lib/gcc-lib/sparc-sun- solaris2.8/2.95.3/specs gcc version 2.95.3 20010315 (release) The compile error is (27_0/libs/thread/src)$ g++ -g -Wall - o ../build/lib/once.o -c -I../../.. once.cpp once.cpp:42: warning: aggregate has a partly bracketed initializer once.cpp:138: parse error at end of input To eliminate the warning I enclosed PTHREAD_ONCE_INIT in curly braces. To correct the error (maybe ?) I added a closing brace after the definition of do_once(). </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/75 Trac 1.4.3 cpqlvc Wed, 01 May 2002 19:46:36 GMT <link>https://svn.boost.org/trac10/ticket/75#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/75#comment:1</guid> <description> <pre class="wiki">Logged In: YES user_id=525108 I tried compiling Boost.Threads on an RS/6000 box running AIX 4.3. Of course, the curly brace problem reoccurred, which I fixed (?) as above, and on this platform I got a different warning about PTHREAD_ONCE_INIT. (27_0/libs/thread/src)$ g++ -g -Wall -W -I../../.. -c once.cpp once.cpp:42: warning: missing initializer for member `pthread_once_t::__ptonce_mutex' once.cpp:42: warning: missing initializer for member `pthread_once_t::__ptonce_executed' (27_0/libs/thread/src)$ </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>Marshall Clow</dc:creator> <pubDate>Tue, 03 Jul 2007 15:45:18 GMT</pubDate> <title>owner, status changed; severity set https://svn.boost.org/trac10/ticket/75#comment:2 https://svn.boost.org/trac10/ticket/75#comment:2 <ul> <li><strong>owner</strong> changed from <span class="trac-author">mclow</span> to <span class="trac-author">Marshall Clow</span> </li> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">new</span> </li> <li><strong>severity</strong> → <span class="trac-field-new">Showstopper</span> </li> </ul> Ticket Marshall Clow Tue, 03 Jul 2007 15:47:54 GMT status, resolution changed https://svn.boost.org/trac10/ticket/75#comment:3 https://svn.boost.org/trac10/ticket/75#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-old">None</span> → <span class="trac-field-new">wontfix</span> </li> </ul> <p> This is a really, really old compiler. [ based on gcc 2.95.2 ], and the bug was reported in 2002. I don't think anyone uses this compiler (with boost) anymore. The last two people who posted to the boost list with questions about Solaris don't use this compiler (it's too old). </p> <p> Closing. </p> Ticket