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

Bug 834381

Summary: media-libs/ffmpegsource-2.23 with ffmpeg-5.0: configure: error: cannot link with FFmpeg
Product: Gentoo Linux Reporter: Kobboi <gentoo>
Component: Current packagesAssignee: No maintainer - Look at if you want to take care of it <maintainer-needed>
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on: 851066    
Bug Blocks: 831437    
Attachments: build.log.gz

Description Kobboi 2022-02-28 19:13:43 UTC
checking if x86_64-pc-linux-gnu-g++ supports -c -o file.o... yes
checking if x86_64-pc-linux-gnu-g++ supports -c -o file.o... (cached) yes
checking whether the x86_64-pc-linux-gnu-g++ linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux
checking how to hardcode library paths into programs... immediate
checking for zlib.h... yes
checking for inflateEnd in -lz... yes
checking for x86_64-pc-linux-gnu-pkg-config... /usr/bin/x86_64-pc-linux-gnu-pkg-config
checking pkg-config is at least version 0.22... yes
checking for LIBAV... yes
checking whether linking with FFmpeg or Libav... FFmpeg
checking whether FFmpeg works... no
configure: error: in `/var/tmp/portage/media-libs/ffmpegsource-2.23/work/ffmpegsource-2.23':
configure: error: cannot link with FFmpeg
See `config.log' for more details

Reproducible: Always
Comment 1 Kobboi 2022-02-28 19:13:59 UTC
Created attachment 766025 [details]
Comment 2 Kobboi 2022-02-28 19:14:01 UTC
Created attachment 766026 [details]
Comment 3 Kobboi 2022-02-28 19:18:03 UTC
configure:17228: checking whether FFmpeg works
configure:17248: x86_64-pc-linux-gnu-gcc -o conftest -O2 -march=znver3 -pipe -g -ggdb3   -D__STDC_CONSTANT_MACROS -Wl,-O1 -Wl,--as-needed conftest.c  -lavformat -lavcodec -lswscale -lavutil >&5
conftest.c: In function 'main':
conftest.c:32:17: warning: implicit declaration of function 'avcodec_register_all' [-Wimplicit-function-declaration]
   32 |                 avcodec_register_all();
      |                 ^~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/media-libs/ffmpegsource-2.23/temp/ccKkS2D1.o: in function `main':
/var/tmp/portage/media-libs/ffmpegsource-2.23/work/ffmpegsource-2.23/conftest.c:32: undefined reference to `avcodec_register_all'
collect2: error: ld returned 1 exit status
configure:17248: $? = 1
Comment 4 Larry the Git Cow gentoo-dev 2022-07-26 21:39:12 UTC
The bug has been closed via the following commit(s):

commit 28702e2a5310ec37e3957e761c8419237daf1ef1
Author:     Sam James <>
AuthorDate: 2022-07-26 21:23:03 +0000
Commit:     Sam James <>
CommitDate: 2022-07-26 21:38:25 +0000

    media-libs/ffmpegsource: add 2.40
    Signed-off-by: Sam James <>

 media-libs/ffmpegsource/Manifest                 |  1 +
 media-libs/ffmpegsource/ffmpegsource-2.40.ebuild | 43 +++++++++++++++++++++
 media-libs/ffmpegsource/ffmpegsource-9999.ebuild | 48 +++++++++++-------------
 3 files changed, 66 insertions(+), 26 deletions(-)