ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> pyxpcom
pyxpcom
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved