The first attempt to compile Kompozer for Solaris

Two macros defined in under Solaris 10 x86 prevent nsBidi.cpp from compiling:

nsBidi.cpp:69: error: expected identifier before numeric constant
nsBidi.cpp:69: error: expected `}' before numeric constant
nsBidi.cpp:69: error: expected unqualified-id before numeric constant
nsBidi.cpp:69: error: expected `,' or `;' before numeric constant
nsBidi.cpp:86: error: expected declaration before '}' token
nsBidi.cpp:27:1: unterminated #ifdef
gmake[1]: *** [nsBidi.o] Error 1
gmake[1]: Leaving directory `/var/tmp/kompozer-0.7.10/mozilla/layout/base/src'
gmake: *** [all] Error 2

Undefine CS and ES before the enum statement:

static nsCharType cc2ucd[5] = {
eCharType_LeftToRightEmbedding,
eCharType_RightToLeftEmbedding,
eCharType_PopDirectionalFormat,
eCharType_LeftToRightOverride,
eCharType_RightToLeftOverride
};
#undef CS
#undef ES

enum {
L = eCharType_LeftToRight,
R = eCharType_RightToLeft,
EN = eCharType_EuropeanNumber,
ES = eCharType_EuropeanNumberSeparator,
ET = eCharType_EuropeanNumberTerminator,
. . .

Source here.

If you compile under OpenSolaris or Nevada (Solaris 11):

gmake[3]: Entering directory `/var/tmp/kompozer-0.7.10/mozilla/security/coreconf'
../coreconf/config.mk:67: ../coreconf/SunOS5.11_i86pc.mk: No such file or directory
gmake[3]: *** No rule to make target `../coreconf/SunOS5.11_i86pc.mk'. Stop.
gmake[3]: Leaving directory `/var/tmp/kompozer-0.7.10/mozilla/security/coreconf'
gmake[2]: *** [libs] Error 2
gmake[2]: Leaving directory `/var/tmp/kompozer-0.7.10/mozilla/security/manager'
gmake[1]: *** [tier_40] Error 2
gmake[1]: Leaving directory `/var/tmp/kompozer-0.7.10/mozilla'
gmake: *** [default] Error 2

Copy SunOS5.10_i86pc.mk to SunOS5.11_i86pc.mk:

$ cd /var/tmp/kompozer-0.7.10/mozilla/security/coreconf
$ cp SunOS5.10_i86pc.mk SunOS5.11_i86pc.mk

Related posts:

  1. Compiling Wine 1.1.14 for OpenSolaris or Solaris Nevada Update 15.02.2009 @ 14:04: Same for wine 1.1.15… The following...
  2. Bluefish 1.3.3 under OpenSolaris or Solaris Nevada To speed things up Bluefish 1.3.3 has static inline functions....
  3. How to compile Bluefish 1.3.x under OpenSolaris or Solaris Nevada Get intltool package (for example, from blastwave) If you...
  4. Wine 1.1.5 for Solaris Wine 1.1.5 is out. So are new compiling errors: gmake[2]:...
  5. How to compile wine under Solaris. Part II See Part I Beginning with wine 0.9.57 "-lsunmath" is needed....