We need add this patch to compile with libav, please do test with older libav/ffmpeg. Reproducible: Always
Created attachment 356430 [details, diff] openal_fix_libav_3.8.patch
this will break with stable libav; the rest should ok
Created attachment 363838 [details, diff] openal-1.15.1-fix_libav.patch Can we get this one into tree? Should fix all potentional problems with ifdefs ;)
ping, please retest :)
So, I tested first patch with oldest libav (libav-0.8.7) in tree and it works. So, the obsolete patch [1] is correct. Please include it. Ifdefs are unnecesary Thank you [1] https://bugs.gentoo.org/attachment.cgi?id=356430
*** Bug 496546 has been marked as a duplicate of this bug. ***
Could openal ebuild maintainer please include this patch? It could prevent filling another bug reports. Thank you
Neither patch works for me (the obsoleted one or the new one). With the obsoleted patch: /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../libavcodec.so when searching for -lavcodec /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libavcodec.so when searching for -lavcodec /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lavcodec /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../libavformat.so when searching for -lavformat /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libavformat.so when searching for -lavformat /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lavformat /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../libavutil.so when searching for -lavutil /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libavutil.so when searching for -lavutil /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lavutil collect2: error: ld returned 1 exit status /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../libavcodec.so when searching for -lavcodec /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libavcodec.so when searching for -lavcodec /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lavcodec /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../libavformat.so when searching for -lavformat /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libavformat.so when searching for -lavformat /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lavformat /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../libavutil.so when searching for -lavutil /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libavutil.so when searching for -lavutil /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lavutil collect2: error: ld returned 1 exit status CMakeFiles/alreverb.dir/build.make:139: recipe for target 'alreverb' failed And with the new one: /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../libavcodec.so when searching for -lavcodec /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libavcodec.so when searching for -lavcodec /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lavcodec /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../libavformat.so when searching for -lavformat /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libavformat.so when searching for -lavformat /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lavformat /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../libavutil.so when searching for -lavutil /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libavutil.so when searching for -lavutil /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lavutil collect2: error: ld returned 1 exit status CMakeFiles/alreverb.dir/build.make:139: recipe for target 'alreverb' failed
Portage 2.2.7 (default/linux/amd64/13.0, gcc-4.8.2, glibc-2.17, 3.12.4-aufs x86_64) ================================================================= System uname: Linux-3.12.4-aufs-x86_64-Intel-R-_Core-TM-2_CPU_6420_@_2.13GHz-with-gentoo-2.2 KiB Mem: 2030124 total, 310848 free KiB Swap: 2627424 total, 2420112 free Timestamp of tree: Sat, 04 Jan 2014 22:00:01 +0000 ld GNU ld (GNU Binutils) 2.24 distcc 3.1 x86_64-pc-linux-gnu [disabled] ccache version 3.1.9 [enabled] app-shells/bash: 4.2_p45 dev-java/java-config: 2.2.0 dev-lang/python: 2.7.6, 3.2.5-r3, 3.3.3 dev-util/ccache: 3.1.9-r3 dev-util/cmake: 2.8.12.1-r2 dev-util/pkgconfig: 0.28 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.12.4 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.11.6, 1.12.6, 1.13.4, 1.14.1 sys-devel/binutils: 2.24 sys-devel/gcc: 4.8.2 sys-devel/gcc-config: 1.8 sys-devel/libtool: 2.4.2 sys-devel/make: 4.0-r1 sys-kernel/linux-headers: 3.12 (virtual/os-headers) sys-libs/glibc: 2.17 Repositories: gentoo mv pipelight local_portage ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -march=native -pipe -fomit-frame-pointer" DISTDIR="/home/ftp/distfiles" EMERGE_DEFAULT_OPTS="--jobs 4 --load-average 4 --with-bdeps y --keep-going" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j2" 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" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/mv /var/lib/layman/pipelight /usr/local/portage" USE="X aac acl acpi alsa amd64 anthy bash-completion berkdb bluray bzip2 c++0x cairo cdda cddb cdr cjk cli clutter consolekit corefonts cracklib crypt css cxx dbus dri dvd dvdread eds encode ffmpeg flac fontconfig fortran gdbm gif gmp gnome-keyring gstreamer gtk iconv icu immqt-bc ipv6 jpeg jpeg2k lcms libnotify lm_sensors lzma m17n-lib mmx modules mp3 msn mudflap multilib musicbrainz nautilus ncurses nls nptl nsplugin ogg opengl openmp pam pch pcre png policykit pulseaudio qemu-ifup qt3support readline schroedinger scim session sse sse2 sse3 ssl ssse3 svg tcpd theora threads tiff truetype twolame udev unicode vaapi vdpau vorbis win32codecs x264 xml xvid xvmc zlib" ABI_X86="64 32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer nlpsolver pdfimport" LINGUAS="en en_US es es_LA es_MX ja ko zh_CN zh_TW zh" NETBEANS_MODULES="apisupport cnd dlight enterprise ergonomics groovy java javacard javafx mobility php profiler websvccommon" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2 jython2_5" QEMU_SOFTMMU_TARGETS="x86_64 i386" RUBY_TARGETS="ruby18 ruby19 ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="nouveau nvidia" 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: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Can you rebuild libav or ffmpeg ? That seems like different problem.
Created attachment 367414 [details] ffmpeg test script Using the attached script, I find that the patch from Comment 1 (with no version guards) does not break building against any of the (SLOT=0) non-live ffmpeg versions currently in Gentoo. Tested on an ~amd64 system.
(In reply to David Heidelberger (okias) from comment #10) > Can you rebuild libav or ffmpeg ? That seems like different problem. Rebuilt ffmpeg versions 0.10.10 and 1.2.4 Same error with either patch.
(In reply to Chris Slycord from comment #8) > Neither patch works for me (the obsoleted one or the new one). > > With the obsoleted patch: [snip linker not finding 32-bit ffmpeg] > > And with the new one: [snip linker not finding 32-bit ffmpeg] Afaik the issue in this bug is libav specific, it does not affect systems using the ffmpeg versions currently in Gentoo. Please try building openal without the patch from this bug, and file a separate bug if (when) that also fails. It looks like the openal-1.15.1-r1 ebuild does not declare ABI requirement for it's ffmpeg dependency. Possibly, you could work around your issue by ensuring 32-bit ffmpeg libraries are installed, either through app-emulation/emul-linux-x86-medialibs[-abi_x86_32] or media-video/ffmpeg[abi_x86_32].
(In reply to eroen from comment #13) > (In reply to Chris Slycord from comment #8) > > Neither patch works for me (the obsoleted one or the new one). > > > > With the obsoleted patch: > [snip linker not finding 32-bit ffmpeg] > > > > And with the new one: > [snip linker not finding 32-bit ffmpeg] this is indeed unrelated > Afaik the issue in this bug is libav specific, it does not affect systems > using the ffmpeg versions currently in Gentoo. it might affect ffmpeg too since the two forks are using different LIBAVCODEC_VERSION_* (ffmpeg ones being usually higher)
Tested with libav-9999, now it works without patch. This patch still be probably needed for some versions.
Openal upstream seems to have dropped the affected files, moving examples to the sdl backend. http://repo.or.cz/w/openal-soft.git/commit/9fd87314800f27d626f25688a69587166a809dd0
fixed in -r2 by completely dropping USE=alstream and forcing -DEXAMPLES=OFF imho, it's not worth it since upstream already dropped the application in git like pointed out earlier in this bug