Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 654176 - games-emulation/vbam-2.0.2 : /.../ffmpeg.cpp:90:36: error: FF_MIN_BUFFER_SIZE was not declared in this scope
Summary: games-emulation/vbam-2.0.2 : /.../ffmpeg.cpp:90:36: error: FF_MIN_BUFFER_SIZE...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
: 686444 (view as bug list)
Depends on:
Blocks: ffmpeg-4
  Show dependency tree
 
Reported: 2018-04-27 08:23 UTC by Toralf Förster
Modified: 2019-05-21 10:25 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.48 KB, text/plain)
2018-04-27 08:23 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,59.37 KB, text/plain)
2018-04-27 08:24 UTC, Toralf Förster
Details
environment (environment,126.25 KB, text/plain)
2018-04-27 08:24 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,12.51 KB, application/x-bzip)
2018-04-27 08:24 UTC, Toralf Förster
Details
games-emulation:vbam-2.0.2:20180427-081327.log (games-emulation:vbam-2.0.2:20180427-081327.log,100.31 KB, text/plain)
2018-04-27 08:24 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,7.10 KB, application/x-bzip)
2018-04-27 08:24 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,34.69 KB, application/x-bzip)
2018-04-27 08:24 UTC, Toralf Förster
Details
Patch to fix ffmpeg 4.0 incompatibility (fix_ffmpeg4.patch,589 bytes, patch)
2018-08-13 01:58 UTC, Adam Stylinski
Details | Diff
ffmpeg4 fix (fix_ffmpeg4.patch,639 bytes, patch)
2018-08-13 02:05 UTC, Adam Stylinski
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2018-04-27 08:23:54 UTC
     AVCodecContext *codec;
                     ^~~~~
/var/tmp/portage/games-emulation/vbam-2.0.2/work/visualboyadvance-m-2.0.2/src/common/ffmpeg.cpp:90:36: error: ‘FF_MIN_BUFFER_SIZE’ was not declared in this scope
 #define AUDIO_BUF_LEN (frame_len > FF_MIN_BUFFER_SIZE ? frame_len : FF_MIN_BUFFER_SIZE)
                                    ^
/var/tmp/portage/games-emulation/vbam-2.0.2/work/visualboyadvance-m-2.0.2/src/common/ffmpeg.cpp:296:32: note: in expansion of macro ‘AUDIO_BUF_LEN’

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-desktop-ffmpeg4_20180425-205701

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.0 *

Available Python interpreters, in order of preference:
  [1]   python3.5
  [2]   python2.7 (fallback)
  [3]   pypy3 (fallback)
Available Ruby profiles:
  [1]   ruby22 (with Rubygems)
  [2]   ruby23 (with Rubygems) *
java-config:
The following VMs are available for generation-2:


emerge -qpv games-emulation/vbam
[ebuild  N    ] games-emulation/vbam-2.0.2  USE="ffmpeg nls sdl wxwidgets -link -lirc -openal"
Comment 1 Toralf Förster gentoo-dev 2018-04-27 08:23:58 UTC
Created attachment 528662 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-04-27 08:24:01 UTC
Created attachment 528664 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2018-04-27 08:24:04 UTC
Created attachment 528666 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2018-04-27 08:24:08 UTC
Created attachment 528668 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2018-04-27 08:24:11 UTC
Created attachment 528670 [details]
games-emulation:vbam-2.0.2:20180427-081327.log
Comment 6 Toralf Förster gentoo-dev 2018-04-27 08:24:14 UTC
Created attachment 528672 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2018-04-27 08:24:17 UTC
Created attachment 528674 [details]
temp.tbz2
Comment 8 Adam Stylinski 2018-08-13 01:58:08 UTC
Created attachment 543224 [details, diff]
Patch to fix ffmpeg 4.0 incompatibility

This macro was later renamed to AV_INPUT_BUFFER_MIN_SIZE.
Comment 9 Adam Stylinski 2018-08-13 02:05:03 UTC
Created attachment 543226 [details, diff]
ffmpeg4 fix
Comment 10 Adam Stylinski 2018-08-13 02:28:41 UTC
ahh, my last patch isn't very helpful.  After fixing all instances of that macro (I missed a few), it turns out they were using a now unsupported AVFORMAT (RAWPICTURE).  Patches will probably need more careful consideration.
Comment 11 Larry the Git Cow gentoo-dev 2018-08-29 21:22:15 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef9f6bf56e2a038da4cdda33020cf9d8decf1e85

commit ef9f6bf56e2a038da4cdda33020cf9d8decf1e85
Author:     James Le Cuirot <chewi@gentoo.org>
AuthorDate: 2018-08-29 21:21:24 +0000
Commit:     James Le Cuirot <chewi@gentoo.org>
CommitDate: 2018-08-29 21:22:05 +0000

    games-emulation/vbam: Pin ffmpeg back to version 3
    
    It doesn't build with ffmpeg 4, the dependency is optional, and
    upstream don't appear to be in a hurry to fix it.
    
    Closes: https://bugs.gentoo.org/654176
    Package-Manager: Portage-2.3.48, Repoman-2.3.10

 games-emulation/vbam/vbam-2.0.2.ebuild | 2 +-
 games-emulation/vbam/vbam-9999.ebuild  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Comment 12 Jeroen Roovers (RETIRED) gentoo-dev 2019-05-21 07:34:02 UTC
*** Bug 686444 has been marked as a duplicate of this bug. ***
Comment 13 Jeroen Roovers (RETIRED) gentoo-dev 2019-05-21 08:02:42 UTC
*** Bug 686444 has been marked as a duplicate of this bug. ***
Comment 14 Jeroen Roovers (RETIRED) gentoo-dev 2019-05-21 10:25:20 UTC
oops