Opened 18 years ago
Closed 18 years ago
#980 closed defect (fixed)
Compile error when using XVMC on Redhat 9
Reported by: | kkuphal | Owned by: | Isaac Richards |
---|---|---|---|
Priority: | minor | Milestone: | unknown |
Component: | mythtv | Version: | head |
Severity: | low | Keywords: | |
Cc: | Ticket locked: | no |
Description
I get the following compile error when compiling SVN 8343 after enabling XVMC to do some HD playback testing (I normally do not use it).
videoout_xv.cpp:1071:1: directives may not be used inside a macro argument videoout_xv.cpp:1070:17: unterminated argument list invoking macro "VERBOSE" videoout_xv.cpp: In static member function `static MythCodecID VideoOutputXv::GetBestSupportedCodec(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, int, bool)': videoout_xv.cpp:1077: `VERBOSE' undeclared (first use this function) videoout_xv.cpp:1077: (Each undeclared identifier is reported only once for each function it appears in.) videoout_xv.cpp:1077: parse error before `)' token videoout_xv.cpp: In member function `virtual void VideoOutputXv::UpdatePauseFrame()': videoout_xv.cpp:2569: warning: unused variable ` std::_Deque_iterator<VideoFrame*, VideoFrame*&, VideoFrame**> it' videoout_xv.cpp: In member function `void VideoOutputXv::ProcessFrameXvMC(VideoFrame*, OSD*)': videoout_xv.cpp:2609: warning: unused variable ` std::_Deque_iterator<VideoFrame*, VideoFrame*&, VideoFrame**> it' make[2]: *** [videoout_xv.o] Error 1 make[2]: Leaving directory `/home/kkuphal/mythtv-svn/mythtv/libs/libmythtv' make[1]: *** [sub-libmythtv] Error 2 make[1]: Leaving directory `/home/kkuphal/mythtv-svn/mythtv/libs' make: *** [sub-libs] Error 2
It looks like it does not like the define inside the verbose macro. My g++ version is 3.2.2. I think moving the define around will fix it but I'm not sure of the specific intent so I wasn't sure what the appropriate patch would be.
Note: See
TracTickets for help on using
tickets.
(In [8541]) Fix #980.