Dear pals,

I am trying to get kaffe-oji plugin work with mozilla 1.2.1. Since the
original code of this plugin was designed to work with pocketlinux and
an ancient version of mozilla, I faced a lot of problems in doing so.

I have got compiled various files by modifying the sources to reflect
current interfaces available in mozilla. Now I am stuck up at a
particular file ojiSecureEnv.cpp. While running make, I get the
following:
--------------------------------------------------------------
Removing old dependencies file, .deps/.all.pp
make export
make[1]: Entering directory `/var/tmp/kaffeOJIPlugin'
make[1]: Nothing to be done for `export'.
make[1]: Leaving directory `/var/tmp/kaffeOJIPlugin'
make libs
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:768: warning: ANSI C++ forbids declaration
`NS_IMPL_ISUPPORTS' with no type
ojiSecureEnv.cpp: In function `int NS_IMPL_ISUPPORTS(ojiSecureEnv)':
ojiSecureEnv.cpp:768: parse error at end of input
make[1]: *** [ojiSecureEnv.o] Error 1
make[1]: Leaving directory `/var/tmp/kaffeOJIPlugin'
make: *** [all] Error 2
----------------------------------------------------

Line 768 of ojiSecureEnv.cpp got the following which is the last line
of the file:
----------------------------------------------------
NS_IMPL_ISUPPORTS(ojiSecureEnv, ojiSecureEnv::GetIID() )
----------------------------------------------------

Apparently there is no more macro called NS_IMPL_ISUPPORTS in mozilla
today.
This has been replaced with other macros of the form
NS_IMPL_ISUPPORTS[01234..].
A friendly poster of another newsgroup pointed out to me about this
posting
http://groups.google.com/groups?q=NS_IMPL_ISUPPORTS&hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=3A425D72.7030403%40netscape.com&rnum=5
which discusses about the same thing.

I am not much familiar with mozilla code as this is my first effort to
dig in.
Can I get some help in replacing NS_IMPL_ISUPPORTS with
NS_IMPL_ISUPPORTS1? I wanted to know the changes I need to make and
also what are the meanings of the parameters of these macros. Help
from Mr. Alec Flett(the post I mentioned above) would be greatly
appreciated since he has already done a lot of work with these macros.

Thanks in advance.
Vrihad

Reply via email to