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

Bug 834399

Summary: media-tv/tvheadend-4.2.8-r2 with ffmpeg-5.0: src/plumbing/transcoding.c:26:10: fatal error: libavresample/avresample.h: No such file or directory
Product: Gentoo Linux Reporter: Kobboi <gentoo>
Component: Current packagesAssignee: James Le Cuirot <chewi>
Status: CONFIRMED ---    
Severity: normal CC: sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/tvheadend/tvheadend/pull/1460
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 831437    
Attachments: build.log.gz
emerge-info.txt

Description Kobboi 2022-02-28 20:37:53 UTC
Perhaps you should add the directory containing `libavresample.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libavresample', required by 'virtual:world', not found
CC              src/descrambler/ffdecsa/ffdecsa_sse2.o
CC              src/descrambler/libaesdec/libaesdec.o
Package libavresample was not found in the pkg-config search path.
Perhaps you should add the directory containing `libavresample.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libavresample', required by 'virtual:world', not found
Package libavresample was not found in the pkg-config search path.
Perhaps you should add the directory containing `libavresample.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libavresample', required by 'virtual:world', not found
src/plumbing/transcoding.c:26:10: fatal error: libavresample/avresample.h: No such file or directory
   26 | #include <libavresample/avresample.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:642: /var/tmp/portage/media-tv/tvheadend-4.2.8-r2/work/tvheadend-4.2.8/build.linux/src/plumbing/transcoding.o] Error 1
make: *** Waiting for unfinished jobs....
Package libavresample was not found in the pkg-config search path.
Perhaps you should add the directory containing `libavresample.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libavresample', required by 'virtual:world', not found
Package libavresample was not found in the pkg-config search path.
Perhaps you should add the directory containing `libavresample.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libavresample', required by 'virtual:world', not found
CC              src/dbus.o
src/muxer/muxer_libav.c:37:3: error: unknown type name ‘AVBitStreamFilterContext’
   37 |   AVBitStreamFilterContext *lm_h264_filter;
      |   ^~~~~~~~~~~~~~~~~~~~~~~~
src/muxer/muxer_libav.c:38:3: error: unknown type name ‘AVBitStreamFilterContext’
   38 |   AVBitStreamFilterContext *lm_hevc_filter;
      |   ^~~~~~~~~~~~~~~~~~~~~~~~
src/muxer/muxer_libav.c: In function ‘lav_muxer_add_stream’:
src/muxer/muxer_libav.c:81:3: error: unknown type name ‘AVCodecContext’; use ‘struct’ keyword to refer to the type
   81 |   AVCodecContext *c;
      |   ^~~~~~~~~~~~~~
      |   struct 
src/muxer/muxer_libav.c:88:9: error: ‘AVStream’ has no member named ‘codec’
   88 |   c = st->codec;
      |         ^~
src/muxer/muxer_libav.c:89:4: error: request for member ‘codec_id’ in something not a structure or union
   89 |   c->codec_id = streaming_component_type2codec_id(ssc->ssc_type);
      |    ^~
src/muxer/muxer_libav.c:100:6: error: request for member ‘rc_buffer_size’ in something not a structure or union
  100 |     c->rc_buffer_size = 224*1024*8;
      |      ^~
src/muxer/muxer_libav.c:123:8: error: request for member ‘extradata_size’ in something not a structure or union
  123 |       c->extradata_size = hdr.sb_ptr;


Reproducible: Always
Comment 1 Kobboi 2022-02-28 20:38:09 UTC
Created attachment 766057 [details]
build.log.gz
Comment 2 Kobboi 2022-02-28 20:38:11 UTC
Created attachment 766058 [details]
emerge-info.txt
Comment 3 Kobboi 2022-02-28 20:41:03 UTC
Compiles fine with:
* USE=ffmpeg and ffmpeg-4.4.1
* USE=-ffmpeg and ffmpeg-5.0
Comment 4 James Le Cuirot gentoo-dev 2022-05-28 07:44:32 UTC
I've tried to do this API migration myself, but it's not easy. I'm not hugely motivated because I don't use FFmpeg with Tvheadend, and for the time being, I'm not even using Tvheadend at all. I've submitted what I have so far anyway.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-26 05:22:22 UTC
(In reply to James Le Cuirot from comment #4)
> I've tried to do this API migration myself, but it's not easy. I'm not
> hugely motivated because I don't use FFmpeg with Tvheadend, and for the time
> being, I'm not even using Tvheadend at all. I've submitted what I have so
> far anyway.

Thank you! I'd offer to help but.. my fragile Pi setup with a bunch of TV tuners stuck into it isn't running right now either. :|