Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 619486 - media-plugins/alsa-plugins-1.1.4: Building against media-video/libav-12 fails with "undefined reference to `av_resample_close'"
Summary: media-plugins/alsa-plugins-1.1.4: Building against media-video/libav-12 fail...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo ALSA team
URL:
Whiteboard:
Keywords:
: 673338 (view as bug list)
Depends on:
Blocks: libav-12
  Show dependency tree
 
Reported: 2017-05-23 23:43 UTC by Peter Levine
Modified: 2019-06-30 10:53 UTC (History)
6 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Levine 2017-05-23 23:43:29 UTC
"alsa-plugins-1.0.28-libav10.patch" was dropped from alsa-plugins-1.1.4.ebuild, presumably because it doesn't apply cleanly.  This causes build failure when built with USE="ffmpeg libav":

> .libs/rate_lavcrate.o: In function `pcm_src_free':
> /var/tmp/portage/media-plugins/alsa-plugins-1.1.4/work/alsa-plugins-1.1.4/rate-lavc/rate_lavcrate.c:70: undefined reference to `av_resample_close'
> .libs/rate_lavcrate.o: In function `pcm_src_init':
> /var/tmp/portage/media-plugins/alsa-plugins-1.1.4/work/alsa-plugins-1.1.4/rate-lavc/rate_lavcrate.c:96: undefined reference to `av_resample_init'
> .libs/rate_lavcrate.o: In function `pcm_src_convert_s16':
> /var/tmp/portage/media-plugins/alsa-plugins-1.1.4/work/alsa-plugins-1.1.4/rate-lavc/rate_lavcrate.c:186: undefined reference to `av_resample'
> /var/tmp/portage/media-plugins/alsa-plugins-1.1.4/work/alsa-plugins-1.1.4/rate-lavc/rate_lavcrate.c:194: undefined reference to `av_resample_compensate'
> /var/tmp/portage/media-plugins/alsa-plugins-1.1.4/work/alsa-plugins-1.1.4/rate-lavc/rate_lavcrate.c:194: undefined reference to `av_resample_compensate'

Reproducible: Always

Steps to Reproduce:
1.USE="ffmpeg libav" emerge -1 =libav-12::gentoo =alsa-plugins-1.1.4::gentoo

Actual Results:  
Build failure.

Expected Results:  
Build success.
Comment 1 Peter Levine 2017-05-24 00:10:32 UTC
PR: https://github.com/gentoo/gentoo/pull/4738
Comment 2 Coacher 2017-06-02 15:45:29 UTC
Same here on ~amd64.
Comment 3 Steve Arnold archtester gentoo-dev 2017-08-20 23:11:12 UTC
Please try 1.1.4-r1 (it all works for me with the fixes in bug #621172 and a fixed "fix" for bug #588482 even with gold linker).
Comment 4 Nathan Caldwell 2017-08-21 06:24:19 UTC
Still failing here with 1.1.4-r1.

It seems all that -r1 changed was to depend on virtual/jack instead of directly on jack-audio-connection-kit.
Comment 5 Andreas Sturmlechner gentoo-dev 2018-06-07 20:14:31 UTC
ping.
Comment 6 Peter Levine 2018-07-11 03:45:14 UTC
There is no change in the incompatibility between alsa-plugins and libav (tested with media-plugins/alsa-plugins-1.1.6 and media-video/libav versions 12.2, 13_pre20171219, and 9999).  I switched to media-video/ffmpeg a while back anyway though. Since upstream is indifferent to the issue and it's unreasonable to maintain a patch with each version bump, perhaps the "libav" USE flag should be dropped and media-plugins/alsa-plugins should depend directly on media-video/ffmpeg.
Comment 7 Rolf Eike Beer archtester 2018-10-27 18:08:10 UTC
See bug 653742.
Comment 8 Peter Levine 2018-10-27 23:17:38 UTC
(In reply to Rolf Eike Beer from comment #7)
> See bug 653742.

Yep. media-plugins/alsa-plugins-1.1.7 builds fine. Tested against media-video/libav-12.3.
Comment 9 Pacho Ramos gentoo-dev 2019-06-30 10:52:52 UTC
fixed in newer versions
Comment 10 Pacho Ramos gentoo-dev 2019-06-30 10:53:14 UTC
*** Bug 673338 has been marked as a duplicate of this bug. ***