Compiling VLC 0.7.1 fails when it's trying to compile a Mozilla plugin (I think). USE="3dnow bonobo cddb directfb dvd dvdr ethereal faad ffmpeg flac freetype gimpprint gstreamer gtkhtml jabber kerberos lirc mmx mpeg4 msn net nvidia ofx openal openssh pnp samba speedo svg tiff usb virus-scan xfs xine xml xvid apache2" CHOST="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer" CXXFLAGS="${CFLAGS}" Reproducible: Always Steps to Reproduce: make[3]: Entering directory `/var/tmp/portage/vlc-0.7.1/work/vlc-0.7.1/mozilla' if g++ -DHAVE_CONFIG_H -I. -I. -I.. -DSYS_LINUX -I../include `top_builddir=".." ../vlc-config --cxxflags mozilla pic` -Imozilla -Wsign-compare -Wsign-compare -Wall -finline-limit-30000 -pipe -MT libplugin_a-vlcshell.o -MD -MP -MF ".deps/libplugin_a-vlcshell.Tpo" \ -c -o libplugin_a-vlcshell.o `test -f 'vlcshell.cpp' || echo './'`vlcshell.cpp; \ then mv -f ".deps/libplugin_a-vlcshell.Tpo" ".deps/libplugin_a-vlcshell.Po"; \ else rm -f ".deps/libplugin_a-vlcshell.Tpo"; exit 1; \ fi vlcshell.cpp:45:25: nsISupports.h: Onbekend bestand of map vlcshell.cpp:46:22: nsMemory.h: Onbekend bestand of map vlcshell.cpp:47:19: npapi.h: Onbekend bestand of map vlcshell.cpp:48:17: jri.h: Onbekend bestand of map In file included from vlcpeer.h:24, from vlcshell.cpp:72: vlcintf.h:10:25: nsISupports.h: Onbekend bestand of map In file included from vlcpeer.h:24, from vlcshell.cpp:72: vlcintf.h:25: error: parse-fout before `{' token vlcintf.h:34: error: parse-fout before `)' token vlcintf.h:37: error: parse-fout before `)' token vlcintf.h:40: error: parse-fout before `)' token In file included from vlcpeer.h:25, from vlcshell.cpp:72: support/classinfo.h:1:26: nsIClassInfo.h: Onbekend bestand of map In file included from vlcpeer.h:25, from vlcshell.cpp:72: support/classinfo.h:6: error: parse-fout before `{' token support/classinfo.h:12: error: `PRUint32' was not declared in this scope support/classinfo.h:12: error: `aImplementationLanguage' was not declared in this scope support/classinfo.h:13: error: parse-fout before `{' token support/classinfo.h:17: error: `PRUint32' was not declared in this scope support/classinfo.h:17: error: `count' was not declared in this scope support/classinfo.h:17: error: `nsIID' was not declared in this scope support/classinfo.h:17: error: `array' was not declared in this scope support/classinfo.h:18: error: parse-fout before `{' token support/classinfo.h:19: error: `PRUint32' was not declared in this scope support/classinfo.h:19: error: parse-fout before `,' token support/classinfo.h:21: error: parse-fout before `*' token support/classinfo.h:23: error: parse-fout before `*' token support/classinfo.h:25: error: `nsCID' was not declared in this scope support/classinfo.h:25: error: `aClassID' was not declared in this scope support/classinfo.h:26: error: parse-fout before `{' token support/classinfo.h:27: error: `nsCID' was not declared in this scope support/classinfo.h:27: error: `aClassIDNoAlloc' was not declared in this scope support/classinfo.h:28: error: parse-fout before `{' token In file included from vlcshell.cpp:72: vlcpeer.h:30: error: base class `VlcIntf' has incomplete type vlcpeer.h:30: error: base class `ClassInfo' has incomplete type vlcpeer.h:33: error: parse-fout before `(' token vlcpeer.h:33: error: parse-fout before `)' token vlcpeer.h:33: error: parse-fout before `)' token vlcpeer.h:33: error: parse-fout before `)' token In file included from vlcshell.cpp:73: vlcplugin.h:31: error: parse-fout before `)' token vlcplugin.h:34: error: `NPP' was not declared in this scope vlcplugin.h:34: error: invalid data member initialization vlcplugin.h:34: error: (use `=' to initialize static data members) vlcplugin.h:34: error: variable or field `SetInstance' declared void vlcplugin.h:35: error: parse-fout before `)' token vlcplugin.h:41: error: syntax error before `*' token vlcplugin.h:42: error: 'uint16' is used as a type, but is not defined as a type. vlcplugin.h:43: error: parse-fout before `,' token vlcplugin.h:70: error: 'NPP' is used as a type, but is not defined as a type. vlcshell.cpp:120: error: `NPP' was not declared in this scope vlcshell.cpp:120: error: parse-fout before `,' token vlcshell.cpp:126: error: parse-fout before `switch' vlcshell.cpp:138: error: ISO C++ forbids declaration of `psz_desc' with no type vlcshell.cpp:138: error: conflicting types for `int psz_desc[999]' vlcshell.cpp:124: error: previous declaration as `char psz_desc[1000]' vlcshell.cpp:139: error: parse-fout before `char' vlcshell.cpp:152: error: `instance' was not declared in this scope vlcshell.cpp:154: error: parse-fout before `switch' vlcshell.cpp:170: error: parse-fout before `*' token vlcshell.cpp:212: error: parse-fout before `)' token vlcshell.cpp:217: error: parse-fout before `)' token vlcshell.cpp:227: error: `NPMIMEType' was not declared in this scope vlcshell.cpp:227: error: parse-fout before `,' token vlcshell.cpp:238: error: parse-fout before `if' vlcshell.cpp:243: error: redefinition of `VlcPlugin*p_plugin' vlcshell.cpp:152: error: `VlcPlugin*p_plugin' previously defined here vlcshell.cpp:243: error: `instance' was not declared in this scope vlcshell.cpp:245: error: parse-fout before `if' vlcshell.cpp:250: error: syntax error before `->' token vlcshell.cpp:258: error: syntax error before `->' token vlcshell.cpp:259: error: syntax error before `->' token vlcshell.cpp:262: error: syntax error before `->' token vlcshell.cpp:263: error: syntax error before `->' token vlcshell.cpp:264: error: syntax error before `->' token vlcshell.cpp:265: error: syntax error before `->' token vlcshell.cpp:268: error: syntax error before `->' token vlcshell.cpp:273: error: ISO C++ forbids declaration of `p_plugin' with no type vlcshell.cpp:273: error: conflicting types for `int p_plugin' vlcshell.cpp:243: error: previous declaration as `VlcPlugin*p_plugin' vlcshell.cpp:274: error: parse-fout before `return' vlcshell.cpp:325: error: ISO C++ forbids declaration of `i_ret' with no type vlcshell.cpp:325: error: redefinition of `int i_ret' vlcshell.cpp:234: error: `int i_ret' previously declared here vlcshell.cpp:325: error: base operand of `->' is not a pointer vlcshell.cpp:325: error: `ppsz_argv' was not declared in this scope vlcshell.cpp:326: error: `ppsz_argv' was not declared in this scope vlcshell.cpp:333: error: parse-fout before `}' token vlcshell.cpp:338: error: syntax error before `->' token vlcshell.cpp:340: error: ISO C++ forbids declaration of `p_plugin' with no type vlcshell.cpp:340: error: redefinition of `int p_plugin' vlcshell.cpp:273: error: `int p_plugin' previously defined here vlcshell.cpp:340: let op: initialization to non-pointer type `int' from NULL vlcshell.cpp:340: let op: argument to non-pointer type `int' from NULL vlcshell.cpp:341: error: parse-fout before `return' vlcshell.cpp:344: error: syntax error before `.' token vlcshell.cpp:345: error: base operand of `->' is not a pointer vlcshell.cpp:345: error: ISO C++ forbids declaration of `VLC_Set' with no type vlcshell.cpp:345: error: `int VLC_Set' redeclared as different kind of symbol ../include/vlc/vlc.h:133: error: previous declaration of `int VLC_Set(int, const char*, vlc_value_t)' vlcshell.cpp:345: error: initializer list being treated as compound expression vlcshell.cpp:346: error: syntax error before `.' token vlcshell.cpp:347: error: base operand of `->' is not a pointer vlcshell.cpp:347: error: ISO C++ forbids declaration of `VLC_Set' with no type vlcshell.cpp:347: error: redefinition of `int VLC_Set' vlcshell.cpp:345: error: `int VLC_Set' previously defined here vlcshell.cpp:347: error: initializer list being treated as compound expression vlcshell.cpp:348: error: syntax error before `.' token vlcshell.cpp:349: error: base operand of `->' is not a pointer vlcshell.cpp:349: error: ISO C++ forbids declaration of `VLC_Set' with no type vlcshell.cpp:349: error: redefinition of `int VLC_Set' vlcshell.cpp:347: error: `int VLC_Set' previously defined here vlcshell.cpp:349: error: initializer list being treated as compound expression vlcshell.cpp:356: error: syntax error before `->' token vlcshell.cpp:357: error: syntax error before `->' token vlcshell.cpp:358: error: syntax error before `->' token vlcshell.cpp:360: error: `argc' was not declared in this scope vlcshell.cpp:360: error: parse-fout before `;' token vlcshell.cpp:360: error: syntax error before `++' token vlcshell.cpp:395: error: base operand of `->' is not a pointer vlcshell.cpp:395: error: ISO C++ forbids declaration of `VLC_Set' with no type vlcshell.cpp:395: error: redefinition of `int VLC_Set' vlcshell.cpp:349: error: `int VLC_Set' previously defined here vlcshell.cpp:395: error: initializer list being treated as compound expression vlcshell.cpp:396: error: parse-fout before `}' token vlcshell.cpp:409: error: `NPP' was not declared in this scope vlcshell.cpp:409: error: parse-fout before `,' token vlcshell.cpp:416: error: conflicting types for `VlcPlugin*p_plugin' vlcshell.cpp:340: error: previous declaration as `int p_plugin' vlcshell.cpp:416: error: `instance' was not declared in this scope vlcshell.cpp:418: error: parse-fout before `if' vlcshell.cpp:424: error: ISO C++ forbids declaration of `VLC_Destroy' with no type vlcshell.cpp:424: error: `int VLC_Destroy' redeclared as different kind of symbol ../include/vlc/vlc.h:131: error: previous declaration of `int VLC_Destroy(int)' vlcshell.cpp:426: error: syntax error before `->' token vlcshell.cpp:432: error: syntax error before `->' token vlcshell.cpp:438: error: syntax error before `->' token vlcshell.cpp:443: error: `NPP' was not declared in this scope vlcshell.cpp:443: error: parse-fout before `,' token vlcshell.cpp:466: error: redefinition of `VlcPlugin*p_plugin' vlcshell.cpp:416: error: `VlcPlugin*p_plugin' previously defined here vlcshell.cpp:466: error: `instance' was not declared in this scope vlcshell.cpp:521: error: syntax error before `.' token vlcshell.cpp:522: error: ISO C++ forbids declaration of `VLC_Set' with no type vlcshell.cpp:522: error: redefinition of `int VLC_Set' vlcshell.cpp:395: error: `int VLC_Set' previously defined here vlcshell.cpp:522: error: initializer list being treated as compound expression vlcshell.cpp:522: error: cannot convert `vlc_value_t' to `int' in initialization vlcshell.cpp:591: error: syntax error before `->' token vlcshell.cpp:592: error: syntax error before `->' token vlcshell.cpp:596: error: ISO C++ forbids declaration of `XtAddEventHandler' with no type vlcshell.cpp:596: error: `int XtAddEventHandler' redeclared as different kind of symbol /usr/include/X11/Intrinsic.h:1012: error: previous declaration of `void XtAddEventHandler(_WidgetRec*, long unsigned int, int, void (*)(_WidgetRec*, void*, XEvent*, Boolean*), void*)' vlcshell.cpp:596: error: initializer list being treated as compound expression vlcshell.cpp:596: error: invalid conversion from `VlcPlugin*' to `int' vlcshell.cpp:597: error: ISO C++ forbids declaration of `Redraw' with no type vlcshell.cpp:597: error: `int Redraw' redeclared as different kind of symbol vlcshell.cpp:88: error: previous declaration of `void Redraw(_WidgetRec*, void*, XEvent*)' vlcshell.cpp:597: error: initializer list being treated as compound expression vlcshell.cpp:597: let op: initialization to non-pointer type `int' from NULL vlcshell.cpp:597: let op: argument to non-pointer type `int' from NULL vlcshell.cpp:600: error: syntax error before `->' token vlcshell.cpp:602: error: syntax error before `->' token vlcshell.cpp:603: error: syntax error before `->' token vlcshell.cpp:620: error: syntax error before `->' token vlcshell.cpp:627: error: `NPP' was not declared in this scope vlcshell.cpp:627: error: parse-fout before `,' token vlcshell.cpp:642: error: ISO C++ forbids declaration of `stype' with no type vlcshell.cpp:642: error: `NP_ASFILE' was not declared in this scope vlcshell.cpp:652: error: parse-fout before `return' vlcshell.cpp:655: error: parse-fout before `=' token vlcshell.cpp:661: error: `NPP' was not declared in this scope vlcshell.cpp:661: error: parse-fout before `,' token vlcshell.cpp:681: error: `NPP' was not declared in this scope vlcshell.cpp:681: error: parse-fout before `,' token vlcshell.cpp:695: error: `NPP' was not declared in this scope vlcshell.cpp:695: error: parse-fout before `,' token vlcshell.cpp:706: error: `NPP' was not declared in this scope vlcshell.cpp:706: error: parse-fout before `,' token vlcshell.cpp: In function `void NPP_StreamAsFile(...)': vlcshell.cpp:708: error: `instance' undeclared (first use this function) vlcshell.cpp:708: error: (Each undeclared identifier is reported only once for each function it appears in.) vlcshell.cpp:718: error: `fname' undeclared (first use this function) vlcshell.cpp: At global scope: vlcshell.cpp:724: error: parse-fout before `,' token vlcshell.cpp:735: error: parse-fout before `,' token vlcshell.cpp: In function `void NPP_Print(...)': vlcshell.cpp:737: error: `printInfo' undeclared (first use this function) vlcshell.cpp:748: error: `NP_FULL' undeclared (first use this function) vlcshell.cpp: In function `void Redraw(_WidgetRec*, void*, XEvent*)': vlcshell.cpp:841: error: `void Redraw(_WidgetRec*, void*, XEvent*)' redeclared as different kind of symbol vlcshell.cpp:597: error: previous declaration of `int Redraw' vlcshell.cpp:597: error: previous non-function declaration `int Redraw' vlcshell.cpp:841: error: conflicts with function declaration `void Redraw(_WidgetRec*, void*, XEvent*)' vlcshell.cpp:850: error: 'class VlcPlugin' has no member named 'i_width' vlcshell.cpp:850: error: 'class VlcPlugin' has no member named 'i_height' vlcshell.cpp:856: error: 'class VlcPlugin' has no member named 'i_width' vlcshell.cpp:856: error: 'class VlcPlugin' has no member named 'i_height' vlcshell.cpp: In function `void __static_initialization_and_destruction_0(int, int)': vlcshell.cpp:138: let op: statement with no effect vlcshell.cpp:273: let op: statement with no effect vlcshell.cpp: At top level: vlcshell.cpp:88: let op: `void Redraw(_WidgetRec*, void*, XEvent*)' declared `static' but never defined vlcshell.cpp:138: let op: `int psz_desc[999]' defined but not used {standard input}: Assembler messages: {standard input}:27: Error: symbol `p_plugin' is already defined {standard input}:33: Error: symbol `i_ret' is already defined {standard input}:39: Error: symbol `p_plugin' is already defined {standard input}:51: Error: symbol `VLC_Set' is already defined {standard input}:57: Error: symbol `VLC_Set' is already defined {standard input}:63: Error: symbol `VLC_Set' is already defined {standard input}:75: Error: symbol `p_plugin' is already defined {standard input}:81: Error: symbol `VLC_Set' is already defined make[3]: *** [libplugin_a-vlcshell.o] Fout 1 make[3]: Leaving directory `/var/tmp/portage/vlc-0.7.1/work/vlc-0.7.1/mozilla' make[2]: *** [all] Fout 2 make[2]: Leaving directory `/var/tmp/portage/vlc-0.7.1/work/vlc-0.7.1/mozilla' make[1]: *** [all-recursive] Fout 1 make[1]: Leaving directory `/var/tmp/portage/vlc-0.7.1/work/vlc-0.7.1' make: *** [all] Fout 2 !!! ERROR: media-video/vlc-0.7.1 failed. !!! Function src_compile, Line 217, Exitcode 2 !!! make of VLC failed
Created attachment 27889 [details] Removed Mozilla from the ebuild. Removed Mozilla from the ebuild, works now...
What mozilla version was being used here? Experiences from the past have learned me that the mozilla plugin in vlc breaks real easily and should only be compiled with the exact same version of mozilla with which it was intended to be build. wether this is 1.5 or 1.6 for 0.7.1 i'm actually not sure. I no longer use mozilla since it's too slow on my machine
Mozilla 1.6, Copyright (c) 2003 mozilla.org, build 2004022819
I finally got around to trying to reproduce this. vlc installed fine for me with the mozilla plugin also. I have mozilla version 1.6-r1 installed. Also, I'm a little bit confused because the USE line that you posted doesn't have the mozilla USE flag so the plugin shouldn't even be building. Try upgrading mozilla to 1.6-r1. I think you probably have just 1.6 because your build number is different than mine. Then remerge vlc with mozilla enabled and see if you still have issues. If you do, re-open this bug.