Got this from Matt
------------------------------------------------------
Hiya Marc,
I basically followed the instructions at:
http://users.skynet.be/mgueury/mozilla/compile.htmlUntil I hit upon the same problem as Skipper. I patched
extensions/tidy/src/Makefile.in with:
- --- mozilla_tidy_source/mozilla/extensions/tidy/src/Makefile.in
2007-08-16 17:39:28.000000000 +0100
+++ mozilla/extensions/tidy/src/Makefile.in 2007-08-28
14:18:36.000000000 +0100
@@ -34,7 +34,7 @@
MODULE_NAME = nsTidyModule
# XPCOM Glue
- -DEFINES += -DXPCOM_GLUE
+DEFINES += -DMOZILLA_STRICT_API
# ===============
# OpenSP
@@ -86,15 +86,9 @@
XPIDLSRCS = nsITidy.idl
- -# separate libraries linked in.
- -# Todo: In Firefox 2, use $(XPCOM_GLUE_LDOPTS) instead
- -ifeq ($(OS_ARCH),WINNT)
- -EXTRA_DSO_LDOPTS = \
- - $(DIST)/lib/$(LIB_PREFIX)xpcomglue.$(LIB_SUFFIX) \
- -else
EXTRA_DSO_LDOPTS = \
- - $(XPCOM_GLUE_LDOPTS)
- -endif
+ $(DIST)/lib/$(LIB_PREFIX)xpcomglue_s.$(LIB_SUFFIX) \
+ -lxpcom
EXTRA_DSO_LDOPTS += \
$(NSPR_LIBS) \
Made distclean and re-ran the ./configure and make commands and it
compiled cleanly. Carried on with the instructions (altered a few paths
as I wasn't following the exact same layout).
Note: I also built opensp with:
./configure --disable-doc-build CXXFLAGS=-O2 --with-pic
Cheers,
Matt
------------------------------------------------------