Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 601794 - dev-games/openscenegraph-3.5.1-r2 stabilisation (was: ‘AVCodecContext {aka struct AVCodecContext}’ has no member named ‘get_buffer’)
Summary: dev-games/openscenegraph-3.5.1-r2 stabilisation (was: ‘AVCodecContext {aka st...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Stabilization (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Maciej Mrozowski
URL:
Whiteboard:
Keywords:
: 603298 609700 (view as bug list)
Depends on:
Blocks: ffmpeg-3
  Show dependency tree
 
Reported: 2016-12-06 08:58 UTC by Juergen Rose
Modified: 2017-02-19 13:34 UTC (History)
10 users (show)

See Also:
Package list:
=dev-games/openscenegraph-3.5.1-r2
Runtime testing required: ---
stable-bot: sanity-check+


Attachments
build.log.bz2 (build.log.bz2,34.12 KB, application/x-bzip)
2016-12-06 08:58 UTC, Juergen Rose
no flags Details
ebuild (openscenegraph-3.5.5.ebuild,3.87 KB, text/plain)
2016-12-12 09:04 UTC, Carl W. Harlow
no flags Details
ffmpeg-3 compatibility patch (ffmpeg3.patch,6.35 KB, patch)
2016-12-16 20:05 UTC, Vitaly
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Rose 2016-12-06 08:58:32 UTC
Created attachment 455256 [details]
build.log.bz2

'MAKEOPTS=-j1 emerge -v1 openscenegraph' fails with:
...
cd /var/tmp/portage/dev-games/openscenegraph-3.5.1-r1/work/openscenegraph-3.5.1_build/src/osgPlugins/ffmpeg && /usr/bin/x86_64-pc-linux-gnu-g++  -DUSE_AVRESAMPLE -DUSE_SWRESAMPLE -DUSE_SWSCALE -D__STDC_CONSTANT_MACROS -Dosgdb_ffmpeg_EXPORTS -I/var/tmp/portage/dev-games/openscenegraph-3.5.1-r1/work/OpenSceneGraph-3.5.1/include -I/var/tmp/portage/dev-games/openscenegraph-3.5.1-r1/work/openscenegraph-3.5.1_build/include -I/usr/include/libswscale -I/usr/include/libswresample -I/usr/include/libavresample   -DNDEBUG -D__STDC_CONSTANT_MACROS -DNDEBUG -march=native -O2 -pipe -Wall -Wparentheses -Wno-long-long -Wno-import -pedantic -Wreturn-type -Wmissing-braces -Wunknown-pragmas -Wunused -Wno-deprecated-declarations -fPIC   -o CMakeFiles/osgdb_ffmpeg.dir/FFmpegClocks.o -c /var/tmp/portage/dev-games/openscenegraph-3.5.1-r1/work/OpenSceneGraph-3.5.1/src/osgPlugins/ffmpeg/FFmpegClocks.cpp
[ 79%] Building CXX object src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/FFmpegDecoderAudio.o
cd /var/tmp/portage/dev-games/openscenegraph-3.5.1-r1/work/openscenegraph-3.5.1_build/src/osgPlugins/ffmpeg && /usr/bin/x86_64-pc-linux-gnu-g++  -DUSE_AVRESAMPLE -DUSE_SWRESAMPLE -DUSE_SWSCALE -D__STDC_CONSTANT_MACROS -Dosgdb_ffmpeg_EXPORTS -I/var/tmp/portage/dev-games/openscenegraph-3.5.1-r1/work/OpenSceneGraph-3.5.1/include -I/var/tmp/portage/dev-games/openscenegraph-3.5.1-r1/work/openscenegraph-3.5.1_build/include -I/usr/include/libswscale -I/usr/include/libswresample -I/usr/include/libavresample   -DNDEBUG -D__STDC_CONSTANT_MACROS -DNDEBUG -march=native -O2 -pipe -Wall -Wparentheses -Wno-long-long -Wno-import -pedantic -Wreturn-type -Wmissing-braces -Wunknown-pragmas -Wunused -Wno-deprecated-declarations -fPIC   -o CMakeFiles/osgdb_ffmpeg.dir/FFmpegDecoderAudio.o -c /var/tmp/portage/dev-games/openscenegraph-3.5.1-r1/work/OpenSceneGraph-3.5.1/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp
/var/tmp/portage/dev-games/openscenegraph-3.5.1-r1/work/OpenSceneGraph-3.5.1/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp: In member function ‘void osgFFmpeg::FFmpegDecoderAudio::open(AVStream*, osgFFmpeg::FFmpegParameters*)’:
/var/tmp/portage/dev-games/openscenegraph-3.5.1-r1/work/OpenSceneGraph-3.5.1/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:230:20: error: ‘AVCodecContext {aka struct AVCodecContext}’ has no member named ‘get_buffer’
         m_context->get_buffer = avcodec_default_get_buffer;
                    ^
/var/tmp/portage/dev-games/openscenegraph-3.5.1-r1/work/OpenSceneGraph-3.5.1/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:230:33: error: ‘avcodec_default_get_buffer’ was not declared in this scope
         m_context->get_buffer = avcodec_default_get_buffer;
                                 ^
/var/tmp/portage/dev-games/openscenegraph-3.5.1-r1/work/OpenSceneGraph-3.5.1/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:231:20: error: ‘AVCodecContext {aka struct AVCodecContext}’ has no member named ‘release_buffer’
         m_context->release_buffer = avcodec_default_release_buffer;
                    ^
/var/tmp/portage/dev-games/openscenegraph-3.5.1-r1/work/OpenSceneGraph-3.5.1/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:231:37: error: ‘avcodec_default_release_buffer’ was not declared in this scope
         m_context->release_buffer = avcodec_default_release_buffer;
                                     ^
make[2]: *** [src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/build.make:87: src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/FFmpegDecoderAudio.o] Error 1






root@lynx:/usr/src/linux(208)# emerge --info '=dev-games/openscenegraph-3.5.1-r1::gentoo'
Portage 2.3.3 (python 3.4.5-final-0, default/linux/amd64/13.0/desktop, gcc-5.4.0, glibc-2.23-r3, 4.8.11-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.8.11-gentoo-x86_64-Intel-R-_Core-TM-_i7-3630QM_CPU_@_2.40GHz-with-gentoo-2.3
KiB Mem:    15203296 total,    616028 free
KiB Swap:   50331644 total,  49729660 free
Timestamp of repository gentoo: Tue, 06 Dec 2016 08:00:01 +0000
sh bash 4.4_p5-r1
ld GNU ld (Gentoo 2.27 p1.0) 2.27
distcc[20901] (dcc_trace_version) distcc 3.2rc1 x86_64-pc-linux-gnu; built Oct  2 2016 20:49:06 [disabled]
app-shells/bash:          4.4_p5-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1_rc4::gentoo
dev-lang/python:          2.7.12-r102::sage-on-gentoo, 3.4.5::gentoo, 3.5.2::gentoo
dev-util/cmake:           3.7.1::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.22.4::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.9.6-r4::gentoo, 1.11.6-r2::gentoo, 1.12.6-r1::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.27::gentoo
sys-devel/gcc:            4.9.3::gentoo, 5.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.8::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

gentoo
    location: /usr/portage_lynx
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

local
    location: /usr/local/portage
    masters: gentoo
    priority: 0

g-cpan
    location: /var/lib/cpan
    masters: gentoo
    priority: 1

g-octave
    location: /var/lib/g-octave
    masters: gentoo
    priority: 2

activehome
    location: /var/lib/layman/activehome
    masters: gentoo
    priority: 50

ago
    location: /var/lib/layman/ago
    masters: gentoo
    priority: 50

sage-on-gentoo
    location: /var/lib/layman/sage-on-gentoo
    masters: gentoo science
    priority: 50

science
    location: /var/lib/layman/science
    masters: gentoo
    priority: 50

sunrise
    location: /var/lib/layman/sunrise
    masters: gentoo
    priority: 50

tlp
    location: /var/lib/layman/tlp
    masters: gentoo
    priority: 50

x11
    location: /var/lib/layman/x11
    masters: gentoo
    priority: 50

Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL Intel-SDP dlj-1.1 skype-eula skype-4.0.0.7-copyright googleearth AdobeFlash-11.x cadsoft Oracle-BCLA-JavaSE MakeMKV-EULA NVIDIA-CUDA Nero-AAC-EULA GIMPS"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
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.0/ext-active/ /etc/php/apache2-php7.1/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/php/cli-php7.1/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="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news noclean nostrip parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
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="64bit R X Xaw3d a52 aac acl acpi admin afs alsa amd64 amr ao apache2 apng applet archive armadillo arpack asf aspell assistant atlas audacious audiofile aufs automap automount barcode bash-completion berkdb blas blast bluetooth bluray boost branding btrfs bzip2 cairo cdda cddb cdf cdio cdparanoia cdr cg cgi chm cilk cli cmake collada consolekit contrib cracklib crypt css cups curl cxx daap db dbi dbm dbus declarative designer devhelp device-mapper dga dia digitalradio djvu doc dot dri ds2490 ds9097 ds9097u dts dv dvb dvd dvdr dvi dynamicplugin eds egl elf emacs emboss emf encode epiphany evo examples excel exif expat extensions extra extras faac faad fam ffmpeg fftw firefox fits flac fltk fontconfig foomaticdb fortran fortran95 fpm fpx ftp fuse gcj gd gdal gdbm gedit geoip geolocation geos gfortran gif gimp git glade glamor glib glpk gml gmp gnome gnome-keyring gnuplot gnutls gold gphoto2 gpm grammar graphics graphtft graphviz grass gsl gsm gstreamer gtk gtk3 gudev guile hdaps hddtemp hdf hdf5 hdri html http httpd hvm hwdb iconv icq icu id3tag ide imagemagick imap inotify introspection ipod ipv6 irda ithreads jadetex java jbig jit john jpeg jpeg2k kate kde kdepim kdrive kerberos keymap kpathsea kvm ladspa lame lapack latex lcms ldap lensfun libffi libgda libkms libnotify libsamplerate lirc live lm_sensors lua lzma lzo mad mail maildir mapnik math matroska media-library mercurial mikmod mkl mmx mmxext mng mod modules mono motif mozilla mp3 mp4 mpeg mpi mpi-threads mplayer mtp multilib multimedia musepack musicbrainz mysql mysqli nautilus ncurses neXt netcdf netpbm network networking nfs nls nntp nptl nsplugin ntfs ntp numpy obex objc ocaml ocr octave odbc ofa ogdi ogg opencl opencv openexr opengl openmp openvg pam pango pcre pda pdf pdl2 perl plasma plotutils plugins png podcast policykit portaudio posix postgres postscript ppds preview-latex proj projectm pstricks pulseaudio python q16 q32 qemu qhull qml qt3support qt4 qt5 quicktime raw readline reiserfs reports rle romio rpc rrdcgi rrdtool rtlsdr sage samba sasl schroedinger science sdk sdl seccomp secure-delete semantic-desktop server session shout sip slang slp smart smbclient smp sms sndfile snmp soap sockets sound soup sox speex spell sql sqlite sse sse2 ssl startup-notification stlport subtitles subversion sudo suexec svg svm swig systemd szip t1lib tbb tcl tcpd tex tex4ht theora thesaurus thinkpad threads thunderbird tidy tiff tk tools truetype udev udisks unicode upower usb utempter v4l v4l2 vaapi vala valgrind vdpau video vim-syntax virt-network virtualbox visio vorbis vpx vtk wav wayland webdav webdav-serf webkit wifi wmf wxwidgets x264 xa xattr xcb xetex xft xine xml xmlreader xmlrpc xpm xv xvid xvmc yaml youtube zlib zsh-completion zvbi" ABI_X86="64" ALSA_CARDS="intel8x0" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_core authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info lbmethod_byrequests log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif slotmem_shm so socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="canon fuji ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog sensors thermal" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="nss" DVB_CARDS="usb-wt220u dvb_usb_rtl28xxu" ELIBC="glibc" GPSD_PROTOCOLS="aivdm ashtech earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 navcom ntrip oceanserver oncore rtcm104v2 rtcm104v3 sirf superstar2 tnt tripmate tsip ublox nmea0183 nmea2000 passthrough" GRUB_PLATFORMS="emu efi-64 pc xen" INPUT_DEVICES="keyboard mouse evdev synaptics void" KERNEL="linux" L10N="de en fr ru" LCD_DEVICES="cfontz hd44780 mtxorb ncurses X lcd2usb lcdlinux png usblcd SureElec" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en fr ru" LIRC_DEVICES="devinput" NETBEANS_MODULES="apisupport cnd dlight enterprise ergonomics groovy gsf harness ide identity j2ee java mobility nb php profiler websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="nouveau intel i965 displaylink" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

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

dev-games/openscenegraph-3.5.1-r1::gentoo was built with the following:
USE="curl doc examples ffmpeg fltk gdal gif gstreamer gtk jpeg jpeg2k lua openexr pdf png qt5 sdl svg tiff truetype wxwidgets xine zlib -asio -debug -fox -glut -las -openinventor -osgapps -sdl2 -vnc -xrandr" ABI_X86="64"




root@lynx:/usr/src/linux(209)# emerge -pqv '=dev-games/openscenegraph-3.5.1-r1::gentoo'
[ebuild   R   ] dev-games/openscenegraph-3.5.1-r1  USE="curl doc examples ffmpeg fltk gdal gif gstreamer gtk jpeg jpeg2k lua openexr pdf png qt5 sdl svg tiff truetype wxwidgets xine zlib -asio -debug -fox -glut -las -openinventor -osgapps -sdl2 -vnc -xrandr"
Comment 1 eroen 2016-12-08 01:29:00 UTC
The OpenSceneGraph repo on github (but not the svn/trac thing you will find on the website in SRC_URI) has a patch[1] adressing this. openscenegraph-3.5.1-r1 successfully builds for me after dropping it in /etc/portage/patches.

On a mildly annoyed note, since upstream keeps outdated information their site, it would be nice if we could add a link to their *actual* development repo. SRC_URI or metadata.xml spring to mind as good places for it.


1: https://github.com/openscenegraph/OpenSceneGraph/commit/e85d5743341585c6e6eb1ac693884f80e1fa06ce
Comment 2 Carl W. Harlow 2016-12-12 09:04:17 UTC
Created attachment 455988 [details]
ebuild

I got version 3.5.5 to work, have attached ebuild. Had to modify SRC_URI to github, remove patch section, change source directory
Comment 3 Juergen Rose 2016-12-12 11:14:43 UTC
(In reply to Carl W. Harlow from comment #2)
> Created attachment 455988 [details]
> ebuild
> 
> I got version 3.5.5 to work, have attached ebuild. Had to modify SRC_URI to
> github, remove patch section, change source directory

'emerge -v1  openscenegraph' with version 3.5.5 works here too. But the subsequent 'emerge -v1 simgear' fails with:

E_CONFIG_H -DHAVE_INTTYPES_H -DSimGearScene_EXPORTS -I/var/tmp/portage/dev-games/simgear-2016.3.1/work/simgear-2016.3.1_build/simgear -I/var/tmp/portage/dev-games/simgear-2016.3.1/work/simgear-2016.3.1/simgear/canvas/ShivaVG/include -I/var/tmp/portage/dev-games/simgear-2016.3.1/work/simgear-2016.3.1 -I/var/tmp/portage/dev-games/simgear-2016.3.1/work/simgear-2016.3.1_build -I/usr/include/AL -I/var/tmp/portage/dev-games/simgear-2016.3.1/work/simgear-2016.3.1/3rdparty/utf8/source   -DNDEBUG -march=amdfam10 -O2 -pipe  -Wall -Wno-unused-local-typedefs  -DBOOST_BIMAP_DISABLE_SERIALIZATION -fPIC   -std=gnu++98 -o CMakeFiles/SimGearScene.dir/canvas/layout/Layout.cxx.o -c /var/tmp/portage/dev-games/simgear-2016.3.1/work/simgear-2016.3.1/simgear/canvas/layout/Layout.cxx
/var/tmp/portage/dev-games/simgear-2016.3.1/work/simgear-2016.3.1/simgear/canvas/elements/CanvasText.cxx: In member function ‘SGVec2i simgear::canvas::Text::TextOSG::sizeForWidth(int) const’:
/var/tmp/portage/dev-games/simgear-2016.3.1/work/simgear-2016.3.1/simgear/canvas/elements/CanvasText.cxx:501:73: error: no matching function for call to ‘osgText::Font::getKerning(unsigned int&, unsigned int&, const osgText::KerningType&)’
                                                            _kerningType ) );
Comment 4 Juergen Rose 2016-12-12 11:29:27 UTC
'emerge -v1  flightgear' fails as well, with:

cd /var/tmp/portage/games-simulation/flightgear-2016.3.1/work/flightgear-2016.3.1_build/src/Main && /usr/bin/x86_64-pc-linux-gnu-g++  -DHAVE_CONFIG_H -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DWITH_EVENTINPUT -I/var/tmp/portage/games-simulation/flightgear-2016.3.1/work/flightgear-2016.3.1/3rdparty/iaxclient/lib -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/simgear/3rdparty/utf8 -I/usr/include/AL -I/var/tmp/portage/games-simulation/flightgear-2016.3.1/work/flightgear-2016.3.1 -I/var/tmp/portage/games-simulation/flightgear-2016.3.1/work/flightgear-2016.3.1/src -I/var/tmp/portage/games-simulation/flightgear-2016.3.1/work/flightgear-2016.3.1_build/src -I/var/tmp/portage/games-simulation/flightgear-2016.3.1/work/flightgear-2016.3.1_build/src/Include -I/var/tmp/portage/games-simulation/flightgear-2016.3.1/work/flightgear-2016.3.1/src/FDM/JSBSim -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++   -DNDEBUG -march=amdfam10 -O2 -pipe -Wall  -D_REENTRANT -DBOOST_BIMAP_DISABLE_SERIALIZATION   -fPIC -std=gnu++11 -o CMakeFiles/fgfs.dir/subsystemFactory.cxx.o -c /var/tmp/portage/games-simulation/flightgear-2016.3.1/work/flightgear-2016.3.1/src/Main/subsystemFactory.cxx
In file included from /var/tmp/portage/games-simulation/flightgear-2016.3.1/work/flightgear-2016.3.1/src/Main/positioninit.cxx:37:0:
/var/tmp/portage/games-simulation/flightgear-2016.3.1/work/flightgear-2016.3.1/src/Airports/airport.hxx:363:18: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
     mutable std::auto_ptr<FGGroundNetwork> _groundNetwork;
                  ^
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/include/g++-v5/bits/locale_conv.h:41:0,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/include/g++-v5/locale:43,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/include/g++-v5/iomanip:43,
                 from /usr/include/simgear/timing/timestamp.hxx:36,
                 from /usr/include/simgear/structure/subsystem_mgr.hxx:32,
                 from /usr/include/simgear/structure/event_mgr.hxx:5,
                 from /var/tmp/portage/games-simulation/flightgear-2016.3.1/work/flightgear-2016.3.1/src/Main/positioninit.cxx:30:
/usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/include/g++-v5/bits/unique_ptr.h:49:28: note: declared here
   template<typename> class auto_ptr;
                            ^
In file included from /var/tmp/portage/games-simulation/flightgear-2016.3.1/work/flightgear-2016.3.1/src/Main/options.cxx:68:0:
/var/tmp/portage/games-simulation/flightgear-2016.3.1/work/flightgear-2016.3.1/src/Main/options.hxx:163:8: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
   std::auto_ptr<OptionsPrivate> p;
        ^
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/include/g++-v5/memory:81:0,
                 from /usr/include/simgear/timing/sg_time.hxx:39,
                 from /var/tmp/portage/games-simulation/flightgear-2016.3.1/work/flightgear-2016.3.1/src/Main/options.cxx:31:
/usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/include/g++-v5/bits/unique_ptr.h:49:28: note: declared here
   template<typename> class auto_ptr;
                            ^
/var/tmp/portage/games-simulation/flightgear-2016.3.1/work/flightgear-2016.3.1/src/Main/options.cxx: In function ‘void fgSetDefaults()’:
/var/tmp/portage/games-simulation/flightgear-2016.3.1/work/flightgear-2016.3.1/src/Main/options.cxx:230:26: error: ‘getThreadSafeReferenceCounting’ is not a member of ‘osg::Referenced’
Comment 5 Vitaly 2016-12-16 20:05:24 UTC
Created attachment 456414 [details, diff]
ffmpeg-3 compatibility patch

Added a ffmpeg3.patch that allows to compile openscenegraph-3.5.1 with ffmpeg-3
Comment 6 Martin von Gagern 2016-12-17 19:50:45 UTC
interdiff -p1 says the patch from comment 5 and the one from upstream commit e85d574 referenced in comment 1 are equivalent. As suggested in comment 1, using this as a user patch worked for me as well. I used these commands:

mkdir -p /etc/portage/patches/dev-games/openscenegraph-3.5.1
wget -O /etc/portage/patches/dev-games/openscenegraph-3.5.1/gentoo601794a.patch \
https://github.com/openscenegraph/OpenSceneGraph/commit/e85d5743341585c6e6e.patch
emerge -1 openscenegraph

simgear and flightgear remerged successfully for me after this, so the problems reported in comment 3 and comment 4 appear unrelated to me.
Comment 7 MrSnivvel 2016-12-19 07:14:07 UTC
(In reply to Martin von Gagern from comment #6)
> interdiff -p1 says the patch from comment 5 and the one from upstream commit
> e85d574 referenced in comment 1 are equivalent. As suggested in comment 1,
> using this as a user patch worked for me as well. I used these commands:
> 
> mkdir -p /etc/portage/patches/dev-games/openscenegraph-3.5.1
> wget -O
> /etc/portage/patches/dev-games/openscenegraph-3.5.1/gentoo601794a.patch \
> https://github.com/openscenegraph/OpenSceneGraph/commit/e85d5743341585c6e6e.
> patch
> emerge -1 openscenegraph
> 
> simgear and flightgear remerged successfully for me after this, so the
> problems reported in comment 3 and comment 4 appear unrelated to me.

I can confirm that this worked for also.
Comment 8 Navid Zamani 2016-12-29 20:08:10 UTC
This and #603298 seem to be duplicates of each other…
Comment 9 Juergen Rose 2017-01-10 18:27:15 UTC
(In reply to Vitaly from comment #5)
> Created attachment 456414 [details, diff] [details, diff]
> ffmpeg-3 compatibility patch
> 
> Added a ffmpeg3.patch that allows to compile openscenegraph-3.5.1 with
> ffmpeg-3

Using the patch from Comment 5 I could emerge openscenegraph and simgear and flightgear as well.
Comment 10 Toralf Förster gentoo-dev 2017-01-10 20:15:15 UTC
*** Bug 603298 has been marked as a duplicate of this bug. ***
Comment 11 Oleg Korsak 2017-01-27 01:28:26 UTC
Pleeeease, can we get an updated ebuild?
Comment 12 Martin Wegner 2017-02-01 14:34:52 UTC
(In reply to Vitaly from comment #5)
> Created attachment 456414 [details, diff] [details, diff]
> ffmpeg-3 compatibility patch
> 
> Added a ffmpeg3.patch that allows to compile openscenegraph-3.5.1 with
> ffmpeg-3

The patch works for me, too. openscenegraph compiled with this and external (out-of-portage) software depending on this works as well.
Comment 13 Andreas Sturmlechner gentoo-dev 2017-02-18 14:47:07 UTC
*** Bug 609700 has been marked as a duplicate of this bug. ***
Comment 14 Andreas Sturmlechner gentoo-dev 2017-02-18 16:06:38 UTC
Thanks, I've added -r2 to tree with the upstream patch. Arches, please stabilise to fix build with recently stabilised ffmpeg-3.
Comment 15 Agostino Sarubbo gentoo-dev 2017-02-19 13:11:55 UTC
amd64 stable
Comment 16 Agostino Sarubbo gentoo-dev 2017-02-19 13:34:01 UTC
x86 stable. Closing.