[kaffe] Kaffe OJI plugin woes

Vrihad Shoonya vrihad at myway.com
Tue Mar 11 07:58:01 PST 2003


Dear pals,

I am trying to get kaffe oji plugin working with mozilla 1.2.1.
I got many of its files compiled by tweaking include directories
and changing some functions to match it with that of 
mozilla-1.2.1. Now I am stuck at compiling file ojiSecureEnv.cpp. 
I am getting following error:
----------------------------------------------------------------
make[1]: Entering directory `/var/tmp/kaffeOJIPlugin'
ojiSecureEnv.cpp
c++ -o ojiSecureEnv.o -c -DOSTYPE=\"Linux2.4\" -DOSARCH=\"Linux\" -DOJI -Ikaffeinstall//include/kaffe/ -Ikaffesource//build-gnu/config -Ikaffesource//src/config/ -Ikaffesource//config/ -Ikaffeinstall//include/kaffe -Ikaffeinstall//include -I/opt/mozilla/include -I/opt/mozilla/include/mozilla-1.2.1/plugin -I/opt/mozilla/include/mozilla-1.2.1/oji -I/opt/mozilla/include/mozilla-1.2.1/caps -I/opt/mozilla/include/mozilla-1.2.1/string -I/opt/mozilla/include/mozilla-1.2.1/liveconnect -I/opt/mozilla/include/mozilla-1.2.1/string -I/opt/mozilla/include/mozilla-1.2.1/xpcom -I/opt/mozilla/include/mozilla-1.2.1/pref  -I./goanna/dist/include/ojiplugin -I./goanna/dist/include -I/var/tmp/mozilla/dist/include/nspr      -I/usr/X11R6/include   -fPIC  -I/usr/X11R6/include -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -pedantic -Wno-long-long -pthread -pipe  -DNDEBUG -DTRIMMED  -I/usr/X11R6/include -DMOZILLA_CLIENT -include ./goanna/mozilla-config.h -Wp,-MD,.deps/ojiSecureEnv.pp ojiSecureEnv.cpp
ojiSecureEnv.cpp:767: type specifier omitted for parameter
ojiSecureEnv.cpp:769: warning: ANSI C++ forbids declaration `NS_IMPL_ISUPPORTS' with no type
ojiSecureEnv.cpp: In function `int NS_IMPL_ISUPPORTS(ojiSecureEnv)':
ojiSecureEnv.cpp:769: parse error at end of input
make[1]: *** [ojiSecureEnv.o] Error 1
make[1]: Leaving directory `/var/tmp/kaffeOJIPlugin'
make: *** [all] Error 2
----------------------------------------------------------------

Apparently c++ is choking at a macro called NS_IMPL_ISUPPORTS.
But this macro is not defined anywhere in mozilla includes.
Actually available macros are named NS_IMPL_ISUPPORTS[0123..] 
etc. I am not sure how to proceed from here. Can anyone having
experience with oji plugin structure help me?

By the way has kaffe-oji plugin development stopped? I am very
interested on it as its a perfect solution for embedded
devices where sun's jvm can not be used due to its bloat.

Thanks in advance.
Vrihad

_______________________________________________
No banners. No pop-ups. No kidding.
Introducing My Way - http://www.myway.com




More information about the kaffe mailing list