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

Bug 909159

Summary: media-video/harvid-0.9.0 - ffdecoder.c: error: const struct AVCodec has no member named flush
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Media-video project <media-video>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tar.xz
media-video:harvid-0.9.0:20230625-210447.log
temp.tar.xz

Description Toralf Förster gentoo-dev 2023-06-25 21:20:30 UTC
x86_64-pc-linux-gnu-gcc -c -o timecode.o -O2 -pipe -march=native -fno-diagnostics-color   `pkg-config --cflags libavcodec libavformat libavutil libswscale` timecode.c
ffdecoder.c: In function 'ff_open_movie':
ffdecoder.c:488:10: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  488 |   pCodec = avcodec_find_decoder(ff->pCodecCtx->codec_id);
      |          ^
ffdecoder.c: In function 'my_seek_frame':
ffdecoder.c:607:29: error: 'const struct AVCodec' has no member named 'flush'
  607 |     if (ff->pCodecCtx->codec->flush) {
      |                             ^~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_no_multilib_systemd-20230623-164023

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
/usr/lib/llvm/16
16.0.6
Python 3.11.4
Available Ruby profiles:
  [1]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.69.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.6_p10 [openjdk-bin-17]
*)	Eclipse Temurin JDK 8.362_p09 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm
  [2]   openjdk-bin-17 

php cli (if any):
go version go1.20.5 linux/amd64

  HEAD of ::gentoo
commit 7bbc23f4f02ebced655d77f4372fffc8c564d059
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Jun 25 20:16:59 2023 +0000

    2023-06-25 20:16:59 UTC

emerge -qpvO media-video/harvid
[ebuild  N    ] media-video/harvid-0.9.0
Comment 1 Toralf Förster gentoo-dev 2023-06-25 21:20:31 UTC
Created attachment 864602 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-06-25 21:20:32 UTC
Created attachment 864603 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2023-06-25 21:20:33 UTC
Created attachment 864604 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-06-25 21:20:34 UTC
Created attachment 864605 [details]
etc.portage.tar.xz
Comment 5 Toralf Förster gentoo-dev 2023-06-25 21:20:35 UTC
Created attachment 864606 [details]
media-video:harvid-0.9.0:20230625-210447.log
Comment 6 Toralf Förster gentoo-dev 2023-06-25 21:20:36 UTC
Created attachment 864607 [details]
temp.tar.xz
Comment 7 Watcom 2023-08-17 15:50:05 UTC
Tried harvid 0.9.1 (removing both patches), and that fixed this.