I'm new to this mail list and the mobile mozilla... and recently I've
followed http://wiki.mozilla.org/Mobile/Build/Maemo_Build_Instructions to
compile a mozilla for my maemo (4.0, chinook) but without a success.
I've performed the following
1. cat buildlibIDL.sh | scratchbox -s -p
2. cat buildmoz19.sh | scratchbox -s -p
And the second line reported error, after having run for about an
hour, as the following:
make[6]: Leaving directory
`/home/kykyu/moz1.9/mozilla/obj-dir-browser-chinook-armel/extensions/xmlextras/pointers/src'
make[5]: Leaving directory
`/home/kykyu/moz1.9/mozilla/obj-dir-browser-chinook-armel/extensions/xmlextras/pointers'
make[5]: Entering directory
`/home/kykyu/moz1.9/mozilla/obj-dir-browser-chinook-armel/extensions/xmlextras/build'
make[6]: Entering directory
`/home/kykyu/moz1.9/mozilla/obj-dir-browser-chinook-armel/extensions/xmlextras/build/src'
make[6]: Leaving directory
`/home/kykyu/moz1.9/mozilla/obj-dir-browser-chinook-armel/extensions/xmlextras/build/src'
make[5]: Leaving directory
`/home/kykyu/moz1.9/mozilla/obj-dir-browser-chinook-armel/extensions/xmlextras/build'
make[5]: Entering directory
`/home/kykyu/moz1.9/mozilla/obj-dir-browser-chinook-armel/extensions/xmlextras/tests'
TestXMLExtras.cpp
c++ -o TestXMLExtras.o -c -fvisibility=hidden -DOSTYPE=\"Linux2.6\"
-DOSARCH=Linux -I/home/kykyu/moz1.9/mozilla/extensions/xmlextras/tests -I.
-I../../../dist/include/xpcom -I../../../dist/include/string
-I../../../dist/include/xmlextras -I../../../dist/include/necko
-I../../../dist/include/dom -I../../../dist/include/content
-I../../../dist/include/layout -I../../../dist/include/widget
-I../../../dist/include -I../../../dist/include
-I../../../dist/include/nspr -I../../../dist/sdk/include -fPIC
-fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith
-Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor
-Wcast-align -Wno-long-long -pedantic -fshort-wchar -pthread -pipe -DNDEBUG
-DTRIMMED -Os -freorder-blocks -fno-reorder-functions -DMOZILLA_CLIENT
-include ../../../mozilla-config.h -Wp,-MD,.deps/TestXMLExtras.pp
/home/kykyu/moz1.9/mozilla/extensions/xmlextras/tests/TestXMLExtras.cpp
c++ -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith
-Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor
-Wcast-align -Wno-long-long -pedantic -fshort-wchar -pthread -pipe -DNDEBUG
-DTRIMMED -Os -freorder-blocks -fno-reorder-functions -o TestXMLExtras
TestXMLExtras.o -lpthread -Wl,-rpath-link,../../../dist/bin
-L../../../dist/bin -L../../../dist/lib -L../../../dist/bin
-L../../../dist/lib -L../../../dist/bin -lmozjs
../../../dist/lib/libxpcomglue_s.a -L../../../dist/bin -lxpcom -lxul
-L../../../dist/lib -lplds4 -lplc4 -lnspr4 -lpthread -ldl -ldl -lm
TestXMLExtras.o:(.data._ZTV11nsIDocument[vtable for nsIDocument]+0x58):
undefined reference to `nsINode::GetProperty(unsigned short, nsIAtom*,
unsigned int*) const'
TestXMLExtras.o:(.data._ZTV11nsIDocument[vtable for nsIDocument]+0x5c):
undefined reference to `nsINode::SetProperty(unsigned short, nsIAtom*,
void*, void (*)(void*, nsIAtom*, void*, void*), int, void**)'
TestXMLExtras.o:(.data._ZTV11nsIDocument[vtable for nsIDocument]+0x60):
undefined reference to `nsINode::DeleteProperty(unsigned short, nsIAtom*)'
TestXMLExtras.o:(.data._ZTV11nsIDocument[vtable for nsIDocument]+0x64):
undefined reference to `nsINode::UnsetProperty(unsigned short, nsIAtom*,
unsigned int*)'
TestXMLExtras.o:(.data._ZTV11nsIDocument[vtable for nsIDocument]+0x68):
undefined reference to `nsINode::AddMutationObserver(nsIMutationObserver*)'
TestXMLExtras.o:(.data._ZTV11nsIDocument[vtable for nsIDocument]+0x6c):
undefined reference to
`nsINode::RemoveMutationObserver(nsIMutationObserver*)'
TestXMLExtras.o:(.data._ZTV11nsIDocument[vtable for nsIDocument]+0x78):
undefined reference to `nsINode::CreateSlots()'
TestXMLExtras.o: In function `nsINode::IsEditableExternal() const':
TestXMLExtras.cpp:(.text._ZNK7nsINode18IsEditableExternalEv[nsINode::IsEditableExternal()
const]+0x13): undefined reference to `nsINode::IsEditableInternal() const'
TestXMLExtras.o: In function `nsIDocument::~nsIDocument()':
TestXMLExtras.cpp:(.text._ZN11nsIDocumentD0Ev[nsIDocument::~nsIDocument()]+0x83):
undefined reference to `nsPropertyTable::DeleteAllProperties()'
:TestXMLExtras.cpp:(.text._ZN11nsIDocumentD0Ev[nsIDocument::~nsIDocument()]+0xc7):
undefined reference to `nsINode::~nsINode()'
TestXMLExtras.o: In function `nsIDocument::~nsIDocument()':
TestXMLExtras.cpp:(.text._ZN11nsIDocumentD1Ev[nsIDocument::~nsIDocument()]+0x83):
undefined reference to `nsPropertyTable::DeleteAllProperties()'
:TestXMLExtras.cpp:(.text._ZN11nsIDocumentD1Ev[nsIDocument::~nsIDocument()]+0xc7):
undefined reference to `nsINode::~nsINode()'
collect2: ld returned 1 exit status
make[5]: *** [TestXMLExtras] Error 1
make[5]: Leaving directory
`/home/kykyu/moz1.9/mozilla/obj-dir-browser-chinook-armel/extensions/xmlextras/tests'
make[4]: *** [tools] Error 2
make[4]: Leaving directory
`/home/kykyu/moz1.9/mozilla/obj-dir-browser-chinook-armel/extensions/xmlextras'
make[3]: *** [tools_tier_gecko] Error 2
make[3]: Leaving directory
`/home/kykyu/moz1.9/mozilla/obj-dir-browser-chinook-armel'
make[2]: *** [tier_toolkit] Error 2
make[2]: Leaving directory
`/home/kykyu/moz1.9/mozilla/obj-dir-browser-chinook-armel'
make[1]: *** [default] Error 2
make[1]: Leaving directory
`/home/kykyu/moz1.9/mozilla/obj-dir-browser-chinook-armel'
make: *** [build] Error 2
kykyu@kykyu-ubuntu:~$
May I know any advise from you for my problem? My platform is Ubuntu 7.10.
I've install scratchbox R4 and maemo chinook, as instructed in the same wiki
page... Thanks!
Kenny.
[sbox-CHINOOK_ARMEL: ~/moz1.9/mozilla] > make -f client.mk build_all
Adding client.mk options from /home/kykyu/moz1.9/mozilla/mozconfig:
MOZ_CO_PROJECT=browser
MOZ_OBJDIR=$(TOPSRCDIR)/obj-dir-browser-chinook-armel
make -C /home/kykyu/moz1.9/mozilla/obj-dir-browser-chinook-armel
make[1]: Entering directory
`/home/kykyu/moz1.9/mozilla/obj-dir-browser-chinook-armel'
rm -f -rf ./dist/sdk
rm -f -rf ./dist/include
rm -f -rf _tests
/scratchbox/tools/bin/make -C config export
make[2]: Entering directory
`/home/kykyu/moz1.9/mozilla/obj-dir-browser-chinook-armel/config'
/home/kykyu/moz1.9/mozilla/obj-dir-browser-chinook-armel/config/nsinstall
-R -m 644 ../mozilla-config.h
/home/kykyu/moz1.9/mozilla/config/nsStaticComponents.h ../dist/include
make[2]:
/home/kykyu/moz1.9/mozilla/obj-dir-browser-chinook-armel/config/nsinstall:
Command not found
make[2]: *** [export] Error 127
make[2]: Leaving directory
`/home/kykyu/moz1.9/mozilla/obj-dir-browser-chinook-armel/config'
make[1]: *** [default] Error 2
make[1]: Leaving directory
`/home/kykyu/moz1.9/mozilla/obj-dir-browser-chinook-armel'
make: *** [build] Error 2
[sbox-CHINOOK_ARMEL: ~/moz1.9/mozilla] > make -f client.mk build_all
Adding client.mk options from /home/kykyu/moz1.9/mozilla/mozconfig:
MOZ_CO_PROJECT=browser
MOZ_OBJDIR=$(TOPSRCDIR)/obj-dir-browser-chinook-armel
make -C /home/kykyu/moz1.9/mozilla/obj-dir-browser-chinook-armel
make[1]: Entering directory
`/home/kykyu/moz1.9/mozilla/obj-dir-browser-chinook-armel'
rm -f -rf ./dist/sdk
rm -f -rf ./dist/include
rm -f -rf _tests
/scratchbox/tools/bin/make -C config export
make[2]: Entering directory
`/home/kykyu/moz1.9/mozilla/obj-dir-browser-chinook-armel/config'
/home/kykyu/moz1.9/mozilla/obj-dir-browser-chinook-armel/config/nsinstall
-R -m 644 ../mozilla-config.h
/home/kykyu/moz1.9/mozilla/config/nsStaticComponents.h ../dist/include
make[2]:
/home/kykyu/moz1.9/mozilla/obj-dir-browser-chinook-armel/config/nsinstall:
Command not found
make[2]: *** [export] Error 127
make[2]: Leaving directory
`/home/kykyu/moz1.9/mozilla/obj-dir-browser-chinook-armel/config'
make[1]: *** [default] Error 2
make[1]: Leaving directory
`/home/kykyu/moz1.9/mozilla/obj-dir-browser-chinook-armel'
make: *** [build] Error 2
[sbox-CHINOOK_ARMEL: ~/moz1.9/mozilla] >
Still I cannot compile... can I be advised?
Thanks!
Kenny.