Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 834381 - media-libs/ffmpegsource-2.23 with ffmpeg-5.0: configure: error: cannot link with FFmpeg
Summary: media-libs/ffmpegsource-2.23 with ffmpeg-5.0: configure: error: cannot link w...
Status: RESOLVED FIXED
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: 851066
Blocks: ffmpeg-5.0
  Show dependency tree
 
Reported: 2022-02-28 19:13 UTC by Kobboi
Modified: 2022-07-26 21:39 UTC (History)
0 users

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


Attachments
build.log.gz (build.log.gz,2.21 KB, application/gzip)
2022-02-28 19:13 UTC, Kobboi
Details
emerge-info.txt (emerge-info.txt,8.00 KB, text/plain)
2022-02-28 19:14 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: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 ld.so
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]
build.log.gz
Comment 2 Kobboi 2022-02-28 19:14:01 UTC
Created attachment 766026 [details]
emerge-info.txt
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):

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

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

    media-libs/ffmpegsource: add 2.40
    
    Closes: https://bugs.gentoo.org/851066
    Closes: https://bugs.gentoo.org/834381
    Closes: https://bugs.gentoo.org/859865
    Signed-off-by: Sam James <sam@gentoo.org>

 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(-)