#57 Doesn't compile with gcc-3.3+

CVS
closed-wont-fix
nobody
Plugin (92)
5
2014-08-15
2004-10-02
No

Hi!

mplayerplug-in doesn't compile on gcc-3.3+ on debian.

In file included from Source/nsScriptablePeer.h:48,
from Source/plugin.h:49,
from Source/plugin.cpp:37:
Source/nsIScriptableMplayerPlugin.h:10:25:
nsISupports.h: Tiedostoa tai hakemistoa ei ole
In file included from Source/nsScriptablePeer.h:48,
from Source/plugin.h:49,
from Source/plugin.cpp:37:
Source/nsIScriptableMplayerPlugin.h:25: error: parse
error before `{' token
Source/nsIScriptableMplayerPlugin.h:34: error: parse
error before `)' token
Source/nsIScriptableMplayerPlugin.h:37: error: parse
error before `)' token
Source/nsIScriptableMplayerPlugin.h:120: error: parse
error before `{' token
Source/nsIScriptableMplayerPlugin.h:129: error: parse
error before `)' token
Source/nsIScriptableMplayerPlugin.h:132: error: parse
error before `)' token
Source/nsIScriptableMplayerPlugin.h:135: error: parse
error before `)' token
Source/nsIScriptableMplayerPlugin.h:138: error: parse
error before `)' token
Source/nsIScriptableMplayerPlugin.h:141: error: parse
error before `)' token
Source/nsIScriptableMplayerPlugin.h:144: error: parse
error before `)' token
Source/nsIScriptableMplayerPlugin.h:147: error: parse
error before `)' token
Source/nsIScriptableMplayerPlugin.h:150: error: parse
error before `)' token
Source/nsIScriptableMplayerPlugin.h:153: error: parse
error before `)' token
Source/nsIScriptableMplayerPlugin.h:156: error: parse
error before `)' token
Source/nsIScriptableMplayerPlugin.h:159: error: parse
error before `)' token
Source/nsIScriptableMplayerPlugin.h:162: error: parse
error before `char'
Source/nsIScriptableMplayerPlugin.h:165: error: parse
error before `*' token
Source/nsIScriptableMplayerPlugin.h:168: error: parse
error before `*' token
Source/nsIScriptableMplayerPlugin.h:171: error: parse
error before `*' token
Source/nsIScriptableMplayerPlugin.h:174: error: parse
error before `*' token
Source/nsIScriptableMplayerPlugin.h:175: error: parse
error before `char'
Source/nsIScriptableMplayerPlugin.h:178: error: parse
error before `*' token
Source/nsIScriptableMplayerPlugin.h:179: error: parse
error before `)' token
Source/nsIScriptableMplayerPlugin.h:182: error: parse
error before `*' token
Source/nsIScriptableMplayerPlugin.h:183: error: parse
error before `)' token
Source/nsIScriptableMplayerPlugin.h:186: error: parse
error before `*' token
Source/nsIScriptableMplayerPlugin.h:187: error: parse
error before `)' token
Source/nsIScriptableMplayerPlugin.h:190: error: parse
error before `*' token
Source/nsIScriptableMplayerPlugin.h:193: error: parse
error before `*' token
In file included from Source/plugin.h:49,
from Source/plugin.cpp:37:
Source/nsScriptablePeer.h:49:26: nsIClassInfo.h:
Tiedostoa tai hakemistoa ei ole
In file included from Source/plugin.h:49,
from Source/plugin.cpp:37:
Source/nsScriptablePeer.h:56: error: parse error before
`{' token
Source/nsScriptablePeer.h:62: error: parse error before
`*' token
Source/nsScriptablePeer.h:68: error: parse error before
`*' token
Source/nsScriptablePeer.h:71: error: parse error before
`,' token
Source/nsScriptablePeer.h:75: error: parse error before
`*' token
Source/nsScriptablePeer.h:78: error: parse error before
`*' token
Source/nsScriptablePeer.h:81: error: `nsCID' was not
declared in this scope
Source/nsScriptablePeer.h:81: error: `aClassID' was not
declared in this scope
Source/nsScriptablePeer.h:81: error: parse error before
`{' token
Source/nsScriptablePeer.h:84: error: `nsCID' was not
declared in this scope
Source/nsScriptablePeer.h:84: error: `aClassIDNoAlloc'
was not declared in this
scope
Source/nsScriptablePeer.h:84: error: parse error before
`{' token
Source/nsScriptablePeer.h:90: error: base class
`nsIScriptableWMPPlugin' has
incomplete type
Source/nsScriptablePeer.h:90: error: base class
`nsClassInfoMixin' has
incomplete type
Source/nsScriptablePeer.h:97: error: parse error before
`&' token
Source/nsScriptablePeer.h:98: error: `nsrefcnt' was not
declared in this scope
Source/nsScriptablePeer.h:98: error: variable
declaration is not allowed here
Source/nsScriptablePeer.h:98: error: syntax error
before `(' token
Source/nsScriptablePeer.h:99: error: `nsrefcnt' was not
declared in this scope
Source/nsScriptablePeer.h:99: error: variable
declaration is not allowed here
Source/nsScriptablePeer.h:99: error: syntax error
before `(' token
Source/nsScriptablePeer.h:102: error: 'nsrefcnt' is
used as a type, but is not
defined as a type.
Source/nsScriptablePeer.h:106: error: parse error
before `)' token
Source/nsScriptablePeer.h:106: error: parse error
before `)' token
Source/nsScriptablePeer.h:106: error: parse error
before `)' token
Source/nsScriptablePeer.h:113: error: base class
`nsIScriptableMplayerPlugin'
has incomplete type
Source/nsScriptablePeer.h:113: error: base class
`nsClassInfoMixin' has
incomplete type
Source/nsScriptablePeer.h:120: error: parse error
before `&' token
Source/nsScriptablePeer.h:121: error: `nsrefcnt' was
not declared in this scope
Source/nsScriptablePeer.h:121: error: variable
declaration is not allowed here
Source/nsScriptablePeer.h:121: error: syntax error
before `(' token
Source/nsScriptablePeer.h:122: error: `nsrefcnt' was
not declared in this scope
Source/nsScriptablePeer.h:122: error: variable
declaration is not allowed here
Source/nsScriptablePeer.h:122: error: syntax error
before `(' token
Source/nsScriptablePeer.h:125: error: 'nsrefcnt' is
used as a type, but is not
defined as a type.
Source/nsScriptablePeer.h:129: error: parse error
before `)' token
Source/nsScriptablePeer.h:129: error: parse error
before `)' token
Source/nsScriptablePeer.h:129: error: parse error
before `)' token
Source/nsScriptablePeer.h:129: error: parse error
before `)' token
Source/nsScriptablePeer.h:129: error: parse error
before `)' token
Source/nsScriptablePeer.h:129: error: parse error
before `)' token
Source/nsScriptablePeer.h:129: error: parse error
before `)' token
Source/nsScriptablePeer.h:129: error: parse error
before `)' token
Source/nsScriptablePeer.h:129: error: parse error
before `)' token
Source/nsScriptablePeer.h:129: error: parse error
before `)' token
Source/nsScriptablePeer.h:129: error: parse error
before `)' token
Source/nsScriptablePeer.h:129: error: parse error
before `)' token
Source/nsScriptablePeer.h:129: error: parse error
before `char'
Source/nsScriptablePeer.h:129: error: parse error
before `*' token
Source/nsScriptablePeer.h:129: error: parse error
before `*' token
Source/nsScriptablePeer.h:129: error: parse error
before `*' token
Source/nsScriptablePeer.h:129: error: parse error
before `*' token
Source/nsScriptablePeer.h:129: error: parse error
before `char'
Source/nsScriptablePeer.h:129: error: parse error
before `*' token
Source/nsScriptablePeer.h:129: error: parse error
before `)' token
Source/nsScriptablePeer.h:129: error: parse error
before `*' token
Source/nsScriptablePeer.h:129: error: parse error
before `)' token
Source/nsScriptablePeer.h:129: error: parse error
before `*' token
Source/nsScriptablePeer.h:129: error: parse error
before `)' token
Source/nsScriptablePeer.h:129: error: parse error
before `*' token
Source/nsScriptablePeer.h:129: error: parse error
before `*' token
Source/plugin.cpp:38:31: nsIServiceManager.h: Tiedostoa
tai hakemistoa ei ole
Source/plugin.cpp:39:23: nsIMemory.h: Tiedostoa tai
hakemistoa ei ole
Source/plugin.cpp:40:76: nsISupportsUtils.h: Tiedostoa
tai hakemistoa ei ole
Source/plugin.cpp:54: error: syntax error before `*' token
Source/plugin.cpp: In function `NPError
NS_PluginInitialize()':
Source/plugin.cpp:79: error: `nsISupports' undeclared
(first use this function)
Source/plugin.cpp:79: error: (Each undeclared
identifier is reported only once
for each function it appears in.)
Source/plugin.cpp:79: error: `sm' undeclared (first use
this function)
Source/plugin.cpp:88: error: `nsIServiceManager'
undeclared (first use this
function)
Source/plugin.cpp:88: error: `NS_GET_IID' undeclared
(first use this function)
Source/plugin.cpp:89: error: `gServiceManager'
undeclared (first use this
function)
Source/plugin.cpp:90: error: `NS_RELEASE' undeclared
(first use this function)
Source/plugin.cpp: In function `void NS_PluginShutdown()':
Source/plugin.cpp:99: error: `NS_IF_RELEASE' undeclared
(first use this
function)
Source/plugin.cpp: In constructor
`nsPluginInstance::nsPluginInstance(NPP_t*)':
Source/plugin.cpp:141: error: `AddRef' undeclared
(first use this function)
Source/plugin.cpp: In destructor `virtual
nsPluginInstance::~nsPluginInstance()
':
Source/plugin.cpp:280: error: `Release' undeclared
(first use this function)
Source/plugin.cpp:281: error: `NS_IF_RELEASE'
undeclared (first use this
function)
Source/plugin.cpp: In member function `virtual NPError
nsPluginInstance::GetValue(NPPVariable, void*)':
Source/plugin.cpp:2227: error: cannot convert
`nsScriptablePeer*' to `
nsIScriptableMplayerPlugin*' in initialization
Source/plugin.cpp:2229: error: parse error before `)' token
Source/plugin.cpp:2236: error: ISO C++ forbids
declaration of `nsIID' with no
type
Source/plugin.cpp:2236: error: parse error before `=' token
Source/plugin.cpp:2236: warning: unused variable `int
nsIID'
Source/plugin.cpp:2237: error: `nsIID' undeclared
(first use this function)
Source/plugin.cpp:2237: error: `ptr' undeclared (first
use this function)
Source/plugin.cpp:2237: error: parse error before `)' token
Source/plugin.cpp:2239: error: `scriptableIID'
undeclared (first use this
function)
Source/plugin.cpp:2240: error: parse error before `)' token
Source/plugin.cpp:2236: warning: enumeration value
`NPPVpluginNameString' not
handled in switch
Source/plugin.cpp:2236: warning: enumeration value
`NPPVpluginDescriptionString
' not handled in switch
Source/plugin.cpp:2236: warning: enumeration value
`NPPVpluginWindowBool' not
handled in switch
Source/plugin.cpp:2236: warning: enumeration value
`NPPVpluginTransparentBool'
not handled in switch
Source/plugin.cpp:2236: warning: enumeration value
`NPPVjavaClass' not handled
in switch
Source/plugin.cpp:2236: warning: enumeration value
`NPPVpluginWindowSize' not
handled in switch
Source/plugin.cpp:2236: warning: enumeration value
`NPPVpluginTimerInterval'
not handled in switch
Source/plugin.cpp:2236: warning: enumeration value `
NPPVjavascriptPushCallerBool' not handled in switch
Source/plugin.cpp:2236: warning: enumeration value `
NPPVpluginKeepLibraryInMemory' not handled in switch
Source/plugin.cpp:2236: warning: enumeration value
`NPPVpluginNeedsXEmbed' not
handled in switch
Source/plugin.cpp: At global scope:
Source/plugin.cpp:2244: error: parse error before `break'
Source/plugin.cpp: In member function `nsScriptablePeer*
nsPluginInstance::getScriptablePeer()':
Source/plugin.cpp:2265: error: `NS_ADDREF' undeclared
(first use this function)
Source/plugin.cpp: In member function
`nsControlsScriptablePeer*
nsPluginInstance::getControlsScriptablePeer()':
Source/plugin.cpp:2279: error: `NS_ADDREF' undeclared
(first use this function)
make: *** [plugin.o] Error 1
petri@dsl-prvgw1nf5:~/src/mplayerplug-in-cvs$

I migth also have too new Mozilla version that is 1.7.3

Petri

Discussion

  • Benoit Mercier

    Benoit Mercier - 2004-10-02

    Logged In: YES
    user_id=947567

    it seems that the nsISupports.h moved to the root of mozilla
    includes. (/usr/include/mozilla)
    I solved the problem by adding the directory in the CFLAGS
    (see last -I)

    in /usr/lib/pkgconfig/mozilla-xpcom.pc

    Cflags: -I${includedir}/xpcom -I${includedir}/string
    -I${includedir}/

    I don't know it it is the best way to do, but it did not
    work via an export CFLAGS= before ./configure and ./make

    Hope this will help !

    Benoit

     
  • Kevin DeKorte

    Kevin DeKorte - 2004-10-03
    • status: open --> closed-wont-fix
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks