Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 654172

Summary: media-libs/gegl-0.3.34[ffmpeg] with media-video/ffmpeg-4.0 : ff-save.c:293:17: error: CODEC_FLAG_GLOBAL_HEADER undeclared (first use in this function)
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Sebastian Pipping <sping>
Status: RESOLVED FIXED    
Severity: normal CC: M4rkusXXL, sean.1986
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 653678    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
media-libs:gegl-0.3.34:20180427-062117.log
temp.tbz2

Description Toralf Förster gentoo-dev 2018-04-27 07:53:02 UTC
ff-save.c: In function ‘add_audio_stream’:
ff-save.c:293:17: error: ‘CODEC_FLAG_GLOBAL_HEADER’ undeclared (first use in this function); did you mean ‘AV_CODEC_FLAG_GLOBAL_HEADER’?
     c->flags |= CODEC_FLAG_GLOBAL_HEADER;
                 ^~~~~~~~~~~~~~~~~~~~~~~~
                 AV_CODEC_FLAG_GLOBAL_HEADER

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

  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 media-libs/gegl
[ebuild  N    ] media-libs/gegl-0.3.34  USE="cairo ffmpeg introspection lcms sdl svg tiff -debug -jpeg2k -lensfun -openexr -raw {-test} -umfpack -v4l -vala -webp" CPU_FLAGS_X86="mmx sse"
Comment 1 Toralf Förster gentoo-dev 2018-04-27 07:53:06 UTC
Created attachment 528648 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-04-27 07:53:09 UTC
Created attachment 528650 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2018-04-27 07:53:12 UTC
Created attachment 528652 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2018-04-27 07:53:15 UTC
Created attachment 528654 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2018-04-27 07:53:18 UTC
Created attachment 528656 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-04-27 07:53:22 UTC
Created attachment 528658 [details]
media-libs:gegl-0.3.34:20180427-062117.log
Comment 7 Toralf Förster gentoo-dev 2018-04-27 07:53:25 UTC
Created attachment 528660 [details]
temp.tbz2
Comment 8 Sebastian Pipping gentoo-dev 2018-04-29 18:12:23 UTC
ffmpeg 4.0 does not have this macro any more:

#define CODEC_FLAG_GLOBAL_HEADER  AV_CODEC_FLAG_GLOBAL_HEADER
Comment 9 Sebastian Pipping gentoo-dev 2018-04-29 18:17:18 UTC
We could change Gegl's dependencies like this:

--- >=media-video/ffmpeg-2.8:0=
+++ <media-video/ffmpeg-4.0:0=

Would that help?

Other ideas?
Comment 10 cryptopsy 2018-05-05 17:39:55 UTC
could it be related to https://bugs.gentoo.org/654448 ? qtwebengine usually doesn't build when ffmpeg doesn't build, when i turn on/off -flto . But this time my qtwebengine bug is without flto.
Comment 12 Sebastian Pipping gentoo-dev 2018-05-13 17:30:49 UTC
(In reply to Louis Sautier (sbraz) from comment #11)
> Looks like they fixed it upstream a few days ago:
> https://bugzilla.gnome.org/show_bug.cgi?id=795625
> https://git.gnome.org/browse/gegl/commit/
> ?id=8f2545886ce3be8f1b1229bddcfa5af3216110d3
> https://git.gnome.org/browse/gegl/commit/
> ?id=2896800b5e7d0c656710c70fdea57098032f3ccc

Nice, thanks for the notification!
Comment 13 Larry the Git Cow gentoo-dev 2018-05-13 17:30:56 UTC
The bug has been closed via the following commit(s):

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

commit 2ce460484a2841634b71f5df4335ba3eca4f709a
Author:     Sebastian Pipping <sping@gentoo.org>
AuthorDate: 2018-05-13 17:28:19 +0000
Commit:     Sebastian Pipping <sping@gentoo.org>
CommitDate: 2018-05-13 17:30:24 +0000

    media-libs/gegl: Support ffmpeg 4.0
    
    Closes: https://bugs.gentoo.org/654172
    Package-Manager: Portage-2.3.36, Repoman-2.3.9

 .../files/gegl-0.4.0-ffmpeg-4-0-compat-1.patch     | 63 ++++++++++++++++++++++
 .../files/gegl-0.4.0-ffmpeg-4-0-compat-2.patch     | 25 +++++++++
 media-libs/gegl/gegl-0.3.34.ebuild                 |  2 +
 media-libs/gegl/gegl-0.4.0-r1.ebuild               |  2 +
 4 files changed, 92 insertions(+)
Comment 14 Andreas Sturmlechner gentoo-dev 2019-05-09 20:16:45 UTC
*** Bug 685486 has been marked as a duplicate of this bug. ***