On 11/14/06, Caleb Epstein <caleb.epstein@gmail.com> wrote:

Not sure if it helps, but the compiler seems to be complaining about this line:

BOOST_STATIC_ASSERT(BOOST_PYTHON_OFFSETOF(rvalue_from_python_storage<T>,stage1)
== 0);

Where Solaris appears to define offsetof() in /usr/include/iso/stddef_iso.h as:

#if __cplusplus >= 199711L
#define offsetof(s, m)  (std::size_t)(&(((s *)0)->m))
#else
#define offsetof(s, m)  (size_t)(&(((s *)0)->m))
#endif

Not sure if there is much that I can do to help aside from saying "it
works for me" using gcc 4.1.1.
 
Thanks for looking at this and the info, Caleb.  I'll see about about upgrading gcc and giving it another try.
- Chris