Re: Can't build lyx 1.6.5 on OpenSolaris using Sun Studio 12u1

2010-02-15 Thread Frank Thieme
On Sun, Feb 14, 2010 at 02:15, Andre Poenitz wrote: >> 3. a forgotten static_cast in src/support/FileName.cpp > > >        @@ -558,7 +558,7 @@ >                crc.process_block(beg, end); >                result = crc.checksum(); > >        -       munmap(mm, info.st_size); >        +       munma

Re: Can't build lyx 1.6.5 on OpenSolaris using Sun Studio 12u1

2010-02-14 Thread Andre Poenitz
On Sun, Feb 14, 2010 at 10:09:58AM +0100, Frank Thieme wrote: > >> 2. src/support/debug.h: DEBUG is defined as DEBUG      = (1 << 31) > >> what is out of range for enum (32 bit) and I guess should be DEBUG > >>  = (1 << 30) as there is no 30, yet. > > > > 1 << 31  is within the 32 bit range. > > m

Re: Can't build lyx 1.6.5 on OpenSolaris using Sun Studio 12u1

2010-02-14 Thread Frank Thieme
Hi! On Sun, Feb 14, 2010 at 02:15, Andre Poenitz wrote: >> 2. src/support/debug.h: DEBUG is defined as DEBUG      = (1 << 31) >> what is out of range for enum (32 bit) and I guess should be DEBUG >>  = (1 << 30) as there is no 30, yet. > > 1 << 31  is within the 32 bit range. mmh, yeah, you are

Re: Can't build lyx 1.6.5 on OpenSolaris using Sun Studio 12u1

2010-02-13 Thread Andre Poenitz
On Sat, Feb 13, 2010 at 11:21:01PM +0100, Frank Thieme wrote: > Hi! > > I found the problem - I have to use "-library=stlport4" because of the > use of boost. But now there are some more problems: > > 1. Trailing commas in enums - this is part of C99, but not of C++ standard Right. > 2. src/su

Re: Can't build lyx 1.6.5 on OpenSolaris using Sun Studio 12u1

2010-02-13 Thread Frank Thieme
Hi! I found the problem - I have to use "-library=stlport4" because of the use of boost. But now there are some more problems: 1. Trailing commas in enums - this is part of C99, but not of C++ standard 2. src/support/debug.h: DEBUG is defined as DEBUG = (1 << 31) what is out of range for en