MozillaZine

Minimo on Psilinux (Netbook)

Talk about Mozilla browsers for small devices such as PDAs and cellphones.
b0j3
 
Posts: 1
Joined: May 26th, 2005, 1:08 am

Post Posted May 26th, 2005, 1:31 am

Hello!

I am trying to compile minimo on netbook (SA-1100) with Debian's ARM distribution.
After some tweaking I managed to get to linking but it bails out with the message:

../../../../dist/bin/libxpcom_core.so: undefined reference to `_PrepareAndDispatch'

Any ideas/thoughts about the problem?

B.

nafm
 
Posts: 1
Joined: February 6th, 2006, 3:12 am

Post Posted February 6th, 2006, 3:14 am

Hi,

I got the same error compiling minimo with sources 1.8b1,

do you found any solution ?

truly

tmarn
 
Posts: 1
Joined: April 25th, 2006, 5:51 am

Post Posted April 25th, 2006, 6:10 am

Try patch below (only needed for arm cross compiling on error: undefined reference _PrepareAndDispatch in xpcom_core):

The __attribute__((used)); is missing behind the asm("_PrepareAndDispatch")

My mozilla source is from BRANCH_1.8 (minimo 0.015)
This error only occures on ARM

This is a bug link: http://www.archivum.info/linux.debian.b ... 02539.html

Tom

--- mozilla/xpcom/reflect/xptcall/src/md/unix/xptcstubs_arm.cpp.orig 2006-04-25 14:39:08.882180573 +0200
+++ mozilla/xpcom/reflect/xptcall/src/md/unix/xptcstubs_arm.cpp 2006-04-25 14:40:01.693359781 +0200
@@ -45,7 +45,7 @@
#endif

/* Specify explicitly a symbol for this function, don't try to guess the c++ mangled symbol. */
-static nsresult PrepareAndDispatch(nsXPTCStubBase* self, uint32 methodIndex, PRUint32* args) asm("_PrepareAndDispatch");
+static nsresult PrepareAndDispatch(nsXPTCStubBase* self, uint32 methodIndex, PRUint32* args) asm("_PrepareAndDispatch") __attribute__((used));

static nsresult
PrepareAndDispatch(nsXPTCStubBase* self, uint32 methodIndex, PRUint32* args)

tonikitoo
 
Posts: 20
Joined: April 30th, 2006, 9:47 am
Location: Brazil

Post Posted April 30th, 2006, 10:55 am

it does the trick for me ...

thanks ;)
--Antonio Gomes

talmai

User avatar
 
Posts: 1
Joined: May 14th, 2007, 7:58 am

Post Posted May 14th, 2007, 12:17 pm

on a off-note...

this fix also works for firefox 2.0.0.3, 1.5.0.3 and 1.5.0.11 when compiling for ARM (cross-compiler gcc-4.1.0, glibc-2.3.2)

gajendra
 
Posts: 5
Joined: December 26th, 2007, 7:31 am

Post Posted December 28th, 2007, 3:30 am

Hi,
I am cross building firefox-2.0.0.11 following options to ARM platform
mk_add_options MOZ_CO_PROJECT=minimo
CROSS_COMPILE=1
PREFIX=/home/aspire/workdir/filesys/usr
LIBIDL_CONFIG=$PREFIX/bin/libIDL-config-2
HOST_LIBIDL_CONFIG=/usr/bin/libIDL-config-2
ac_add_options --target=armv5tl-montavista-linuxeabi
ac_add_options --build=armv5tl-montavista-linuxeabi
ac_add_options --x-includes=$PREFIX/X11R6/include
ac_add_options --x-libraries=$PREFIX/X11R6/lib
ac_add_options --enable-application=minimo
ac_add_options --enable-default-toolkit=gtk2
ac_add_options --enable-static
ac_add_options --disable-shared
ac_add_options --prefix=$PREFIX
ac_add_options --includedir=$PREFIX/include
ac_add_options --libdir=$PREFIX/lib
ac_add_options --srcdir=$PREFIX/local/mozilla
ac_add_options --disable-gtktest
ac_add_options --disable-tests
ac_add_options --disable-pedantic
ac_add_options --disable-mailnews
ac_add_options --disable-composer
ac_add_options --disable-ldap
ac_add_options --disable-gnomeui
ac_add_options --disable-postscript
ac_add_options --disable-mathml
ac_add_options --disable-jsd
ac_add_options --disable-jsloader
ac_add_options --disable-installer
ac_add_options --disable-xpinstall
ac_add_options --disable-xpfe-components
ac_add_options --disable-xprint
ac_add_options --disable-necko-disk-cache
ac_add_options --disable-dtd-debug
ac_add_options --disable-logging
ac_add_options --disable-debug
ac_add_options --disable-freetypetest
ac_add_options --disable-freetype2
ac_add_options --disable-xft
ac_add_options --disable-gnomevfs
ac_add_options --disable-crypto
ac_add_options --disable-plugins
ac_add_options --disable-oji
ac_add_options --disable-view-source
ac_add_options --disable-accessibility
ac_add_options --disable-printing
ac_add_options --enable-native-uconv
ac_add_options --disable-installer
ac_add_options --disable-updater
ac_add_options --disable-activex
ac_add_options --disable-activex-scripting
ac_add_options --disable-feeds
ac_add_options --disable-optimize
ac_add_options --disable-logging
ac_add_options --disable-libIDLtest
ac_add_options --disable-glibtest
ac_add_options --disable-xul
ac_add_options --disable-profilesharing
ac_add_options --disable-profilelocking
ac_add_options --disable-cookies
ac_add_options --disable-v1-string-abi

I AM GETTING FOLLOWING ERROR
nsGfxFactoryGTK.cpp: In function `nsresult nsFontEnumeratorConstructor(nsISupports*, const nsIID&, void**)':
nsGfxFactoryGTK.cpp:155: error: `nsIFontEnumerator' undeclared (first use this function)
nsGfxFactoryGTK.cpp:155: error: (Each undeclared identifier is reported only once for each function it appears in.)
nsGfxFactoryGTK.cpp:155: error: `result' undeclared (first use this function)
gmake[4]: *** [nsGfxFactoryGTK.o] Error 1

IS THERE ANY MODIFICATIONS HAVE TO DO IN CONFIGURATION OPTIONS?
PLEASE HELP TO SOLVE THIS PROBLEM
Gajendra PH

Return to Mobile


Who is online

Users browsing this forum: No registered users and 1 guest