Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 834403 - media-video/ffmpeg2theora-0.30-r1 with ffmpeg-5.0: src/subtitles.h:25:128: error: unknown type name ‘AVSubtitleRect’
Summary: media-video/ffmpeg2theora-0.30-r1 with ffmpeg-5.0: src/subtitles.h:25:128: er...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks: ffmpeg-5.0
  Show dependency tree
 
Reported: 2022-02-28 20:52 UTC by Kobboi
Modified: 2023-03-18 16:45 UTC (History)
1 user (show)

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


Attachments
build.log.gz (build.log.gz,6.41 KB, application/gzip)
2022-02-28 20:52 UTC, Kobboi
Details
emerge-info.txt (emerge-info.txt,8.00 KB, text/plain)
2022-02-28 20:52 UTC, Kobboi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kobboi 2022-02-28 20:52:30 UTC
Checking for libswresample... (cached) yes
Checking for libavdevice libavformat libavfilter libavcodec >= 52.30.0 libpostproc libswscale libavutil libswresample... (cached) yes
Checking for C header file libavformat/framehook.h... no
Checking for C header file iconv.h... yes
Checking for C library iconv... no
scons: done reading SConscript files.
scons: Building targets ...
gcc -o src/theorautils.o -c -O2 -march=znver3 -pipe -g -ggdb3 -DPACKAGE_VERSION=\"0.29\" -DPACKAGE_STRING=\"ffmpeg2theora-0.29\" -DPACKAGE=\"ffmpeg2theora\" -D_FILE_OFFSET_BITS=64 -O2 -march=znver3 -pipe -g -ggdb3 -DUSE_SWRESAMPLE -DHAVE_ICONV -I. src/theorautils.c
gcc -o src/subtitles.o -c -O2 -march=znver3 -pipe -g -ggdb3 -DPACKAGE_VERSION=\"0.29\" -DPACKAGE_STRING=\"ffmpeg2theora-0.29\" -DPACKAGE=\"ffmpeg2theora\" -D_FILE_OFFSET_BITS=64 -O2 -march=znver3 -pipe -g -ggdb3 -DUSE_SWRESAMPLE -DHAVE_ICONV -I. src/subtitles.c
gcc -o src/iso639.o -c -O2 -march=znver3 -pipe -g -ggdb3 -DPACKAGE_VERSION=\"0.29\" -DPACKAGE_STRING=\"ffmpeg2theora-0.29\" -DPACKAGE=\"ffmpeg2theora\" -D_FILE_OFFSET_BITS=64 -O2 -march=znver3 -pipe -g -ggdb3 -DUSE_SWRESAMPLE -DHAVE_ICONV -I. src/iso639.c
gcc -o src/index.o -c -O2 -march=znver3 -pipe -g -ggdb3 -DPACKAGE_VERSION=\"0.29\" -DPACKAGE_STRING=\"ffmpeg2theora-0.29\" -DPACKAGE=\"ffmpeg2theora\" -D_FILE_OFFSET_BITS=64 -O2 -march=znver3 -pipe -g -ggdb3 -DUSE_SWRESAMPLE -DHAVE_ICONV -I. src/index.c
gcc -o src/ffmpeg2theora.o -c -O2 -march=znver3 -pipe -g -ggdb3 -DPACKAGE_VERSION=\"0.29\" -DPACKAGE_STRING=\"ffmpeg2theora-0.29\" -DPACKAGE=\"ffmpeg2theora\" -D_FILE_OFFSET_BITS=64 -O2 -march=znver3 -pipe -g -ggdb3 -DUSE_SWRESAMPLE -DHAVE_ICONV -I. src/ffmpeg2theora.c
gcc -o src/avinfo.o -c -O2 -march=znver3 -pipe -g -ggdb3 -DPACKAGE_VERSION=\"0.29\" -DPACKAGE_STRING=\"ffmpeg2theora-0.29\" -DPACKAGE=\"ffmpeg2theora\" -D_FILE_OFFSET_BITS=64 -O2 -march=znver3 -pipe -g -ggdb3 -DUSE_SWRESAMPLE -DHAVE_ICONV -I. src/avinfo.c
In file included from src/subtitles.c:39:
src/subtitles.h:25:128: error: unknown type name ‘AVSubtitleRect’
   25 | eams, int nstreams, int idx, float t, float duration, const AVSubtitleRect *sr, int org_width, int org_height, FILE *frontend);
      |                                                             ^~~~~~~~~~~~~~

