Summary: | avifile refuses to build without qt installed | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Robert Coie (RETIRED) <rac> |
Component: | Current packages | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | cm, Daniel.Steinberger, liquidx, vhata-gentoo |
Priority: | High | ||
Version: | 1.4_rc4 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Updated ebuild file as proposed in the initial comment.
a patch against the current ebuild to my proposed -r1 version |
Description
Robert Coie (RETIRED)
![]() *** Bug 21795 has been marked as a duplicate of this bug. *** I have qt installed (3.1.2-r3), but also have -qt in my USE-flags since I don't use KDE. It's always that ccap.cpp that fails. Even with simple CFLAGS. It's not an application I've use that much anyway, but still it's annoying that it doesn't compile. I was about to file another bug but noticed this. I have a giant output of errors in which ccap is mentioned. This didn't happen with the previous version. I'm not sure if this is related or not but I figure it won't hurt to post it. In file included from capproc.h:4, from capproc.cpp:2: ../../include/avm_stl.h: In member function `const Type& avm::qring<Type>::back() const': ../../include/avm_stl.h:96: warning: no return statement in function returning non-void In file included from ccap.h:1, from ccap.cpp:6: ../../include/avm_stl.h: In member function `const Type& avm::qring<Type>::back() const': ../../include/avm_stl.h:96: warning: no return statement in function returning non-void In file included from capproc.cpp:27: v4lwindow.h:4:21: qwidget.h: No such file or directory v4lwindow.h:5:20: qtimer.h: No such file or directory In file included from capproc.cpp:27: v4lwindow.h: At global scope: v4lwindow.h:30: syntax error before `{' token v4lwindow.h:36: syntax error before `*' token v4lwindow.h:37: destructors must be member functions v4lwindow.h: In function `void setAutoRecord()': v4lwindow.h:39: `m_bAutoRecord' undeclared (first use this function) v4lwindow.h:39: (Each undeclared identifier is reported only once for each function it appears in.) v4lwindow.h: In function `void unregisterCapDialog()': v4lwindow.h:40: `m_pCapDialog' undeclared (first use this function) v4lwindow.h: In function `ClosedCaption* getcc()': v4lwindow.h:43: `m_pCC' undeclared (first use this function) v4lwindow.h: At global scope: v4lwindow.h:44: syntax error before `)' token v4lwindow.h:45: `Modes' was not declared in this scope v4lwindow.h:45: syntax error before `)' token v4lwindow.h:51: `QString' was not declared in this scope v4lwindow.h:51: syntax error before `)' token v4lwindow.h:56: syntax error before `public' v4lwindow.h:81: syntax error before `protected' v4lwindow.h:89: `XEvent' was not declared in this scope v4lwindow.h:89: syntax error before `)' token v4lwindow.h:89: virtual outside class declaration v4lwindow.h:90: `QFocusEvent' was not declared in this scope v4lwindow.h:90: syntax error before `)' token v4lwindow.h:90: virtual outside class declaration v4lwindow.h:91: `QFocusEvent' was not declared in this scope v4lwindow.h:91: syntax error before `)' token v4lwindow.h:91: virtual outside class declaration v4lwindow.h:92: `QHideEvent' was not declared in this scope v4lwindow.h:92: syntax error before `)' token v4lwindow.h:92: virtual outside class declaration v4lwindow.h:93: `QKeyEvent' was not declared in this scope v4lwindow.h:93: syntax error before `)' token v4lwindow.h:93: virtual outside class declaration v4lwindow.h:94: `QMouseEvent' was not declared in this scope v4lwindow.h:94: syntax error before `)' token v4lwindow.h:94: virtual outside class declaration v4lwindow.h:95: `QMoveEvent' was not declared in this scope v4lwindow.h:95: syntax error before `)' token v4lwindow.h:95: virtual outside class declaration v4lwindow.h:96: `QPaintEvent' was not declared in this scope v4lwindow.h:96: syntax error before `)' token v4lwindow.h:96: virtual outside class declaration v4lwindow.h:97: `QResizeEvent' was not declared in this scope v4lwindow.h:97: syntax error before `)' token v4lwindow.h:97: virtual outside class declaration v4lwindow.h:98: `QShowEvent' was not declared in this scope v4lwindow.h:98: syntax error before `)' token v4lwindow.h:98: virtual outside class declaration v4lwindow.h:121: 'Modes' is used as a type, but is not defined as a type. v4lwindow.h:122: syntax error before `private' v4lwindow.h:129: `AviCapDialog*m_pCapDialog' used prior to declaration v4lwindow.h:130: `ClosedCaption*m_pCC' used prior to declaration v4lwindow.h:132: 'QTimer' is used as a type, but is not defined as a type. v4lwindow.h:133: 'QTimer' is used as a type, but is not defined as a type. v4lwindow.h:134: 'QTimer' is used as a type, but is not defined as a type. v4lwindow.h:135: 'QTimer' is used as a type, but is not defined as a type. v4lwindow.h:145: `bool m_bAutoRecord' used prior to declaration v4lwindow.h:153: syntax error before `public' In file included from capproc.cpp:27: v4lwindow.h:156: syntax error before `}' token make[3]: *** [capproc.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory `/var/tmp/portage/avifile-0.7.37.20030522/work/avifile0.7-0.7.37/samples/qtvidcap' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/avifile-0.7.37.20030522/work/avifile0.7-0.7.37/samples/qtvidcap' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/avifile-0.7.37.20030522/work/avifile0.7-0.7.37/samples' make: *** [all-recursive] Error 1 I have the exactly same problem: USE contains -qt but avifile still wants to compile something with it. As a result I can't update dvdrip, which requires avifile-0.7.37.20030522. I have "-qt" in my USE flags, and avifile failed, as well, although I do have x11-libs/qt-3.1.2-r3 installed. I added "qt" to my USE flags, and did an "emerge -upv --deep world", and "x11-libs/qt-2.3.2-r1" was listed as a dependency. Installing this made avifile install perfectly. Dependencies need fixing? Mine compiled when I took away the - infront of qt. # USE="alsa cdr dga gtk2 -kde qt mozilla X mmx 3dnow" emerge -uv avifile Created attachment 12676 [details] Updated ebuild file as proposed in the initial comment. This ebuild is a proposal for an -r1 version of the ebuild. it simply incorporates the changes proposed in the initial comment and in http://forums.gentoo.org/viewtopic.php?t=56124. putting this into my portage-overlay, generating a digest for it and emerging it worked perfectly fine for me. Created attachment 12677 [details, diff]
a patch against the current ebuild to my proposed -r1 version
universal patch against the current ebuild:
--- /usr/portage/media-video/avifile/avifile-0.7.37.20030522.ebuild
2003-05-22 21:15:00.000000000 +0200
+++ /usr/portage-overlay/media-video/avifile/avifile-0.7.37.20030522-r1.ebuild
2003-06-02 07:37:24.000000000 +0200
@@ -37,6 +37,11 @@
alsa? ( >=media-libs/alsa-lib-0.9.0_rc2 )
esd? ( >=media-sound/esound-0.2.28 )"
+src_unpack() {
+ unpack ${A}
+ use qt || sed -i 's/qt[a-z]*//g' ${S}/samples/Makefile.am
+ }
+
src_compile() {
local myconf="--enable-oss"
local kdepre=""
This fixes the same problem for me and 3 friends (we all use -qt :-P) The submitted patch works for me as well. The output of my failed ebuild was the same as the one previously submitted. After applying the patch the ebuild successfully completed. My use flags include "-kde -qt" -qt and -kde in USE flags, the included patch works for me. Proposed patch works for me. This patch should be included. Originally failed as part of 'emerge gnome' immediately following stage 1 build with ACCEPT_KEYWORDS="~x86". i wonder why this has been sitting here like this for so long. i've stepped in and fixed this in cvs. thanks Daniel for the patch. |