Re: [pyxpcom] xulrunner trunk, build error in PyIInterfaceInfo.cpp
by Mark Hammond other posts by this author
Jan 19 2008 5:30PM messages near this date
view in the new Beta List Site
[pyxpcom] xulrunner trunk, build error in PyIInterfaceInfo.cpp
|
Re: [pyxpcom] xulrunner trunk, build error in PyIInterfaceInfo.cpp
> Hi all. I'm trying to build PyXPCOM using the xulrunner trunk. First,
> is this the right place to report build problems, or the Mozilla XPCOM
> list?
>
> Environment:
>
> - OS X 10.5.1
>
> - Python 2.4.4 from MacPorts (using a PYTHON env var)
>
> - XULRunner trunk
>
> Are there any patches I should apply to the trunk?
>
> I started by building xulrunner to make sure I got that part working.
> After that succeeded, I edited my mozconfig file to turn on building
> of pyxpcom. I watched the configure steps to make sure the right
> Python was chosen.
>
> Here is the compile error:
>
> /Users/pauleveritt/Desktop/paul/xulrunnersrc/mozilla/extensions/python/
> xpcom/src/PyIInterfaceInfo.cpp: In function 'PyObject*
> PyGetIID(PyObject*, PyObject*)':
> /Users/pauleveritt/Desktop/paul/xulrunnersrc/mozilla/extensions/python/
> xpcom/src/PyIInterfaceInfo.cpp:94: error: invalid conversion from
> 'nsIID**' to 'const nsIID**'
> /Users/pauleveritt/Desktop/paul/xulrunnersrc/mozilla/extensions/python/
> xpcom/src/PyIInterfaceInfo.cpp:94: error: initializing argument 1 of
> 'virtual nsresult nsIInterfaceInfo::GetIIDShared(const nsIID**)'
> make[8]: *** [PyIInterfaceInfo.o] Error 1
Hi Paul,
I haven't built the trunk for a few months, but nothing here seems to have
changed. You could try changing line 91 from:
nsIID *iid_ret;
to:
const nsIID *iid_ret;
as that is how other users of that interface appear to declare their
variable. I've no idea why compilers on other platforms don't also
complain, but whatever... :)
Mark
_______________________________________________
pyxpcom mailing list
pyxpcom@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Paul Everitt
Mark Hammond
Paul Everitt
Shane Caraveo
Paul Everitt
|