While building 1.3.0 with the Qt frontend on Solaris 2.6 with GCC 3.2.2: g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I./../ -I../../boost -I/opt/TWWfsw/aiksaurus01/include -I/opt/TWWfsw/xpm/include -isystem /usr/openwin/include -O2 -mcpu=v7 -c lyxsum.C In file included from ../../boost/boost/integer.hpp:22, from ../../boost/boost/crc.hpp:14, from lyxsum.C:17: ../../boost/boost/integer_traits.hpp:109:2: #error No WCHAR_MIN and WCHAR_MAX present, please adjust integer_traits<> for your compiler. In file included from ../../boost/boost/integer.hpp:22, from ../../boost/boost/crc.hpp:14, from lyxsum.C:17: ../../boost/boost/integer_traits.hpp:111: parse error before `{' token gmake[3]: *** [lyxsum.lo] Error 1 gmake[3]: Leaving directory `/opt/build/lyx-1.3.0/src/support'
No build problems on Solaris 7, 8, or 9. From Solaris 7 <limits.h>: /* not XPG4 and not XPG4v2 */ #if (!(defined(_XOPEN_SOURCE) && (_XOPEN_VERSION - 0 == 4))) #ifndef WCHAR_MAX #define WCHAR_MAX 2147483647 #endif #ifndef WCHAR_MIN #define WCHAR_MIN (-2147483647-1) #endif #endif /* not XPG4 and not XPG4v2 */ How about the patch below? -- albert chin ([EMAIL PROTECTED]) -- snip snip --- boost/boost/integer_traits.hpp.orig Mon Feb 24 09:43:07 2003 +++ boost/boost/integer_traits.hpp Mon Feb 24 09:45:38 2003 @@ -93,7 +93,7 @@ #elif defined(__BORLANDC__) || defined(__CYGWIN__) || defined(__MINGW32__) || (defined(__BEOS__) && defined(__GNUC__)) // No WCHAR_MIN and WCHAR_MAX, whar_t is short and unsigned: public detail::integer_traits_base<wchar_t, 0, 0xffff> -#elif (defined(__sgi) && (!defined(__SGI_STL_PORT) || __SGI_STL_PORT < 0x400)) || (defined __APPLE__) || (defined(__FreeBSD__) && defined(__GNUC__)) || (defined(__hpux) && defined(__GNUC__) && (__GNUC__ == 3) && !defined(__SGI_STL_PORT)) +#elif (defined(__sgi) && (!defined(__SGI_STL_PORT) || __SGI_STL_PORT < 0x400)) || (defined __APPLE__) || (defined(__FreeBSD__) && defined(__GNUC__)) || (defined(__hpux) && defined(__GNUC__) && (__GNUC__ == 3) && !defined(__SGI_STL_PORT)) || (defined(__sun) && defined(__GNUC__)) // No WCHAR_MIN and WCHAR_MAX, wchar_t has the same range as int. // - SGI MIPSpro with native library // - gcc 3.x on HP-UX