Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 834382 - 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’?
Summary: media-libs/libextractor-1.9-r2 with ffmpeg-5.0: thumbnailffmpeg_extractor.c:2...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: ffmpeg-5.0
  Show dependency tree
 
Reported: 2022-02-28 19:20 UTC by Kobboi
Modified: 2022-02-28 19:31 UTC (History)
0 users

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


Attachments
build.log.gz (build.log.gz,9.50 KB, application/gzip)
2022-02-28 19:21 UTC, Kobboi
Details
emerge-info.txt (emerge-info.txt,8.00 KB, text/plain)
2022-02-28 19:21 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 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