Created attachment 528182 [details] build.log /bin/sh ../libtool --tag=CC --mode=link x86_64-pc-linux-gnu-gcc -Wall -g -I/usr/include/alsa -DAVCODEC_HEADER="<libavcodec/avcodec.h>" -O2 -march=native -pipe -fomit-frame-pointer -fuse-linker-plugin -flto -fno-lto -fno-use-linker-plugin -module -avoid-version -export-dynamic -no-undefined -Wl,--no-undefined -Wl,-O1 -Wl,--as-needed -flto -fno-lto -fno-use-linker-plugin -o libasound_module_rate_lavcrate.la -rpath /usr/lib64/alsa-lib rate_lavcrate.lo -lasound -lavcodec -lavutil -lasound libtool: link: x86_64-pc-linux-gnu-gcc -shared -fPIC -DPIC .libs/rate_lavcrate.o -Wl,--as-needed -lavcodec -lavutil -lasound -g -O2 -march=native -fuse-linker-plugin -flto -Wl,--no-undefined -Wl,-O1 -flto -Wl,-soname -Wl,libasound_module_rate_lavcrate.so -o .libs/libasound_module_rate_lavcrate.so .libs/rate_lavcrate.o: In function `pcm_src_free': /var/tmp/portage/media-plugins/alsa-plugins-1.1.6/work/alsa-plugins-1.1.6/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.6/work/alsa-plugins-1.1.6/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.6/work/alsa-plugins-1.1.6/rate-lavc/rate_lavcrate.c:186: undefined reference to `av_resample' /var/tmp/portage/media-plugins/alsa-plugins-1.1.6/work/alsa-plugins-1.1.6/rate-lavc/rate_lavcrate.c:194: undefined reference to `av_resample_compensate' /var/tmp/portage/media-plugins/alsa-plugins-1.1.6/work/alsa-plugins-1.1.6/rate-lavc/rate_lavcrate.c:194: undefined reference to `av_resample_compensate' collect2: error: ld returned 1 exit status make[2]: *** [Makefile:424: libasound_module_rate_lavcrate.la] Error 1 make[2]: Leaving directory '/var/tmp/portage/media-plugins/alsa-plugins-1.1.6/work/alsa-plugins-1.1.6-abi_x86_64.amd64/rate-lavc' make[1]: *** [Makefile:434: all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/media-plugins/alsa-plugins-1.1.6/work/alsa-plugins-1.1.6-abi_x86_64.amd64' make: *** [Makefile:366: all] Error 2 * ERROR: media-plugins/alsa-plugins-1.1.6::gentoo failed (compile phase): # emerge --info Portage 2.3.31 (python 3.5.5-final-0, default/linux/amd64/17.1/systemd, gcc-7.3.0, glibc-2.26-r6, 4.17.0-rc1 x86_64) ================================================================= System uname: Linux-4.17.0-rc1-x86_64-Intel-R-_Core-TM-_i5-6500_CPU_@_3.20GHz-with-gentoo-2.4.1 KiB Mem: 16019808 total, 4751932 free KiB Swap: 12337144 total, 12094292 free Timestamp of repository gentoo: Sat, 21 Apr 2018 16:30:01 +0000 Head commit of repository gentoo: 437c67666c94731b2d33e69e22b3dee9ef10b6b0 sh bash 4.4_p19 ld GNU ld (Gentoo 2.30 p1) 2.30.0 ccache version 3.3.4 [disabled] app-shells/bash: 4.4_p19::gentoo dev-java/java-config: 2.2.0-r4::gentoo dev-lang/perl: 5.26.1-r2::gentoo dev-lang/python: 2.7.14-r1::gentoo, 3.4.8::gentoo, 3.5.5::gentoo dev-util/ccache: 3.3.4-r1::gentoo dev-util/cmake: 3.11.1::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.4.1-r2::gentoo sys-apps/sandbox: 2.13::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r4::gentoo sys-devel/automake: 1.11.6-r3::gentoo, 1.16.1-r1::gentoo sys-devel/binutils: 2.30-r1::gentoo sys-devel/gcc: 7.3.0-r2::gentoo sys-devel/gcc-config: 1.9.1::gentoo sys-devel/libtool: 2.4.6-r5::gentoo sys-devel/make: 4.2.1-r3::gentoo sys-kernel/linux-headers: 4.16-r1::gentoo (virtual/os-headers) sys-libs/glibc: 2.26-r6::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-metamanifest: yes sync-rsync-verify-max-age: 24 sync-rsync-extra-opts: sync-rsync-verify-jobs: 1 x-portage location: /usr/local/portage masters: gentoo priority: 0 mv location: /var/lib/layman/mv sync-type: laymansync sync-uri: git://anongit.gentoo.org/user/mv.git masters: gentoo priority: 50 rust location: /var/lib/layman/rust sync-type: laymansync sync-uri: git://github.com/gentoo/gentoo-rust.git masters: gentoo priority: 50 steam-overlay location: /var/lib/layman/steam-overlay sync-type: laymansync sync-uri: git://github.com/anyc/steam-overlay.git masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA Intel-SDP Oracle-BCLA-JavaSE Oracle-EADLA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer -fuse-linker-plugin -flto" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.3/conf" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.2/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -march=native -pipe -fomit-frame-pointer -fuse-linker-plugin -flto" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--jobs=4 --load-average=4.5" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs candy cgroup clean-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms splitdebug strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -flto" LINGUAS="en" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="X a52 aac aacs acl acpi aiglx alac alsa amd64 amr amrnb amrwb animation apache2 apng argon2 artworkextra asf aspnet2 asyncns authdaemond avahi avi bash-completion bcmath berkdb bitmap-fonts bluetooth bluray bmp bonjour brotli btrfs bzip2 cairo caps cdda cddb cdparanoia cdr celt chm clang cli crypt cryptsetup css cups curl cxx daap dbus device-mapper dga dhclient dirac divx4linux dlloader dns dnssec dovecot-sasl dpms dri dri3 dts dv dvb dvd dvdr dvdread egl enca encode exif ext4 faac fam fame fat fbcondecor fbsplash ffmpeg fftw firefox flac fontconfig foomaticdb fortran freetype ftp fuse gaim gd gdbm geoip gif gimpprint glamor gles gles1 gles2 glib glibc-omitfp glitz glut gost gphoto2 gsm gstreamer gstreamer10 gtk gtk2 gudev hardenedphp hbci howl howl-compat http2 https hwdb iconv icu idn imagemagick imap imlib innodb ipv6 java java5 javafx jbig jce joystick jpeg jpeg2k junit kdbus kdehiddenvisibility kvm lapack lcms libfame libkms libnotify librtmp libusb lirc live llvm lm_sensors lvm lz4 lzma lzo mad maildir mdadm mdnsresponder-compat metalink mjpeg mmap mms mng modules motif mozilla mozsvg mp3 mpeg mpeg2 mplayer mpx multilib musepack mysql mythtv natspec ncurses nemesi network networkmanager nls nptl nptlonly ntfs ocl-icd offensive ofx ogg oggvorbis openal opencl openexr opengl openmp openvg opus pam pango pcre pcre16 pcre32 pdf pdflib perl pgo phonon pic pie png pnp policykit ppd ppds pulseaudio python qt qt3 qt3support qt4 quicktime quvi rar readline resolvconf rtc rtmp schroedinger screensaver sctp sdl seccomp session sftp sharedmem shout smp sna sni sox speex spell sqlite ssh ssl steamruntime suspend2 svg systemd theora threads tiff tls transcode truetype truetype-fonts type-fonts udev udisks unicode unzip upnp ups usb user-session uxa v4l2 vaapi vcd vdpau videos virgl vorbis vpx vulkan wayland webdav webp webservices wifi win32codecs wmf wv x264 x265 xanim xattr xcb xcomposite xdg xinerama xml xml2 xpm xprint xrandr xv xvfb xvid xvmc zeroconf zip zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="actions alias auth_basic authn_core authz_core cache_disk authn_alias authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex brotli cache dav dav_fs dav_lock dconf deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias auth_digest proxy proxy_ajp proxy_connect proxy_http proxy_fcgi reqtimeout cgi cgid unixd socache_shmcb proxy_html xml2enc" CALLIGRA_FEATURES="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="evdev joystick keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LIRC_DEVICES="userspace" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-1" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby25" USERLAND="GNU" VIDEO_CARDS="intel i965 amdgpu radeon radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, ENV_UNSET, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
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 ??