Summary: | media-plugins/alsa-plugins-1.1.6 building against media-video/ffmpeg-4.0: undefined reference to `av_resample' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Craig Andrews <candrews> |
Component: | Current packages | Assignee: | Gentoo ALSA team <alsa-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | adia, blackrabbit, bountyjedi, candrews, fordfrog, h.mth, jasmin+gentoo, josef64, media-video, paolo.pedroni, perfect007gentleman, plevine457, poncho |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 653678, 666852 | ||
Attachments: |
build.log
plugin-config.patch fixed up ebuild with patch live ebuild to compile alsa-plugins against ffmpeg-4 |
Description
Craig Andrews
2018-04-21 23:19:32 UTC
Apparently this is already fixed upstream: http://git.alsa-project.org/?p=alsa-plugins.git;a=commit;h=24db7f59d76984e2901f2834a297735853cab776 Created attachment 532202 [details, diff]
plugin-config.patch
Created attachment 540290 [details]
fixed up ebuild with patch
This is what I did in my local repo to get alsa-plugins to build with ffmpeg-4
@bountyjedi Your ebuild worked for me with one obvious exception that one must first copy from portage package 51-pulseaudio-probe.conf pulse-default.conf into filesdir if they use pulseuadio otherwise ebuild would still fail JFYI, patch has a typo. ebuild from pg_overlay[0], too. Though, it seems to be enabled by configure anyway checking for '!= no'. +AC_ARG_ENABLE([libav], + AS_HELP_STRING([--disable-avlib], [Do not build plugins depending on libav/ffmpeg (a52,lavrate...)])) should be --disable-libav; also wrong in pg_overlay[0]. [0] https://github.com/perfect7gentleman/pg_overlay/blob/master/media-plugins/alsa-plugins/alsa-plugins-1.1.6.ebuild#L56 The suggested patch would add a dependency to libavresample which is deprecated in FFmpeg and will be removed in the future. The long-term solution would be to use libswresample instead. Created attachment 547504 [details]
live ebuild to compile alsa-plugins against ffmpeg-4
Is ${FILESDIR}/${PN}-1.1.5-optional_plugins.patch still needed? does not apply against the current version in git.
(In reply to Hanno Meyer-Thurow (geki) from comment #5) > JFYI, patch has a typo. ebuild from pg_overlay[0], too. Though, it seems to > be enabled by configure anyway checking for '!= no'. > > +AC_ARG_ENABLE([libav], > + AS_HELP_STRING([--disable-avlib], [Do not build plugins depending on > libav/ffmpeg (a52,lavrate...)])) > > should be --disable-libav; also wrong in pg_overlay[0]. > > [0] > https://github.com/perfect7gentleman/pg_overlay/blob/master/media-plugins/ > alsa-plugins/alsa-plugins-1.1.6.ebuild#L56 Then it was introduced upstream as for confusion in http://git.alsa-project.org/?p=alsa-plugins.git;a=commit;h=24db7f59d76984e2901f2834a297735853cab776 --disable-avcodec renamed to --disable-libav -AC_ARG_ENABLE([avcodec], - AS_HELP_STRING([--disable-avcodec], [Don't build plugins depending on avcodec (a52)])) +AC_ARG_ENABLE([libav], + AS_HELP_STRING([--disable-avlib], [Do not build plugins depending on libav/ffmpeg (a52,lavrate...)])) upstream bug? (In reply to jospezial from comment #8) > (In reply to Hanno Meyer-Thurow (geki) from comment #5) > > JFYI, patch has a typo. ebuild from pg_overlay[0], too. Though, it seems to > > be enabled by configure anyway checking for '!= no'. > > > > +AC_ARG_ENABLE([libav], > > + AS_HELP_STRING([--disable-avlib], [Do not build plugins depending on > > libav/ffmpeg (a52,lavrate...)])) > > > > should be --disable-libav; also wrong in pg_overlay[0]. > > > > [0] > > https://github.com/perfect7gentleman/pg_overlay/blob/master/media-plugins/ > > alsa-plugins/alsa-plugins-1.1.6.ebuild#L56 > > Then it was introduced upstream as for confusion in > http://git.alsa-project.org/?p=alsa-plugins.git;a=commit; > h=24db7f59d76984e2901f2834a297735853cab776 > --disable-avcodec renamed to --disable-libav > > -AC_ARG_ENABLE([avcodec], > - AS_HELP_STRING([--disable-avcodec], [Don't build plugins depending on > avcodec (a52)])) > +AC_ARG_ENABLE([libav], > + AS_HELP_STRING([--disable-avlib], [Do not build plugins depending on > libav/ffmpeg (a52,lavrate...)])) > > upstream bug? Yep. http://mailman.alsa-project.org/pipermail/alsa-devel/2018-September/140494.html New media-plugins/alsa-plugins-1.1.7 version is now in main tree - it builds and works fine with ffmpeg-4 Thanks :) Shouldn't alsa-plugins explicitly depend on <ffmpeg-4? (In reply to Tomasz Golinski from comment #11) > Shouldn't alsa-plugins explicitly depend on <ffmpeg-4? Why? And is your comment any reply to comment10 ?? |