Hi,
I'm building extension for Fennec (Maemo Diablo 4.1.2)
Extension uses Browser DBus Bridge >> http://sandbox.movial.com/wiki/index...er_DBus_Bridge
Xulrunner version is 1.9.0.7

Compiling Browser DBus Brigde causes errors:

[sbox-DIABLO_ARMEL: ~/xul/browser-dbus-bridge] > make xpcom
GECKO_SDK_PATH=../xulrunner-sdk

Building XPCOM D-Bus service:
Generate debug/include/IDBusService.h
Generate debug/xpt/dbusservice.xpt
Compile debug/obj/xpcom-dbusservice/DBusDataCarrier.os
Compile debug/obj/xpcom-dbusservice/DBusMarshaling.os
xpcom-dbusservice/DBusMarshaling.cpp: In function `PRUint16 getVType
(int)':
xpcom-dbusservice/DBusMarshaling.cpp:389: warning: converting of
negative value
`-0x00000000000000001' to `PRUint16'
xpcom-dbusservice/DBusMarshaling.cpp: In function
`already_AddRefed getVariantFromIter(JSContext*,
DBusMessageIter*, int)':
.../xulrunner-sdk/include/xpcom/nsISupportsBase.h:94: error: `virtual
nsrefcnt
nsISupports::AddRef()' is inaccessible
xpcom-dbusservice/DBusMarshaling.cpp:1310: error: within this context
.../xulrunner-sdk/include/xpcom/nsISupportsBase.h:94: error: `virtual
nsrefcnt
nsISupports::AddRef()' is inaccessible
xpcom-dbusservice/DBusMarshaling.cpp:1352: error: within this context
make[1]: *** [debug/obj/xpcom-dbusservice/DBusMarshaling.os] Error 1
make: *** [xpcom-dbusservice-plugin] Error 2

Both problematic parts of DBusMarshaling.cpp look exactly same (1310 &
1352):
....
nsIVariant **item_array = new nsIVariant*[item_count];
for (PRUint32 i = 0; i < item_count; i++)
{
nsCOMPtr item = do_QueryElementAt
(items, i);
item_array[i] = item;
NS_ADDREF(item); <<<< }
....

Can anyone help? What's wrong? Or is problem in nsISupportsBase.h?

Whole source code is available at: http://sandbox.movial.com/gitweb?p=b...bus-bridge.git

tnx
--kai