Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 183885 - games-arcade/stepmania-3.9 fails to build with ffmpeg-0.4.9_p20070616-r1
Summary: games-arcade/stepmania-3.9 fails to build with ffmpeg-0.4.9_p20070616-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Samuli Suominen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-01 20:08 UTC by Samuli Suominen (RETIRED)
Modified: 2007-08-07 14:39 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
stepmania-3.9-recent-ffmpeg-unfinished-fix-attempt.patch (stepmania-3.9-recent-ffmpeg.patch,1.15 KB, patch)
2007-07-01 20:09 UTC, Samuli Suominen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Samuli Suominen (RETIRED) gentoo-dev 2007-07-01 20:08:23 UTC
Since INT64_C isn't defined by ffmpeg anymore it needs to be moved to stepmania code instead. And by looks of it tries to threat some C code as C++ (?!). I've tried patching it and will be attaching my attempt which eliminates some of these errors, but it still dies on 

"arch/MovieTexture/MovieTexture_FFMpeg.cpp:311: error: integer constant is too large for ‘long’ type"

Original errors..

i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT   -finline-limit=300   -O2 -march=athlon-xp -pipe -c -o MovieTexture_FFMpeg.o `test -f 'arch/MovieTexture/MovieTexture_FFMpeg.cpp' || echo './'`arch/MovieTexture/MovieTexture_FFMpeg.cpp
arch/MovieTexture/MovieTexture_FFMpeg.cpp:309: error: integer constant is too large for ‘long’ type
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT   -finline-limit=300   -O2 -march=athlon-xp -pipe -c -o LightsDriver.o `test -f 'arch/Lights/LightsDriver.cpp' || echo './'`arch/Lights/LightsDriver.cpp
arch/MovieTexture/MovieTexture_FFMpeg.cpp: In member function ‘int FFMpeg_Helper::DecodePacket()’:
arch/MovieTexture/MovieTexture_FFMpeg.cpp:309: error: ‘INT64_C’ was not declared in this scope
arch/MovieTexture/MovieTexture_FFMpeg.cpp: In member function ‘void MovieTexture_FFMpeg::ConvertFrame()’:
arch/MovieTexture/MovieTexture_FFMpeg.cpp:393: warning: ‘img_convert’ is deprecated (declared at /usr/include/ffmpeg/avcodec.h:2399)
arch/MovieTexture/MovieTexture_FFMpeg.cpp:395: warning: ‘img_convert’ is deprecated (declared at /usr/include/ffmpeg/avcodec.h:2399)
arch/MovieTexture/MovieTexture_FFMpeg.cpp: In function ‘CStdStringA averr_ssprintf(int, const char*, ...)’:
arch/MovieTexture/MovieTexture_FFMpeg.cpp:518: error: duplicate case value
arch/MovieTexture/MovieTexture_FFMpeg.cpp:515: error: previously used here
make[2]: *** [MovieTexture_FFMpeg.o] Error 1
make[2]: *** Waiting for unfinished jobs....
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2007-07-01 20:09:28 UTC
Created attachment 123561 [details, diff]
stepmania-3.9-recent-ffmpeg-unfinished-fix-attempt.patch
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2007-07-01 20:14:22 UTC
[ebuild  N    ] games-arcade/stepmania-3.9  USE="gtk jpeg mp3 mpeg vorbis -debug -force-oss"

It fails on both x86 and amd64, I started working on it since amd64 user reported it to me on IRC. Using x86 myself here, and reproduced it.
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2007-08-01 17:05:48 UTC
ok, other issues are solved (and committed to tree) but it fails to link with ffmpeg because img_convert is obsolete. need a patch to replace it with functions from swscale, afaik.
Comment 4 David Carlos Manuelda 2007-08-06 02:34:52 UTC
Is this reported upstream? It would be better I think. If so, can anyone post a link to upstream bug report?
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2007-08-07 14:39:06 UTC
(In reply to comment #4)
> Is this reported upstream? It would be better I think. If so, can anyone post a
> link to upstream bug report?
> 

I've mailed them but likely to a wrong address, and now we have even more patches.. They should show up in,

http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/stepmania

After a moment. And yes, upstream *needs* to be contacted since most of these bugs are still in their CVS(!)

Anyway, this is now fixed in Portage.