Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 242054 - games-arcade/stepmania-3.9 fails to buid against ffmpeg 0.4.9_p20081014
Summary: games-arcade/stepmania-3.9 fails to buid against ffmpeg 0.4.9_p20081014
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Samuli Suominen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 241942
  Show dependency tree
 
Reported: 2008-10-14 14:11 UTC by Alexis Ballier
Modified: 2009-01-14 01:26 UTC (History)
2 users (show)

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


Attachments
fix (offsett.patch,636 bytes, patch)
2008-10-14 14:12 UTC, Alexis Ballier
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexis Ballier gentoo-dev 2008-10-14 14:11:34 UTC
This ffmpeg version has a big api change. I'll attach the patch; note that I
have *not* upstreamed it as I don't know how you handle your relations with
upstream. If you want me to do it, please let me know. This bug will serve me
to track the unmasking of ffmpeg from another bug, so please don't close it
until it's really ok.
Comment 1 Alexis Ballier gentoo-dev 2008-10-14 14:12:52 UTC
Created attachment 168424 [details, diff]
fix

it uses offset_t which was typedef'd to int64_t for years; now its gone, it should be safe and backward compatible to directly use int64_t
Comment 2 Peter Alfredsen (RETIRED) gentoo-dev 2008-10-15 19:03:46 UTC
I've sent upstream a mail and tested and committed this patch.
Comment 3 Wai Ling 2009-01-14 01:26:27 UTC
It does compile, but stepmania still wouldn't play any video.  It will crash with the following error in crashlog:

Crash reason: Segmentation fault - address not mapped at 0x00000060
Crashed thread: Main thread

Checkpoints:
Thread: Main thread
        arch/MovieTexture/MovieTexture_FFMpeg.cpp:365
        arch/MovieTexture/MovieTexture_FFMpeg.cpp:293
        arch/MovieTexture/MovieTexture_FFMpeg.cpp:353
        arch/MovieTexture/MovieTexture_FFMpeg.cpp:365
        arch/MovieTexture/MovieTexture_FFMpeg.cpp:700
Thread: Decode thread
        arch/Sound/RageSoundDriver_Generic_Software.cpp:198
        arch/Sound/RageSoundDriver_Generic_Software.cpp:198
        arch/Sound/RageSoundDriver_Generic_Software.cpp:198
        arch/Sound/RageSoundDriver_Generic_Software.cpp:198
        arch/Sound/RageSoundDriver_Generic_Software.cpp:198
Thread: RageSound_ALSA9_Software
Thread: MusicThread
        GameSoundManager.cpp:89
        GameSoundManager.cpp:93
        GameSoundManager.cpp:87
        GameSoundManager.cpp:89
        GameSoundManager.cpp:93

Thread: Main thread
b76b71a0: (libavcodec.so.52)
b7fc87e9:
083dab01: avcodec::img_convert__(avcodec::AVPicture*, int, avcodec::AVPicture const*, int, int, int)
083db37d: MovieTexture_FFMpeg::ConvertFrame()
083ddb57: MovieTexture_FFMpeg::MovieTexture_FFMpeg(RageTextureID)
083d92e1: MakeRageMovieTexture(RageTextureID)
0853d912: RageTextureManager::LoadTextureInternal(RageTextureID)
0853df6c: RageTextureManager::LoadTexture(RageTextureID)

I am using ffmpeg-0.4.9_p20081014, and tried ffmpeg-0.4.9_p20081219 which yields the same failure.  Is it related to the offset, or is it something else?