id summary reporter owner description type status milestone component version severity resolution keywords cc 3854 unordered prime_list_template release-only link problem with sunpro toolset jhamm@… Daniel James "Missing symbol on sun solaris for '''release''' build of a project using unordered. We are currently using: Sun C++ 5.9 SunOS_sparc Patch 124863-05 2008/06/03 The related shared objects and executable compile cleanly without warnings. When the shared object is linked at runtime, the executable cannot link due to a missing symbol for prime_list_template::length = 28; The original code works for debug versions, so we suspect a compiler bug or perhaps an inlining problem. Here is our solution: *************** *** 81,87 **** --- 81,95 ---- template struct prime_list_template { static std::size_t const value[]; + #if defined(__SUNPRO_CC) + static std::ptrdiff_t const length = 28; + #else static std::ptrdiff_t const length; + #endif }; template *************** *** 93,100 **** --- 101,113 ---- 50331653ul, 100663319ul, 201326611ul, 402653189ul, 805306457ul, 1610612741ul, 3221225473ul, 4294967291ul }; + #if !defined(__SUNPRO_CC) template std::ptrdiff_t const prime_list_template::length = 28; + #endif typedef prime_list_template prime_list; " Bugs closed Boost 1.42.0 unordered Boost 1.37.0 Problem fixed