Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 481670 - media-libs/openal with media-libs/libav-9.8 - ?
Summary: media-libs/openal with media-libs/libav-9.8 - ?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords: PATCH
: 496546 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-08-19 16:49 UTC by David Heidelberg (okias)
Modified: 2014-01-31 14:57 UTC (History)
2 users (show)

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


Attachments
openal_fix_libav_3.8.patch (openal-1.15.1-libav-9.8-fix.patch,361 bytes, patch)
2013-08-19 16:49 UTC, David Heidelberg (okias)
Details | Diff
openal-1.15.1-fix_libav.patch (openal-1.15.1-fix_libav.patch,591 bytes, patch)
2013-11-23 16:13 UTC, David Heidelberg (okias)
Details | Diff
ffmpeg test script (file_481670.txt,1.38 KB, text/plain)
2014-01-08 18:29 UTC, eroen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Heidelberg (okias) 2013-08-19 16:49:03 UTC
We need add this patch to compile with libav, please do test with older libav/ffmpeg.

Reproducible: Always
Comment 1 David Heidelberg (okias) 2013-08-19 16:49:45 UTC
Created attachment 356430 [details, diff]
openal_fix_libav_3.8.patch
Comment 2 Alexis Ballier gentoo-dev 2013-08-27 16:18:12 UTC
this will break with stable libav; the rest should ok
Comment 3 David Heidelberg (okias) 2013-11-23 16:13:01 UTC
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 ;)
Comment 4 David Heidelberg (okias) 2013-11-28 20:27:13 UTC
ping, please retest :)
Comment 5 David Heidelberg (okias) 2013-12-01 23:38:44 UTC
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
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2013-12-31 15:13:23 UTC
*** Bug 496546 has been marked as a duplicate of this bug. ***
Comment 7 David Heidelberg (okias) 2014-01-07 23:36:02 UTC
Could openal ebuild maintainer please include this patch?

It could prevent filling another bug reports.

Thank you
Comment 8 Chris Slycord 2014-01-08 04:58:32 UTC
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
Comment 9 Chris Slycord 2014-01-08 04:59:13 UTC
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
Comment 10 David Heidelberg (okias) 2014-01-08 13:28:43 UTC
Can you rebuild libav or ffmpeg ? That seems like different problem.
Comment 11 eroen 2014-01-08 18:29:29 UTC
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.
Comment 12 Chris Slycord 2014-01-10 11:12:29 UTC
(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.
Comment 13 eroen 2014-01-10 11:36:12 UTC
(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].
Comment 14 Alexis Ballier gentoo-dev 2014-01-10 14:02:56 UTC
(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)
Comment 15 David Heidelberg (okias) 2014-01-12 15:03:37 UTC
Tested with libav-9999, now it works without patch. This patch still be probably needed for some versions.
Comment 16 eroen 2014-01-22 10:24:24 UTC
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
Comment 17 Samuli Suominen (RETIRED) gentoo-dev 2014-01-31 14:57:04 UTC
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