Compiling Kompozer for Solaris

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

Leave a Reply

Your email address will not be published. Required fields are marked *