Re: Mplayerplug-in-devel post from [email protected] requires approval

Julian Sikorski <[email protected]> Wed, 05 Dec 2007 21:25:37 +0100
Newsgroups gmane.comp.mozilla.mplayerplug-in
Message-ID <[email protected]>
Kevin DeKorte pisze:
>> Hello,
> 
>> in an attempt to update the livna package, I tried to switch to building
>> against xulrunner. Xulrunner is supposed to be default for Fedora 9
>> onwards. Here is what I got:
> 
>> g++ -c -o nsScriptablePeer.o -Wall -DXP_UNIX -DMOZ_X11
>> -I/usr/include/xulrunner-1.9b2pre/stable -I/usr/include/nspr4
>> -I/usr/include/xulrunner-1.9b2pre -O2 -g -pipe -Wall
>> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
>> --param=ssp-buffer-size=4 -m64 -mtune=generic      -O2 -g -pipe -Wall
>> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
>> --param=ssp-buffer-size=4 -m64 -mtune=generic  -Iinclude -fPIC
>> -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include
>> -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0
>> -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
>> -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include
>> -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0
>> -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -pthread
>> -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -DGTK_ENABLED
>> Source/nsScriptablePeer.cpp
>> In file included from Source/nsScriptablePeer.h:48,
>>                  from Source/plugin.h:54,
>>                  from Source/nsScriptablePeer.cpp:48:
>> Source/nsIScriptableMplayerPlugin.h:28:60: error: macro
>> "NS_DEFINE_STATIC_IID_ACCESSOR" requires 2 arguments, but only 1 given
>> Source/nsIScriptableMplayerPlugin.h:123:64: error: macro
>> "NS_DEFINE_STATIC_IID_ACCESSOR" requires 2 arguments, but only 1 given
>> In file included from Source/nsScriptablePeer.h:48,
>>                  from Source/plugin.h:54,
>>                  from Source/plugin.cpp:37:
>> Source/nsIScriptableMplayerPlugin.h:28:60: error: macro
>> "NS_DEFINE_STATIC_IID_ACCESSOR" requires 2 arguments, but only 1 given
>> Source/nsIScriptableMplayerPlugin.h:123:64: error: macro
>> "NS_DEFINE_STATIC_IID_ACCESSOR" requires 2 arguments, but only 1 given
>> include/pluginbase.h:55: warning: 'class nsPluginInstanceBase' has
>> virtual functions but non-virtual destructor
>> /usr/include/xulrunner-1.9b2pre/stable/nsISupportsBase.h:66: warning:
>> 'class nsISupports' has virtual functions but non-virtual destructor
>> /usr/include/xulrunner-1.9b2pre/stable/nsCycleCollector.h:53: warning:
>> 'struct nsCycleCollectionLanguageRuntime' has virtual functions but
>> non-virtual destructor
>> /usr/include/xulrunner-1.9b2pre/stable/nsCycleCollector.h:73: warning:
>> 'struct nsCycleCollectionJSRuntime' has virtual functions but
>> non-virtual destructor
>> Source/nsIScriptableMplayerPlugin.h:28: error: ISO C++ forbids
>> declaration of 'NS_DEFINE_STATIC_IID_ACCESSOR' with no type
>> Source/nsIScriptableMplayerPlugin.h:31: error: expected ';' before 'virtual'
>> Source/nsIScriptableMplayerPlugin.h:25: warning: 'class
>> nsIScriptableWMPPlugin' has virtual functions but non-virtual destructor
>> Source/nsIScriptableMplayerPlugin.h:123: error: ISO C++ forbids
>> declaration of 'NS_DEFINE_STATIC_IID_ACCESSOR' with no type
>> Source/nsIScriptableMplayerPlugin.h:126: error: expected ';' before
>> 'virtual'
>> Source/nsIScriptableMplayerPlugin.h:120: warning: 'class
>> nsIScriptableMplayerPlugin' has virtual functions but non-virtual destructor
>> /usr/include/xulrunner-1.9b2pre/stable/nsIClassInfo.h:29: warning:
>> 'class nsIClassInfo' has virtual functions but non-virtual destructor
>> Source/nsScriptablePeer.h:56: warning: 'class nsClassInfoMixin' has
>> virtual functions but non-virtual destructor
>> Source/nsScriptablePeer.h: In member function 'virtual nsresult
>> nsClassInfoMixin::GetImplementationLanguage(PRUint32*)':
>> Source/nsScriptablePeer.h:64: error: 'nsIProgrammingLanguage' has not
>> been declared
>> include/pluginbase.h:55: warning: 'class nsPluginInstanceBase' has
>> virtual functions but non-virtual destructor
>> /usr/include/xulrunner-1.9b2pre/stable/nsISupportsBase.h:66: warning:
>> 'class nsISupports' has virtual functions but non-virtual destructor
>> /usr/include/xulrunner-1.9b2pre/stable/nsCycleCollector.h:53: warning:
>> 'struct nsCycleCollectionLanguageRuntime' has virtual functions but
>> non-virtual destructor
>> /usr/include/xulrunner-1.9b2pre/stable/nsCycleCollector.h:73: warning:
>> 'struct nsCycleCollectionJSRuntime' has virtual functions but
>> non-virtual destructor
>> Source/nsIScriptableMplayerPlugin.h:28: error: ISO C++ forbids
>> declaration of 'NS_DEFINE_STATIC_IID_ACCESSOR' with no type
>> Source/nsIScriptableMplayerPlugin.h:31: error: expected ';' before 'virtual'
>> Source/nsIScriptableMplayerPlugin.h:25: warning: 'class
>> nsIScriptableWMPPlugin' has virtual functions but non-virtual destructor
>> Source/nsIScriptableMplayerPlugin.h:123: error: ISO C++ forbids
>> declaration of 'NS_DEFINE_STATIC_IID_ACCESSOR' with no type
>> Source/nsIScriptableMplayerPlugin.h:126: error: expected ';' before
>> 'virtual'
>> Source/nsIScriptableMplayerPlugin.h:120: warning: 'class
>> nsIScriptableMplayerPlugin' has virtual functions but non-virtual destructor
>> /usr/include/xulrunner-1.9b2pre/stable/nsIClassInfo.h:29: warning:
>> 'class nsIClassInfo' has virtual functions but non-virtual destructor
>> Source/nsScriptablePeer.h:56: warning: 'class nsClassInfoMixin' has
>> virtual functions but non-virtual destructor
>> Source/nsScriptablePeer.h: In member function 'virtual nsresult
>> nsClassInfoMixin::GetImplementationLanguage(PRUint32*)':
>> Source/nsScriptablePeer.h:64: error: 'nsIProgrammingLanguage' has not
>> been declared
>> Source/nsScriptablePeer.cpp: In member function 'virtual nsresult
>> nsScriptablePeer::QueryInterface(const nsIID&, void**)':
>> Source/nsScriptablePeer.cpp:101: error: expected primary-expression
>> before '*' token
>> Source/nsScriptablePeer.cpp:101: error: expected primary-expression
>> before ',' token
>> Source/nsScriptablePeer.cpp:101: error: 'NS_STATIC_CAST' was not
>> declared in this scope
>> Source/nsScriptablePeer.cpp:107: error: expected primary-expression
>> before '*' token
>> Source/nsScriptablePeer.cpp:107: error: expected primary-expression
>> before ',' token
>> Source/nsScriptablePeer.cpp:107: error: 'NS_STATIC_CAST' was not
>> declared in this scope
>> Source/nsScriptablePeer.cpp:114: error: expected primary-expression
>> before '*' token
>> Source/nsScriptablePeer.cpp:114: error: expected primary-expression
>> before ',' token
>> Source/nsScriptablePeer.cpp:116: error: expected primary-expression
>> before '*' token
>> Source/nsScriptablePeer.cpp:116: error: expected primary-expression
>> before ',' token
>> Source/nsScriptablePeer.cpp:116: error: 'NS_STATIC_CAST' was not
>> declared in this scope
>> Source/nsScriptablePeer.cpp:116: error: 'NS_STATIC_CAST' was not
>> declared in this scope
>> Source/nsScriptablePeer.cpp:116: error: declaration of
>> '<typeprefixerror>NS_STATIC_CAST'
>> Source/nsScriptablePeer.cpp:116: error: conflicts with previous
>> declaration '<typeprefixerror>NS_STATIC_CAST'
>> Source/nsScriptablePeer.cpp: In member function 'virtual nsresult
>> nsControlsScriptablePeer::QueryInterface(const nsIID&, void**)':
>> Source/nsScriptablePeer.cpp:514: error: expected primary-expression
>> before '*' token
>> Source/nsScriptablePeer.cpp:514: error: expected primary-expression
>> before ',' token
>> Source/nsScriptablePeer.cpp:514: error: 'NS_STATIC_CAST' was not
>> declared in this scope
>> Source/nsScriptablePeer.cpp:520: error: expected primary-expression
>> before '*' token
>> Source/nsScriptablePeer.cpp:520: error: expected primary-expression
>> before ',' token
>> Source/nsScriptablePeer.cpp:520: error: 'NS_STATIC_CAST' was not
>> declared in this scope
>> Source/nsScriptablePeer.cpp:527: error: expected primary-expression
>> before '*' token
>> Source/nsScriptablePeer.cpp:527: error: expected primary-expression
>> before ',' token
>> Source/nsScriptablePeer.cpp:529: error: expected primary-expression
>> before '*' token
>> Source/nsScriptablePeer.cpp:529: error: expected primary-expression
>> before ',' token
>> Source/nsScriptablePeer.cpp:529: error: 'NS_STATIC_CAST' was not
>> declared in this scope
>> Source/nsScriptablePeer.cpp:529: error: 'NS_STATIC_CAST' was not
>> declared in this scope
>> Source/nsScriptablePeer.cpp:529: error: declaration of
>> '<typeprefixerror>NS_STATIC_CAST'
>> Source/nsScriptablePeer.cpp:529: error: conflicts with previous
>> declaration '<typeprefixerror>NS_STATIC_CAST'
>> make: *** [nsScriptablePeer.o] Error 1
>> make: *** Waiting for unfinished jobs....
>> /usr/include/xulrunner-1.9b2pre/stable/nsIServiceManager.h: At global scope:
>> /usr/include/xulrunner-1.9b2pre/stable/nsIServiceManager.h:40: warning:
>> 'class nsIServiceManager' has virtual functions but non-virtual destructor
>> /usr/include/xulrunner-1.9b2pre/stable/nsIMemory.h:58: warning: 'class
>> nsIMemory' has virtual functions but non-virtual destructor
>> Source/plugin.cpp: In function 'NPError NS_PluginInitialize()':
>> Source/plugin.cpp:101: warning: dereferencing type-punned pointer will
>> break strict-aliasing rules
>> make: *** [plugin.o] Error 1
>> error: Bad exit status from /var/tmp/rpm-tmp.8154 (%build)
> 
>> Could somebody please take a look at that? Thanks in advance.
> 
>> Regards,
>> Julian
> 
> Julian,
> 
> Do you have a machine that I could ssh into and debug this? Also could
> you see if gecko-mediaplayer compiles? Also, I have made a change to CVS
> for mplayerplug-in that might help.
> 
> Kevin
> 
> 
mplayerplug-in patch from cvs does not help here. Error stays the same.

Julian

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4