Opened 20 years ago
Closed 15 years ago
#75 closed Bugs (wontfix)
Solaris - once.cpp compile error
Reported by: | cpqlvc | Owned by: | Marshall Clow |
---|---|---|---|
Milestone: | Component: | None | |
Version: | None | Severity: | Showstopper |
Keywords: | Cc: |
Description
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().
Change History (3)
comment:2 by , 15 years ago
Owner: | changed from | to
---|---|
Severity: | → Showstopper |
Status: | assigned → new |
comment:3 by , 15 years ago
Resolution: | None → wontfix |
---|---|
Status: | new → closed |
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).
Closing.
Note:
See TracTickets
for help on using tickets.