if g++ -DHAVE_CONFIG_H -I. -I. -I. -DSYS_LINUX -I./include -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -D_GNU_SOURCE -DLOCALEDIR=\"/usr/share/locale\" -DDATA_PATH=\"/usr/share/vlc\" -DPLUGIN_PATH=\"/usr/lib/vlc\" -DHAVE_RELEASE -O3 -ffast-math -funroll-loops -mcpu=pentiumpro -fomit-frame-pointer -fPIC -I/usr/lib/include/mozilla-1.5a/plugin -I/usr/lib/mozilla/include/mozilla-1.5a/plugin -I/usr/lib/include/mozilla-1.5a/xpcom -I/usr/lib/mozilla/include/mozilla-1.5a/xpcom -I/usr/lib/include/mozilla-1.5a/java -I/usr/lib/mozilla/include/mozilla-1.5a/java -I/usr/lib/include/mozilla-1.5a -I/usr/lib/mozilla/include/mozilla-1.5a -I/usr/lib/include/mozilla-1.5a/nspr -I/usr/lib/mozilla/include/mozilla-1.5a/nspr -Wsign-compare -Wsign-compare -Wall -finline-limit-30000 -pipe -MT mozilla/mozilla_libplugin_a-vlcshell.o -MD -MP -MF "mozilla/.deps/mozilla_libplugin_a-vlcshell.Tpo" \ -c -o mozilla/mozilla_libplugin_a-vlcshell.o `test -f 'mozilla/vlcshell.cpp' || echo './'`mozilla/vlcshell.cpp; \ then mv -f "mozilla/.deps/mozilla_libplugin_a-vlcshell.Tpo" "mozilla/.deps/mozilla_libplugin_a-vlcshell.Po"; \ else rm -f "mozilla/.deps/mozilla_libplugin_a-vlcshell.Tpo"; exit 1; \ fi mozilla/vlcshell.cpp:40:25: nsISupports.h: No such file or directory mozilla/vlcshell.cpp:41:22: nsMemory.h: No such file or directory mozilla/vlcshell.cpp:42:19: npapi.h: No such file or directory In file included from mozilla/vlcpeer.h:24, from mozilla/vlcshell.cpp:60: mozilla/vlcintf.h:10:25: nsISupports.h: No such file or directory In file included from mozilla/vlcpeer.h:24, from mozilla/vlcshell.cpp:60: mozilla/vlcintf.h:25: syntax error before `{' token mozilla/vlcintf.h:34: syntax error before `)' token mozilla/vlcintf.h:37: syntax error before `)' token mozilla/vlcintf.h:40: syntax error before `)' token In file included from mozilla/vlcpeer.h:25, from mozilla/vlcshell.cpp:60: mozilla/support/classinfo.h:1:26: nsIClassInfo.h: No such file or directory In file included from mozilla/vlcpeer.h:25, from mozilla/vlcshell.cpp:60: mozilla/support/classinfo.h:6: syntax error before `{' token mozilla/support/classinfo.h:12: `PRUint32' was not declared in this scope mozilla/support/classinfo.h:12: `aImplementationLanguage' was not declared in this scope mozilla/support/classinfo.h:13: syntax error before `{' token mozilla/support/classinfo.h:17: `PRUint32' was not declared in this scope mozilla/support/classinfo.h:17: `count' was not declared in this scope mozilla/support/classinfo.h:17: `nsIID' was not declared in this scope mozilla/support/classinfo.h:17: `array' was not declared in this scope mozilla/support/classinfo.h:18: syntax error before `{' token mozilla/support/classinfo.h:19: `PRUint32' was not declared in this scope mozilla/support/classinfo.h:19: syntax error before `,' token mozilla/support/classinfo.h:21: syntax error before `*' token mozilla/support/classinfo.h:23: syntax error before `*' token mozilla/support/classinfo.h:25: `nsCID' was not declared in this scope mozilla/support/classinfo.h:25: `aClassID' was not declared in this scope mozilla/support/classinfo.h:26: syntax error before `{' token mozilla/support/classinfo.h:27: `nsCID' was not declared in this scope mozilla/support/classinfo.h:27: `aClassIDNoAlloc' was not declared in this scope mozilla/support/classinfo.h:28: syntax error before `{' token In file included from mozilla/vlcshell.cpp:60: mozilla/vlcpeer.h:30: base class `VlcIntf' has incomplete type mozilla/vlcpeer.h:30: base class `ClassInfo' has incomplete type mozilla/vlcpeer.h:33: syntax error before `(' token mozilla/vlcpeer.h:33: syntax error before `)' token mozilla/vlcpeer.h:33: syntax error before `)' token mozilla/vlcpeer.h:33: syntax error before `)' token In file included from mozilla/vlcshell.cpp:61: mozilla/vlcplugin.h:30: syntax error before `)' token mozilla/vlcplugin.h:33: `NPP' was not declared in this scope mozilla/vlcplugin.h:33: invalid data member initialization mozilla/vlcplugin.h:33: (use `=' to initialize static data members) mozilla/vlcplugin.h:33: variable or field `SetInstance' declared void mozilla/vlcplugin.h:34: syntax error before `)' token mozilla/vlcplugin.h:40: syntax error before `*' token mozilla/vlcplugin.h:41: 'uint16' is used as a type, but is not defined as a type. mozilla/vlcplugin.h:42: syntax error before `,' token mozilla/vlcplugin.h:63: 'NPP' is used as a type, but is not defined as a type. mozilla/vlcshell.cpp:117: `NPP' was not declared in this scope mozilla/vlcshell.cpp:117: syntax error before `,' token mozilla/vlcshell.cpp:122: syntax error before `switch' mozilla/vlcshell.cpp:134: ISO C++ forbids declaration of `psz_desc' with no type mozilla/vlcshell.cpp:134: conflicting types for `int psz_desc[999]' mozilla/vlcshell.cpp:120: previous declaration as `char psz_desc[1000]' mozilla/vlcshell.cpp:134: invalid initializer mozilla/vlcshell.cpp:135: syntax error before `char' mozilla/vlcshell.cpp:148: `instance' was not declared in this scope mozilla/vlcshell.cpp:150: syntax error before `switch' mozilla/vlcshell.cpp:166: syntax error before `*' token mozilla/vlcshell.cpp:204: syntax error before `)' token mozilla/vlcshell.cpp:209: syntax error before `)' token mozilla/vlcshell.cpp:219: `NPMIMEType' was not declared in this scope mozilla/vlcshell.cpp:219: syntax error before `,' token mozilla/vlcshell.cpp:234: syntax error before `if' mozilla/vlcshell.cpp:239: redefinition of `VlcPlugin*p_plugin' mozilla/vlcshell.cpp:148: `VlcPlugin*p_plugin' previously defined here mozilla/vlcshell.cpp:239: `instance' was not declared in this scope mozilla/vlcshell.cpp:241: syntax error before `if' mozilla/vlcshell.cpp:246: syntax error before `->' token mozilla/vlcshell.cpp:258: syntax error before `->' token mozilla/vlcshell.cpp:259: syntax error before `->' token mozilla/vlcshell.cpp:260: syntax error before `->' token mozilla/vlcshell.cpp:261: syntax error before `->' token mozilla/vlcshell.cpp:264: syntax error before `->' token mozilla/vlcshell.cpp:269: ISO C++ forbids declaration of `p_plugin' with no type mozilla/vlcshell.cpp:269: conflicting types for `int p_plugin' mozilla/vlcshell.cpp:239: previous declaration as `VlcPlugin*p_plugin' mozilla/vlcshell.cpp:269: warning: initialization to non-pointer type `int' from NULL mozilla/vlcshell.cpp:269: warning: argument to non-pointer type `int' from NULL mozilla/vlcshell.cpp:270: syntax error before `return' mozilla/vlcshell.cpp:273: ISO C++ forbids declaration of `i_ret' with no type mozilla/vlcshell.cpp:273: redefinition of `int i_ret' mozilla/vlcshell.cpp:225: `int i_ret' previously declared here mozilla/vlcshell.cpp:273: base operand of `->' is not a pointer mozilla/vlcshell.cpp:274: syntax error before `if' mozilla/vlcshell.cpp:277: syntax error before `->' token mozilla/vlcshell.cpp:279: ISO C++ forbids declaration of `p_plugin' with no type mozilla/vlcshell.cpp:279: redefinition of `int p_plugin' mozilla/vlcshell.cpp:269: `int p_plugin' previously defined here mozilla/vlcshell.cpp:279: warning: initialization to non-pointer type `int' from NULL mozilla/vlcshell.cpp:279: warning: argument to non-pointer type `int' from NULL mozilla/vlcshell.cpp:280: syntax error before `return' mozilla/vlcshell.cpp:283: syntax error before `.' token mozilla/vlcshell.cpp:284: base operand of `->' is not a pointer mozilla/vlcshell.cpp:284: ISO C++ forbids declaration of `VLC_Set' with no type mozilla/vlcshell.cpp:284: `int VLC_Set' redeclared as different kind of symbol include/vlc/vlc.h:133: previous declaration of `int VLC_Set(int, const char*, vlc_value_t)' mozilla/vlcshell.cpp:284: initializer list being treated as compound expression mozilla/vlcshell.cpp:285: syntax error before `.' token mozilla/vlcshell.cpp:286: base operand of `->' is not a pointer mozilla/vlcshell.cpp:286: ISO C++ forbids declaration of `VLC_Set' with no type mozilla/vlcshell.cpp:286: redefinition of `int VLC_Set' mozilla/vlcshell.cpp:284: `int VLC_Set' previously defined here mozilla/vlcshell.cpp:286: initializer list being treated as compound expression mozilla/vlcshell.cpp:287: syntax error before `.' token mozilla/vlcshell.cpp:288: base operand of `->' is not a pointer mozilla/vlcshell.cpp:288: ISO C++ forbids declaration of `VLC_Set' with no type mozilla/vlcshell.cpp:288: redefinition of `int VLC_Set' mozilla/vlcshell.cpp:286: `int VLC_Set' previously defined here mozilla/vlcshell.cpp:288: initializer list being treated as compound expression mozilla/vlcshell.cpp:295: syntax error before `->' token mozilla/vlcshell.cpp:296: syntax error before `->' token mozilla/vlcshell.cpp:297: syntax error before `->' token mozilla/vlcshell.cpp:299: `argc' was not declared in this scope mozilla/vlcshell.cpp:299: syntax error before `;' token mozilla/vlcshell.cpp:299: syntax error before `++' token mozilla/vlcshell.cpp:334: base operand of `->' is not a pointer mozilla/vlcshell.cpp:334: ISO C++ forbids declaration of `VLC_Set' with no type mozilla/vlcshell.cpp:334: redefinition of `int VLC_Set' mozilla/vlcshell.cpp:288: `int VLC_Set' previously defined here mozilla/vlcshell.cpp:334: initializer list being treated as compound expression mozilla/vlcshell.cpp:335: syntax error before `}' token mozilla/vlcshell.cpp:348: `NPP' was not declared in this scope mozilla/vlcshell.cpp:348: syntax error before `,' token mozilla/vlcshell.cpp:355: conflicting types for `VlcPlugin*p_plugin' mozilla/vlcshell.cpp:279: previous declaration as `int p_plugin' mozilla/vlcshell.cpp:355: `instance' was not declared in this scope mozilla/vlcshell.cpp:357: syntax error before `if' mozilla/vlcshell.cpp:363: ISO C++ forbids declaration of `VLC_Destroy' with no type mozilla/vlcshell.cpp:363: `int VLC_Destroy' redeclared as different kind of symbol include/vlc/vlc.h:131: previous declaration of `int VLC_Destroy(int)' mozilla/vlcshell.cpp:365: syntax error before `->' token mozilla/vlcshell.cpp:371: syntax error before `->' token mozilla/vlcshell.cpp:377: syntax error before `->' token mozilla/vlcshell.cpp:382: `NPP' was not declared in this scope mozilla/vlcshell.cpp:382: syntax error before `,' token mozilla/vlcshell.cpp:389: redefinition of `VlcPlugin*p_plugin' mozilla/vlcshell.cpp:355: `VlcPlugin*p_plugin' previously defined here mozilla/vlcshell.cpp:389: `instance' was not declared in this scope mozilla/vlcshell.cpp:393: redefinition of `vlc_value_t value' mozilla/vlcshell.cpp:224: `vlc_value_t value' previously declared here mozilla/vlcshell.cpp:396: syntax error before `.' token mozilla/vlcshell.cpp:397: ISO C++ forbids declaration of `VLC_Set' with no type mozilla/vlcshell.cpp:397: redefinition of `int VLC_Set' mozilla/vlcshell.cpp:334: `int VLC_Set' previously defined here mozilla/vlcshell.cpp:397: initializer list being treated as compound expression mozilla/vlcshell.cpp:397: cannot convert `vlc_value_t' to `int' in initialization mozilla/vlcshell.cpp:464: syntax error before `->' token mozilla/vlcshell.cpp:466: syntax error before `->' token mozilla/vlcshell.cpp:467: syntax error before `->' token mozilla/vlcshell.cpp:484: syntax error before `->' token mozilla/vlcshell.cpp:491: `NPP' was not declared in this scope mozilla/vlcshell.cpp:491: syntax error before `,' token mozilla/vlcshell.cpp:506: ISO C++ forbids declaration of `stype' with no type mozilla/vlcshell.cpp:506: `NP_ASFILE' was not declared in this scope mozilla/vlcshell.cpp:516: syntax error before `return' mozilla/vlcshell.cpp:519: syntax error before `=' token mozilla/vlcshell.cpp:525: `NPP' was not declared in this scope mozilla/vlcshell.cpp:525: syntax error before `,' token mozilla/vlcshell.cpp:545: `NPP' was not declared in this scope mozilla/vlcshell.cpp:545: syntax error before `,' token mozilla/vlcshell.cpp:559: `NPP' was not declared in this scope mozilla/vlcshell.cpp:559: syntax error before `,' token mozilla/vlcshell.cpp:570: `NPP' was not declared in this scope mozilla/vlcshell.cpp:570: syntax error before `,' token mozilla/vlcshell.cpp: In function `void NPP_StreamAsFile(...)': mozilla/vlcshell.cpp:572: `instance' undeclared (first use this function) mozilla/vlcshell.cpp:572: (Each undeclared identifier is reported only once for each function it appears in.) mozilla/vlcshell.cpp:582: `fname' undeclared (first use this function) mozilla/vlcshell.cpp: At global scope: mozilla/vlcshell.cpp:588: syntax error before `,' token mozilla/vlcshell.cpp:599: syntax error before `,' token mozilla/vlcshell.cpp: In function `void NPP_Print(...)': mozilla/vlcshell.cpp:601: `printInfo' undeclared (first use this function) mozilla/vlcshell.cpp:612: `NP_FULL' undeclared (first use this function) mozilla/vlcshell.cpp:639: `FALSE' undeclared (first use this function) mozilla/vlcshell.cpp: At top level: mozilla/vlcshell.cpp:134: warning: `int psz_desc[999]' defined but not used {standard input}: Assembler messages: {standard input}:38: Error: symbol `p_plugin' is already defined {standard input}:44: Error: symbol `i_ret' is already defined {standard input}:51: Error: symbol `p_plugin' is already defined {standard input}:64: Error: symbol `VLC_Set' is already defined {standard input}:70: Error: symbol `VLC_Set' is already defined {standard input}:76: Error: symbol `VLC_Set' is already defined {standard input}:88: Error: symbol `p_plugin' is already defined {standard input}:94: Error: symbol `value' is already defined {standard input}:100: Error: symbol `VLC_Set' is already defined make[2]: *** [mozilla/mozilla_libplugin_a-vlcshell.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/vlc-0.6.0-r2/work/vlc-0.6.0' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/vlc-0.6.0-r2/work/vlc-0.6.0' make: *** [all] Error 2 !!! ERROR: media-video/vlc-0.6.0-r2 failed. !!! Function src_compile, Line 192, Exitcode 2 !!! make of VLC failed Reproducible: Always Steps to Reproduce: 1. 2. 3.
The plugin is only written to work with Mozilla 1.3 and 1.4... There are API changes with each version change. I did not realize we had Mozilla 1.5a in portage yet. In fact we don't have Mozilla 1.5a in portage. If you would like to assist the vlc project with their upcoming release and getting it compatible with Mozilla 1.5a I encourage you to check out http://developers.videolan.org/ and report a bug their system.