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

Bug 834382

Summary: media-libs/libextractor-1.9-r2 with ffmpeg-5.0: thumbnailffmpeg_extractor.c:275:20: error: ‘AVPicture’ undeclared (first use in this function); did you mean ‘AVPictureType’?
Product: Gentoo Linux Reporter: Kobboi <gentoo>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal CC: treecleaner
Priority: Normal Keywords: PMASKED
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 831437    
Attachments: build.log.gz
emerge-info.txt

Description Kobboi 2022-02-28 19:20:47 UTC
ibtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/include -I../../src/common -O2 -march=znver3 -pipe -g -ggdb3 -c zip_extractor.c  -fPIC -DPIC -o .libs/zip_extractor.o
thumbnailffmpeg_extractor.c: In function ‘create_thumbnail’:
thumbnailffmpeg_extractor.c:208:3: warning: ‘av_init_packet’ is deprecated [-Wdeprecated-declarations]
  208 |   av_init_packet(&pkt);
      |   ^~~~~~~~~~~~~~
In file included from /usr/include/libavformat/avformat.h:316,
                 from thumbnailffmpeg_extractor.c:47:
/usr/include/libavcodec/packet.h:506:6: note: declared here
  506 | void av_init_packet(AVPacket *pkt);
      |      ^~~~~~~~~~~~~~
thumbnailffmpeg_extractor.c:214:36: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  214 |         if (NULL == (encoder_codec = avcodec_find_encoder ( AV_CODEC_ID_MJPEG )))
      |                                    ^
