Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 948162 - media-libs/ffmpegsource-2.40-r2 - [ffmpeg] src/.../audiosource.cpp: error: av_get_channel_layout_nb_channels was not declared in this scope
Summary: media-libs/ffmpegsource-2.40-r2 - [ffmpeg] src/.../audiosource.cpp: error: av...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Nick Sarnie
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: ffmpeg-7.0
  Show dependency tree
 
Reported: 2025-01-15 21:51 UTC by Toralf Förster
Modified: 2025-03-12 10:14 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,21.23 KB, text/plain)
2025-01-15 21:51 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,57.81 KB, application/x-xz)
2025-01-15 21:51 UTC, Toralf Förster
Details
environment (environment,80.73 KB, text/plain)
2025-01-15 21:51 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.15 KB, application/x-xz)
2025-01-15 21:51 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,29.75 KB, application/x-xz)
2025-01-15 21:51 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,7.90 KB, application/x-xz)
2025-01-15 21:51 UTC, Toralf Förster
Details
media-libs:ffmpegsource-2.40-r2:20250115-212713.log (media-libs:ffmpegsource-2.40-r2:20250115-212713.log,12.51 KB, text/plain)
2025-01-15 21:51 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,64.93 KB, application/x-xz)
2025-01-15 21:51 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,21.86 KB, application/x-xz)
2025-01-15 21:51 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2025-01-15 21:51:43 UTC
too long lines were shrinked:

make -O -j4 
cd . && /bin/sh ./config.status ffms2.pc
config.status: creating ffms2.pc
/bin/sh ./libtool  --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I./src/config  -I. -I./include -I./src/config -D_FILE_OFFSET_BITS=64 -DFFMS_EXPORTS -D__STDC_CONSTANT_MACROS -include config.h  -std=c++11 -fvisibility=hidden -O2 -pipe -march=native -fno-diagnostics-color -c 
libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I./src/config -I. -I./include -I./src/config -D_FILE_OFFSET_BITS=64 -DFFMS_EXPORTS -D__STDC_CONSTANT_MACROS -include config.h -std=c++11 -fvisibility=hidden -O2 -pipe -march=native -fno-diagnostics-color -c src/core/audiosource.cpp  -fP
src/core/audiosource.cpp: In member function 'void FFMS_AudioSource::SetOutputFormat(const FFMS_ResampleOptions&)':
src/core/audiosource.cpp:209:95: error: 'av_get_channel_layout_nb_channels' was not declared in this scope
  209 |     BytesPerSample = av_get_bytes_per_sample(static_cast<AVSampleFormat>(opt.SampleFormat)) * av_get_channel_layout_nb_channels(opt.ChannelLayout);
      |                                                                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_no_multilib_hardened_systemd-20250112-003502

  UNMASKED:
    Requested by sam
  >=media-video/ffmpeg-7.0

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-14 *
clang version 19.1.6
llvm-config: 19.1.6
Python 3.12.8
go version go1.23.4 linux/amd64
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-bin-1.77.1
  [2]   rust-bin-1.81.0
  [3]   rust-bin-1.84.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.25_p9 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.13_p11 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.5_p11 [openjdk-bin-21]
4)	Eclipse Temurin JDK 8.432_p06 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17 
  [4]   openjdk-bin-21  system-vm


  HEAD of ::gentoo
commit 37251ab4f234318e4bf27e23a9af40e175fb7b54
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Wed Jan 15 20:33:30 2025 +0000

    2025-01-15 20:33:30 UTC

emerge -qpvO =media-libs/ffmpegsource-2.40-r2
[ebuild  N    ] media-libs/ffmpegsource-2.40-r2
Comment 1 Toralf Förster gentoo-dev 2025-01-15 21:51:44 UTC
Created attachment 916646 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2025-01-15 21:51:45 UTC
Created attachment 916647 [details]
emerge-history.txt.xz
Comment 3 Toralf Förster gentoo-dev 2025-01-15 21:51:46 UTC
Created attachment 916648 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2025-01-15 21:51:48 UTC
Created attachment 916649 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2025-01-15 21:51:49 UTC
Created attachment 916650 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2025-01-15 21:51:50 UTC
Created attachment 916651 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2025-01-15 21:51:51 UTC
Created attachment 916652 [details]
media-libs:ffmpegsource-2.40-r2:20250115-212713.log
Comment 8 Toralf Förster gentoo-dev 2025-01-15 21:51:52 UTC
Created attachment 916653 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2025-01-15 21:51:53 UTC
Created attachment 916654 [details]
temp.tar.xz
Comment 10 Kostadin Shishmanov 2025-02-06 00:48:19 UTC
Fixed with 5.0

See also: https://github.com/FFMS/ffms2/commit/85bccda2f1c63a1b151b4ff2bde9e9818e95415a
Comment 11 Larry the Git Cow gentoo-dev 2025-03-12 10:14:38 UTC
The bug has been referenced in the following commit(s):

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

commit 9b2fd09d134919c64435b4aa2d765a8e1622a550
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2025-03-12 03:25:57 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2025-03-12 10:11:43 +0000

    media-libs/ffmpegsource: use ffmpeg-compat
    
    Apparently already fixed in a newer version, but leaving bumping
    to the actual maintainer.
    
    Given no code changes, plans are to sync keywords back with stable
    when ready.
    
    Bug: https://bugs.gentoo.org/948162
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 .../ffmpegsource/ffmpegsource-2.40-r3.ebuild       | 55 ++++++++++++++++++++++
 1 file changed, 55 insertions(+)