Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bugzilla DB migration completed. Please report issues to Infra team via email via infra@gentoo.org or IRC
Bug 439606 - dev-games/openscenegraph-3.0.1 compilation fails with || ( >=media-video/ffmpeg-0.11 >=media-video/libav-9 )
Summary: dev-games/openscenegraph-3.0.1 compilation fails with || ( >=media-video/ffmp...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Maciej Mrozowski
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: ffmpeg-0.11-breakage libav-9
  Show dependency tree
 
Reported: 2012-10-25 12:49 UTC by Lars Wendler (Polynomial-C)
Modified: 2013-02-09 00:14 UTC (History)
3 users (show)

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


Attachments
openscenegraph-3.0.1.build.log (openscenegraph-3.0.1.build.log,810.31 KB, text/plain)
2012-10-25 12:49 UTC, Lars Wendler (Polynomial-C)
Details
Support libav 9 correctly (openscenegraph-libav-9.diff,11.50 KB, patch)
2012-11-22 19:06 UTC, Luca Barbato
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Wendler (Polynomial-C) gentoo-dev 2012-10-25 12:49:19 UTC
Created attachment 327390 [details]
openscenegraph-3.0.1.build.log

[ 39%] Building CXX object src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/FFmpegDecoderAudio.o
cd /var/tmp/portage/dev-games/openscenegraph-3.0.1/work/openscenegraph-3.0.1_build/src/osgPlugins/ffmpeg && /usr/bin/x86_64-pc-linux-gnu-g++  -Dosgdb_ffmpeg_EXPORTS -DUSE_SWSCALE  -D__STDC_CONSTANT_MACROS -DNDEBUG -march=barcelona -mtune
=barcelona -O2 -pipe  -Wall -Wparentheses -Wno-long-long -Wno-import  -Wreturn-type -Wmissing-braces -Wunknown-pragmas -Wunused -fpermissive -fPIC -I/var/tmp/portage/dev-games/openscenegraph-3.0.1/work/OpenSceneGraph-3.0.1/include -I/var
/tmp/portage/dev-games/openscenegraph-3.0.1/work/openscenegraph-3.0.1_build/include -I/usr/include/libavformat -I/usr/include/libavdevice -I/usr/include/libavcodec -I/usr/include/libavutil -I/usr/include/libswscale    -o CMakeFiles/osgdb
_ffmpeg.dir/FFmpegDecoderAudio.o -c /var/tmp/portage/dev-games/openscenegraph-3.0.1/work/OpenSceneGraph-3.0.1/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp
In file included from /var/tmp/portage/dev-games/openscenegraph-3.0.1/work/OpenSceneGraph-3.0.1/src/osgPlugins/ffmpeg/FFmpegClocks.hpp:10:0,
                 from /var/tmp/portage/dev-games/openscenegraph-3.0.1/work/OpenSceneGraph-3.0.1/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.hpp:9,
                 from /var/tmp/portage/dev-games/openscenegraph-3.0.1/work/OpenSceneGraph-3.0.1/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:1:
/var/tmp/portage/dev-games/openscenegraph-3.0.1/work/OpenSceneGraph-3.0.1/src/osgPlugins/ffmpeg/FFmpegHeaders.hpp:8:0: warning: "__STDC_CONSTANT_MACROS" redefined [enabled by default]
<command-line>:0:0: note: this is the location of the previous definition
In file included from /var/tmp/portage/dev-games/openscenegraph-3.0.1/work/OpenSceneGraph-3.0.1/include/osg/FrameStamp:22:0,
                 from /var/tmp/portage/dev-games/openscenegraph-3.0.1/work/OpenSceneGraph-3.0.1/include/osg/BufferObject:20,
                 from /var/tmp/portage/dev-games/openscenegraph-3.0.1/work/OpenSceneGraph-3.0.1/include/osg/Image:17,
                 from /var/tmp/portage/dev-games/openscenegraph-3.0.1/work/OpenSceneGraph-3.0.1/include/osg/AudioStream:17,
                 from /var/tmp/portage/dev-games/openscenegraph-3.0.1/work/OpenSceneGraph-3.0.1/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.hpp:12,
                 from /var/tmp/portage/dev-games/openscenegraph-3.0.1/work/OpenSceneGraph-3.0.1/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:1:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/include/g++-v4/ctime:62:11: error: ‘::clock_t’ has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/include/g++-v4/ctime:63:11: error: ‘::time_t’ has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/include/g++-v4/ctime:66:11: error: ‘::clock’ has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/include/g++-v4/ctime:67:11: error: ‘::difftime’ has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/include/g++-v4/ctime:68:11: error: ‘::mktime’ has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/include/g++-v4/ctime:69:11: error: ‘::time’ has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/include/g++-v4/ctime:70:11: error: ‘::asctime’ has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/include/g++-v4/ctime:71:11: error: ‘::ctime’ has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/include/g++-v4/ctime:72:11: error: ‘::gmtime’ has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/include/g++-v4/ctime:73:11: error: ‘::localtime’ has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/include/g++-v4/ctime:74:11: error: ‘::strftime’ has not been declared
/var/tmp/portage/dev-games/openscenegraph-3.0.1/work/OpenSceneGraph-3.0.1/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp: In function ‘int osgFFmpeg::decode_audio(AVCodecContext*, int16_t*, int*, const uint8_t*, int)’:
/var/tmp/portage/dev-games/openscenegraph-3.0.1/work/OpenSceneGraph-3.0.1/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:28:12: warning: ‘int avcodec_decode_audio3(AVCodecContext*, int16_t*, int*, AVPacket*)’ is deprecated (declared at /us
r/include/libavcodec/avcodec.h:3852) [-Wdeprecated-declarations]
/var/tmp/portage/dev-games/openscenegraph-3.0.1/work/OpenSceneGraph-3.0.1/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:28:72: warning: ‘int avcodec_decode_audio3(AVCodecContext*, int16_t*, int*, AVPacket*)’ is deprecated (declared at /us
r/include/libavcodec/avcodec.h:3852) [-Wdeprecated-declarations]
/var/tmp/portage/dev-games/openscenegraph-3.0.1/work/OpenSceneGraph-3.0.1/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp: In member function ‘void osgFFmpeg::FFmpegDecoderAudio::open(AVStream*)’:
/var/tmp/portage/dev-games/openscenegraph-3.0.1/work/OpenSceneGraph-3.0.1/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:92:13: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcod
ec.h:3569) [-Wdeprecated-declarations]
/var/tmp/portage/dev-games/openscenegraph-3.0.1/work/OpenSceneGraph-3.0.1/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:92:44: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcod
ec.h:3569) [-Wdeprecated-declarations]
/usr/bin/cmake -E cmake_progress_report /var/tmp/portage/dev-games/openscenegraph-3.0.1/work/openscenegraph-3.0.1_build/CMakeFiles 
make[2]: *** [src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/FFmpegDecoderAudio.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-games/openscenegraph-3.0.1/work/openscenegraph-3.0.1_build'
make[1]: *** [src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....



# emerge --info openscenegraph
Portage 2.2.0_alpha141 (default/linux/amd64/10.0/desktop/kde, gcc-4.7.2-asneeded, glibc-2.15-r3, 3.4.14 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.4.14-x86_64-Quad-Core_AMD_Opteron-tm-_Processor_2389-with-gentoo-2.2
Timestamp of tree: Thu, 25 Oct 2012 08:45:01 +0000
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.9-r1
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.2::poly-c
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6, 1.12.4
sys-devel/binutils:       2.23
sys-devel/gcc:            4.6.3, 4.7.2
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.4-r2 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo kde-sunset poly-c
Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=barcelona -mtune=barcelona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-3.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/X11/Sessions /etc/X11/app-defaults /etc/X11/xinit /etc/adobe /etc/bonobo-activation /etc/ca-certificates /etc/ca-certificates.conf /etc/dbus-1 /etc/env.d /etc/fonts /etc/fonts/fonts.conf /etc/foomatic /etc/games /etc/gconf /etc/gentoo-release /etc/gimp /etc/gnome-vfs-2.0 /etc/gre.d /etc/gtk-2.0 /etc/hp /etc/hsqldb /etc/htdig /etc/init.d /etc/iproute2 /etc/java-config-2 /etc/lftp /etc/logrotate.d /etc/ntop /etc/opt /etc/pango /etc/profile.d /etc/qt4 /etc/revdep-rebuild /etc/sandbox.d /etc/sasl2 /etc/sensors.d /etc/sgml /etc/sound /etc/ssl /etc/ssmtp /etc/t1lib /etc/terminfo /etc/vbox /etc/xdg /etc/xinetd.d /etc/xml"
CXXFLAGS="-march=barcelona -mtune=barcelona -O2 -pipe"
DISTDIR="/var/tmp/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical --with-bdeps=y --misspell-suggestions=n --autounmask=n --quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
INSTALL_MASK="/lib/systemd /lib32/systemd /lib64/systemd /usr/lib/systemd /usr/lib32/systemd /usr/lib64/systemd"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common -Wl,--as-needed"
LINGUAS="de en"
MAKEOPTS="-j8"
PKGDIR="/opt/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/portage"
PORTDIR_OVERLAY="/var/lib/layman/kde-sunset /usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acpi alsa amd64 berkdb branding bzip2 cairo caps cdda cdr cli cracklib crypt css cups cxx dbus declarative dri dts dvd dvdr emboss encode exif faac fam ffmpeg firefox flac gdbm gif gmp gnutls gtk iconv idn inotify jpeg jpeg2k kde kipi lame lcms libnotify lzma mad matroska midi mmap mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nsplugin ogg opengl openmp opus pam pango pcre pdf phonon plasma png ppds pppd qt3support qt4 quicktime readline rtmp schroedinger sdl semantic-desktop session slang spell sse sse2 ssl startup-notification svg theora threads tiff truetype twolame udev unicode upower usb vaapi vcd vorbis vpx wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvid xvmc zlib zsh-completion" ALSA_CARDS="emu10k1 hda-intel usb-audio" 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" ELIBC="glibc" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev joystick" KERNEL="linux" LIBREOFFICE_EXTENSIONS="pdfimport presenter-console presenter-minimizer" LINGUAS="de en" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CPPFLAGS, CTARGET, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

dev-games/openscenegraph-3.0.1 was built with the following:
USE="-curl -debug -doc -examples ffmpeg -fltk -fox -gdal gif -glut gtk -itk jpeg jpeg2k (multilib) -openexr -openinventor -osgapps pdf png qt4 sdl -static-libs svg tiff truetype -vnc -wxwidgets -xine -xrandr zlib"
Comment 1 Alexis Ballier gentoo-dev 2012-11-08 14:48:21 UTC
Note to maintainers: Fix is not trivial and should be done upstream. Once ffmpeg 1.0 will be unmasked I will have to mask the ffmpeg useflag for openscenegraph.
Comment 2 Luca Barbato gentoo-dev 2012-11-22 19:06:18 UTC
Created attachment 330256 [details, diff]
Support libav 9 correctly

The simplest patch to make it build and hopefully work (a testcase would be welcome).
Comment 3 Alexis Ballier gentoo-dev 2013-02-09 00:14:15 UTC
+  08 Feb 2013; Alexis Ballier <aballier@gentoo.org>
+  openscenegraph-3.0.1-r1.ebuild, +files/openscenegraph-3.0.1-libav-9.patch:
+  Fix build with latest ffmpeg / libav. Bug #439606.
+  upstream svn rev. 13335 contains similar changes.
+  no need to upstream this patch
+