/bin/sh ../../libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -O2 -march=znver3 -pipe -g -ggdb3 -Wl,-Bsymbolic -export-dynamic -avoid-version -module -no-undefined -export-symbols-regex "(EXTRACTOR|pl)_[a-zA-Z0-9_]*_......." -Wl,-O1 -Wl,--as-needed -o libextractor_s3m.la -rpath /usr/lib64/libextractor s3m_extractor.lo  
thumbnailffmpeg_extractor.c:260:27: warning: implicit declaration of function ‘avpicture_get_size’ [-Wimplicit-function-declaration]
  260 |                av_malloc (avpicture_get_size (PIX_OUTPUT_FORMAT,
      |                           ^~~~~~~~~~~~~~~~~~
/bin/sh ../../libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -O2 -march=znver3 -pipe -g -ggdb3 -Wl,-Bsymbolic -export-dynamic -avoid-version -module -no-undefined -export-symbols-regex "(EXTRACTOR|pl)_[a-zA-Z0-9_]*_......." -Wl,-O1 -Wl,--as-needed -o libextractor_mp4.la -rpath /usr/lib64/libextractor mp4_extractor.lo -lmp4v2  
thumbnailffmpeg_extractor.c:275:3: warning: implicit declaration of function ‘avpicture_fill’ [-Wimplicit-function-declaration]
  275 |   avpicture_fill ((AVPicture *) dst_frame, dst_buffer,
      |   ^~~~~~~~~~~~~~
/bin/sh ../../libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -O2 -march=znver3 -pipe -g -ggdb3 -Wl,-Bsymbolic -export-dynamic -avoid-version -module -no-undefined -export-symbols-regex "(EXTRACTOR|pl)_[a-zA-Z0-9_]*_......." -Wl,-O1 -Wl,--as-needed -o libextractor_wav.la -rpath /usr/lib64/libextractor wav_extractor.lo   
thumbnailffmpeg_extractor.c:275:20: error: ‘AVPicture’ undeclared (first use in this function); did you mean ‘AVPictureType’?
  275 |   avpicture_fill ((AVPicture *) dst_frame, dst_buffer,
      |                    ^~~~~~~~~
      |                    AVPictureType
thumbnailffmpeg_extractor.c:275:20: note: each undeclared identifier is reported only once for each function it appears in
thumbnailffmpeg_extractor.c:275:31: error: expected expression before ‘)’ token
  275 |   avpicture_fill ((AVPicture *) dst_frame, dst_buffer,
      |                               ^
/bin/sh ../../libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -O2 -march=znver3 -pipe -g -ggdb3 -Wl,-Bsymbolic -export-dynamic -avoid-version -module -no-undefined -export-symbols-regex "(EXTRACTOR|pl)_[a-zA-Z0-9_]*_......." -Wl,-O1 -Wl,--as-needed -o libextractor_it.la -rpath /usr/lib64/libextractor it_extractor.lo  
thumbnailffmpeg_extractor.c:376:9: warning: implicit declaration of function ‘avcodec_encode_video2’; did you mean ‘avcodec_encode_subtitle’? [-Wimplicit-function-declaration]
  376 |   err = avcodec_encode_video2 (encoder_codec_ctx,
      |         ^~~~~~~~~~~~~~~~~~~~~
      |         avcodec_encode_subtitle
/bin/sh ../../libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -O2 -march=znver3 -pipe -g -ggdb3 -Wl,-Bsymbolic -export-dynamic -avoid-version -module -no-undefined -export-symbols-regex "(EXTRACTOR|pl)_[a-zA-Z0-9_]*_......." -Wl,-O1 -Wl,--as-needed -o libextractor_gif.la -rpath /usr/lib64/libextractor gif_extractor.lo -lgif  
/bin/sh ../../libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -O2 -march=znver3 -pipe -g -ggdb3 -Wl,-Bsymbolic -export-dynamic -avoid-version -module -no-undefined -export-symbols-regex "(EXTRACTOR|pl)_[a-zA-Z0-9_]*_......." -Wl,-O1 -Wl,--as-needed -o libextractor_mime.la -rpath /usr/lib64/libextractor mime_extractor.lo -lmagic  
thumbnailffmpeg_extractor.c:385:3: warning: implicit declaration of function ‘av_free_packet’; did you mean ‘av_get_packet’? [-Wimplicit-function-declaration]
  385 |   av_free_packet(&pkt);
      |   ^~~~~~~~~~~~~~
      |   av_get_packet
thumbnailffmpeg_extractor.c: In function ‘extract_image’:
thumbnailffmpeg_extractor.c:489:22: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  489 |   if (NULL == (codec = avcodec_find_decoder (image_codec_id)))
      |                      ^
thumbnailffmpeg_extractor.c:541:7: warning: ‘av_init_packet’ is deprecated [-Wdeprecated-declarations]
  541 |       av_init_packet (&avpkt);
      |       ^~~~~~~~~~~~~~
In file included from /usr/include/libavformat/avformat.h:316,
                 from thumbnailffmpeg_extractor.c:47:
/usr/include/libavcodec/packet.h:506:6: note: declared here
  506 | void av_init_packet(AVPacket *pkt);
      |      ^~~~~~~~~~~~~~
/bin/sh ../../libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -O2 -march=znver3 -pipe -g -ggdb3 -Wl,-Bsymbolic -export-dynamic -avoid-version -module -no-undefined -export-symbols-regex "(EXTRACTOR|pl)_[a-zA-Z0-9_]*_......." -Wl,-O1 -Wl,--as-needed -o libextractor_xm.la -rpath /usr/lib64/libextractor xm_extractor.lo  
/bin/sh ../../libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -O2 -march=znver3 -pipe -g -ggdb3 -Wl,-Bsymbolic -export-dynamic -avoid-version -module -no-undefined -export-symbols-regex "(EXTRACTOR|pl)_[a-zA-Z0-9_]*_......." -Wl,-O1 -Wl,--as-needed -o libextractor_archive.la -rpath /usr/lib64/libextractor archive_extractor.lo -larchive  
thumbnailffmpeg_extractor.c:544:7: warning: implicit declaration of function ‘avcodec_decode_video2’; did you mean ‘avcodec_decode_subtitle2’? [-Wimplicit-function-declaration]
  544 |       avcodec_decode_video2 (codec_ctx, frame, &frame_finished, &avpkt);
      |       ^~~~~~~~~~~~~~~~~~~~~
      |       avcodec_decode_subtitle2
thumbnailffmpeg_extractor.c: In function ‘extract_video’:
thumbnailffmpeg_extractor.c:676:41: error: ‘AVStream’ has no member named ‘codec’
  676 |       codec_ctx = format_ctx->streams[i]->codec;
      |                                         ^~


Reproducible: Always
Comment 1 Kobboi 2022-02-28 19:21:05 UTC
Created attachment 766027 [details]
build.log.gz
Comment 2 Kobboi 2022-02-28 19:21:07 UTC
Created attachment 766028 [details]
emerge-info.txt
Comment 3 Kobboi 2022-02-28 19:22:18 UTC
Compiles fine with:
* USE=ffmpeg and ffmpeg-4.4.1
* USE=-ffmpeg and ffmpeg-5.0
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-01-21 10:16:03 UTC
Package masked for removal.
Comment 5 Larry the Git Cow gentoo-dev 2023-03-18 16:45:15 UTC
The bug has been closed via the following commit(s):

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

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

    media-libs/libextractor: treeclean
    
    Bug: https://bugs.gentoo.org/247394
    Closes: https://bugs.gentoo.org/767247
    Closes: https://bugs.gentoo.org/834382
    Signed-off-by: David Seifert <soap@gentoo.org>

 media-libs/libextractor/Manifest                   |   1 -
 .../files/libextractor-1.8-exiv2-0.27.patch        | 127 ---------------------
 .../files/libextractor-1.9-CVE-2019-15531.patch    |  15 ---
 media-libs/libextractor/libextractor-1.9-r5.ebuild | 118 -------------------
 media-libs/libextractor/metadata.xml               |  13 ---
 profiles/package.mask                              |  12 --
 6 files changed, 286 deletions(-)