src/subtitles.c:571:121: error: unknown type name ‘AVSubtitleRect’
  571 | eams, int nstreams, int idx, float t, float duration, const AVSubtitleRect *sr, int org_width, int org_height, FILE *frontend)
      |                                                             ^~~~~~~~~~~~~~

scons: *** [src/subtitles.o] Error 1
In file included from src/ffmpeg2theora.c:52:
src/subtitles.h:25:128: error: unknown type name ‘AVSubtitleRect’
   25 | eams, int nstreams, int idx, float t, float duration, const AVSubtitleRect *sr, int org_width, int org_height, FILE *frontend);
      |                                                             ^~~~~~~~~~~~~~

src/ffmpeg2theora.c: In function ‘frame_alloc’:
src/ffmpeg2theora.c:155:12: warning: implicit declaration of function ‘avpicture_get_size’ [-Wimplicit-function-declaration]
  155 |     size = avpicture_get_size (pix_fmt, width, height);
      |            ^~~~~~~~~~~~~~~~~~
src/ffmpeg2theora.c:161:5: warning: implicit declaration of function ‘avpicture_fill’ [-Wimplicit-function-declaration]
  161 |     avpicture_fill((AVPicture *) picture, picture_buf, pix_fmt, width, height);
      |     ^~~~~~~~~~~~~~
src/ffmpeg2theora.c:161:21: error: ‘AVPicture’ undeclared (first use in this function); did you mean ‘picture’?
  161 |     avpicture_fill((AVPicture *) picture, picture_buf, pix_fmt, width, height);
      |                     ^~~~~~~~~
      |                     picture


Reproducible: Always
Comment 1 Kobboi 2022-02-28 20:52:40 UTC
Created attachment 766065 [details]
build.log.gz
Comment 2 Kobboi 2022-02-28 20:52:42 UTC
Created attachment 766066 [details]
emerge-info.txt
Comment 3 Kobboi 2022-02-28 20:53:12 UTC
Compiles fine with ffmpeg-4.4.1
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-02 01:34:49 UTC
Looks very dead.

Last release in 2016 (http://v2v.cc/~j/ffmpeg2theora/) and last commit 6 years ago at https://gitlab.xiph.org/xiph/ffmpeg2theora/-/commits/master.
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-01-21 10:16:03 UTC
Package masked for removal.
Comment 6 Larry the Git Cow gentoo-dev 2023-03-18 16:45:06 UTC
The bug has been closed via the following commit(s):

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

commit dee26cc3c59dbb56429fa768272395516957c815
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2023-03-18 16:43:01 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2023-03-18 16:43:01 +0000

    media-video/ffmpeg2theora: treeclean
    
    Closes: https://bugs.gentoo.org/469816
    Closes: https://bugs.gentoo.org/654486
    Closes: https://bugs.gentoo.org/834403
    Signed-off-by: David Seifert <soap@gentoo.org>

 media-video/ffmpeg2theora/Manifest                 |  1 -
 .../ffmpeg2theora/ffmpeg2theora-0.30-r1.ebuild     | 55 ----------------------
 .../files/ffmpeg2theora-0.29-swr.patch             | 24 ----------
 .../files/ffmpeg2theora-0.29-underlinking.patch    | 21 ---------
 media-video/ffmpeg2theora/metadata.xml             | 10 ----
 profiles/package.mask                              |  1 -
 6 files changed, 112 deletions(-)