Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 362949

Summary: www-plugins/gnash-0.8.9 fails to build against media-video/ffmpeg-0.8: undefined reference to `av_parser_parse'
Product: Gentoo Linux Reporter: Chí-Thanh Christopher Nguyễn <chithanh>
Component: Current packagesAssignee: Chí-Thanh Christopher Nguyễn <chithanh>
Status: RESOLVED FIXED    
Severity: normal CC: media-video, mrpouet, nbowler, wtt6
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://savannah.gnu.org/bugs/index.php?33696
See Also: https://savannah.gnu.org/bugs/index.php?33696
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: ldd -r libgnashmedia.so
build.log
possible fix

Description Chí-Thanh Christopher Nguyễn gentoo-dev 2011-04-10 21:08:55 UTC
Since ffmpeg-0.6.90_rc0, gnash fails to link:

/var/tmp/portage/www-plugins/gnash-0.8.9/work/gnash-0.8.9/libmedia/.libs/libgnashmedia.so: undefined reference to `av_parser_parse'
collect2: ld returned 1 exit status
make[4]: *** [sdl-gnash] Error 1

According to the ffmpeg changelog, av_parser_parse() has been marked as deprecated. media-video herd, please advise.
Comment 1 Chí-Thanh Christopher Nguyễn gentoo-dev 2011-04-10 21:10:19 UTC
Created attachment 269391 [details]
ldd -r libgnashmedia.so
Comment 2 Chí-Thanh Christopher Nguyễn gentoo-dev 2011-04-10 21:14:02 UTC
Created attachment 269393 [details]
build.log
Comment 3 Chí-Thanh Christopher Nguyễn gentoo-dev 2011-04-10 22:20:10 UTC
Created attachment 269403 [details, diff]
possible fix

This patch makes gnash build against ffmpeg-0.6.90_rc0. But I am not sure whether it is the correct solution.
Comment 4 Alexis Ballier gentoo-dev 2011-04-12 14:32:43 UTC
your fix is correct but this function not being available indicates a bug in ffmpeg, I'll send a patch upstream for it
(at least ffmpeg-0.6 supports av_parser_parse2, didnt check older versions)
Comment 5 Alexis Ballier gentoo-dev 2011-04-12 14:34:08 UTC
ah, this is already fixed in git, I'll backport it and push a -r1
Comment 6 Chí-Thanh Christopher Nguyễn gentoo-dev 2011-07-02 21:09:05 UTC
In ffmpeg-0.8 this was removed for good. I added patches to gnash so it no longer uses the deprecated symbols.