I tried to build fennec for maemo with toolchain scratchbox-toolchain-
cs2005q3.2-glibc2.5-arm but failed. Error messages are:
rm -f libmozgnome.so
c++ -fno-rtti -fno-exceptions -Wall -Wpointer-arith -Woverloaded-
virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-
align -Wno-invalid-offsetof -Wno-long-long -pedantic -fno-strict-
aliasing -fshort-wchar -pthread -pipe -DNDEBUG -DTRIMMED -Os -
freorder-blocks -fno-reorder-functions -I/usr/include/gconf/2 -I/usr/
include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -
I/usr/lib/glib-2.0/include -pthread -I/usr/include/gnome-vfs-2.0 -I/
usr/lib/gnome-vfs-2.0/include -I/usr/include/gconf/2 -I/usr/include/
dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/
lib/glib-2.0/include -I/usr/include/gnome-vfs-module-2.0 -I/usr/
include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -
I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/
dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/lib/gtk-2.0/include -I/usr/
include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/
include/freetype2 -I/usr/include/libpng12 -fPIC -shared -Wl,-z,defs
-Wl,-h,libmozgnome.so -o libmozgnome.so nsGConfService.o
nsGnomeVFSService.o nsGnomeModule.o nsAlertsService.o
nsAlertsIconListener.o -lpthread -Wl,-rpath-link,/home/user/
fennec_src/obj-moz-dir/xulrunner/dist/bin/:/usr/lib:/lib -Wl,-rpath-
link,/home/user/fennec_src/obj-moz-dir/xulrunner/dist/bin -Wl,-rpath-
link,/usr/local/lib /home/user/fennec_src/obj-moz-dir/xulrunner/dist/
lib/libxpcomglue_s.a -L/home/user/fennec_src/obj-moz-dir/xulrunner/
dist/bin -lxpcom -L/home/user/fennec_src/obj-moz-dir/xulrunner/dist/
bin -lxpcom -L/home/user/fennec_src/obj-moz-dir/xulrunner/dist/lib -
lplds4 -lplc4 -lnspr4 -lpthread -ldl -lgconf-2 -ldbus-glib-1 -ldbus-1 -
lgobject-2.0 -lglib-2.0 -pthread -lgnomevfs-2 -lgconf-2 -lgthread-2.0 -
lrt -lgmodule-2.0 -ldl -ldbus-glib-1 -ldbus-1 -lgobject-2.0 -lglib-2.0
-lgobject-2.0 -lglib-2.0 -lnotify -lgtk-x11-2.0 -ldbus-glib-1 -lgdk-
x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -
lcairo -lgmodule-2.0 -ldl -ldbus-1 -lgobject-2.0 -lglib-2.0 -Wl,--
version-script -Wl,/home/user/fennec_src/fennec_1.0b5/build/unix/gnu-
ld-scripts/components-version-script -Wl,-Bsymbolic -lasound -ldl -lm
nsAlertsIconListener.o:(.data._ZTV17gfxUnknownSurface[vtable for
gfxUnknownSurface]+0x8): undefined reference to
`gfxASurface::BeginPrinting(nsAString const&, nsAString
const&)'nsAlertsIconListener.o:(.data._ZTV17gfxUnknownSurface[vtable
for gfxUnknownSurface]+0xc): undefined reference to
`gfxASurface::EndPrinting()'
nsAlertsIconListener.o:(.data._ZTV17gfxUnknownSurface[vtable for
gfxUnknownSurface]+0x10): undefined reference to
`gfxASurface::AbortPrinting()'
nsAlertsIconListener.o:(.data._ZTV17gfxUnknownSurface[vtable for
gfxUnknownSurface]+0x14): undefined reference to
`gfxASurface::BeginPage()'
nsAlertsIconListener.o:(.data._ZTV17gfxUnknownSurface[vtable for
gfxUnknownSurface]+0x18): undefined reference to `gfxASurface::EndPage
()'
nsAlertsIconListener.o:(.data._ZTV17gfxUnknownSurface[vtable for
gfxUnknownSurface]+0x1c): undefined reference to `gfxASurface::Finish
()'
nsAlertsIconListener.o: In function
`gfxUnknownSurface::~gfxUnknownSurface()':nsAlertsIconListener.cpp:
(.text._ZN17gfxUnknownSurfaceD1Ev[gfxUnknownSurface::~gfxUnknownSurface
()]+0x1e): undefined reference to `vtable for gfxASurface'
nsAlertsIconListener.o: In function
`gfxUnknownSurface::~gfxUnknownSurface()':nsAlertsIconListener.cpp:
(.text._ZN17gfxUnknownSurfaceD0Ev[gfxUnknownSurface::~gfxUnknownSurface
()]+0x1f): undefined reference to `vtable for gfxASurface'
collect2: ld returned 1 exit status
make[5]: *** [libmozgnome.so] Error 1
make[5]: Leaving directory `/home/user/fennec_src/obj-moz-dir/
xulrunner/toolkit/system/gnome'
make[4]: *** [libs_tier_toolkit] Error 2
make[4]: Leaving directory `/home/user/fennec_src/obj-moz-dir/
xulrunner'
make[3]: *** [tier_toolkit] Error 2
make[3]: Leaving directory `/home/user/fennec_src/obj-moz-dir/
xulrunner'
make[2]: *** [default] Error 2
make[2]: Leaving directory `/home/user/fennec_src/obj-moz-dir/
xulrunner'
make[1]: *** [build] Error 2
Since there is only instructions for cs2007q3, I followed the steps
but still not work out.
I suspect something is wrong with my build environment, could someone
who succeeded in building mail me the config files which are
mobilebase/xulrunner/mozilla-config.h and mobilebase/mobile/mozilla-
config.h?
My email: pageguest at gmail dot com
Thanks!