Summary: | dev-games/openscenegraph-2.8.3 fails to compile due to ‘AVSampleFormat’ in class ‘osg::AudioStream’ does not name a type | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Juergen Rose <rose> |
Component: | [OLD] Games | Assignee: | Gentoo Games <games> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bircoph, daggs, ed, fauli, hilco.wijbenga, it-knodel, klaas.decanniere, kripton, martin.pippel, Martin.vGagern, matrix47, orzel, polynomial-c, zioalex |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 339036, 347625 | ||
Attachments: |
/var/tmp/portage/dev-games/openscenegraph-2.8.3/temp/build.log
dev-games/openscenegraph-2.8.3 build.log #define FF_API_OLD_SAMPLE_FMT 0 ebuild which used the patch in comment 12 |
Description
Juergen Rose
2010-12-01 20:51:19 UTC
Created attachment 256069 [details]
/var/tmp/portage/dev-games/openscenegraph-2.8.3/temp/build.log
This only occurs with ffmpeg-0.6_p25767 or newer. Please work on a fix as it holds up Chromium and FFmpeg security stabilisations. Created attachment 257353 [details]
dev-games/openscenegraph-2.8.3 build.log
It fails with media-video/ffmpeg-0.6_p25767, but builds fine with USE="-ffmpeg".
Four weeks later: Any news? openscenegraph-2.9.10 compiles against latest ffmpeg... (In reply to comment #5) > openscenegraph-2.9.10 compiles against latest ffmpeg... > but 2.8.3 is latest in portage... Hi, i'm hit by this compilation problem too. Using ~amd64, media-video/ffmpeg-0.6_p25767, ffmpeg is in USE and dev-games/openscenegraph-2.8.3 compilation will fail with the same errors as reported. I have the same problem, openscenegraph does not compile with the same error. This is mi emerge --info Portage 2.1.9.31 (default/linux/x86/10.0/desktop, gcc-4.5.2, glibc-2.12.2-r0, 2.6.37-gentoo i686) ================================================================= System uname: Linux-2.6.37-gentoo-i686-Intel-R-_Pentium-R-_4_CPU_2.66GHz-with-gentoo-2.0.1 Timestamp of tree: Sat, 15 Jan 2011 13:55:01 +0000 app-shells/bash: 4.1_p9 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.6.6-r1, 2.7.1, 3.1.3 dev-util/cmake: 2.8.3-r1 sys-apps/baselayout: 2.0.1-r1 sys-apps/openrc: 0.7.0 sys-apps/sandbox: 2.4 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.21 sys-devel/gcc: 4.5.2 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82 virtual/os-headers: 2.6.36.1 (sys-kernel/linux-headers) ACCEPT_KEYWORDS="x86 ~x86" ACCEPT_LICENSE="*" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686 -pipe " CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/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=i686 -pipe " DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.wetzlmayr.com/ ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://mirror.usu.edu/mirrors/gentoo/ http://gentoo.osuosl.org/ ftp://mirror.its.uidaho.edu/gentoo/ http://gentoo.mirrors.tds.net/gentoo http://distro.ibiblio.org/pub/linux/distributions/gentoo/ ftp://mirror.iawnet.sandia.gov/pub/gentoo/ http://gentoo.cs.uni.edu/ ftp://mirror.datapipe.net/gentoo http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://mirror.its.uidaho.edu/pub/gentoo/ ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ ftp://chi-10g-1-mirror.fastsoft.net/pub/linux/gentoo/gentoo-distfiles/ " LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en_US it eo" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa apache2 apm audiofile bash-completion branding bzip2 cairo cdr cli clutter consolekit cracklib crypt css cups cxx dbus device-mapper doc dri dts dv dvd dvdr eds emboss enca encode evo examples exif extras fam ffmpeg firefox flac fontconfig fortran ftp gd gdbm gif gimp glx gnome gnutls gpm gstreamer gtk guile gzip iconv ieee1394 ipod ipv6 ithreads jadetex jpeg kde kdrive lcms libnotify libwww mad mikmod mmx mng modules mp3 mp4 mpeg mplayer msn mudflap mysql ncurses networking nls nptl nptlonly ogg opengl openmp oss pam pango pcre pdf perl php png policykit ppds pppd python qt3support qt4 quicktime rar readline sasl scanner sdl semantic-desktop session sip snmp sockets spell sql sqlite ssl startup-notification svg sysfs tcpd threads tiff tk tls truetype udev unicode unrar unzip usb v4l v4l2 vnc vorbis wav weather webkit wifi win32codecs x264 x86 xcb xine xml xorg xscreensaver xulrunner xv xvid yahoo yv12 zip zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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" 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 ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US it eo" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" 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, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY thanks Massimo same problem here. builds fine with -ffmpeg USEflag. The preprocessor changes SampleFormat to AVSampleFormat due to this: /usr/include/libavcodec/avcodec.h:#define SampleFormat AVSampleFormat any news? still occurring... Created attachment 261477 [details, diff] #define FF_API_OLD_SAMPLE_FMT 0 This patch makes osg compile for me. See also the corresponding ffmpeg commit: http://git.ffmpeg.org/?p=ffmpeg.git;a=commitdiff;h=262d1c5d2206467809fd81d841d09ad70cc8ba13 It introduced the problematic #define SampleFormat, but at the same time provided a means to avoid that problem, using the macro FF_API_OLD_SAMPLE_FMT. Reported this upstream using the osg-users mailing list: http://thread.gmane.org/gmane.comp.graphics.openscenegraph.user/65408 Still would like to see this in Gentoo before upstream releases a fix, though. (In reply to comment #13) > Reported this upstream using the osg-users mailing list: > http://thread.gmane.org/gmane.comp.graphics.openscenegraph.user/65408 Fix accepted upstream: http://www.openscenegraph.org/projects/osg/changeset/12154/ Hi Martin do we have a patch, which uses the fix in http://www.openscenegraph.org/projects/osg/changeset/12154/ ? (In reply to comment #15) > do we have a patch, which uses the fix in [upstream r12154]? Not sure I understand your question correctly, but I posted that very same fix here in comment #12. So "we" as in "the people following this report" have a fix, ready for download. "We" as in "the consumers of the main portage tree" still lack the fix, as it hasn't been committed to the main portage tree yet. By the way, even if I hadn't posted the patch here already, it would be fairly simple to grab it from the upstream repository, either using Trac: http://www.openscenegraph.org/projects/osg/changeset/12154/?format=diff (following the "Unified Diff" link on the changeset page) or using svn: $ svn diff -c 12154 http://www.openscenegraph.org/svn/osg Either way you'd loose the introductory text I included in my patch, though. Sorry Martin, I just missed that there was a patch attached to comment 12 or probably I ignored comment 12. Thank you for the patch. It worked for me with the attachted ebuild. Created attachment 262451 [details] ebuild which used the patch in comment 12 *** Bug 355663 has been marked as a duplicate of this bug. *** Thanks for the patch. Popped it into /etc/portage/patches/dev-games/openscenegraph-2.8.3/ and it compiled fine. I seem to be using the user patch mechanism quite a lot recently 8) ~amd64. Maintainers, can we get some progress here please? This bug has been around for over 4 months, there is a patch which has been accepted by upstream for over 2 months now. Plus we are blocking a CVS security issue. Before the major bugzilla upgrade, I'd add the "Inclusion" keyword myself, but it seems I can no longer do so. Please, simply add the patch and close this thing, will you? Fixed. Thanks for report |